Skip to content

McpStdioUpstreamSettings

@tsed/platform-mcp

Usage ​

typescript
import { McpStdioUpstreamSettings } from "@tsed/platform-mcp";

See /packages/platform/platform-mcp/src/common/interfaces/PlatformMcpUpstreamSettings.ts.

Overview ​

ts
interface McpStdioUpstreamSettings extends McpUpstreamBaseSettings {
    type: "stdio";
    command: string;
    args?: string[];
    env?: Record<string, string>;
    cwd?: string;
}

Description ​

Upstream started as a local process speaking MCP over stdio (for instance a server started with npx).

type ​

ts
type: "stdio";

command ​

ts
command: string;

args ​

ts
args?: string[];

Arguments of the command. Values support the same placeholders as headers. One process is started per distinct set of interpolated values.

env ​

ts
env?: Record<string, string>;

Environment of the child process, merged over the SDK safe environment subset. Values support the same placeholders as headers.

cwd ​

ts
cwd?: string;

Released under the MIT License.