Skip to main content

Module errors

Module errors 

Source
Expand description

JSON-RPC error code table and McpError enum.

The codes here match the table in docs/architecture/mcp-server-design.md §5.4 exactly. Standard JSON-RPC 2.0 codes (-32700, -32600, -32601, -32602, -32603) use their spec definitions; the server-defined range -32001..=-32010 covers tsafe-mcp specifics (agent unreachable, scope widening, biometric denied, etc).

Structs§

McpError
Error returned by every tsafe-mcp code path that can fail.

Enums§

McpErrorKind
All error kinds returned by tsafe-mcp.