claude-code - 💡(How to fix) Fix [Bug] Weekly usage window reset date incorrectly shifted to Monday [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#52564Fetched 2026-04-24 06:03:47
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
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 oJH (/$bunfs/root/src/entrypoints/cli.js:2756:30506)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:52:50.959Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at oJH (/$bunfs/root/src/entrypoints/cli.js:2756:30506)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6144:11019)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:52:52.372Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at oJH (/$bunfs/root/src/entrypoints/cli.js:2756:30506)\n at async L (/$bunfs/root/src/entrypoints/cli.js:6144:11825)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:52:52.373Z"}]

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at oJH (/$bunfs/root/src/entrypoints/cli.js:2756:30506)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:52:50.959Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at oJH (/$bunfs/root/src/entrypoints/cli.js:2756:30506)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6144:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:52:52.372Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at oJH (/$bunfs/root/src/entrypoints/cli.js:2756:30506)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6144:11825)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:52:52.373Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description My weekly end date shifted from Thursday at 3pm eastern to Monday at 3pm eastern. You're only giving me 5 days of usage time rather than 7.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.118
  • Feedback ID: f9b6508e-ee72-43d4-a26f-8f0d07092d54

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at oJH (/$bunfs/root/src/entrypoints/cli.js:2756:30506)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:52:50.959Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at oJH (/$bunfs/root/src/entrypoints/cli.js:2756:30506)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6144:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:52:52.372Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at oJH (/$bunfs/root/src/entrypoints/cli.js:2756:30506)\n    at async L (/$bunfs/root/src/entrypoints/cli.js:6144:11825)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-23T21:52:52.373Z"}]

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.
  • Verify that the environment variable is set correctly by checking your system's environment variables or your terminal configuration.
  • If using a .env file, ensure it is properly loaded and the variable is defined.
  • Consider checking the documentation for the MCP server and GitHub integration to ensure all required environment variables are set.

Example

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

Notes

The issue seems to be related to a missing environment variable, but the weekly end date shift might be a separate issue. Resolving the environment variable error may not directly fix the date shift issue.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the immediate error, and then investigate the weekly end date shift 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