Module json_rpc

Module json_rpc 

Source
Expand description

JSON-RPC 2.0 Implementation for MCP 2025-06-18

This module provides JSON-RPC structures that are fully compliant with the MCP 2025-06-18 specification, including proper _meta field handling.

Structs§

JsonRpcError
JSON-RPC 2.0 error object
JsonRpcNotification
A JSON-RPC 2.0 notification (no response expected)
JsonRpcRequest
A standard JSON-RPC 2.0 request
JsonRpcResponse
A standard JSON-RPC 2.0 response
RequestParams
JSON-RPC params object with optional _meta and method-specific arguments
ResultWithMeta
A generic result wrapper that combines data with optional _meta information

Enums§

JsonRpcMessage
Unified JSON-RPC message type

Constants§

JSONRPC_VERSION
JSON-RPC version constant