Expand description
JSON-RPC protocol handling for MCP server.
Implements the Content-Length framed JSON-RPC transport used by the Model Context Protocol over stdio.
Functionsยง
- build_
error_ message - Build a JSON-RPC 2.0 error message.
- build_
notification - Build a JSON-RPC 2.0 notification (no id, no response expected).
- build_
result_ message - Build a JSON-RPC 2.0 result message.
- read_
payload - Read a JSON-RPC payload from a buffered reader.
- write_
message - Write a Content-Length framed JSON-RPC message to a writer.