
License Compliance
io.github.bighippoman由 GitHub 账号 bighippoman 发布v1.0.2更新于 Oct 24, 2026
Scan npm dependencies for license compliance issues. Catch GPL contamination.
概览
扫描 npm 项目依赖的许可证合规问题,包括 GPL 等 copyleft 污染。
- 可以做什么
- License Compliance 是一个本地 MCP 服务器,用于检查项目的 npm 依赖并报告许可证合规问题。根据其注册表描述,它会扫描 npm 依赖的许可证合规问题,并帮助发现 GPL 污染。未公布工具列表,因此具体命令和输出格式在此不作说明。
- 适用场景
- 当助手需要检查 JavaScript 或 Node.js 项目的依赖许可证时适合使用,例如在发布前或为排查 copyleft 义务而审计代码库时。它是仅限桌面的本地进程,适合开发者在本机使用,而非托管或浏览器环境。
- 运行要求
- 以 stdio 方式作为本地进程运行,从 npm 包 license-compliance-mcp 安装,因此需要 Node.js 和 npm。未声明任何身份验证、环境变量或请求头。它读取项目的 npm 依赖元数据,因此需要访问项目目录。
安装
在 SourceWeft 中
- 打开 控制台中的 License Compliance,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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 Desktop / Cursor
Add to your config (claude_desktop_config.json or .cursor/mcp.json):
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)
来源:README.md,提交 1572eef
工具
0版本历史
1- v1.0.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分