claude-code - 💡(How to fix) Fix [Bug] Claude Code 4.7 High Token Usage and Context Limitations [2 comments, 3 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#52820Fetched 2026-04-25 06:20:02
View on GitHub
Comments
2
Participants
3
Timeline
8
Reactions
0
Timeline (top)
labeled ×6commented ×2

Error Message

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\n at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:06:37.670Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:40.527Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:40.528Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:42.699Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:42.701Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\Software\Remap\src\types\database.ts, got file://d:\software\remap\src\types\database.ts/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:13:53.732Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\Software\Remap\src\types\index.ts, got file://d:\software\remap\src\types\index.ts/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:00.635Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\Software\Remap\src\services\api.ts, got file://d:\software\remap\src\services\api.ts/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:08.853Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\Software\Remap\src\services\api.ts, got file://d:\software\remap\src\services\api.ts/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:17.459Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\Software\Remap\src\services\api.ts, got file://d:\software\remap\src\services\api.ts/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:21.341Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\Software\Remap\src\services\api.ts, got file://d:\software\remap\src\services\api.ts/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:27.132Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\Software\Remap\src\services\api.ts, got file://d:\software\remap\src\services\api.ts/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:32.658Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\Software\Remap\src\hooks\useLancamentos.ts, got file://d:\software\remap\src\hooks\uselancamentos.ts/)\n at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:15:00.938Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\Software\Remap\src\hooks\useLancamentos.ts, got file://d:\software\remap\src\hooks\uselancamentos.ts/)\n at beforeFileEdited (B:/~BUN/r…

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\n    at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:06:37.670Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:40.527Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:40.528Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:42.699Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:42.701Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\types\\database.ts, got file://d:\\software\\remap\\src\\types\\database.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:13:53.732Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\types\\index.ts, got file://d:\\software\\remap\\src\\types\\index.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:00.635Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:08.853Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:17.459Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:21.341Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:27.132Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:32.658Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\hooks\\useLancamentos.ts, got file://d:\\software\\remap\\src\\hooks\\uselancamentos.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:15:00.938Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\hooks\\useLancamentos.ts, got file://d:\\software\\remap\\src\\hooks\\uselancamentos.ts/)\n    at beforeFileEdited (B:/~BUN/r…
RAW_BUFFERClick to expand / collapse

Bug Description Esta uma porcaria o 4.7, gasta muito token, não acata o que eu mando ele fazer, é fraco de contexto, HORRIVEL !!! sinto saudades do 4.6

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.118
  • Feedback ID: 4bea8c0e-551a-4be4-a437-1d766449257a

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\n    at cWH (B:/~BUN/root/src/entrypoints/cli.js:2812:30468)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:06:37.670Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:40.527Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:40.528Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:42.699Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server postman invalid: Missing environment variables: POSTMAN_API_KEY\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-24T11:06:42.701Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\types\\database.ts, got file://d:\\software\\remap\\src\\types\\database.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:13:53.732Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\types\\index.ts, got file://d:\\software\\remap\\src\\types\\index.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:00.635Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:08.853Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:17.459Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:21.341Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:27.132Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\services\\api.ts, got file://d:\\software\\remap\\src\\services\\api.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:14:32.658Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\hooks\\useLancamentos.ts, got file://d:\\software\\remap\\src\\hooks\\uselancamentos.ts/)\n    at beforeFileEdited (B:/~BUN/root/src/entrypoints/cli.js:4792:23675)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-24T11:15:00.938Z"},{"error":"LV_: Diagnostics file path mismatch: expected D:\\Software\\Remap\\src\\hooks\\useLancamentos.ts, got file://d:\\software\\remap\\src\\hooks\\uselancamentos.ts/)\n    at beforeFileEdited (B:/~BUN/r…

Note: Content was truncated.

extent analysis

TL;DR

The most likely fix is to set the missing POSTMAN_API_KEY environment variable.

Guidance

  • Check the environment variables setup in the project to ensure POSTMAN_API_KEY is defined and has a valid value.
  • Verify the file paths in the error messages to ensure they match the expected case (e.g., D:\\Software\\Remap\\src\\types\\database.ts instead of file://d:\\software\\remap\\src\\types\\database.ts/).
  • Review the project configuration to ensure that the MCP server and Postman integration are properly set up.
  • Consider checking the documentation for the MCP server and Postman to ensure that all required environment variables are set.

Notes

The issue seems to be related to missing environment variables and file path mismatches. However, the content was truncated, so there might be additional errors or details that are not visible.

Recommendation

Apply workaround: Set the POSTMAN_API_KEY environment variable and review the project configuration to ensure that all required variables are set. This should resolve the immediate error, but further investigation may be needed to address any underlying issues.

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

claude-code - 💡(How to fix) Fix [Bug] Claude Code 4.7 High Token Usage and Context Limitations [2 comments, 3 participants]