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.

23 lines (22 loc) • 816 B
export declare class MCPConnectionError extends Error { readonly cause?: unknown | undefined; constructor(message: string, cause?: unknown | undefined); } export declare class DuplicateToolNameError extends Error { readonly toolName: string; constructor(toolName: string); } /** * Thrown when a task-required tool is explicitly bound via `mcp.tools([...])` * or called via `callTool()` but the server does not declare the tasks * capability for tools/call, so the call could never execute. * (Auto-discovery silently skips such tools.) */ export declare class MCPTaskRequiredToolError extends Error { readonly toolName: string; constructor(toolName: string); } export declare class MCPToolNotFoundError extends Error { readonly toolName: string; constructor(toolName: string); }