You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area:mcpRelates to Model Context Protocol (MCP)ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windowsstale
I'm using a remote server (Linux) in VScode, and when I use mcp in the config.yaml, I get the error:
Failed to connect to "context7" Error: command "cmd.exe" not found. To use this MCP server, install the cmd.exe CLI.
Then I tried adding a new mcp using the available features.
.continue/mcpServers/new-mcp-server.yaml
and got the error
ENOENT: no such file or directory, open 'C:\Users\xxxxx\AppData\Local\Programs\Microsoft VS Code\vscode-remote:\tunnel%2Btunnel-dev\workspace\test-project.continue\mcpServers\new-mcp-server.yaml'. > vscode-remote://tunnel%2Btunnel-dev/workspace/test-project/.continue/mcpServers/new-mcp-server.yaml
To reproduce
No response
Log output
Reacted by Casper de Groot, John and Rafael Barros Silva
Add the MCP configuration directly to the config.yaml,
Instead of as a separate file in .continue/mcpServers/foo.yaml.
This solved the ENOENT error for me.
Use command: "bash" instead of command: "npx"
Give bash a folder to work from: cwd: '~' or cwd: "${workspaceFolder}"
Otherwise you'll get 'bash not found'
This was my settings.yaml
... your original settings like name/models/context etc...
mcpServers:
- name: Angular
command: "bash"
cwd: "${workspaceFolder}"
args:
- "-c" #you need this so you can pass the rest of the command as an argument
- "npx -y @angular/cli mcp" #or whatever your MCP server wants
Heya, wanted to tack onto this - instead of having the servers execute in the WSL content, i set the CWD to windows System32:
I get that it tries to execute on the host and you can make it work there, but the entire bug is that it should not even try to execute on the host when you are in a remote env like WSL or SSH or Container - it should always run on the remote host because you do not want to install anything on your host in the first place.
For example I do not even have nodejs on my windows host and I do not want to install or run anything there, that defeats the entire purpose of having WSL.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!
area:mcpRelates to Model Context Protocol (MCP)ide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on Windowsstale
Activity
gund commentedon Nov 17, 2025
Same problem but I'm running VSCode in WSL which should not try to use cmd.exe or anything windows related at all.
Any idea how to fix it?
koesper commentedon Nov 19, 2025
I got it to work!
Instead of as a separate file in .continue/mcpServers/foo.yaml.
This solved the ENOENT error for me.
command: "bash"instead ofcommand: "npx"cwd: '~'orcwd: "${workspaceFolder}"Otherwise you'll get 'bash not found'
This was my settings.yaml
gund commentedon Nov 19, 2025
@koesper thanks for sharing your solution.
When I tried it I get the following error:
My
config.yamlwith mcp config:koesper commentedon Nov 20, 2025
@gund Allright, it looks like you are at least one step closer than you were before :D
can you try the arguments with quotes around it?
gund commentedon Nov 20, 2025
Yep I tried with and without quotes - the result is the same error as above unfortunately...
osirisOfGit commentedon Dec 16, 2025
Heya, wanted to tack onto this - instead of having the servers execute in the WSL content, i set the CWD to windows System32:
This fixed the
Error: MCP error -32000: Connection closedi was getting, same as abovegund commentedon Dec 16, 2025
I get that it tries to execute on the host and you can make it work there, but the entire bug is that it should not even try to execute on the host when you are in a remote env like WSL or SSH or Container - it should always run on the remote host because you do not want to install anything on your host in the first place.
For example I do not even have nodejs on my windows host and I do not want to install or run anything there, that defeats the entire purpose of having WSL.
github-actions commentedon Mar 17, 2026
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
github-actions commentedon Mar 27, 2026
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!