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

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