Experimental_StdioMCPTransport
Creates a transport for Model Context Protocol (MCP) clients to communicate with MCP servers using standard input and output streams. This transport is only supported in Node.js environments.
This feature is experimental and may change or be removed in the future.
Import
import { Experimental_StdioMCPTransport } from "ai/mcp-stdio"API Signature
Parameters
config:
StdioConfig
StdioConfig
command:
string
args?:
string[]
env?:
Record<string, string>
stderr?:
IOType | Stream | number
cwd?:
string