Run Continue MCP servers from WSL with a bash wrapper config
You will add a Continue MCP server entry that launches through WSL bash instead of a Windows executable, then test each server on its own. This matters because the default launch path failed for WSL workspaces in the thread.
- Check versionCompare your installed Continue version with the issue thread.
- Add bash wrapperSet command to bash, cwd to C:/Windows/System32/, and pass -lc with the WSL command.
- Check for errorsNote any cmd.exe, wsl.exe, or ENOENT errors and which server produced them.
- Test each serverConfirm each MCP server starts on its own.
Why it matters
A user on Continue 1.2.11 with Windows 11 and a WSL Ubuntu workspace saw every MCP server fail with Error: command "cmd.exe" not found, while the same config worked in a non-WSL Windows workspace. One user in the Continue issue thread (opens external site) got past it by launching the server through WSL bash. The thread only shows this for one PHP stdio server, so I would test each server separately.
Steps
- Check your installed Continue version against the thread. A release bot marked the bug resolved in
@continuedev/config-yamlv1.40.0, but a later comment on Continue 1.2.17 still reported the same error. - Open the config file you actually use and add a stdio server entry. The thread's working example sets
commandtobash, setscwdto a Windows system folder, and passes-lcwith the full WSL command as an argument:
yaml
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"
- Replace the sample command with the launch command for your own server, written with the Linux path inside WSL.
- Save the file and check whether Continue reports the server starting. If you still see
cmd.exe,wsl.exe, orENOENTerrors, note the exact message and the server it came from. The thread does not say why those errors persist for some setups, so treat them as unresolved rather than as proof of a particular cause. - Test each other server separately. The thread does not show npx or uvx commands working this way.
- If you use project-level files under
.continue/mcpServers/, test them on their own. One user still gotENOENTerrors on avscode-remote://wsl+ubuntu/path with that setup. - Keep a copy of the working config so you can go back to it if behavior changes after an update.
Common mistakes
- Assuming one working server means every MCP server works through the same wrapper.
- Dropping the
cwdorcommandlines. Without them, the thread reports errors that mentionwsl.exeorcmd.exepaths. - Editing the WSL
~/.continuefile without checking which config Continue loads. A separate thread reports that Continue on WSL can read the Windows-sideC:\Users\<user>\.continueconfig instead. - Trusting a bug report marked resolved without checking the version you have installed.
Checklist
0 of 8 done