npm_license_check
Checks a package and its direct production dependencies for missing or non-standard licenses, flagging unapproved SPDX expressions.
Instructions
Check the license of a package and its direct production dependencies. Flags missing or non-standard licenses. Matches single SPDX license identifiers case-insensitively (so 'mit' and 'MIT' both match). SPDX expressions like '(MIT OR Apache-2.0)' are NOT decomposed — they are flagged unless added to allowed verbatim. Issues 2 requests per direct dependency (10 in flight), capped at 60s; deps not reached in time come back as NOT_CHECKED (and are flagged, never treated as allowed).
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": {
"name": "<name>"
},
"name": "npm_license_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Package name | |
| allowed | No | SPDX license identifiers to treat as allowed (default: MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0, 0BSD, Unlicense) | |
| version | No | Semver version or dist-tag (default: 'latest') |