MCP TypeScript SDK (V2)
    Preparing search index...

    Error codes for SDK errors (local errors that never cross the wire). Unlike ProtocolErrorCode which uses numeric JSON-RPC codes, SdkErrorCode uses descriptive string values for better developer experience.

    These errors are thrown locally by the SDK and are never serialized as JSON-RPC error responses.

    Index

    Enumeration Members

    AlreadyConnected: "ALREADY_CONNECTED"

    Transport is already connected

    CapabilityNotSupported: "CAPABILITY_NOT_SUPPORTED"

    Required capability is not supported by the remote side

    ClientHttpAuthentication: "CLIENT_HTTP_AUTHENTICATION"
    ClientHttpFailedToOpenStream: "CLIENT_HTTP_FAILED_TO_OPEN_STREAM"
    ClientHttpFailedToTerminateSession: "CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION"
    ClientHttpForbidden: "CLIENT_HTTP_FORBIDDEN"
    ClientHttpNotImplemented: "CLIENT_HTTP_NOT_IMPLEMENTED"
    ClientHttpUnexpectedContent: "CLIENT_HTTP_UNEXPECTED_CONTENT"
    ConnectionClosed: "CONNECTION_CLOSED"

    Connection was closed

    NotConnected: "NOT_CONNECTED"

    Transport is not connected

    NotInitialized: "NOT_INITIALIZED"

    Protocol is not initialized

    RequestTimeout: "REQUEST_TIMEOUT"

    Request timed out waiting for response

    SendFailed: "SEND_FAILED"

    Failed to send message