claude-code - 💡(How to fix) Fix [Bug] Built-in GitHub MCP connector fails with "Authentication Failed: Bad credentials" due to deprecated npm package [1 comments, 2 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#48994Fetched 2026-04-17 08:53:46
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3commented ×1

Root Cause

Bug Description Title: Built-in GitHub MCP connector: "Authentication Failed: Bad credentials" on every tool call — deprecated npm package

Description: Since April 8, 2026 ~06:00 UTC, every GitHub tool call via the built-in Claude GitHub connector fails with: {"code":-32603,"message":"Authentication Failed: Bad credentials"}

Environment:

  • Claude Code Desktop v1.2581+ (macOS)
  • claude.ai web (Chrome, Firefox, incognito — all affected)
  • Plan: Max
  • Affects: all repositories (private orgs, public repos)

Root cause (from ~/Library/Logs/Claude/mcp-server-github.log): The bundled npm package @modelcontextprotocol/[email protected] is marked "Package no longer supported" on npm. The server starts and lists tools correctly, but every GitHub REST API call returns 403 Bad credentials.

Steps to reproduce:

  1. Connect the built-in GitHub connector via Settings → Connectors
  2. In any conversation, call any GitHub tool (get_file_contents, push_files, etc.)
  3. Result: Authentication Failed: Bad credentials (100% consistent)

What does NOT fix it:

  • Disconnecting/reconnecting the OAuth flow (tried 30+ times)
  • Revoking and re-authorizing from GitHub Settings → Authorized OAuth Apps
  • Different browsers, incognito, no VPN, no extensions
  • Desktop app vs web — same result

Expected behavior: GitHub tools execute successfully using the OAuth token managed by Anthropic.

Actual behavior: Every call fails. The deprecated package is unable to authenticate against GitHub API.

Fix required: Update @modelcontextprotocol/server-github to the current supported version in the Claude desktop app bundle.

Support ticket reference: 215473826881674 (open since April 8, 2026)

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Title: Built-in GitHub MCP connector: "Authentication Failed: Bad credentials" on every tool call — deprecated npm package

Description: Since April 8, 2026 ~06:00 UTC, every GitHub tool call via the built-in Claude GitHub connector fails with: {"code":-32603,"message":"Authentication Failed: Bad credentials"}

Environment:

  • Claude Code Desktop v1.2581+ (macOS)
  • claude.ai web (Chrome, Firefox, incognito — all affected)
  • Plan: Max
  • Affects: all repositories (private orgs, public repos)

Root cause (from ~/Library/Logs/Claude/mcp-server-github.log): The bundled npm package @modelcontextprotocol/[email protected] is marked "Package no longer supported" on npm. The server starts and lists tools correctly, but every GitHub REST API call returns 403 Bad credentials.

Steps to reproduce:

  1. Connect the built-in GitHub connector via Settings → Connectors
  2. In any conversation, call any GitHub tool (get_file_contents, push_files, etc.)
  3. Result: Authentication Failed: Bad credentials (100% consistent)

What does NOT fix it:

  • Disconnecting/reconnecting the OAuth flow (tried 30+ times)
  • Revoking and re-authorizing from GitHub Settings → Authorized OAuth Apps
  • Different browsers, incognito, no VPN, no extensions
  • Desktop app vs web — same result

Expected behavior: GitHub tools execute successfully using the OAuth token managed by Anthropic.

Actual behavior: Every call fails. The deprecated package is unable to authenticate against GitHub API.

Fix required: Update @modelcontextprotocol/server-github to the current supported version in the Claude desktop app bundle.

Support ticket reference: 215473826881674 (open since April 8, 2026)

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.110
  • Feedback ID: 86c2e286-3065-4a9a-903e-85c8e76d17ac

Errors

[]

extent analysis

TL;DR

Update the @modelcontextprotocol/server-github package to the current supported version to resolve the authentication issue.

Guidance

  • The deprecated @modelcontextprotocol/[email protected] package is causing the authentication failure, so updating it is crucial.
  • Verify the package version in the Claude desktop app bundle to ensure it matches the expected supported version.
  • Check the npm registry for the latest version of @modelcontextprotocol/server-github to determine the correct update target.
  • Consider reaching out to the support team (reference: 215473826881674) for assistance with the update process if needed.

Example

No code snippet is provided as the issue is related to a package update rather than a code fix.

Notes

The issue seems to be specific to the @modelcontextprotocol/server-github package version and its deprecation, which is causing the authentication failure. Updating the package should resolve the issue, but if problems persist, further investigation may be required.

Recommendation

Apply workaround: Update the @modelcontextprotocol/server-github package to the current supported version, as this directly addresses the identified root cause of the authentication failure.

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