# uv-run

Runs a command in a uv-managed environment and returns structured output.

Agent View of the PolicyLayer registry record for `uv-run`. HTML page: https://policylayer.com/tools/io-github-dave-london-pare-python/uv-run

## Facts

- Tool: `uv-run`
- Server: Python (`Dave-London/Pare`) — https://policylayer.com/tools/io-github-dave-london-pare-python.md
- Homepage: https://github.com/Dave-London/Pare
- Risk category: Execute (High risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 12 (1 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `path` | string | no | Working directory |
| `frozen` | boolean | no | Run without updating the lockfile (--frozen) |
| `locked` | boolean | no | Assert the lockfile is up-to-date (--locked) |
| `module` | boolean | no | Run as python -m <module> instead of a script (-m) |
| `noSync` | boolean | no | Skip syncing the environment for faster execution (--no-sync) |
| `python` | string | no | Python interpreter version to use (-p VERSION) |
| `command` | array | yes | Command and arguments to run (e.g. ['python', 'script.py']) |
| `compact` | boolean | no | Prefer compact output |
| `envFile` | string | no | Path to environment file (--env-file FILE) |
| `isolated` | boolean | no | Run in a clean isolated environment (--isolated) |
| `outputLimit` | integer | no | Maximum characters to return for stdout/stderr before truncation |
| `withPackages` | array | no | Additional packages to inject for one-off use (--with PKG) |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "uv-run",
    "arguments": {
      "command": []
    }
  }
}
```

## Why uv-run is rated High

This tool executes arbitrary commands within a uv-managed Python environment. While uv is a package manager, the ability to 'run a command' means an AI agent could execute potentially harmful operations including system commands, data exfiltration, or lateral movement.

From the tool's own definition: "Tool description explicitly states 'Runs a command in a uv-managed environment', indicating arbitrary command execution capability. The verb 'runs' combined with 'command' in an environment context strongly indicates Execute category."

Risk signals: Accepts freeform code/query input (python) · Accepts file system path (path) · High parameter count (12 properties)

## Use case

AI agents invoke uv-run to trigger actions in Python. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Python:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "uv-run": {
      "limits": [
        {
          "counter": "uv-run_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Python (13)

- `conda` — Execute — https://policylayer.com/tools/io-github-dave-london-pare-python/conda.md
- `mypy` — Execute — https://policylayer.com/tools/io-github-dave-london-pare-python/mypy.md
- `pip-install` — Execute — https://policylayer.com/tools/io-github-dave-london-pare-python/pip-install.md
- `poetry` — Execute — https://policylayer.com/tools/io-github-dave-london-pare-python/poetry.md
- `pyenv` — Execute — https://policylayer.com/tools/io-github-dave-london-pare-python/pyenv.md
- `pytest` — Execute — https://policylayer.com/tools/io-github-dave-london-pare-python/pytest.md
- `ruff-check` — Execute — https://policylayer.com/tools/io-github-dave-london-pare-python/ruff-check.md
- `uv-install` — Execute — https://policylayer.com/tools/io-github-dave-london-pare-python/uv-install.md
- `black` — Read — https://policylayer.com/tools/io-github-dave-london-pare-python/black.md
- `pip-audit` — Read — https://policylayer.com/tools/io-github-dave-london-pare-python/pip-audit.md
- `pip-list` — Read — https://policylayer.com/tools/io-github-dave-london-pare-python/pip-list.md
- `pip-show` — Read — https://policylayer.com/tools/io-github-dave-london-pare-python/pip-show.md
- `ruff-format` — Read — https://policylayer.com/tools/io-github-dave-london-pare-python/ruff-format.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=io-github-dave-london-pare-python · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/io-github-dave-london-pare-python
