claude-code - 💡(How to fix) Fix [Bug] Claude Code fails to provide informed guidance for Android Emulator setup [1 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#46307Fetched 2026-04-11 06:23:45
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
labeled ×4

Error Message

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at Uj6 (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1728:34078)","timestamp":"2026-04-10T15:38:10.788Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at Uj6 (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1728:34078)\n at async G (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:6169:10566)","timestamp":"2026-04-10T15:38:11.858Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n at Uj6 (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1728:34078)\n at async T (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:6169:11336)","timestamp":"2026-04-10T15:38:11.859Z"}]

Code Example

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at Uj6 (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1728:34078)","timestamp":"2026-04-10T15:38:10.788Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at Uj6 (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1728:34078)\n    at async G (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:6169:10566)","timestamp":"2026-04-10T15:38:11.858Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at Uj6 (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1728:34078)\n    at async T (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:6169:11336)","timestamp":"2026-04-10T15:38:11.859Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description This session is very disspointing for last4hrs, claude code not able to figure out to setup android emulator on my machine. Not making informed decisions.

Environment Info

  • Platform: win32
  • Terminal: vscode
  • Version: 2.1.100
  • Feedback ID: fe1f17d5-11fb-4723-b7d0-75f2811f3ed5

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at Uj6 (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1728:34078)","timestamp":"2026-04-10T15:38:10.788Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at Uj6 (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1728:34078)\n    at async G (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:6169:10566)","timestamp":"2026-04-10T15:38:11.858Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at Uj6 (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1728:34078)\n    at async T (file:///C:/Users/AGL%20IT/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:6169:11336)","timestamp":"2026-04-10T15:38:11.859Z"}]

extent analysis

TL;DR

Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable to resolve the MCP server 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 in the VSCode terminal before running the Claude code.
  • You can set environment variables in VSCode by running the command set GITHUB_PERSONAL_ACCESS_TOKEN=your_token in the terminal, replacing your_token with your actual GitHub personal access token.
  • Ensure that you have generated a GitHub personal access token with the necessary permissions and have replaced your_token with the actual token value.

Notes

The provided solution assumes that you have already generated a GitHub personal access token. If not, you will need to create one in your GitHub account settings before setting the environment variable.

Recommendation

Apply workaround: Set the GITHUB_PERSONAL_ACCESS_TOKEN environment variable, as this is the most direct solution to the error messages provided.

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