UNPKG

@tanstack/ai-mcp

Version:

Host-side Model Context Protocol client for TanStack AI: discover and run MCP server tools, resources, and prompts in any adapter's chat() loop, with generated end-to-end types.

7 lines (6 loc) • 258 B
/** * Map a ProtocolError from an `events/*` call to `MCPEventRequestError`. * Other values pass through unchanged. */ export declare function toMCPEventRequestError(err: unknown): unknown; export declare function isMethodNotFound(err: unknown): boolean;