Skip to content

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

Open

Description

@trumansdo

Validations

  • 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.

Solution

No response

Activity

  1. Jflick58 commented on Mar 7, 2025

    @Jflick58

    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.

  2. trumansdo commented on Mar 8, 2025

    @trumansdo
    Author

    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.

  3. added
    os:windows
    on May 7, 2025
  4. liaoweiguo commented on Sep 23, 2025

    @liaoweiguo

    @dosubot can I activate conda env while runTerminalCommand

  5. dosubot commented on Sep 23, 2025

    @dosubot

    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:

    #!/bin/bash
    source ~/anaconda3/etc/profile.d/conda.sh
    conda activate myenv
    uvx xxxxx

    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.

    To reply, just mention @dosu.


    Docs are dead. Just use Dosu.

    Leave Feedback Ask Dosu about continue Share Dosu with your team

  6. RomneyDa commented on Mar 25, 2026

    @RomneyDa
    Contributor

    Likely fixed by #10844 or #10464

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

Metadata

Metadata

Assignees

Labels

needs-triageos:windows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions