mcp-semclone
v1.6.4Model Context Protocol server for SEMCL.ONE OSS compliance toolchain
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_directory
FIRST STEP: Scan a directory for compliance issues using purl2notices. This is typically the FIRST tool you should use when analyzing a project. Use this to discover what's in your project before validation or documentation generation. PURPOSE: - Scan project source code for licenses (using purl2notices) - Detect ALL packages including transitive dependencies (scans node_modules/, site-packages/, vendor/) - Extract copyright statements from source code - Check for vulnerabilities (using vulnq) - Validate against policy (using ospac) WHAT purl2notices DETE…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
check_licenses | boolean | |
check_vulnerabilities | boolean | |
identify_packages | boolean | |
policy_file | ||
recursive | boolean |
check_package
Check a specific package using intelligent tool selection. This tool intelligently analyzes package files by: 1. For archives (.jar, .whl, .rpm, .gem, etc.): Use upmex for metadata extraction 2. If upmex fails or for non-archives: Fall back to osslili for license detection 3. For PURLs: Use package registry APIs when available Args: identifier: Package identifier (PURL like pkg:maven/com.google.gson/gson@2.10.1, file path to archive, or package file) check_vulnerabilities: Whether to check for vulnerabilities (default: False for speed)…
| Parameter | Type | Description |
|---|---|---|
identifier * | string | |
check_licenses | boolean | |
check_vulnerabilities | boolean |
validate_policy
Validate if licenses are approved or rejected for a specific project/distribution type. This tool evaluates licenses against organizational policies and returns clear APPROVE or DENY decisions based on the distribution type. This is the primary tool for answering: "Can I use these licenses for my [mobile/commercial/saas/etc] project?" **Key Use Cases:** - Check if licenses are approved for mobile app distribution - Validate licenses for commercial products - Ensure SaaS deployment compliance - Verify licenses for embedded systems - Check licenses for any d…
| Parameter | Type | Description |
|---|---|---|
licenses * | array | |
context | ||
distribution | string | |
policy_file |
get_license_obligations
Get detailed obligations for specified licenses. This tool answers the critical question: "What must I do to comply with these licenses?" Args: licenses: List of SPDX license IDs (e.g., ["MIT", "Apache-2.0", "GPL-3.0"]) output_format: Output format (json, text, checklist, markdown) Returns: Comprehensive obligations including: - Required actions (attribution, notices, disclosure, etc.) - Permissions (commercial use, modification, distribution, etc.) - Limitations (liability, warranty, trademark use, etc.) - Conditions…
| Parameter | Type | Description |
|---|---|---|
licenses * | array | |
output_format | string |
check_license_compatibility
Check if two licenses are compatible for use together. This tool answers: "Can I combine code under these two licenses?" Args: license1: First SPDX license ID (e.g., "MIT") license2: Second SPDX license ID (e.g., "GPL-3.0") context: Usage context (general, static_linking, dynamic_linking) Returns: Compatibility assessment including: - compatible: True/False indicating if licenses can be combined - reason: Explanation of why they are/aren't compatible - restrictions: Any special conditions or restrictions - reco…
| Parameter | Type | Description |
|---|---|---|
license1 * | string | |
license2 * | string | |
context | string |
get_license_details
Get comprehensive details about a specific license. This tool provides complete license information including the full license text for generating NOTICE files and understanding license requirements. Args: license_id: SPDX license ID (e.g., "Apache-2.0", "MIT", "GPL-3.0") include_full_text: Include full license text (can be long, ~5-20KB) Returns: License information including: - name: Full license name - type: License category (permissive, copyleft_weak, copyleft_strong, etc.) - properties: Characteristics (OSI approved,…
| Parameter | Type | Description |
|---|---|---|
license_id * | string | |
include_full_text | boolean |
analyze_commercial_risk
Analyze commercial licensing risk for a project.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
include_data_files | boolean |
validate_license_list
QUICK answer to: "Can I ship this with these licenses?" This tool analyzes a list of licenses without requiring a filesystem path, making it ideal for quick validation checks. WHEN TO USE: - You have a list of licenses (from scan results) - Need to validate for specific distribution type (mobile, desktop, saas, embedded) - Want app store compatibility check (iOS/Android) - Fast compliance validation without deep analysis - Quick go/no-go decision for shipping WHEN NOT TO USE: - Need to scan codebase first → use scan_directory - Need detailed pol…
| Parameter | Type | Description |
|---|---|---|
licenses * | array | |
check_app_store_compatibility | boolean | |
distribution | string |
generate_legal_notices
PRIMARY TOOL: Generate legal notices by scanning source code directly (DEFAULT - FAST). This is the RECOMMENDED tool for creating legal compliance documentation. Scans your project's source code directly to detect ALL packages (including transitive dependencies) and generates comprehensive attribution notices. ⚠️ THIS IS THE DEFAULT TOOL - Use this for most cases! - Scans source code directly (node_modules/, site-packages/, vendor/) - Detects ALL packages automatically (transitive dependencies included) - 10x faster than downloading from registries - No ne…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
include_license_text | boolean | |
output_file | ||
output_format | string |
generate_legal_notices_from_purls
ALTERNATIVE TOOL: Generate legal notices from PURL list (downloads from registries - SLOWER). Use this tool ONLY when: - Dependencies are NOT installed locally (no node_modules/, site-packages/) - You already have a list of PURLs from another source - You're working with a PURL list, not source code ⚠️ PERFORMANCE WARNING: This downloads packages from registries (slow) - Downloads each package from npm/PyPI/etc (1-2 seconds per package) - For 49 packages: ~60-120 seconds - Use generate_legal_notices(path=...) instead if you have source code ⚠️ CRI…
| Parameter | Type | Description |
|---|---|---|
purls * | array | |
include_license_text | boolean | |
output_file | ||
output_format | string |
download_and_scan_package
Download package source from registry and perform comprehensive analysis. ⚠️ IMPORTANT: This tool CAN and WILL download source code from package registries! **Workflow (tries methods in order until sufficient data is collected):** 1. **Primary**: Use purl2notices to download and analyze (fastest, most comprehensive) 2. **Deep scan**: If incomplete, use purl2src to get download URL → download artifact → run osslili for deep license scanning + upmex for metadata - **Maven-specific**: If license still missing for Maven packages, uses upmex with --registry --api cl…
| Parameter | Type | Description |
|---|---|---|
purl * | string | |
keep_download | boolean |
generate_sbom
Generate a Software Bill of Materials (SBOM) in CycloneDX format using purl2notices. This tool creates comprehensive SBOMs in CycloneDX 1.4 JSON format for software inventory, vulnerability tracking, and compliance documentation. SBOM includes: name, version, PURL, licenses, homepage (external references). Data is sourced from purl2notices scan mode which provides accurate package metadata. **Use this tool when:** - You need to generate an SBOM for a project or package list - Creating inventory documentation for compliance - After analyzing packages and need…
| Parameter | Type | Description |
|---|---|---|
include_licenses | boolean | |
output_file | ||
path | ||
purls |
scan_binary
Scan binary files for OSS components and licenses using BinarySniffer. This tool analyzes compiled binaries, executables, libraries, and archives (APK, EXE, DLL, SO, JAR, etc.) to detect open source components, extract license information, and identify security issues. Use this tool when: - Analyzing mobile apps (APK, IPA) - Scanning executables (EXE, ELF binaries) - Examining shared libraries (DLL, SO, DYLIB) - Analyzing Java archives (JAR, WAR, EAR) - Scanning firmware or embedded binaries - Generating SBOM for binary distributions Args:…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
analysis_mode | string | |
check_compatibility | boolean | |
check_licenses | boolean | |
confidence_threshold | number | |
generate_sbom | boolean | |
output_format | string |
run_compliance_check
UNIVERSAL COMPLIANCE WORKFLOW: One-shot compliance check for ANY project type. This is a convenience tool that runs the complete standard compliance workflow: 1. Scan for licenses and packages (scan_directory) 2. Generate legal notices with purl2notices (generate_legal_notices) 3. Validate against policy using ospac (validate_policy or default policy) 4. Generate SBOM for documentation (generate_sbom) 5. Check for vulnerabilities (if enabled) 6. Return comprehensive summary with APPROVE/REJECT decision This tool works for ANY distribution type (mobile, desktop…
| Parameter | Type | Description |
|---|---|---|
path * | string | |
check_vulnerabilities | boolean | |
distribution_type | ||
output_dir | ||
policy_file |