( env: Env = process.env, deps: InstallProxyDeps = defaultInstallProxyDeps, )
| 308 | * any network use. No-op (returns `false`) when no proxy variable is set. |
| 309 | */ |
| 310 | export function installGlobalProxyDispatcher( |
| 311 | env: Env = process.env, |
| 312 | deps: InstallProxyDeps = defaultInstallProxyDeps, |
| 313 | ): boolean { |
| 314 | const dispatcher = deps.createProxyDispatcher(env); |
| 315 | if (dispatcher === undefined) return false; |
| 316 | deps.setGlobalDispatcher(dispatcher); |
| 317 | return true; |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * Environment additions for spawned child node processes (e.g. stdio MCP |
no outgoing calls
no test coverage detected