Skip to content

fix: preserve proxy settings across MCP client environments - #1

Merged
Fryingpan-Jason merged 3 commits into
mainfrom
codex/fix-mcp-proxy-configuration
Sep 13, 2026
Merged

Fryingpan-Jason merged 3 commits into
mainfrom
codex/fix-mcp-proxy-configuration

Conversation

@Fryingpan-Jason

Copy link
Copy Markdown
Owner

MCP clients can filter inherited proxy variables, causing connections to fail around 10.7 seconds even when the same terminal can reach Grok. This adds opt-in config --proxy / --proxy-from-env export for all six client formats, while preserving existing configuration output when neither flag is selected.

The PR also adds an optional doctor --network check (one unauthenticated metadata GET, no inference) and safe transport cause codes to request_uncertain. It documents proxy setup and distinguishes endpoint reachability from authentication. Proxy credentials are never exported; there are no automatic retries or billing changes.

Validation: all 34 offline source tests passed on Windows / Node 26.8.1, including a real Node child using the official MCP SDK minimal environment and a loopback proxy. No additional model calls or redundant local release/hash audits were performed for this PR. The previously authorized local environment repair restored a real search with five citations.

The new flags are source-only pending a later release. This PR does not merge itself, publish npm, or modify the immutable 0.1.0 release.

@Fryingpan-Jason
Fryingpan-Jason merged commit 78e53dd into main Sep 13, 2026
12 checks passed
@Fryingpan-Jason
Fryingpan-Jason deleted the codex/fix-mcp-proxy-configuration branch September 13, 2026 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants