Skip to main content

Module server

Module server 

Source
Expand description

MCP server core — tool registration, initialization, and dispatch logic.

Structs§

McpServer
An MCP server that manages tools, resources, prompts, and dispatches calls.

Constants§

LATEST_PROTOCOL_VERSION
The newest MCP protocol version this server implements.
SUPPORTED_PROTOCOL_VERSIONS
MCP protocol versions this server understands, newest first.

Traits§

AsyncToolHandler
Async tool-handler trait — the async counterpart to the synchronous Handler.

Type Aliases§

Handler
Handler function type for MCP tool calls (synchronous).