Skip to content

basalt / mcp/src / McpServerConnection

Type Alias: McpServerConnection ​

> McpServerConnection = { headers?: Record<string, string>; type: "http"; url: string; } | { args?: string[]; command: string; cwd?: string; env?: Record<string, string>; inheritEnv?: boolean | string[]; type: "stdio"; }

Defined in: mcp/src/client-plugin.ts:12

How to reach one external MCP server.

Union Members ​

Type Literal ​

{ headers?: Record<string, string>; type: "http"; url: string; }


Type Literal ​

{ args?: string[]; command: string; cwd?: string; env?: Record<string, string>; inheritEnv?: boolean | string[]; type: "stdio"; }

args? ​

> optional args?: string[]

command ​

> command: string

cwd? ​

> optional cwd?: string

env? ​

> optional env?: Record<string, string>

inheritEnv? ​

> optional inheritEnv?: boolean | string[]

Host env inheritance — see StdioTransportOptions.inheritEnv. Default: a non-secret allowlist.

type ​

> type: "stdio"

Released under the MIT License.