install_package
Install or upgrade Python packages in specified environments using the MCP Python Interpreter. Manage dependencies efficiently for custom or system-wide Python setups.
Instructions
Install a Python package in the specified environment.
Args:
package_name: Name of the package to install
environment: Name of the Python environment (default if custom path provided, otherwise system)
upgrade: Whether to upgrade the package if already installed (default: False)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
environment | No | default | |
package_name | Yes | ||
upgrade | No |
Input Schema (JSON Schema)
{
"properties": {
"environment": {
"default": "default",
"title": "Environment",
"type": "string"
},
"package_name": {
"title": "Package Name",
"type": "string"
},
"upgrade": {
"default": false,
"title": "Upgrade",
"type": "boolean"
}
},
"required": [
"package_name"
],
"title": "install_packageArguments",
"type": "object"
}