Skip to main content

Module error

Module error 

Source
Expand description

Error types for the MCP SDK.

This module provides a comprehensive error type that covers all possible failure modes in the MCP protocol.

Modules§

recovery
Advanced error handling and recovery mechanisms.

Structs§

ErrorCode
JSON-RPC error code for custom errors.

Enums§

Error
Main error type for MCP operations.
TransportError
Transport-specific errors.

Constants§

ISS_MISMATCH_MARKER
The stable programmatic identity of Error::iss_mismatch.
MRTR_INPUT_REQUIRED_MARKER
The stable programmatic identity of Error::input_required_unfulfilled.
MRTR_ROUND_LIMIT_MARKER
The stable programmatic identity of Error::mrtr_round_limit_exceeded.
REAUTH_REQUIRED_MARKER
The stable programmatic identity of Error::reauth_required.
RETIRED_ON_V2_MARKER
The stable programmatic identity of Error::retired_on_v2.
STATE_MISMATCH_MARKER
The stable programmatic identity of Error::state_mismatch.

Type Aliases§

Result
Result type alias for MCP operations.