Agent Client Protocol - v1.8.0
    Preparing search index...

    Type Alias McpErrorExperimental

    UNSTABLE

    An inner MCP error, distinct from an outer ACP binding or runtime error.

    code and message are required and non-null. data is optional; explicit null is preserved separately from an omitted key.

    type McpError = {
        code: number;
        message: string;
        data?: unknown;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index
    code: number

    Inner MCP error code; never an ACP error code.

    message: string

    Inner MCP error message.

    data?: unknown

    Optional error data; explicit null is retained.