claude-code - 💡(How to fix) Fix [Feature Request] Flexible rate limiting and off-peak compute allocation for heavy users [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#45061Fetched 2026-04-09 08:14:13
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Error Message

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at RzH (/$bunfs/root/src/entrypoints/cli.js:2611:23646)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:37:24.831Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at RzH (/$bunfs/root/src/entrypoints/cli.js:2611:23646)\n at async Z (/$bunfs/root/src/entrypoints/cli.js:5573:11056)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:37:25.112Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at RzH (/$bunfs/root/src/entrypoints/cli.js:2611:23646)\n at async G (/$bunfs/root/src/entrypoints/cli.js:5573:10286)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:37:25.112Z"},{"error":"MaxFileReadTokenExceededError: File content (17578 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at C59 (/$bunfs/root/src/entrypoints/cli.js:4537:23271)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:38:21.686Z"}]

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at RzH (/$bunfs/root/src/entrypoints/cli.js:2611:23646)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:37:24.831Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at RzH (/$bunfs/root/src/entrypoints/cli.js:2611:23646)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:5573:11056)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:37:25.112Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at RzH (/$bunfs/root/src/entrypoints/cli.js:2611:23646)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:5573:10286)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:37:25.112Z"},{"error":"MaxFileReadTokenExceededError: File content (17578 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at C59 (/$bunfs/root/src/entrypoints/cli.js:4537:23271)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:38:21.686Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description i think the recent claude code performance is downgrading and model is less likely to produce high quality work, i update it to effort to default high and update to max if i'm working on hard task. Also about the capacity management, i'm a heavy night user or weekend user. most of my day compute is not used at max, i'd love a more flexible rate limiting strategy so i can use more compute when i need instead of being capped periodically.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.85
  • Feedback ID: 898dc168-2c75-4d16-b01c-57e52f5c2ed9

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at RzH (/$bunfs/root/src/entrypoints/cli.js:2611:23646)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:37:24.831Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at RzH (/$bunfs/root/src/entrypoints/cli.js:2611:23646)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:5573:11056)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:37:25.112Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at RzH (/$bunfs/root/src/entrypoints/cli.js:2611:23646)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:5573:10286)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:37:25.112Z"},{"error":"MaxFileReadTokenExceededError: File content (17578 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at C59 (/$bunfs/root/src/entrypoints/cli.js:4537:23271)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T06:38:21.686Z"}]

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the mcp-config-invalid error.

Guidance

  • The errors indicate a missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable, which is required for the MCP server to function correctly.
  • To mitigate the MaxFileReadTokenExceededError, consider using the offset and limit parameters to read specific portions of the file instead of reading the whole file.
  • Review the code at /$bunfs/root/src/entrypoints/cli.js:2611:23646 to ensure that the environment variable is being set and used correctly.
  • Consider updating the rate limiting strategy to allow for more flexible compute usage, as mentioned in the bug description.

Example

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

Notes

The issue seems to be related to missing environment variables and file reading limits. Setting the GITHUB_PERSONAL_ACCESS_TOKEN environment variable should resolve the mcp-config-invalid error. However, the MaxFileReadTokenExceededError may require additional changes to the code or file reading strategy.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the immediate error, and consider updating the rate limiting strategy and file reading code to improve overall performance and flexibility.

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