Check the packages an install command would fetch
check_install_commandVerify the packages a shell command would install against npm and PyPI registries before running it, flagging hallucinated, slopsquatted, or risky packages.
Instructions
Verify the packages a shell command would install or execute, before running it: npm install …, npx …, pnpm add, yarn add, bun add, pip install, uv add, poetry add and similar, including behind sudo, && chains and sh -c. Extracts the package names (npm and PyPI at once), checks each against its registry, and returns them worst-first. A command that installs nothing by name (a bare npm install from a lockfile, git, npm test, or npx <bin> of a tool already in node_modules) returns total 0 and costs no network call — use check_dependencies on the manifest in that case. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Directory the command will run in. Lets "npx <bin>" of an already-installed tool be recognised as fetching nothing. Defaults to the server's working directory. | |
| command | Yes | The exact shell command about to run, e.g. "npm install express crossenv" or "pip install -U requests". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| command | Yes | ||
| results | Yes | Sorted worst-first. | |
| blocking | Yes | How many results are HALLUCINATED or DANGER. | |
| packages | Yes | What was recognised, per install command. |