(declared?: Record<string, string>)
| 119 | * schemas, and app-server traffic is not MCP-shaped) but must spawn with the |
| 120 | * same environment rules. */ |
| 121 | export 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 | |
| 131 | export const createStdioTransport = (config: StdioTransportConfig) => |
| 132 | new StdioClientTransport({ |
no test coverage detected