mcp-semclone

v1.6.4
mcp-semclone Checked 14 hours ago Published 2 months ago

Model 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…

ParameterTypeDescription
path *string
check_licensesboolean
check_vulnerabilitiesboolean
identify_packagesboolean
policy_file
recursiveboolean

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)…

ParameterTypeDescription
identifier *string
check_licensesboolean
check_vulnerabilitiesboolean

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…

ParameterTypeDescription
licenses *array
context
distributionstring
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…

ParameterTypeDescription
licenses *array
output_formatstring

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…

ParameterTypeDescription
license1 *string
license2 *string
contextstring

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,…

ParameterTypeDescription
license_id *string
include_full_textboolean

analyze_commercial_risk

Analyze commercial licensing risk for a project.

ParameterTypeDescription
path *string
include_data_filesboolean

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…

ParameterTypeDescription
licenses *array
check_app_store_compatibilityboolean
distributionstring

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…

ParameterTypeDescription
purl *string
keep_downloadboolean

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…

ParameterTypeDescription
include_licensesboolean
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:…

ParameterTypeDescription
path *string
analysis_modestring
check_compatibilityboolean
check_licensesboolean
confidence_thresholdnumber
generate_sbomboolean
output_formatstring

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…

ParameterTypeDescription
path *string
check_vulnerabilitiesboolean
distribution_type
output_dir
policy_file