Skip to content

Continue VS Code extension fails to start MCP servers in WSL workspaces (looks for cmd.exe inside Ubuntu) #9151

Closed

Description

@nathaniel1969

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- Continue version: 
1.2.11
- IDE version: 1.107.0
- Model: quen3-coder.480b-cloud
- config:

  
name: Local Config
version: 1.0.0
schema: v1
models:
  - name: qwen3-coder:480b-cloud
    provider: ollama
    model: qwen3-coder:480b-cloud
    apiBase: http://localhost:11434
    roles:
      - apply
      - chat
      - edit
    capabilities:
      - tool_use
  - name: qwen3-vl:235b-cloud
    provider: ollama
    model: qwen3-vl:235b-cloud
    apiBase: http://localhost:11434
    roles:
      - apply
      - chat
      - edit
    capabilities:
      - tool-use
  - name: gpt-oss:120b-cloud
    provider: ollama
    model: gpt-oss:120b-cloud
    apiBase: http://localhost:11434
    roles:
      - apply
      - chat
      - edit
    capabilities:
      - tool-use
  - name: qwen3-vl:8b
    provider: ollama
    model: qwen3-vl:8b
    apiBase: http://localhost:11434
    roles:
      - apply
      - chat
      - edit
    capabilities:
      - tool-use
  - name: deepseek-v3.1:671b-cloud
    provider: ollama
    model: deepseek-v3.1:671b-cloud
    apiBase: http://localhost:11434
    roles:
      - apply
      - chat
      - edit
    capabilities:
      - tool-use  
  - name: Autodetect
    provider: ollama
    model: AUTODETECT
    capabilities:
      - tool_use
    roles:
      - chat
      - edit
      - apply
      - rerank
      - autocomplete
mcpServers:
  - name: Chrome DevTools
    command: npx
    args:
      - -y
      - chrome-devtools-mcp@latest
  - name: Context7 MCP
    type: streamable-http
    url: https://mcp.context7.com/mcp
  - name: Fetch
    command: uvx
    args:
      - mcp-server-fetch
  - name: Filesystem
    command: npx
    args:
      [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/home/nathaniel/projects",
        "/home/nathaniel/Documents/Projects",
      ]
  - name: Git
    command: uvx
    args:
      - mcp-server-git
  - name: ImageSocery
    command: /home/nathaniel/projects/venv/imagesorcery-mcp/.venv/bin/python
    args:
      - -m
      - imagesorcery_mcp.server
      - --transport
      - stdio
    autoApprove:
      [
        "blur",
        "change_color",
        "crop",
        "detect",
        "draw_arrows",
        "draw_circles",
        "draw_lines",
        "draw_rectangles",
        "draw_texts",
        "fill",
        "find",
        "get_metainfo",
        "ocr",
        "overlay",
        "resize",
        "rotate",
      ]
  - name: Kubernetes
    command: npx
    args:
      - -y
      - kubernetes-mcp-server@latest
  - name: Playwright
    command: npx
    args: ["@playwright/mcp@latest", "--headless"]
  - name: Podman
    command: npx
    args:
      - -y
      - podman-mcp-server@latest
  - name: Sequential Thinking
    command: npx
    args: ["-y", "@modelcontextprotocol/server-sequential-thinking"]


  
  OR link to agent in Continue hub:

Description

When opening a project in VS Code using WSL (Ubuntu), the Continue VS Code extension fails to start any MCP servers. Each MCP server reports an error similar to:
Failed to connect to ""
Error: command "cmd.exe" not found. To use this MCP server, install the cmd.exe CLI.
This occurs only for WSL projects. The same Continue configuration and MCP servers load correctly when opening a non-WSL (Windows) project.

Expected behavior
When working in a WSL workspace, Continue should either:
Run MCP servers inside the WSL environment (using bash / Linux paths), or
Clearly document that MCP servers are not supported in WSL and gracefully disable them
The extension should not attempt to invoke cmd.exe when the workspace is running in Ubuntu WSL.

Actual behavior
Continue appears to:
Run the extension on Windows even when a WSL workspace is active
Attempt to spawn MCP servers using Windows shell assumptions
Fail because cmd.exe does not exist inside WSL

Additional details
Continue CLI works correctly when run directly inside Ubuntu WSL using the Linux config.yaml
The VS Code Continue extension appears to always use the Windows-side config and shell, even for WSL workspaces
There is no visible “Install in WSL” option for the Continue extension (unlike many other VS Code extensions)
This makes MCP unusable for WSL-based development
There is no visible “Install in WSL” option for the Continue extension (unlike many other VS Code extensions)

Steps to reproduce
Install Continue VS Code extension on Windows
Configure MCP servers (e.g., Chrome-Devtools, filesystem, etc.)
Open a project located in WSL (\wsl$ or “Open Folder in WSL”)
Observe MCP server startup failures referencing cmd.exe
Open a Windows-based project
Observe MCP servers load correctly
This makes MCP unusable for WSL-based development

Question / Request
Is WSL officially supported for MCP servers in the Continue VS Code extension?
If not, could:
MCP servers be disabled automatically in WSL, or
The extension support running MCP servers inside the WSL extension host?
If not, could:
MCP servers be disabled automatically in WSL, or
The extension support running MCP servers inside the WSL extension host?

To reproduce

No response

Log output

Activity

  1. added
    area:mcp
    ide:vscode
    kind:bug
    os:windows
    on Dec 13, 2025
  2. continue commented on Dec 13, 2025

    @continue
    Contributor

    Related Issues

    This appears to be related to other remote workspace issues with Continue:

    All of these issues involve Continue incorrectly detecting platform or context when running in remote/WSL environments.

  3. osirisOfGit commented on Dec 16, 2025

    @osirisOfGit
  4. kalexar commented on Jan 18, 2026

    @kalexar

    Has some "happy " days with this problem.

    My wrong config was like this

    name: Laravel Boost MCP
    version: 0.0.1
    schema: v1
    mcpServers:
      - name: laravel-boost
        type: stdio
        command: php
        args:
          - "/home/projects/ai-artisan_test/artisan"
          - "boost:mcp"

    Need transform that to run successfull

    name: Laravel Boost MCP
    version: 0.0.1
    schema: v1
    mcpServers:
      - name: laravel-boost
        type: stdio
        cwd: "C:/Windows/System32/"
        command: "bash"
        args:
          - "-lc"
          - "php /home/projects/ai-artisan_test/artisan boost:mcp"

    Get this idea from mentonied above comment #8732 (comment)

    Key ideas to solve problem in this lines:

        cwd: "C:/Windows/System32/"
        command: "bash"

    Without it got errors

    Failed to connect to "laravel-boost"
    Error: command "c:\windows\system32\wsl.exe" not found. To use this MCP server, install the c:\windows\system32\wsl.exe CLI.
    

    or

    Failed to connect to "laravel-boost"
    Error: command "c:\windows\system32\cmd.exe" not found. To use this MCP server, install the c:\windows\system32\cmd.exe CLI.
    
  5. kalexar commented on Jan 18, 2026

    @kalexar

    But still Continue bug with project's specific MCP configs

    ENOENT: no such file or directory, open 'C:\Programs\VSCode\vscode-remote:\wsl%2Bubuntu\home\projects\ai-artisan_test.continue\mcpServers\laravel-boost-mcp.yaml'. > vscode-remote://wsl%2Bubuntu/home/projects/ai-artisan_test/.continue/mcpServers/laravel-boost-mcp.yaml

  6. added a commit that references this issue on Jan 21, 2026
    1219985
  7. sestinj commented on Jan 31, 2026

    @sestinj
    Contributor

    🎉 This issue has been resolved in version 1.40.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  8. Legion-101 commented on Mar 18, 2026

    @Legion-101

    Hello everyone, me too this problem

    - OS: Windows 11
    - Continue version: 1.2.17 (I tried 1.2.16, but it didn't help.)
    - IDE version: 1.111.0
    - WSL Distro: Ubuntu 24.04
    - mcpConfig:
    
    name: New MCP server
    version: 0.0.1
    schema: v1
    mcpServers:
      - name: context7
        command: npx
        args:
          - -y
          - "@upstash/context7-mcp"
      - name: sequentialthinking
        command: npx
        args:
          - -y
          - "@modelcontextprotocol/server-sequential-thinking"
      - name: postgres
        command: npx
        args:
          - -y
          - "@modelcontextprotocol/server-postgres"

    error:
    Failed to connect to "context7" Error: command "c:\windows\system32\cmd.exe" not found. To use this MCP server, install the c:\windows\system32\cmd.exe CLI.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:mcpide:vscodekind:bugos:windowsreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions