claude-code - 💡(How to fix) Fix [Bug] MCP Server Configuration: Windows requires 'cmd /c' wrapper for npx execution [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

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#51749Fetched 2026-04-22 07:53:52
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3commented ×1cross-referenced ×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 jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:51.814Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n at async G (B:/~BUN/root/src/entrypoints/cli.js:6198:11019)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.748Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n at async v (B:/~BUN/root/src/entrypoints/cli.js:6198:11826)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.748Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n at async G (B:/~BUN/root/src/entrypoints/cli.js:6198:11019)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.890Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n at async v (B:/~BUN/root/src/entrypoints/cli.js:6198:11826)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.892Z"}]

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:51.814Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at async G (B:/~BUN/root/src/entrypoints/cli.js:6198:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.748Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at async v (B:/~BUN/root/src/entrypoints/cli.js:6198:11826)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.748Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at async G (B:/~BUN/root/src/entrypoints/cli.js:6198:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.890Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at async v (B:/~BUN/root/src/entrypoints/cli.js:6198:11826)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.892Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description For help configuring MCP servers, see: https://code.claude.com/docs/en/mcp

[Contains warnings] User config (available in all your projects) Location: C:\Users\enzo_.claude.json
└ [Warning] [railway-mcp-server] mcpServers.railway-mcp-server: Windows requires 'cmd /c' wrapper to execute npx

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.116
  • Feedback ID: 893aea61-55ef-4813-bb0f-6eb38a662390

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:51.814Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at async G (B:/~BUN/root/src/entrypoints/cli.js:6198:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.748Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at async v (B:/~BUN/root/src/entrypoints/cli.js:6198:11826)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.748Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at async G (B:/~BUN/root/src/entrypoints/cli.js:6198:11019)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.890Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at jPH (B:/~BUN/root/src/entrypoints/cli.js:2808:30294)\n    at async v (B:/~BUN/root/src/entrypoints/cli.js:6198:11826)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-21T22:01:52.892Z"}]

extent analysis

TL;DR

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

Guidance

  • The error messages indicate a missing GITHUB_PERSONAL_ACCESS_TOKEN environment variable, which is required for the MCP server to function correctly.
  • To fix this, you need to set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable in your system or project settings.
  • You can do this by creating a new environment variable in your operating system or by adding it to your project's configuration file.
  • Verify that the environment variable is set correctly by checking your system's environment variables or your project's configuration file.

Example

No code snippet is provided as it is not necessary for this specific issue.

Notes

The GITHUB_PERSONAL_ACCESS_TOKEN environment variable is required for the MCP server to authenticate with GitHub. Make sure to replace the token with a valid personal access token from your GitHub account.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the issue. This is a necessary step to configure the MCP server correctly.

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] MCP Server Configuration: Windows requires 'cmd /c' wrapper for npx execution [1 comments, 2 participants]