Skip to main content

Interface: StdioTransportConfig

Defined in: packages/mcp/src/types.ts:66

Stdio transport configuration for local MCP servers

Spawns a child process to communicate with the MCP server via stdin/stdout.

Example

const transport: StdioTransportConfig = {
type: 'stdio',
command: 'npx',
args: ['-y', '@modelcontextprotocol/server-github'],
env: { GITHUB_TOKEN: process.env.GITHUB_TOKEN }
};

Properties

args?

optional args?: string[]

Defined in: packages/mcp/src/types.ts:71

Command arguments


command

command: string

Defined in: packages/mcp/src/types.ts:69

Command to execute (e.g., 'npx', 'node', 'python')


cwd?

optional cwd?: string

Defined in: packages/mcp/src/types.ts:75

Working directory for the child process


env?

optional env?: Record<string, string>

Defined in: packages/mcp/src/types.ts:73

Environment variables for the child process


type

type: "stdio"

Defined in: packages/mcp/src/types.ts:67