Expand description
JSON-RPC 2.0 protocol implementation.
§JSON-RPC 2.0 Implementation
This module provides a complete implementation of JSON-RPC 2.0 protocol with support for batching, streaming, and MCP-specific extensions.
Modules§
- utils
 - Utility functions for JSON-RPC message handling
 
Structs§
- Json
RpcBatch  - JSON-RPC batch request/response
 - Json
RpcError  - JSON-RPC error object
 - Json
RpcNotification  - JSON-RPC notification message (no response expected)
 - Json
RpcRequest  - JSON-RPC request message
 - Json
RpcResponse  - JSON-RPC response message
 - Json
RpcVersion  - JSON-RPC version type
 - Response
Id  - Response ID - handles the special case where parse errors have null ID
 
Enums§
- Json
RpcError Code  - Standard JSON-RPC error codes
 - Json
RpcMessage  - JSON-RPC message type (union of request, response, notification)
 - Json
RpcResponse Payload  - JSON-RPC response payload - ensures mutual exclusion of result and error
 
Constants§
- JSONRPC_
VERSION  - JSON-RPC version constant