Skip to main content

Module protocol

Module protocol 

Source

Structs§

CallToolParams
Parameters for a tools/call request
CallToolResult
Result of a tools/call invocation
ClientInfo
Client identification sent during initialization
ContentPart
A content part within a tool result
InitializeParams
Parameters for the initialize request
InitializeResult
Result of a successful initialize response
JsonRpcError
JSON-RPC error object
JsonRpcRequest
Incoming JSON-RPC request from MCP client
JsonRpcResponse
Outgoing JSON-RPC response to MCP client
ServerCapabilities
Server capability declarations
ServerInfo
Server identification
ToolDefinition
Tool definition exposed via tools/list
ToolsCapability
Marker type indicating the server supports MCP tools
ToolsListResult
Result of a tools/list call

Constants§

INTERNAL_ERROR
JSON-RPC internal error
INVALID_PARAMS
JSON-RPC invalid parameters
INVALID_REQUEST
JSON-RPC invalid request (e.g. wrong protocol version)
METHOD_NOT_FOUND
JSON-RPC method not found
PARSE_ERROR
JSON-RPC parse error: invalid JSON received
PROTOCOL_VERSION
MCP protocol version supported by this server
SERVER_NAME
Server name reported during MCP handshake
SERVER_VERSION
Server version reported during MCP handshake