Skip to main content

Module jsonrpc

Module jsonrpc 

Source
Expand description

JSON-RPC 2.0 envelope parsing and response serialization.

Parsing enforces the size and depth limits before serde sees the input, rejects batches (not part of MCP 2026-07-28), null ids and responses, and keeps params as raw JSON so each handler deserializes exactly once.

Structs§

Notification
A JSON-RPC notification.
Request
A JSON-RPC request.

Enums§

Message
An incoming JSON-RPC message accepted by the server.
Rejection
Why an incoming message was rejected.
Response
A JSON-RPC response produced by the server.

Functions§

parse
Parses one JSON-RPC message, enforcing limits.