fix(relay): gate githubcopilot.com MITM to Copilot so Cursor MCP servers connect#151
Merged
Merged
Conversation
NicolasGirardot
approved these changes
Jul 21, 2026
…bypass loopback Cursor's remote MCP (e.g. github at api.githubcopilot.com/mcp/) is fetched via --proxy-server through Electron's net stack, which validates against the system cert store, not NODE_EXTRA_CA_CERTS. Because githubcopilot.com was on the always- MITM inference list, the relay terminated its TLS with the Edgee CA and the MCP failed with 'fetch failed'. githubcopilot.com and api.github.com are only inference/control-plane hosts for the Copilot-VS-Code relay, so MITM them only there; every other relay (cursor, claude, codex) blind-tunnels them so MCP servers reach the real host with the real certificate. Also set NO_PROXY for loopback so local MCP servers connect directly.
CLEMENTINATOR
force-pushed
the
fix/relay-mcp-connectivity
branch
from
July 21, 2026 08:53
b07552e to
c59bb72
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cursor fetches remote MCP servers (e.g. github at api.githubcopilot.com/mcp/) via --proxy-server through Electron's net stack, which validates TLS against the system cert store, not NODE_EXTRA_CA_CERTS. Because githubcopilot.com was always-MITM'd, the relay terminated its TLS with the untrusted Edgee CA → 'fetch failed'. Gate githubcopilot.com + api.github.com MITM to the Copilot-VS-Code relay only; other relays blind-tunnel them so MCP servers reach the real host with the real cert. Also set NO_PROXY for loopback.