claude-code - 💡(How to fix) Fix [Bug] Internal Server Error: HTTP 500 Response from Anthropic API

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…

Error Message

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at XZ6 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:32824)","timestamp":"2026-05-16T16:13:32.297Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at XZ6 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:32824)\n at async G (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4928:16816)","timestamp":"2026-05-16T16:13:33.307Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at XZ6 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:32824)\n at async f (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4928:17532)","timestamp":"2026-05-16T16:13:33.312Z"},{"error":"MaxFileReadTokenExceededError: File content (35860 tokens) exceeds maximum allowed tokens (25000). 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 LK4 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1637:8025)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async RK4 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1641:2758)\n at async Object.call (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1646:6083)\n at async WRY (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3781:6729)","timestamp":"2026-05-16T16:22:20.922Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: spawn typescript-language-server ENOENT\n at Object.start (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:22360)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.O [as start] (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:24699)\n at async w (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:33757)\n at async H (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:34100)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: spawn typescript-language-server ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n at onErrorNT (node:internal/child_process:484:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: Failed to start LSP server for file /Users/affinitylabs/Downloads/affinity_labs/planpin_expo/.claude/worktrees/aff-1000/app/(app)/(tabs)/index.tsx: spawn typescript-language-server ENOENT\n at w (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:33791)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async H (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:34100)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: spawn typescript-language-server ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n at onErrorNT (node:internal/child_process:484:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n at Object.M [as sendNotification] (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:27103)\n at H (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:34331)","timestamp":"2026-05-16T16:33:38.422Z"},…

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XZ6 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:32824)","timestamp":"2026-05-16T16:13:32.297Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XZ6 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:32824)\n    at async G (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4928:16816)","timestamp":"2026-05-16T16:13:33.307Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XZ6 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:32824)\n    at async f (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4928:17532)","timestamp":"2026-05-16T16:13:33.312Z"},{"error":"MaxFileReadTokenExceededError: File content (35860 tokens) exceeds maximum allowed tokens (25000). 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 LK4 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1637:8025)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async RK4 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1641:2758)\n    at async Object.call (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1646:6083)\n    at async WRY (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3781:6729)","timestamp":"2026-05-16T16:22:20.922Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: spawn typescript-language-server ENOENT\n    at Object.start (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:22360)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.O [as start] (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:24699)\n    at async w (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:33757)\n    at async H (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:34100)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: spawn typescript-language-server ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n    at onErrorNT (node:internal/child_process:484:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: Failed to start LSP server for file /Users/affinitylabs/Downloads/affinity_labs/planpin_expo/.claude/worktrees/aff-1000/app/(app)/(tabs)/index.tsx: spawn typescript-language-server ENOENT\n    at w (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:33791)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async H (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:34100)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: spawn typescript-language-server ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n    at onErrorNT (node:internal/child_process:484:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at Object.M [as sendNotification] (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:27103)\n    at H (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:34331)","timestamp":"2026-05-16T16:33:38.422Z"},
RAW_BUFFERClick to expand / collapse

Bug Description error 500

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.77
  • Feedback ID: cf286c63-32a2-43e4-a600-2e36f8f2a46e

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XZ6 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:32824)","timestamp":"2026-05-16T16:13:32.297Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XZ6 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:32824)\n    at async G (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4928:16816)","timestamp":"2026-05-16T16:13:33.307Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at XZ6 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2595:32824)\n    at async f (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4928:17532)","timestamp":"2026-05-16T16:13:33.312Z"},{"error":"MaxFileReadTokenExceededError: File content (35860 tokens) exceeds maximum allowed tokens (25000). 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 LK4 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1637:8025)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async RK4 (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1641:2758)\n    at async Object.call (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1646:6083)\n    at async WRY (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3781:6729)","timestamp":"2026-05-16T16:22:20.922Z"},{"error":"Error: LSP server plugin:typescript-lsp:typescript failed to start: spawn typescript-language-server ENOENT\n    at Object.start (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:22360)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.O [as start] (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:24699)\n    at async w (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:33757)\n    at async H (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:34100)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: spawn typescript-language-server ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n    at onErrorNT (node:internal/child_process:484:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: Failed to start LSP server for file /Users/affinitylabs/Downloads/affinity_labs/planpin_expo/.claude/worktrees/aff-1000/app/(app)/(tabs)/index.tsx: spawn typescript-language-server ENOENT\n    at w (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:33791)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async H (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:34100)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: spawn typescript-language-server ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n    at onErrorNT (node:internal/child_process:484:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2026-05-16T16:33:11.488Z"},{"error":"Error: Cannot send notification to LSP server 'plugin:typescript-lsp:typescript': server is error\n    at Object.M [as sendNotification] (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:27103)\n    at H (file:///Users/affinitylabs/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2916:34331)","timestamp":"2026-05-16T16:33:38.422Z"},

Note: Content was truncated.

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] Internal Server Error: HTTP 500 Response from Anthropic API