Skip to content

fix(relay): gate githubcopilot.com MITM to Copilot so Cursor MCP servers connect#151

Merged
CLEMENTINATOR merged 1 commit into
mainfrom
fix/relay-mcp-connectivity
Jul 21, 2026
Merged

fix(relay): gate githubcopilot.com MITM to Copilot so Cursor MCP servers connect#151
CLEMENTINATOR merged 1 commit into
mainfrom
fix/relay-mcp-connectivity

Conversation

@CLEMENTINATOR

Copy link
Copy Markdown
Member

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.

@CLEMENTINATOR
CLEMENTINATOR requested a review from a team as a code owner July 21, 2026 08:47
…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
CLEMENTINATOR force-pushed the fix/relay-mcp-connectivity branch from b07552e to c59bb72 Compare July 21, 2026 08:53
@CLEMENTINATOR
CLEMENTINATOR merged commit 769fe82 into main Jul 21, 2026
4 checks passed
@KokaKiwi
KokaKiwi deleted the fix/relay-mcp-connectivity branch July 21, 2026 08:56
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