claude-code - 💡(How to fix) Fix [Bug] Claude Code stops executing plan midway without completing all planned tasks [1 comments, 2 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#47198Fetched 2026-04-14 05:55:32
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T16:53:24.021Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n at async W (/$bunfs/root/src/entrypoints/cli.js:6005:10596)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T16:53:24.816Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n at async v (/$bunfs/root/src/entrypoints/cli.js:6005:11366)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T16:53:24.817Z"},{"error":"AxiosError: Request failed with status code 404\n at oU (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:14:11.447Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:1636:22340)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:1636:20876)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1636:24859)\n at f (/$bunfs/root/src/entrypoints/cli.js:1636:29931)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1636:30268)\n at D (/$bunfs/root/src/entrypoints/cli.js:1636:30814)\n at call (/$bunfs/root/src/entrypoints/cli.js:2220:1377)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: Failed to start LSP server for file /home/akos/src/algotrading/src/algotrading-288-vwap-strategies-multi-asset/data_management/get_data_from_massive.py: Executable not found in $PATH: "pyright-langserver"\n at f (/$bunfs/root/src/entrypoints/cli.js:1636:29957)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:1636:20876)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1636:24859)\n at f (/$bunfs/root/src/entrypoints/cli.js:1636:29931)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1636:30268)\n at D (/$bunfs/root/src/entrypoints/cli.js:1636:30814)\n at call (/$bunfs/root/src/entrypoints/cli.js:2220:1377)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:1636:22340)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:16.669Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:1636:20876)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1636:24859)\n at f (/$bunfs/root/src/entrypoints/cli.js:1636:29931)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1636:30268)\n at D (/$bunfs/root/src/entrypoints/cli.js:1636:30814)\n at call (/$bunfs/root/src/entrypoints/cli.js:2220…

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T16:53:24.021Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:6005:10596)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T16:53:24.816Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at async v (/$bunfs/root/src/entrypoints/cli.js:6005:11366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T16:53:24.817Z"},{"error":"AxiosError: Request failed with status code 404\n    at oU (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:14:11.447Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:20876)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:24859)\n    at f (/$bunfs/root/src/entrypoints/cli.js:1636:29931)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:30268)\n    at D (/$bunfs/root/src/entrypoints/cli.js:1636:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2220:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: Failed to start LSP server for file /home/akos/src/algotrading/src/algotrading-288-vwap-strategies-multi-asset/data_management/get_data_from_massive.py: Executable not found in $PATH: \"pyright-langserver\"\n    at f (/$bunfs/root/src/entrypoints/cli.js:1636:29957)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:20876)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:24859)\n    at f (/$bunfs/root/src/entrypoints/cli.js:1636:29931)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:30268)\n    at D (/$bunfs/root/src/entrypoints/cli.js:1636:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2220:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:16.669Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:20876)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:24859)\n    at f (/$bunfs/root/src/entrypoints/cli.js:1636:29931)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:30268)\n    at D (/$bunfs/root/src/entrypoints/cli.js:1636:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2220
RAW_BUFFERClick to expand / collapse

Bug Description Recently Claude Code has become lazy. It stops executing on plans midway, like if it was done. Then when asked to compare actions taken against the known plan, it identifies that there is more that was planned and it didn't follow through.

This is quite frustrating, as the expectation is that when a plan is agreed, it would execute on all of it, especially when there is nothing blocking it from the exectuion.

Environment Info

  • Platform: linux
  • Terminal: xterm-256color
  • Version: 2.1.104
  • Feedback ID: 9bc450b3-6a9a-4043-8978-b75092975bd9

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T16:53:24.021Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:6005:10596)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T16:53:24.816Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at dDH (/$bunfs/root/src/entrypoints/cli.js:1558:33935)\n    at async v (/$bunfs/root/src/entrypoints/cli.js:6005:11366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T16:53:24.817Z"},{"error":"AxiosError: Request failed with status code 404\n    at oU (/$bunfs/root/src/entrypoints/cli.js:108:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12750)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:14:11.447Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:20876)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:24859)\n    at f (/$bunfs/root/src/entrypoints/cli.js:1636:29931)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:30268)\n    at D (/$bunfs/root/src/entrypoints/cli.js:1636:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2220:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: Failed to start LSP server for file /home/akos/src/algotrading/src/algotrading-288-vwap-strategies-multi-asset/data_management/get_data_from_massive.py: Executable not found in $PATH: \"pyright-langserver\"\n    at f (/$bunfs/root/src/entrypoints/cli.js:1636:29957)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:20876)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:24859)\n    at f (/$bunfs/root/src/entrypoints/cli.js:1636:29931)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:30268)\n    at D (/$bunfs/root/src/entrypoints/cli.js:1636:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2220:1377)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:15.639Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T17:31:16.669Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1636:20876)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:24859)\n    at f (/$bunfs/root/src/entrypoints/cli.js:1636:29931)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1636:30268)\n    at D (/$bunfs/root/src/entrypoints/cli.js:1636:30814)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2220

Note: Content was truncated.

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server error.

Guidance

  • The error messages indicate that the GITHUB_PERSONAL_ACCESS_TOKEN environment variable is missing, which is required for the MCP server to function correctly.
  • Verify that the pyright-langserver executable is installed and available in the system's PATH, as multiple errors suggest it is not found.
  • Check the system's environment variables to ensure that GITHUB_PERSONAL_ACCESS_TOKEN is set and exported.
  • Consider reinstalling or updating the pyright-langserver package to ensure it is properly installed and configured.

Example

No code snippet is provided as the issue seems to be related to environment variable configuration and executable availability.

Notes

The provided error messages are truncated, which might limit the ability to provide a comprehensive solution. However, addressing the missing GITHUB_PERSONAL_ACCESS_TOKEN and ensuring the pyright-langserver executable is properly installed and configured should resolve some of the reported issues.

Recommendation

Apply a workaround by setting the GITHUB_PERSONAL_ACCESS_TOKEN environment variable and verifying the installation and configuration of the pyright-langserver executable. This should help mitigate the MCP server errors and potentially resolve issues related to the pyright-langserver not being found.

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