Skip to content

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.

Capabilityexecution.python_create_venv
AreaRun, test and tasks
Accesschanges files, processes
Reachesprocess
Rightsrun, write
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
pathstringFolder of the new environment, workspace-relative (default .venv).
dry_runbooleanOnly 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.

Terminal window
ferris-idea call ~/my-project python_create_venv
Input 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"
]
}
}
}