-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
In addition to the run_python_code tool, an additional tool, such as install_python_dependencies would be extremely helpful. Currently, when used as an MCP server, dependencies can only be specified in the client's mcp.json file using --deps. The user has to either choose an all-encompassing set of dependencies that leads to unnecessary bloat for most chats, or have to edit mcp.json and restart the mcp-run-python server when a particular chat needs additional dependencies. With the new tool, a minimal set of dependencies can be specified in mcp.json and additional requirements can be dynamically installed at runtime.
Workflow preserving read-only node_modules
- Model calls
run_python_codeand fails due to the lack of a dependency - Model calls
install_python_dependencieswith a list of dependencies to install - The existing read-only
denoruntime is stopped - The specified dependencies are installed using
denowith write permissions - A new
denoruntime is started in read-only mode with the new dependencies - The model retries
run_python_code, which succeeds with the new dependencies
Metadata
Metadata
Assignees
Labels
No labels