claude-code - 💡(How to fix) Fix [Feature Request] Support OAuth subscription with non-Anthropic model providers [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#53111Fetched 2026-04-25 06:12:04
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T01:31:11.762Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n at async L (/$bunfs/root/src/entrypoints/cli.js:6300:11825)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T01:31:12.377Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n at async R (/$bunfs/root/src/entrypoints/cli.js:6300:11019)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T01:31:12.378Z"}]

Root Cause

Bug Description please let me use my oauth subscription with hermes, i will be forced out of claude, and claude is my first Ai automations framework i built but now am moving away because i need model agnostic setups where i'm not dependent on just one company. please understand that this is what a customer wants, your inference, with my memory files and reference files and specs that are transferrable accross model providers

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T01:31:11.762Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6300:11825)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T01:31:12.377Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at async R (/$bunfs/root/src/entrypoints/cli.js:6300:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T01:31:12.378Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description please let me use my oauth subscription with hermes, i will be forced out of claude, and claude is my first Ai automations framework i built but now am moving away because i need model agnostic setups where i'm not dependent on just one company. please understand that this is what a customer wants, your inference, with my memory files and reference files and specs that are transferrable accross model providers

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.119
  • Feedback ID: 587d17ab-31c9-4a69-96d5-4f8226e436b6

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T01:31:11.762Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6300:11825)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T01:31:12.377Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at TWH (/$bunfs/root/src/entrypoints/cli.js:2736:30496)\n    at async R (/$bunfs/root/src/entrypoints/cli.js:6300:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T01:31:12.378Z"}]

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error.

Guidance

  • The error messages indicate a missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable, which is required for the MCP server to function correctly.
  • To fix this, you need to set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable with a valid token.
  • You can do this by running the command export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here in your terminal, replacing your_token_here with your actual GitHub personal access token.
  • After setting the environment variable, retry the operation that was causing the error to see if it resolves the issue.

Example

export GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here

Replace ghp_your_token_here with your actual GitHub personal access token.

Notes

  • Make sure to replace your_token_here with a valid GitHub personal access token.
  • The GITHUB_PERSONAL_ACCESS_TOKEN environment variable should be set in the same terminal session where you are running the command that is causing the error.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error. This is a straightforward fix that should resolve the issue, but you may want to consider storing your token securely and avoiding hardcoding it in your scripts.

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 [Feature Request] Support OAuth subscription with non-Anthropic model providers [1 participants]