Module error_codes

Module error_codes 

Source
Expand description

Standard JSON-RPC error codes as defined in the JSON-RPC 2.0 specification and the Model Context Protocol (MCP) documentation

Constantsยง

INTERNAL_ERROR
Internal error: Internal JSON-RPC error
INVALID_PARAMS
Invalid params: Invalid method parameter(s)
INVALID_REQUEST
Invalid Request: The JSON sent is not a valid Request object
METHOD_NOT_FOUND
Method not found: The method does not exist / is not available
PARSE_ERROR
Parse error: Invalid JSON was received
SERVER_ERROR
Generic server error for MCP-specific issues