Follow-up to the salvaged #111796 commit: - NO_PROXY matching goes through `agent.proxy_bypass.should_bypass_proxy` (the one matcher the LLM transport and the gateway adapters already use), so CIDR ranges and `*.host` patterns bypass the proxy for MCP servers exactly as they do for the model endpoint. The stdlib `proxy_bypass` stays for the OS bypass list (Windows ProxyOverride / macOS exceptions). Live probe: NO_PROXY=10.255.255.0/24 still routed the MCP request through the proxy before this commit, direct after. - Drop the try/except around `getproxies()` / `proxy_bypass()`: the stdlib guards its own registry/sysconf reads and httpx calls the same functions unguarded. - Trim the six contributor tests to two invariants (mount + NO_PROXY incl. CIDR; both client builders carry mounts next to the body-cap transport). Fixture uses the stdlib `getproxies_environment` / `proxy_bypass_environment` instead of a hand-rolled copy and skips when the mcp SDK is absent. - Docs: one sentence on the MCP page about proxy resolution for HTTP/SSE servers. - contributors/emails mapping for the PR author.
2 lines
15 B
Plaintext
2 lines
15 B
Plaintext
VictorTran1023
|