CRA-Switch EU CRA Article 14 & OpenVEX MCP Server

v2.1.0
dev.craswitch/mcp-server Checked 1 day ago Published 1 day ago

EU CRA Article 14 CVE triage, ENISA SRP 24h worksheets, CSIRT mapping & Ed25519 OpenVEX MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

craswitch_scan_lockfile

Scan a dependency lockfile or SBOM via POST /api/v1/scan (when baseUrl is provided) or local @cra-switch/core fallback. Returns CycloneDX PURL count, matched KEV/EUVD advisories, and 4-state triage status (triage_required on raw matches — never starts 24h statutory clock automatically — or clean).

ParameterTypeDescription
content *stringRaw UTF-8 text content of the lockfile or SBOM.
kind *stringLockfile/SBOM kind or filename (e.g. "package-lock.json", "pnpm-lock.yaml", "Cargo.lock", "go.sum", "requirements.txt", "poetry.lock", "pom.xml", "cyclonedx.json", "spdx.json").
baseUrlstringOptional CRA-Switch API base URL for remote POST /api/v1/scan.
repostringOptional repository slug (e.g. "acme-eu/payments-sdk").

craswitch_init_vex

Scaffold a valid .cra-vex.json v2 configuration file (with empty suppressions and triageEvents arrays) for EU CRA Article 14 compliance.

ParameterTypeDescription
repo *stringRepository identifier (e.g. "acme-eu/payments-sdk").
securityEmail *stringSecurity contact email for internal triage alerts (e.g. "security@example.eu").
coordinatorCsirtstringOptional coordinator CSIRT (e.g. "BSI (DE)", "ANSSI (FR)").
euMemberStatesarrayOptional list of ISO-3166 EU Member State codes where the product is distributed (e.g. ["DE", "FR", "NL"]).

craswitch_add_suppression

Append a spec-compliant OpenVEX not_affected suppression AND an auditable triageEvents timestamp entry to .cra-vex.json v2.

ParameterTypeDescription
cveId *stringVulnerability identifier (e.g. "CVE-2021-23337" or "EUVD-2025-55182").
impactStatement *stringHuman-readable engineering rationale explaining why the product is not affected.
justification *stringStandard OpenVEX v0.2.0 not_affected justification label.
purl *stringAffected component PURL (e.g. "pkg:npm/lodash@4.17.20").
detectedAtstringOptional ISO-8601 timestamp when the vulnerability was first detected.
existingVexJsonstringOptional existing .cra-vex.json file text to update in place.
expiresAtstringOptional ISO-8601 expiry timestamp for the suppression.
triagedBystringOptional identifier of the engineer/security reviewer performing triage.

craswitch_draft_enisa_srp

Generate a 1:1 ENISA SRP manual web-form copy-paste worksheet AND parallel EU CRA Article 14(8) customer notification advisory draft. Never auto-submits to ENISA.

ParameterTypeDescription
confirmedAt *stringISO-8601 timestamp when vendor explicitly confirmed active exploitation (starts 24h/72h/14d statutory clock).
cveId *stringConfirmed vulnerability identifier (e.g. "CVE-2025-55182").
memberStates *arrayEU Member States where the affected product is distributed (e.g. ["DE", "FR"]).
affectedPurlsarrayOptional list of affected production PURLs.
coordinatorCsirtstringOptional designated Coordinator CSIRT (e.g. "BSI (DE)").
detectedAtstringOptional ISO-8601 timestamp when dependency match was initially detected.
mitigationStatusstringOptional current mitigation/patch status description.
productNamestringOptional product/repository identifier (e.g. "acme-eu/legacy-gateway").
releaseVersionstringOptional affected release tag/version (e.g. "v1.9.3").
stagestringOptional Article 14 notification stage (defaults to early_warning_24h).

check_vendor_cra_status

Query a vendor repository EU CRA Article 14 attestation via HTTP x402 (/api/v1/x402/attest/:org/:repo). Returns structured payment-required challenge details on HTTP 402 or the signed CRA posture on HTTP 200.

ParameterTypeDescription
org *stringGitHub/GitLab organization or owner slug (e.g. "acme-eu").
repo *stringRepository name (e.g. "payments-sdk").
baseUrlstringOptional CRA-Switch API base URL (defaults to CRA_SWITCH_URL).
paymentProofstringOptional x402 payment proof sent in X-Payment-Proof header.

verify_vex_signature

Fetch /.well-known/vex.json?repo=<org>/<repo> and cryptographically verify its Ed25519 signature via WebCrypto.

ParameterTypeDescription
org *stringRepository owner or organization slug.
repo *stringRepository name.
baseUrlstringOptional CRA-Switch API base URL.
publicKeystringOptional Ed25519 public key (base64 SPKI, ed25519:<base64url>, PEM, or JWK JSON). Auto-discovered from document or response headers if omitted.

scan_lockfile_kev

Legacy alias: parse a dependency lockfile and check active CISA KEV / ENISA EUVD exploit status locally via @cra-switch/core (or remotely via POST /api/v1/scan when baseUrl is provided).

ParameterTypeDescription
content *stringRaw text content of the lockfile.
filename *stringLockfile filename or path (e.g. "package-lock.json", "Cargo.lock", "requirements.txt", "go.sum", "pom.xml", "pnpm-lock.yaml", "poetry.lock").
baseUrlstringOptional CRA-Switch API base URL for remote /api/v1/scan execution.