Skip to main content

Module protocol

Module protocol 

Source
Expand description

JSON-RPC 2.0 and MCP protocol types.

Structs§

ClientInfo
Client identification.
InitializeParams
MCP initialize request params.
JsonRpcError
A JSON-RPC 2.0 error object.
JsonRpcRequest
A JSON-RPC 2.0 request or notification.
JsonRpcResponse
A JSON-RPC 2.0 response.
ResourceContent
MCP resource content.
ResourceDefinition
MCP resource definition.
ServerInfo
MCP server info returned in initialize response.
ToolContent
MCP tool call result content.
ToolDefinition
MCP tool definition.

Constants§

INTERNAL_ERROR
INVALID_PARAMS
INVALID_REQUEST
METHOD_NOT_FOUND
PARSE_ERROR