Expand description
JSON-RPC implementation for MCP communication.
This module provides types and utilities for JSON-RPC 2.0 communication with MCP servers. It includes structures for requests, responses, notifications, and error handling, along with helper methods for creating common MCP request types.
The implementation follows the JSON-RPC 2.0 specification and adapts it specifically for the Model Context Protocol’s requirements.
Modules§
- error_
codes - Standard JSON-RPC error codes as defined in the JSON-RPC 2.0 specification and the Model Context Protocol (MCP) documentation
Structs§
- Json
RpcError - A JSON-RPC error
- Json
RpcNotification - A JSON-RPC notification (request without ID)
- Json
RpcRequest - A JSON-RPC request
- Json
RpcResponse - A JSON-RPC response
Enums§
- Json
RpcMessage - A JSON-RPC message
Constants§
- JSON_
RPC_ VERSION - JSON-RPC protocol version