claude-code - 💡(How to fix) Fix [Bug] /mcp command produces no dialog or output [2 comments, 3 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#54687Fetched 2026-04-30 06:38:48
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×2

Error Message

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n at HQ1 (/$bunfs/root/src/entrypoints/cli.js:1717:4046)\n at async tc1 (/$bunfs/root/src/entrypoints/cli.js:1717:1435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T14:00:32.937Z"}]

Code Example

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n    at HQ1 (/$bunfs/root/src/entrypoints/cli.js:1717:4046)\n    at async tc1 (/$bunfs/root/src/entrypoints/cli.js:1717:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T14:00:32.937Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description WHen I do /mcp, no dialog is shown. I've tried updating Claude Code, restarting my laptop, restarting the IDE, and tried it in terminal itself with the same result. I can't reauthenticate anything

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.122
  • Feedback ID: 09319eb2-7847-4bc6-9e33-53e905c72b0d

Errors

[{"error":"Error: 1: Command failed with ERR_STREAM_PREMATURE_CLOSE: code --force --install-extension anthropic.claude-code\nPremature close \n    at HQ1 (/$bunfs/root/src/entrypoints/cli.js:1717:4046)\n    at async tc1 (/$bunfs/root/src/entrypoints/cli.js:1717:1435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T14:00:32.937Z"}]

extent analysis

TL;DR

The issue may be related to the claude-code extension installation failure, causing the /mcp command to not display a dialog.

Guidance

  • The error message ERR_STREAM_PREMATURE_CLOSE suggests a potential issue with the extension installation process.
  • Verify that the claude-code extension is properly installed and enabled in the VSCode environment.
  • Try reinstalling the claude-code extension using the VSCode extension manager or the command line.
  • Check the VSCode version compatibility with the claude-code extension version.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue may be specific to the darwin platform and vscode terminal, and the 2.1.122 version. Further investigation is needed to determine the root cause.

Recommendation

Apply workaround: Try reinstalling the claude-code extension, as the error message suggests an installation issue.

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 command produces no dialog or output [2 comments, 3 participants]