[BUG] GitHub MCP authenticate tool redirects OAuth flow to Google Drive consent screen instead of GitHub
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Bug: mcp__github__authenticate routes to Google Drive MCP installer instead of GitHub
Session ID: cse_01Xv66mTze4xxaFDaUc4KTDC
Tool: mcp__github__authenticate
Tool description says: "The github MCP server (http at https://api.anthropic.com/v2/ccr-sessions/cse_01Xv66mTze4xxaFDaUc4KTDC/github/mcp) is installed but requires authentication."
Actual behavior: When the generated https://api.anthropic.com/authorize?client_id=... URL is fetched, it redirects to:
https://api.anthropic.com/mcp/gdrive/google/install?metadata=...
which then redirects to Google's OAuth consent with scopes:
openid, userinfo.email, drive.readonly, drive.file
Impact: GitHub MCP cannot be re-authenticated in-session. All GitHub operations (pushing files, reading, PRs) fail for the duration of the session. The Google Drive MCP is also broken — authorizing it does not restore GitHub tools.
What Should Happen?
mpact: GitHub MCP cannot be re-authenticated in-session. All GitHub operations (pushing files, reading, PRs) fail for the duration of the session. The Google Drive MCP is also broken — authorizing it does not restore GitHub tools.
Error Messages/Logs
Steps to Reproduce
Reproduction: In any Claude Code session where the GitHub MCP server has disconnected, call mcp__github__authenticate. All generated URLs route to the Google Drive installer. Tested with 4 separate fresh client_ids — same result every time.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Opus 4.61M Claude Code
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
8 Comments
Experienced the same.
Got this with Claude Code (cloud runner)
Note that the code branch was created successfully, the issue was with PR.
Maybe a related thing: the first PR for the session was already merged, I was following it up to create a fix PR.
So maybe that was causing some internal issue when creating a (non-implemented/unexpected) second PR per session
This is how Claude itself explains that behavior:
To be transparent about my part: I passed along the URL that the
mcp__github__authenticatetool returned verbatim — I didn't construct it and I can't see what the consent page actually displays. You're the one source of truth on what the page showed.What to include in the report
mcp__github__authenticate) and the literal consent screen title/app name you saw (Claude for Google Drive).client_idfrom the URL:abc97c3d-32a7-4b0a-b02d-94fc94ba0f90. That's the uniquely identifying part — Anthropic can look up what OAuth client that actually is.ivan-klass/<my private repo>in an automated session.I experienced the same today while it was working yesterday.
I asked to read a Notion database. Claude use
select:mcp__Notion__authenticate. It returned to ClaudeBeen having the same issue for weeks. Checked again today and still having the same bug.
Title: Claude Code cloud sandbox: Notion MCP connector OAuth flow renders Google Drive consent screen
Summary: When authenticating the Notion connector (mcp.notion.com/mcp) from a cloud-sandbox Claude Code session via the authenticate tool, the OAuth consent page renders as "Claude for Google Drive" with a Google account picker. The session has no Google Drive connector configured. This blocks safe completion of the OAuth handshake because the consent screen doesn't match the connector being authorized.
Environment
Reproduction
<img width="1131" height="492" alt="Image" src="https://github.com/user-attachments/assets/efa8c5d0-0147-462c-b781-55ac988be913" />
<img width="1093" height="834" alt="Image" src="https://github.com/user-attachments/assets/dbbe7aa5-6364-4872-acce-2944596b22ed" />
Additional diagnostic
Impact
i'm here via #51853
any updates on this?
Experiencing same on Windows 11, CC v2.1.147
Hi Anthropic! Could we get at least a workaround? This is bug is very annoying and is affecting workflows severly.
FWIW - This is happening for me on Claude Code, not just notion
@localden maybe you could help or give us an update, please?
Also, I'm providing my 2c of summary/logs to help with this (if any):
GitHub MCP OAuth
/authorizeredirects to turned-down (410) Google Drive endpoint — auth can never completeSummary
In a Claude Code remote/web session, authenticating the GitHub MCP server is impossible: the OAuth
/authorizeendpoint302-redirects straight to a decommissioned Google Drive MCP install handler, which returns410 Gone. The flow never reaches GitHub's consent screen or the local…/callback, so the GitHub MCP server can never be authenticated. This blocks all GitHub operations (opening/merging PRs, issues, etc.).This is reproducible from a fresh, unauthenticated
curl, so it's server-side — not a browser/cookie/redirect issue on the client.Steps to reproduce
https://api.anthropic.com/authorize?response_type=code&client_id=…&code_challenge=…&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A3118%2Fcallback&state=…(MCP server:
https://api.anthropic.com/v2/ccr-sessions/<session-id>/github/mcp)curlit).Expected
/authorizeshows the GitHub OAuth login/consent, then302-redirects back tohttp://localhost:3118/callback?code=…&state=…so the GitHub MCP auth completes.Actual
/authorizeimmediately302-redirects tohttps://api.anthropic.com/mcp/gdrive/google/install?metadata=…(a Google Drive install page — wrong connector entirely), which renders:Evidence (HTTP-level, reproducible)
Identifiers for log correlation
| Field | Value |
|---|---|
| Session id |
cse_01Lc7b3rYZNqPqaB2WFMBuGN|| OAuth client_id |
c7dc76fc-8290-4984-b5a0-1c34fb40aa22|| redirect_uri (expected callback) |
http://localhost:3118/callback||
cf-ray(authorize 302) |a0d935d2cd662bff-ORD||
cf-ray(gdrive 410) |a0d935d38e972bff-ORD||
request-id(github mcp 401) |req_011CcAUZaha8nZP89xhU2Dxv|| Timestamp (UTC) |
2026-06-18T09:19:04Z|| Environment | Claude Code remote/web session, Linux x86_64, node v22.22.2 |
Root cause (suspected)
GET /authorizefor the GitHub MCP connector returns302 Location: /mcp/gdrive/google/install(a410-Gone Google Drive endpoint) instead of routing to GitHub's OAuth consent + thelocalhost:3118/callback. Looks like a connector/route misconfiguration mapping the GitHub MCP authorize flow onto the retired Google Drive install handler.Impact
GitHub MCP server cannot be (re)authenticated in remote/web sessions → all GitHub MCP operations are blocked (create/merge PRs, issues, reviews).