audit
Run a security audit on a npm package to detect vulnerabilities in dependencies. Optionally fix issues, filter by severity level, or restrict to production dependencies.
Instructions
Run a security audit on the package
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": {
"path": "<path>"
},
"name": "audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | Automatically fix vulnerabilities | |
| path | Yes | Absolute path to the package directory | |
| level | No | Minimum vulnerability level to report | |
| production | No | Only audit production dependencies |