@craswitch/mcp-server 0.0.0-stage → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -2
- package/dist/cli.js +8 -0
- package/dist/core/badge.js +156 -0
- package/dist/core/crypto-utils.js +199 -0
- package/dist/core/enisa.js +909 -0
- package/dist/core/evidence.js +350 -0
- package/dist/core/feeds.js +1175 -0
- package/dist/core/guardrails.js +537 -0
- package/dist/core/index.js +16 -0
- package/dist/core/lockfiles.js +1107 -0
- package/dist/core/sbom.js +191 -0
- package/dist/core/types.js +918 -0
- package/dist/core/vex.js +722 -0
- package/dist/core/x402.js +467 -0
- package/dist/crypto.js +214 -0
- package/dist/http-client.js +336 -0
- package/dist/index.js +17 -0
- package/dist/kev-baseline.js +186 -0
- package/dist/server.js +1075 -0
- package/package.json +39 -4
- package/server.json +63 -0
package/package.json
CHANGED
|
@@ -1,6 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@craswitch/mcp-server",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"mcpName": "dev.craswitch/mcp-server",
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Zero-dependency MCP server for EU CRA Article 14 triage, .cra-vex.json v2 management, ENISA SRP 1:1 web-form worksheets, Art. 14(8) advisories, and Ed25519 OpenVEX verification.",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/theperipetycompany/cra-switch.git",
|
|
10
|
+
"directory": "packages/mcp"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://craswitch.dev",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"eu-cra",
|
|
16
|
+
"enisa",
|
|
17
|
+
"openvex",
|
|
18
|
+
"sbom",
|
|
19
|
+
"mcp",
|
|
20
|
+
"security"
|
|
21
|
+
],
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"server.json",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "node scripts/build.mjs",
|
|
30
|
+
"prepublishOnly": "node scripts/build.mjs"
|
|
31
|
+
},
|
|
32
|
+
"bin": {
|
|
33
|
+
"craswitch-mcp": "./dist/cli.js",
|
|
34
|
+
"cra-switch-mcp": "./dist/cli.js"
|
|
35
|
+
},
|
|
36
|
+
"exports": {
|
|
37
|
+
".": "./dist/index.js",
|
|
38
|
+
"./server": "./dist/server.js",
|
|
39
|
+
"./cli": "./dist/cli.js"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/server.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "dev.craswitch/mcp-server",
|
|
4
|
+
"title": "CRA-Switch EU CRA Article 14 & OpenVEX MCP Server",
|
|
5
|
+
"description": "EU CRA Article 14 triage, ENISA SRP worksheets, .cra-vex.json v2, and Ed25519 OpenVEX verification.",
|
|
6
|
+
"websiteUrl": "https://craswitch.dev",
|
|
7
|
+
"repository": {
|
|
8
|
+
"url": "https://github.com/theperipetycompany/cra-switch",
|
|
9
|
+
"source": "github",
|
|
10
|
+
"subfolder": "packages/mcp"
|
|
11
|
+
},
|
|
12
|
+
"version": "2.0.0",
|
|
13
|
+
"packages": [
|
|
14
|
+
{
|
|
15
|
+
"registryType": "npm",
|
|
16
|
+
"identifier": "@craswitch/mcp-server",
|
|
17
|
+
"version": "2.0.0",
|
|
18
|
+
"runtimeHint": "npx",
|
|
19
|
+
"transport": {
|
|
20
|
+
"type": "stdio"
|
|
21
|
+
},
|
|
22
|
+
"environmentVariables": [
|
|
23
|
+
{
|
|
24
|
+
"name": "CRA_SWITCH_URL",
|
|
25
|
+
"description": "Optional CRA-Switch API base URL (defaults to https://craswitch.dev).",
|
|
26
|
+
"isRequired": false,
|
|
27
|
+
"isSecret": false,
|
|
28
|
+
"default": "https://craswitch.dev"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"tools": [
|
|
34
|
+
{
|
|
35
|
+
"name": "craswitch_scan_lockfile",
|
|
36
|
+
"description": "Scan a lockfile or CycloneDX/SPDX SBOM against CISA KEV & ENISA EUVD feeds using the 4-state EU CRA triage machine (raw matches enter triage_required — never starting a statutory 24h clock automatically)."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "craswitch_init_vex",
|
|
40
|
+
"description": "Scaffold a schema-valid .cra-vex.json v2 file with security contact, Coordinator CSIRT, EU member states, suppressions, and triageEvents arrays."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "craswitch_add_suppression",
|
|
44
|
+
"description": "Append a spec-compliant OpenVEX v0.2.0 not_affected suppression and auditable triageEvents timestamp entry to .cra-vex.json v2."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "craswitch_draft_enisa_srp",
|
|
48
|
+
"description": "Generate a 1:1 ENISA SRP manual web-form copy-paste worksheet and parallel Article 14(8) customer advisory draft (never auto-submits to ENISA)."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "check_vendor_cra_status",
|
|
52
|
+
"description": "Query live vendor EU CRA Article 14 posture via HTTP x402 (/api/v1/x402/attest/:org/:repo)."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "verify_vex_signature",
|
|
56
|
+
"description": "Fetch /.well-known/vex.json?repo=<org>/<repo> and cryptographically verify its Ed25519 signature via WebCrypto."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "scan_lockfile_kev",
|
|
60
|
+
"description": "Legacy alias for lockfile KEV scanning."
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|