MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stdioSpawnEnv

Function stdioSpawnEnv

packages/plugins/mcp/src/sdk/stdio-connector.ts:121–129  ·  view source on GitHub ↗
(declared?: Record<string, string>)

Source from the content-addressed store, hash-verified

119 * schemas, and app-server traffic is not MCP-shaped) but must spawn with the
120 * same environment rules. */
121export const stdioSpawnEnv = (declared?: Record<string, string>): Record<string, string> => ({
122 ...getDefaultEnvironment(),
123 ...mergeStdioEnv({
124 platform: process.platform,
125 inherited: inheritedEnv(),
126 declared,
127 sdkKeys: Object.keys(getDefaultEnvironment()),
128 }),
129});
130
131export const createStdioTransport = (config: StdioTransportConfig) =>
132 new StdioClientTransport({

Callers 1

startMethod · 0.90

Calls 2

mergeStdioEnvFunction · 0.85
inheritedEnvFunction · 0.85

Tested by

no test coverage detected