[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_
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗