Summary
Make the Node transport factory honor the standard HTTPS_PROXY / HTTP_PROXY / NO_PROXY environment variables (CLI and web backend) by wrapping fetch with undici's EnvHttpProxyAgent.
Why
Users behind corporate proxies currently can't reach remote MCP servers from the CLI or the web backend without inspector-specific configuration. Honoring the conventional env vars fixes that with zero new flags.
Reference implementation (PR #1510)
Re-implement informed by these changes at 33fac3f:
Depends on
Nothing — Wave 1 foundation, parallel-safe.
Notes
- undici is lazily imported only when a proxy env var is set, so non-proxy users pay nothing.
- Check
undici@^8.x's Node engine floor against our supported Node range and document it in the README (dependency + proxy behavior) per AGENTS.md's docs rule.
- Integration tests live under
clients/web/src/test/integration/mcp/node/ (auto-picked-up by the integration vitest project).
Part of the PR #1510 decomposition (see tracking issue).
Summary
Make the Node transport factory honor the standard
HTTPS_PROXY/HTTP_PROXY/NO_PROXYenvironment variables (CLI and web backend) by wrapping fetch with undici'sEnvHttpProxyAgent.Why
Users behind corporate proxies currently can't reach remote MCP servers from the CLI or the web backend without inspector-specific configuration. Honoring the conventional env vars fixes that with zero new flags.
Reference implementation (PR #1510)
Re-implement informed by these changes at
33fac3f:readProxyEnv()(checksHTTPS_PROXY/https_proxy/HTTP_PROXY/http_proxy),withProxyDispatcher()wrapping baseFetch, lazy undici import with an actionable error when a proxy is set but undici is missing (+63)undici@^8.5.0Depends on
Nothing — Wave 1 foundation, parallel-safe.
Notes
undici@^8.x's Node engine floor against our supported Node range and document it in the README (dependency + proxy behavior) per AGENTS.md's docs rule.clients/web/src/test/integration/mcp/node/(auto-picked-up by theintegrationvitest project).Part of the PR #1510 decomposition (see tracking issue).