claude-code - 💡(How to fix) Fix [BUG] GitHub MCP authenticate tool redirects OAuth flow to Google Drive consent screen instead of GitHub [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#45208Fetched 2026-04-09 08:10:45
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

extent analysis

TL;DR

The mcp__github__authenticate tool is redirecting to the Google Drive MCP installer instead of the GitHub authentication page, causing GitHub operations to fail.

Guidance

  • Verify that the client_id used in the mcp__github__authenticate tool is correct and not being overwritten or modified elsewhere in the code.
  • Check the Anthropic API documentation to ensure that the mcp__github__authenticate tool is being used correctly and that the expected behavior is to redirect to the GitHub authentication page.
  • Test the mcp__github__authenticate tool with a different client_id to see if the issue is specific to the current client_id.
  • Review the code changes made between the last working version and the current version to identify any potential causes of the regression.

Example

No code snippet is provided as the issue does not include any relevant code.

Notes

The issue is reported as a regression, indicating that it worked in a previous version. However, the last working version is not specified, making it difficult to identify the exact cause of the regression.

Recommendation

Apply workaround: Use a different authentication method or tool until the issue is resolved, as the current mcp__github__authenticate tool is not functioning as expected.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] GitHub MCP authenticate tool redirects OAuth flow to Google Drive consent screen instead of GitHub [1 participants]