io.github.bighippoman/license-compliance
Scan npm dependencies for license compliance issues. Catch GPL contamination.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
license-compliance-mcpclaude mcp add license-compliance -- npx -y license-compliance-mcp@1.0.2
{
"mcpServers": {
"license-compliance": {
"command": "npx",
"args": [
"-y",
"license-compliance-mcp@1.0.2"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
license-compliance-mcp
MCP server that scans npm project dependencies for license compliance issues. Catch GPL contamination before code ships.
Tools
check-licenses
Scan a project's npm dependencies against a license policy and get a detailed compliance report.
Parameters:
path(required) — Absolute path to the project rootpolicy(optional, default:"permissive") — Policy preset or custom SPDX expression"permissive"— Only MIT, ISC, BSD, Apache-2.0, etc."weak-copyleft"— Adds LGPL, MPL-2.0, EPL-2.0"copyleft"— Adds GPL, AGPL- Custom:
"(MIT OR Apache-2.0)"— Any valid SPDX expression
explain-license
Get a plain-language explanation of any SPDX license — permissions, conditions, limitations, compatibility, and gotchas.
Parameters:
license(required) — SPDX identifier (e.g.,"MIT","GPL-3.0-only","Apache-2.0")
Install
Claude Code
claude mcp add license-compliance -- npx -y license-compliance-mcp
Claude Desktop / Cursor
Add to your config (claude_desktop_config.json or .cursor/mcp.json):
{
"mcpServers": {
"license-compliance": {
"command": "npx",
"args": ["-y", "license-compliance-mcp"]
}
}
}
How It Works
- Scans
node_modulesusinglicense-checker-rseidelsohn - Normalizes license strings to valid SPDX using
spdx-correct - Evaluates each package against the policy using
spdx-satisfies - Traces dependency chains to show how problematic packages entered the project
- Generates a markdown report grouped by severity (critical > warning > info)
Requirements
- Node.js >= 18
- Project must have
node_modulesinstalled (npm install)
الأسئلة الشائعة
ما هو io.github.bighippoman/license-compliance؟
Scan npm dependencies for license compliance issues. Catch GPL contamination.
كيف أثبّت io.github.bighippoman/license-compliance؟
يعمل على جهازك. في Claude Code: claude mcp add license-compliance -- npx -y license-compliance-mcp@1.0.2. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج io.github.bighippoman/license-compliance إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل io.github.bighippoman/license-compliance مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون io.github.bighippoman/license-compliance؟
ينشره bighippoman. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.