LicenseGuard
Check if a dependency's license obligates you, based on how you ship. npm, PyPI, Go.
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- LOWexplain_license에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"license-guard": {
"url": "https://license-guard.rcc-aoki.workers.dev/mcp"
}
}
}원격 엔드포인트
https://license-guard.rcc-aoki.workers.dev/mcpstreamable-http할 수 있는 일
도구 목록
도구 (3)
🟢check_dependency_license(ecosystem, name, version, distribution_model, scope)
Determine whether adding or keeping a single open source dependency creates a legal obligation, given how this project ships. Call this BEFORE adding a new dependency to a project, and when auditing an existing one. A permissive result means no source-disclosure duty; a blocked result means the license obligates you and the dependency should be replaced or the shipping model reconsidered.
입력 스키마
{
"type": "object",
"properties": {
"ecosystem": {
"type": "string",
"enum": [
"npm",
"pypi",
"go",
"cargo",
"rubygems",
"nuget"
],
"description": "Package registry the dependency comes from."
},
"name": {
"type": "string",
"description": "Package name as written in the manifest, e.g. \"express\", \"requests\", \"github.com/gin-gonic/gin\", or \"serde\"."
},
"version": {
"type": "string",
"description": "Exact version if known. Omit to use the latest published version, which may differ from what is installed."
},
"distribution_model": {
"type": "string",
"enum": [
"saas",
"distributed-binary",
"on-prem-delivery",
"internal-only",
"library-published"
],
"description": "How the software incorporating this dependency reaches its users. This determines the answer: \"saas\" = users reach it over a network; \"distributed-binary\" = shipped as an app or binary; \"on-prem-delivery\" = installed in a customer environment; \"internal-only\" = never leaves your organization; \"library-published\" = released for others to depend on."
},
"scope": {
"type": "string",
"enum": [
"runtime",
"dev",
"build",
"test",
"optional"
],
"description": "Where the dependency sits. Use \"dev\", \"build\", or \"test\" for anything that does not end up in the shipped artifact — those carry no distribution obligation. Defaults to \"runtime\"."
}
},
"required": [
"ecosystem",
"name",
"distribution_model"
]
}출력 스키마
{
"type": "object",
"properties": {
"license": {
"type": [
"string",
"null"
]
},
"verdict": {
"type": "string",
"enum": [
"allowed",
"review",
"blocked"
]
},
"obligations": {
"type": "array",
"items": {
"type": "string"
}
},
"rationale": {
"type": "string"
},
"assumption": {
"type": "object",
"properties": {
"declared": {
"type": "string"
},
"assumed": {
"type": "string"
}
},
"required": [
"declared",
"assumed"
]
},
"reference": {
"type": "string"
}
},
"required": [
"license",
"verdict",
"obligations",
"rationale"
]
}🟢check_manifest_licenses(content, distribution_model)
Scan an entire dependency manifest and report every dependency whose license creates an obligation for this shipping model. Use when reviewing a project as a whole, preparing for due diligence, or after a large dependency change. Pass a package-lock.json when one exists: problematic licenses usually arrive as transitive dependencies rather than ones you added directly, and only a lockfile reveals those.
입력 스키마
{
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "Full text of a lockfile, SBOM, or manifest. Accepted: package-lock.json, pnpm-lock.yaml, yarn.lock, go.sum, Cargo.lock, poetry.lock, uv.lock, Gemfile.lock, packages.lock.json, CycloneDX (JSON), SPDX (JSON), package.json, requirements.txt, go.mod, Cargo.toml, .csproj, Directory.Packages.props, packages.config. The format is detected automatically. Prefer a lockfile: it covers transitive dependencies and carries exact versions. package-lock.json is best of all, since it embeds licenses and needs no registry lookups. An SBOM covers several ecosystems in one document, but its licenses are read from the document rather than looked up, so they are only as current as the document."
},
"distribution_model": {
"type": "string",
"enum": [
"saas",
"distributed-binary",
"on-prem-delivery",
"internal-only",
"library-published"
],
"description": "How the software incorporating this dependency reaches its users. This determines the answer: \"saas\" = users reach it over a network; \"distributed-binary\" = shipped as an app or binary; \"on-prem-delivery\" = installed in a customer environment; \"internal-only\" = never leaves your organization; \"library-published\" = released for others to depend on."
}
},
"required": [
"content",
"distribution_model"
]
}출력 스키마
{
"type": "object",
"properties": {
"ecosystem": {
"type": "string"
},
"distributionModel": {
"type": "string"
},
"summary": {
"type": "object",
"description": "Counts by verdict. total is every dependency found, not only the ones that were resolved.",
"properties": {
"total": {
"type": "number"
},
"allowed": {
"type": "number"
},
"review": {
"type": "number"
},
"blocked": {
"type": "number"
}
},
"required": [
"total",
"allowed",
"review",
"blocked"
]
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"ecosystem": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string",
"enum": [
"runtime",
"dev",
"build",
"test",
"optional"
]
},
"spdxExpression": {
"type": [
"string",
"null"
]
},
"resolvedFrom": {
"type": "string",
"description": "Where the license came from. \"lockfile\" is exact; \"sbom\" means it was written in the SBOM you pasted rather than looked up, so it is only as current as that document; \"registry\" and \"deps-dev\" are the pinned version as published; \"registry-latest\" means the pinned version could not be read and the latest release was used instead; \"not-checked\" means the lookup budget ran out and this dependency was never resolved; \"not-published\" means it is a git dependency, a member of the scanned workspace, or from a private registry, so no public registry has license data for it — re-scanning will not resolve those."
},
"verdict": {
"type": "string",
"enum": [
"allowed",
"review",
"blocked"
]
},
"obligations": {
"type": "array",
"items": {
"type": "string"
}
},
"rationale": {
"type": "string"
}
},
"required": [
"ecosystem",
"name",
"scope",
"verdict",
"obligations",
"rationale"
]
}
},
"limitations": {
"type": "array",
"items": {
"type": "string"
},
"description": "What this scan could not establish. Never empty when anything was left unresolved. Read it before treating a result as clean."
}
},
"required": [
"summary",
"findings",
"limitations"
]
}🟢explain_license(license, linkage)
Given an SPDX license identifier or expression, explain what it requires across every shipping model at once. Use when the question is about the license itself rather than a specific package — for example when comparing AGPL-3.0 against GPL-3.0 for a hosted service, or deciding what a project may safely depend on.
입력 스키마
{
"type": "object",
"properties": {
"license": {
"type": "string",
"description": "SPDX identifier or expression, e.g. \"AGPL-3.0-only\", \"Apache-2.0\", or \"(MIT OR GPL-2.0-only)\"."
},
"linkage": {
"type": "string",
"enum": [
"dynamic",
"static",
"separate-process"
],
"description": "How the dependency is linked. Matters for LGPL-family licenses. Compiled languages such as Go and Rust normally link statically. Defaults to \"dynamic\"."
}
},
"required": [
"license"
]
}출력 스키마
{
"type": "object",
"properties": {
"license": {
"type": "string"
},
"linkage": {
"type": "string"
},
"byDistributionModel": {
"type": "array",
"description": "One row per way of shipping. This is where the same license diverges.",
"items": {
"type": "object",
"properties": {
"model": {
"type": "string",
"enum": [
"saas",
"distributed-binary",
"on-prem-delivery",
"internal-only",
"library-published"
]
},
"verdict": {
"type": "string",
"enum": [
"allowed",
"review",
"blocked"
]
},
"obligations": {
"type": "array",
"items": {
"type": "string"
}
},
"rationale": {
"type": "string"
}
},
"required": [
"model",
"verdict",
"obligations",
"rationale"
]
}
},
"devScope": {
"type": "object",
"description": "The result when the dependency never reaches users (dev, build or test scope). Independent of the shipping model.",
"properties": {
"verdict": {
"type": "string",
"enum": [
"allowed",
"review",
"blocked"
]
},
"rationale": {
"type": "string"
}
},
"required": [
"verdict",
"rationale"
]
}
},
"required": [
"license",
"byDistributionModel",
"devScope"
]
}커뮤니티
증거