python_create_venv
MCP tools › Run, test and tasks
Create a Python virtual environment in the workspace (<base> -m venv <path>, path default .venv) from the selected interpreter or its base, and choose it. dry_run defaults to true and returns the command; dry_run=false runs it (needs the user-granted run right), saves the new interpreter as the workspace's choice and returns the outcome. An existing folder is refused. Logged in .ferris-idea/agent-log.jsonl.
Its results carry text from process: the client is told to treat that as data, never as instructions.
| Capability | execution.python_create_venv |
|---|---|
| Area | Run, test and tasks |
| Access | changes files, processes |
| Reaches | process |
| Rights | run, write |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
path | string | Folder of the new environment, workspace-relative (default .venv). |
dry_run | boolean | Only return the command (default true). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project python_create_venvInput schema as JSON
{ "type": "object", "properties": { "path": { "description": "Folder of the new environment, workspace-relative (default `.venv`).", "type": [ "string", "null" ] }, "dry_run": { "description": "Only return the command (default true).", "type": [ "boolean", "null" ] } }}