claude-code - 💡(How to fix) Fix [Bug] Prompt submission sometimes hangs indefinitely without generating tokens [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#55054Fetched 2026-05-01 05:47:26
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
1
Author
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

Error Message

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:55.162Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:55.541Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n at async N (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:55.542Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:58.113Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n at async N (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:58.113Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:59:45.308Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n at async N (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:09:39.727Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:09:39.728Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:09:40.489Z"}]

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:55.162Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:55.541Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async N (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:55.542Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:58.113Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async N (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:58.113Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:59:45.308Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async N (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:09:39.727Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:09:39.728Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:09:40.489Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description i finds ometimes i send a prompt but then nothing actualy happens, no tokens or anyhting, it just spins and doesnt even think, I can then ctrl c to cancel it and try again and then sometimes it works straight away other times it takes another couple tries of that to start thinking and using tokens / give response

Environment Info

  • Platform: darwin
  • Terminal: superconductor
  • Version: 2.1.123
  • Feedback ID: 6a4a21c3-de90-4c80-899a-964e94d7e173

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:55.162Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:55.541Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async N (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:55.542Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:58.113Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async N (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:57:58.113Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T15:59:45.308Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async N (/$bunfs/root/src/entrypoints/cli.js:6355:12696)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:09:39.727Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at o0H (/$bunfs/root/src/entrypoints/cli.js:2769:32776)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6355:11810)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:09:39.728Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-30T16:09:40.489Z"}]

extent analysis

TL;DR

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

Guidance

  • The errors 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 before running the application.
  • You can do this by running the command export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_value in your terminal, replacing your_token_value with your actual GitHub personal access token.
  • If you are using a .env file, you can add the variable there and restart your application.

Example

export GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_value

Replace ghp_your_token_value with your actual GitHub personal access token.

Notes

  • Make sure to replace your_token_value with your actual GitHub personal access token.
  • If you are still experiencing issues after setting the environment variable, try restarting your application or checking the GitHub token permissions.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error. This should allow the application to function correctly until a more permanent fix is available.

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] Prompt submission sometimes hangs indefinitely without generating tokens [1 comments, 2 participants]