claude-code - 💡(How to fix) Fix [Bug] Unexpected usage reset and quota counter reset behavior [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#52710Fetched 2026-04-24 10:41:45
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×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 cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T02:57:01.839Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n at async G (B:/~BUN/root/src/entrypoints/cli.js:6200:11019)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T02:57:03.411Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n at async V (B:/~BUN/root/src/entrypoints/cli.js:6200:11825)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T02:57:03.417Z"}]

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T02:57:01.839Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n    at async G (B:/~BUN/root/src/entrypoints/cli.js:6200:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T02:57:03.411Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n    at async V (B:/~BUN/root/src/entrypoints/cli.js:6200:11825)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T02:57:03.417Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description There is something weird happening with my usage. Yesterday my weekly usage was finishing 2026-04-24 at about 16:00 and it was finished 100% and will be resetted 2026-04-26, but now it's going to reset tomorrow and the usage is 0. Can you explain it?

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.118
  • Feedback ID: 14a2b316-5b00-4198-970a-789d78d23851

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T02:57:01.839Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n    at async G (B:/~BUN/root/src/entrypoints/cli.js:6200:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T02:57:03.411Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n    at async V (B:/~BUN/root/src/entrypoints/cli.js:6200:11825)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T02:57:03.417Z"}]

extent analysis

TL;DR

The issue might be resolved by setting the missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable.

Guidance

  • Check if the GITHUB_PERSONAL_ACCESS_TOKEN environment variable is set in your system.
  • Verify that the token is valid and has the necessary permissions.
  • Review the error logs to ensure that the issue is related to the missing environment variable.
  • Consider setting the environment variable manually or through your system's configuration.

Example

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

Notes

The issue seems to be related to a missing environment variable, but the usage reset issue might be a separate problem. Further investigation is needed to determine the cause of the usage reset.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the immediate error, and then investigate the usage reset issue separately.

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