Skip to main content

Module protocol

Module protocol 

Source
Expand description

JSON-RPC 2.0 and Model Context Protocol data types and errors.

Structs§

ImplementationInfo
Client identity sent during initialize.
InitializeResult
Result returned by the server from initialize.
JsonRpcErrorObject
Inbound JSON-RPC 2.0 error object.
JsonRpcNotification
Outbound JSON-RPC 2.0 notification envelope (no id).
JsonRpcRequest
Outbound JSON-RPC 2.0 request envelope.
JsonRpcResponse
Inbound JSON-RPC 2.0 response envelope.
ResourceContent
Embedded resource payload inside a ContentBlock::Resource.
Tool
Definition of a tool returned by tools/list.
ToolAnnotations
Behavioral annotations advertised by an MCP tool.
ToolCallResult
Result returned by tools/call.
ToolsListResult
Single page returned by tools/list.

Enums§

ContentBlock
Structured content block returned by tools/call.
McpError
Errors returned by MCP transports and client operations.

Constants§

JSONRPC_VERSION
JSON-RPC 2.0 version constant.
MCP_PROTOCOL_VERSION
MCP protocol version advertised by blyte during initialize.