claude-code - 💡(How to fix) Fix [Bug] Unexpected 20x increase in API token consumption [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#48737Fetched 2026-04-16 06:52:20
View on GitHub
Comments
0
Participants
1
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
labeled ×4cross-referenced ×2

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/slabakov/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.317Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.347Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.834Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.840Z"},{"error":"MaxFileReadTokenExceededError: File content (30672 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 tw7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:36:44.773Z"},{"error":"MaxFileReadTokenExceededError: File content (13507 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 tw7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:36:45.521Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/slabakov/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n    at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.317Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.347Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.834Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.840Z"},{"error":"MaxFileReadTokenExceededError: File content (30672 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 tw7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:36:44.773Z"},{"error":"MaxFileReadTokenExceededError: File content (13507 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 tw7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:36:45.521Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description My consumption rose 20x last session.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.109
  • Feedback ID: 6f23f729-4b2a-4a00-8393-e821ab42e316

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/slabakov/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n    at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.317Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.347Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async k (/$bunfs/root/src/entrypoints/cli.js:6109:11711)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.834Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at FYH (/$bunfs/root/src/entrypoints/cli.js:1719:33932)\n    at async G (/$bunfs/root/src/entrypoints/cli.js:6109:10916)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:35:40.840Z"},{"error":"MaxFileReadTokenExceededError: File content (30672 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 tw7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:36:44.773Z"},{"error":"MaxFileReadTokenExceededError: File content (13507 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 tw7 (/$bunfs/root/src/entrypoints/cli.js:4535:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T16:36:45.521Z"}]

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the plugin 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 mitigate the MaxFileReadTokenExceededError, consider using offset and limit parameters to read specific portions of the file instead of reading the whole file.
  • Verify that the GITHUB_PERSONAL_ACCESS_TOKEN environment variable is set correctly by checking the system environment variables or the project's configuration files.
  • The Lock acquisition failed error may be related to multi-process scenarios, but it is not directly related to the GITHUB_PERSONAL_ACCESS_TOKEN issue.

Notes

The provided errors suggest that the issue is related to the MCP server configuration and file reading limits. However, without more information about the project's configuration and dependencies, it is difficult to provide a more specific solution.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the plugin MCP server error. This should allow the MCP server to function correctly and prevent the mcp-config-invalid errors.

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