@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.
15 lines (14 loc) • 1.13 kB
TypeScript
export { createMCPClient, createMCPClientFromTransport } from './client.js';
export type { MCPClient } from './client.js';
export type { AnyToolDefinition, MappedServerTools, McpServerTool, McpToolMetadata, MCPClientOptions, ServerDescriptor, ToolsOptions, } from './types.js';
export type { ToolAnnotations } from '@modelcontextprotocol/sdk/types.js';
export type { TransportConfig, TransportInput, HttpTransportConfig, SseTransportConfig, StdioTransportConfig, } from './transport.js';
export type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
export { InMemoryTransport } from '@modelcontextprotocol/sdk/inMemory.js';
export { MCPConnectionError, DuplicateToolNameError, MCPTaskRequiredToolError, MCPToolNotFoundError, } from './errors.js';
export { mcpResourceToContentPart } from './resources.js';
export { mcpPromptToMessages } from './prompts.js';
export { createMCPClients } from './pool.js';
export type { MCPClients, MCPClientsConfig } from './pool.js';
export { defineConfig } from './cli/define-config.js';
export type { MCPCodegenConfig, CodegenServerConfig } from './cli/define-config.js';