mcp

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpoolServer

func NewSpoolServer(stateDirProvider func() (string, error)) *mcp.Server

NewSpoolServer creates and configures an MCP server with all Spool tools registered.

func RegisterAllTools

func RegisterAllTools(s *mcp.Server, stateDirProvider func() (string, error))

RegisterAllTools registers all 42 Spool tools onto the given official MCP server.

func RunStdio

func RunStdio(ctx context.Context, server *mcp.Server) error

RunStdio executes the MCP server over standard input and standard output.

Types

type Tool

type Tool struct {
	Name        string         `json:"name"`
	Description string         `json:"description"`
	InputSchema map[string]any `json:"inputSchema"`
	Handler     ToolHandler    `json:"-"`
}

Tool represents a Spool tool specification and its execution handler.

type ToolHandler

type ToolHandler func(ctx context.Context, args json.RawMessage) (any, error)

ToolHandler handles execution of a Spool tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL