Skip to content

basalt / mcp/src / StdioTransportOptions

Interface: StdioTransportOptions ​

Defined in: mcp/src/client.ts:66

Properties ​

args? ​

> optional args?: string[]

Defined in: mcp/src/client.ts:68


command ​

> command: string

Defined in: mcp/src/client.ts:67


cwd? ​

> optional cwd?: string

Defined in: mcp/src/client.ts:71


env? ​

> optional env?: Record<string, string>

Defined in: mcp/src/client.ts:70

Variables passed to the child verbatim (on top of the inherited ones).


inheritEnv? ​

> optional inheritEnv?: boolean | string[]

Defined in: mcp/src/client.ts:79

Which host environment variables the child inherits. Default: only the non-secret basics in DEFAULT_INHERITED_ENV (PATH, HOME, locale…), so host secrets (APP_SECRET, DATABASE_URL, provider keys) never reach a third-party server. Pass a list to inherit extra named variables, or true to explicitly opt in to the full process.env.


timeoutMs? ​

> optional timeoutMs?: number

Defined in: mcp/src/client.ts:85

How long a request waits for the server's answer before it rejects. Default: 60 000 ms. A server that never answers (hung, or not an MCP server at all) would otherwise leave the call pending forever.

Released under the MIT License.