Module error_codes

Module error_codes 

Source
Expand description

Protocol error codes (JSON-RPC standard + MCP extensions)

Constantsยง

AUTHENTICATION_REQUIRED
Authentication required error
CAPABILITY_NOT_SUPPORTED
Capability not supported error
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 by the server
PROMPT_NOT_FOUND
Prompt not found error
PROTOCOL_VERSION_MISMATCH
Protocol version mismatch error
RATE_LIMITED
Rate limited error
RESOURCE_ACCESS_DENIED
Resource access denied error
RESOURCE_NOT_FOUND
Resource not found error
SERVER_OVERLOADED
Server overloaded error
TOOL_EXECUTION_ERROR
Tool execution error
TOOL_NOT_FOUND
Tool not found error