You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I attempt to connect to the MCP server in a chat
The browser launches with the following URL https://github.com/login/oauth/authorize?client_id=Ov23ctDVkRmgkPke0Mmm&response_type=code&code_challenge=REDACTED&code_challenge_method=S256&scope=read%3Aorg+offline_access&resource=https%3A%2F%2Fapi.githubcopilot.com%2Fmcp&redirect_uri=http%3A%2F%2F127.0.0.1%3A33418%2F&state=REDACTED
I let copilot do a bit of digging in this area, and as far as it says (and I have been able to partially confirm this to be true)
Hypothesis
The Copilot runtime initiates GitHub MCP OAuth using a client registered for a /callback redirect. VS Code takes over the browser flow but supplies a loopback redirect ending in / instead. GitHub rejects that mismatch before authentication can complete.
Most likely fix
Update the VS Code ↔ Copilot OAuth handoff so the authorization request and callback listener both use /callback. This points to an integration bug between the MCP and VS Code.
Verification
Calling the following URLs gets me two different behaviours. If I call the following, the browser window attempts to redirect back to the localhost https://github.com/login/oauth/authorize?client_id=Ov23ctDVkRmgkPke0Mmm&redirect_uri=http://127.0.0.1:33418/callback
If I call this (the one which is what is currently generated by vs code) I get the ugly Be Careful! page above. https://github.com/login/oauth/authorize?client_id=Ov23ctDVkRmgkPke0Mmm&redirect_uri=http://127.0.0.1:33418/
So clearly there is some busted auth redirect logic (likely being handled by VS Code, but cannot say for sure)
Activity
chrissmithptml commentedon Dec 3, 2026
I too see this when using the copilot chat within the latest VS Code
1.149.0My github mcp server configuration is as follows
If I attempt to connect to the MCP server in a chat
The browser launches with the following URL
https://github.com/login/oauth/authorize?client_id=Ov23ctDVkRmgkPke0Mmm&response_type=code&code_challenge=REDACTED&code_challenge_method=S256&scope=read%3Aorg+offline_access&resource=https%3A%2F%2Fapi.githubcopilot.com%2Fmcp&redirect_uri=http%3A%2F%2F127.0.0.1%3A33418%2F&state=REDACTEDAnd we see the following in the browser
chrissmithptml commentedon Dec 3, 2026
I let copilot do a bit of digging in this area, and as far as it says (and I have been able to partially confirm this to be true)
Hypothesis
The Copilot runtime initiates GitHub MCP OAuth using a client registered for a
/callbackredirect. VS Code takes over the browser flow but supplies a loopback redirect ending in/instead. GitHub rejects that mismatch before authentication can complete.Most likely fix
Update the VS Code ↔ Copilot OAuth handoff so the authorization request and callback listener both use
/callback. This points to an integration bug between the MCP and VS Code.Verification
Calling the following URLs gets me two different behaviours. If I call the following, the browser window attempts to redirect back to the localhost
https://github.com/login/oauth/authorize?client_id=Ov23ctDVkRmgkPke0Mmm&redirect_uri=http://127.0.0.1:33418/callbackIf I call this (the one which is what is currently generated by vs code) I get the ugly Be Careful! page above.
https://github.com/login/oauth/authorize?client_id=Ov23ctDVkRmgkPke0Mmm&redirect_uri=http://127.0.0.1:33418/So clearly there is some busted auth redirect logic (likely being handled by VS Code, but cannot say for sure)