MCPcopy Create free account
hub / github.com/TanStack/ai / stdioTransport

Function stdioTransport

packages/ai-mcp/src/stdio.ts:6–15  ·  view source on GitHub ↗
(
  config: Omit<StdioTransportConfig, 'type'>,
)

Source from the content-addressed store, hash-verified

4
5/** Build a stdio transport instance to pass as `createMCPClient({ transport })`. Node-only. */
6export function stdioTransport(
7 config: Omit<StdioTransportConfig, 'type'>,
8): Transport {
9 return new StdioClientTransport({
10 command: config.command,
11 args: config.args,
12 env: config.env,
13 cwd: config.cwd,
14 })
15}

Callers 4

stdio.test.tsFile · 0.90
everythingTransportFunction · 0.90
memoryTransportFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected