Intermittent Context7 MCP Configuration Persistence Failure
Resolved 💬 1 comment Opened Jun 10, 2025 by Autopsias Closed Jun 28, 2025
Bug Description
when I setup Context7 MCP it works fine, but a few prompts after in the same session it goes back to failed (red). This happens over, and over. If I restart claude it gets back to green. No clue on how to fix?
Environment Info
- Platform: macos
- Terminal: cursor
- Version: 1.0.17
- Feedback ID: cd67aea3-e008-462b-91c1-33bb224de918
Errors
[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at kD (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:1169)\n at file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:905\n at Array.map (<anonymous>)\n at dw (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:896)\n at MN2 (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1920:9259)\n at XE (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19798)\n at JT (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42555)\n at WT (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38104)\n at e$ (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38032)\n at _E (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37886)","timestamp":"2025-06-10T13:23:35.520Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at kD (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:1169)\n at file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:905\n at Array.map (<anonymous>)\n at dw (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:896)\n at _N2 (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1920:12623)\n at XE (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19798)\n at JT (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42555)\n at WT (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38104)\n at e$ (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38032)\n at _E (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37886)","timestamp":"2025-06-10T13:24:41.703Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at kD (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:1169)\n at file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:905\n at Array.map (<anonymous>)\n at dw (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1476:896)\n at MN2 (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1920:9259)\n at XE (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19798)\n at JT (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42555)\n at WT (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38104)\n at e$ (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38032)\n at _E (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37886)","timestamp":"2025-06-10T13:26:05.628Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 203987 tokens > 200000 maximum\"}}\n at Y5.generate (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1338:12578)\n at Kw.makeStatusError (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1353:2082)\n at Kw.makeRequest (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1353:5257)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-10T13:37:58.971Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1573:1326)\n at async iZ5 (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1896:19166)\n at async WK1 (file:///Users/ricardocarvalho/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1896:17752)\n at async cZ5
Note: Error logs were truncated.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗