Documentation
¶
Overview ¶
Package mcp provides a small JSON-RPC 2.0 MCP server over stdio.
Index ¶
Constants ¶
View Source
const LegacyProtocolVersion = "2025-11-25"
View Source
const ProtocolVersion = "2026-07-28"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server dispatches MCP JSON-RPC methods and named tool handlers.
type Tool ¶
type Tool struct {
Name string `json:"name"`
Title string `json:"title,omitempty"`
Description string `json:"description"`
InputSchema map[string]any `json:"inputSchema"`
OutputSchema map[string]any `json:"outputSchema,omitempty"`
Annotations map[string]any `json:"annotations,omitempty"`
}
Tool describes one exposed MCP operation.
Click to show internal directories.
Click to hide internal directories.