Documentation
¶
Overview ¶
Package method defines JSON-RPC 2.0 method strings from the MCP specification, used for request routing in the server dispatch loop.
Index ¶
Constants ¶
View Source
const ( // Initialize is the MCP initialize handshake method. Initialize = "initialize" // Ping is the MCP ping method. Ping = "ping" // ResourceList is the MCP method for listing resources. ResourceList = "resources/list" // ResourceRead is the MCP method for reading a resource. ResourceRead = "resources/read" // ResourceSubscribe is the MCP method for subscribing to resource changes. ResourceSubscribe = "resources/subscribe" // ResourceUnsubscribe is the MCP method for unsubscribing from resource // changes. ResourceUnsubscribe = "resources/unsubscribe" // ToolList is the MCP method for listing tools. ToolList = "tools/list" // ToolCall is the MCP method for calling a tool. ToolCall = "tools/call" // PromptList is the MCP method for listing prompts. PromptList = "prompts/list" // PromptGet is the MCP method for getting a prompt. PromptGet = "prompts/get" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.