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
{{ message }}
Repository navigation
MCP's command seems to only be executable in the regular cmd terminal, but if I create a dedicated virtual environment with conda, I can't use it. Can I execute multiple commands? #4446
I believe this is a way to improve. I'll try to join the Continue Discord for questions
I'm not able to find an open issue that requests the same enhancement
Problem
Maybe I have a bit of a cleanliness obsession, I like to use virtual environments to isolate different scenarios. So I can normally execute uvx xxxxx in the virtual environment without any problems, but it reports an error in the config.json. And I seem to have not found where to view the error log.
Are you running the server locally? If so, I'm having a similar issue, where I'm unable to run a python-based MCP server from a different environment. If you are in VS Code you can run the Developer: Toggle Developer Tools and see the MCP connection errors in the console.
Are you running the server locally? If so, I'm having a similar issue, where I'm unable to run a python-based MCP server from a different environment. If you are in VS Code you can run the Developer: Toggle Developer Tools and see the MCP connection errors in the console. Are you running the server locally? If so, I'm having a similar issue, where I'm unable to run a python-based MCP server from a different environment. If you are in VS Code you can run the Developer: Toggle Developer Tools and see the MCP connection errors in the console.
@Jflick58 Yes, I am running the server locally. However, this is not the main reason, because if others need to use mcp in the future, they may encounter an old dependency for the mcp server. The best choice in this situation is to use docker, but docker is too wasteful, so various virtual environments are the best choice.
You can activate a conda environment while running a command by using a shell script or chaining commands in your config. The most reliable way is to create a script that first activates your conda environment and then runs your desired command, then configure runTerminalCommand (or your MCP server config) to execute that script. For example, your script might look like:
Then, set your command to run this script (e.g., "command": "sh", "args": ["path/to/script.sh"]). This approach ensures the environment is activated before your command runs. Direct command chaining like conda activate myenv && uvx xxxxx may not work unless the shell is properly initialized, so using a script is safest. Also, make sure your PATH and shell initialization are correct, as Continue may not always source your full shell profile by default reference, reference.
Activity
Jflick58 commentedon Mar 7, 2025
Are you running the server locally? If so, I'm having a similar issue, where I'm unable to run a python-based MCP server from a different environment. If you are in VS Code you can run the Developer: Toggle Developer Tools and see the MCP connection errors in the console.
trumansdo commentedon Mar 8, 2025
@Jflick58 Yes, I am running the server locally. However, this is not the main reason, because if others need to use mcp in the future, they may encounter an old dependency for the mcp server. The best choice in this situation is to use docker, but docker is too wasteful, so various virtual environments are the best choice.
liaoweiguo commentedon Sep 23, 2025
@dosubot can I activate conda env while runTerminalCommand
dosubot commentedon Sep 23, 2025
You can activate a conda environment while running a command by using a shell script or chaining commands in your config. The most reliable way is to create a script that first activates your conda environment and then runs your desired command, then configure runTerminalCommand (or your MCP server config) to execute that script. For example, your script might look like:
Then, set your command to run this script (e.g.,
"command": "sh", "args": ["path/to/script.sh"]). This approach ensures the environment is activated before your command runs. Direct command chaining likeconda activate myenv && uvx xxxxxmay not work unless the shell is properly initialized, so using a script is safest. Also, make sure your PATH and shell initialization are correct, as Continue may not always source your full shell profile by default reference, reference.To reply, just mention @dosu.
Docs are dead. Just use Dosu.
RomneyDa commentedon Mar 25, 2026
Likely fixed by #10844 or #10464