MCP JSON-RPC Error Codes
MCP uses JSON-RPC 2.0 error codes. These codes appear in error response objects from MCP servers. Standard JSON-RPC codes (-32700 to -32603) cover protocol-level failures. The most common in practice is -32602 Invalid Params when tool arguments don't match the inputSchema.
5
Error Codes