claude-code - 💡(How to fix) Fix [Bug] Excessive token consumption on basic tasks [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#49163Fetched 2026-04-17 08:49:06
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×3cross-referenced ×2commented ×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 SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:10:59.219Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6137:11711)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:01.940Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6137:10916)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:01.941Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6137:10916)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:09.318Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6137:11711)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:09.318Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/lobao/pygus/pygus-app. Did you mean useTasks?\n at call (/$bunfs/root/src/entrypoints/cli.js:4732:7630)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:14:20.545Z"}]

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:10:59.219Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6137:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:01.940Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6137:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:01.941Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6137:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:09.318Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6137:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:09.318Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/lobao/pygus/pygus-app. Did you mean useTasks?\n    at call (/$bunfs/root/src/entrypoints/cli.js:4732:7630)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:14:20.545Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Something is consuming a lot of my maximum data plan. I only used 2 hours for relatively basic tasks and it consumed 91% of my daily limit. I don't understand why.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.110
  • Feedback ID: f02bf302-c276-485b-97ec-884f7933154e

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:10:59.219Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6137:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:01.940Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6137:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:01.941Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6137:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:09.318Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at SfH (/$bunfs/root/src/entrypoints/cli.js:2751:30091)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6137:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:11:09.318Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/lobao/pygus/pygus-app. Did you mean useTasks?\n    at call (/$bunfs/root/src/entrypoints/cli.js:4732:7630)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T11:14:20.545Z"}]

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error and potentially reduce data consumption.

Guidance

  • The errors indicate a missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable, which is likely causing the MCP server to fail and potentially leading to excessive data consumption.
  • Verify that the GITHUB_PERSONAL_ACCESS_TOKEN is set correctly in your environment variables.
  • Check your data usage patterns to identify any other potential causes of high consumption.
  • Consider reviewing the documentation for the MCP server and GitHub integration to ensure proper configuration.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The provided errors suggest a configuration issue with the MCP server and GitHub integration, but the root cause of the high data consumption is not explicitly stated. Setting the GITHUB_PERSONAL_ACCESS_TOKEN environment variable may resolve the MCP server error, but it may not directly address the high data consumption issue.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error and monitor data consumption to identify any other potential causes.

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