vetcode_guard
Checks a shell command before it runs, identifies npm/PyPI/Rust/Go packages it would install or execute, and returns allow, ask, or deny with reasons from registry and OSV.dev checks.
Instructions
Check a shell command before running it: finds the npm and PyPI packages, Rust crates and Go modules it would install (npm/pnpm/yarn/bun install, npx, pip, uv, pipx, poetry, cargo add/install, go get/install), the ones a bare npm install or pip install -r would add from the project in cwd, the package an MCP server would run (claude mcp add … -- npx x), and downloads piped into a shell, then answers allow, ask or deny with reasons. It looks at whether the package exists, look-alike names, malware advisories (OSV.dev), how new the release is, and reads the package archive without installing or running it. Call it before installing anything or adding an MCP server. Sends the package names to the registry and to OSV.dev.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "vetcode_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Folder the command would run in (to see tools already installed there and private registry settings). | |
| command | Yes | The shell command you are about to run, e.g. "npm install left-pad". |