Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Tool to install dependencies #18

@Omoeba

Description

@Omoeba

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

  1. Model calls run_python_code and fails due to the lack of a dependency
  2. Model calls install_python_dependencies with a list of dependencies to install
  3. The existing read-only deno runtime is stopped
  4. The specified dependencies are installed using deno with write permissions
  5. A new deno runtime is started in read-only mode with the new dependencies
  6. The model retries run_python_code, which succeeds with the new dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions