-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MCP: Support servers running within WSL #245045
Comments
Ah, looks like this was already addressed: #243687 (comment) The solution provided is to configure MCP servers in the WSL env's remote settings, rather than in user settings. This still doesn't work without some fiddling: while commands are run and env var are set in the WSL env, seems the MCP servers are not launched with my "normal" terminal shell env, so I dumped info about the env with this simple MCP server entry:
Leaving this open as an issue to at least document this story better, if not make technical changes to provide better support |
We have an tracking nvm support on Windows already 👍 |
Are you saying there is another GH issue tracking this? Or that there is an internal tracking issue somewhere? FWIW was able to pretty effectively work around the issues by running a bash login shell from my user profile (and setting env vars inline)
|
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
Despite being in a WSL workspace, it seems VSCode is trying to launch the server on the windows side.
The command works fine within WSL:
Possible solutions:
Currently can kinda work around the problem by explicitly specifying the MCP server command as using WSL:
but this still causes issues/added complexity with sharing env vars (that will set the key in the windows env, not in WSL)
There are probably other WSL-related complexities I haven't yet encountered (work dirs?). Overall, seems important to have a comprehensive story around how MCP+WSL works
The text was updated successfully, but these errors were encountered: