Expand description
JSON-RPC 2.0 messages as MCP exchanges them, and the client’s errors. Port
of protocol/jsonrpc.ts in pi-mcp v1.0.0.
Enums§
- Incoming
- A message as received, classified.
- McpError
- Why an MCP request or connection failed. Messages match pi-mcp’s.
Constants§
- INTERNAL_
ERROR - The handler failed.
- INVALID_
REQUEST - The request was not valid JSON-RPC.
- METHOD_
NOT_ FOUND - The method does not exist.