Interface McpStructuredErrorExperimental

The MCP error-contract "structured content" honua-server promises ("tool failures are returned inside result with isError: true and a structured code ... read the embedded message"). The exact JSON Schema for this shape is not published anywhere this client could import from — ./mcp-client.ts's module doc records the interpretation this type encodes and how parseToolError degrades gracefully if a real server's shape differs.

interface McpStructuredError {
    code: string;
    message: string;
    [key: string]: unknown;
}

Indexable

  • [key: string]: unknown

Properties

Properties

code: string
message: string