audit_lockfile_compliance
Parse package-lock.json, pnpm-lock.yaml, Cargo.lock, poetry.lock, or uv.lock offline to detect SPDX copyleft/SaaS license contamination and supply-chain hazards in transitive dependencies.
Instructions
Parses package-lock.json (v1/v2/v3), pnpm-lock.yaml, Cargo.lock, poetry.lock, or uv.lock offline and evaluates transitive SPDX copyleft/SaaS license contamination and supply-chain hazards.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_lockfile_compliance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeDev | No | When true, enforces production license blockers on devDependencies as well as runtime dependencies (defaults to false; supply-chain hooks always scan both). | |
| filenameHint | No | Optional filename hint (e.g. "package-lock.json", "pnpm-lock.yaml", "Cargo.lock", "uv.lock", "poetry.lock") to assist format detection. | |
| lockfilePath | No | Optional local file path to a lockfile on disk when lockfileContent is omitted. | |
| deploymentMode | No | Target distribution policy mode: "saas" (hosted network SaaS), "binary" (proprietary client/SDK/on-prem installer), or "internal" (in-house tool only). | |
| allowedPackages | No | Optional list of legal-approved package names or name@version identifiers exempted from blocking. | |
| lockfileContent | No | Raw text content of package-lock.json, pnpm-lock.yaml, Cargo.lock, poetry.lock, or uv.lock evaluated strictly in local memory. | |
| licenseOverrides | No | Optional map of package name or name@version to legal-verified SPDX expression (e.g. {"legacy-pkg": "MIT"}). | |
| failOnUnknownLicense | No | When true, flags dependencies without a declared SPDX license identifier as HIGH severity findings. |