venv-mcp-server

sparfenyuk/venv-mcp-server

3.4

If you are the rightful owner of venv-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The venv-mcp-server is a Model Context Protocol (MCP) server designed to manage virtual environments for LLMs, ensuring reliable dependency resolution and updates.

Tools

Functions exposed to the LLM to take actions

init

Initialize virtual environment. Returns True if successful.

sync

Sync pyproject.toml with virtual environment. Returns True if successful.

add_package

Add package to pyproject.toml and update the virtual environment. Returns True if successful.

Args: package_name: Name of the package to install. dev: If True, add the package to the development dependency group.

add_packages

Add many packages to pyproject.toml at once and update the virtual environment.

Args: package_names: List of names of the packages to install. dev: If True, add the package to the development dependency group.

remove_package

Remove package from pyproject.toml file and update the virtual environment. Returns True if successful.

Args: package_name: Name of the package to remove. dev: If True, remove the package from the development dependency group

run_in_venv

Run a command in virtual environment. Returns True if successful.

Args: command: Command to run. args: Arguments to pass to the command.

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources