claude-code - 💡(How to fix) Fix [BUG] VSCode extension on WSL doesn't show MCP-provided slash commands (works in CLI)

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 Messages/Logs

Fix Action

Fix / Workaround

{ "mcpServers": { "iflow": { "type": "stdio", "command": "/absolute/path/to/iflow-mcp" } } } 3. Open the project in VSCode via "WSL: Open Folder in WSL". 4. Launch Claude Code through the VSCode extension panel. 5. Type / in the input box — note that none of the MCP-provided prompts appear (only built-in skills/commands). 6. Open a WSL terminal in the same directory, run claude, type / — observe that all MCP-provided prompts appear correctly. Workaround: use Claude Code CLI in WSL terminal instead of the VSCode extension.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The Claude Code VSCode extension (latest, running against a WSL2 Ubuntu 24.04 workspace via Remote-WSL) does not show slash commands provided by an MCP server's prompts capability. The MCP server itself connects successfully and its tools are usable — only the prompts are missing from the / slash-command picker. Running claude in a WSL terminal opened in the exact same project directory shows all 21 prompts correctly, so the issue is specific to the extension's surface, not the MCP server or its registration.

Tested with iflow-mcp (a custom MCP server, Bun-compiled single binary) registered project-scope via .mcp.json. Exposes 21 prompts and 38 tools.

Environment:

Claude Code CLI: 2.1.143 VSCode: 1.120.0 Claude Code VSCode extension: 2.1.143 WSL2, Ubuntu 24.04.1 LTS, kernel 5.15.167.4-microsoft-standard-WSL2

What Should Happen?

All MCP-provided prompts should appear in the slash-command picker inside the VSCode extension, identical to the CLI behavior. Registering an MCP server via .mcp.json should surface both its tools and its prompts in any Claude Code client — CLI and extension alike.

Error Messages/Logs

Steps to Reproduce

  1. On Windows host with WSL2 + Ubuntu 24.04, install Claude Code VSCode extension (latest) and Claude Code CLI 2.1.143 inside WSL.
  2. In a project directory inside WSL, create .mcp.json registering an MCP server that exposes prompts (e.g. iflow-mcp):

{ "mcpServers": { "iflow": { "type": "stdio", "command": "/absolute/path/to/iflow-mcp" } } } 3. Open the project in VSCode via "WSL: Open Folder in WSL". 4. Launch Claude Code through the VSCode extension panel. 5. Type / in the input box — note that none of the MCP-provided prompts appear (only built-in skills/commands). 6. Open a WSL terminal in the same directory, run claude, type / — observe that all MCP-provided prompts appear correctly. Workaround: use Claude Code CLI in WSL terminal instead of the VSCode extension.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.143

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

No response

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] VSCode extension on WSL doesn't show MCP-provided slash commands (works in CLI)