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.

10 lines (9 loc) • 468 B
import { StdioClientTransport } from '@modelcontextprotocol/client/stdio'; import { StdioTransportConfig } from './transport.js'; /** * Build a stdio Transport to pass as `createMCPClient({ transport })`. * * Node only. This does not start the process. * `config.command` is the program. `config.args`, `config.env`, and `config.cwd` go to that program. */ export declare function stdioTransport(config: Omit<StdioTransportConfig, 'type'>): StdioClientTransport;