cverdict-mcp 0.1.6 → 0.2.1
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 +21 -8
- package/dist/cverdict-mcp.mjs +2860 -73
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,9 +18,19 @@ with npm provenance, which links each one to the commit and workflow that built
|
|
|
18
18
|
```sh
|
|
19
19
|
# Claude Code
|
|
20
20
|
claude mcp add cverdict -- npx -y cverdict-mcp
|
|
21
|
+
|
|
22
|
+
# Codex
|
|
23
|
+
codex mcp add cverdict -- npx -y cverdict-mcp
|
|
24
|
+
|
|
25
|
+
# Gemini CLI
|
|
26
|
+
gemini mcp add cverdict npx -- -y cverdict-mcp
|
|
27
|
+
|
|
28
|
+
# GitHub Copilot in VS Code
|
|
29
|
+
code --add-mcp '{"name":"cverdict","command":"npx","args":["-y","cverdict-mcp"]}'
|
|
21
30
|
```
|
|
22
31
|
|
|
23
|
-
|
|
32
|
+
Cursor (`~/.cursor/mcp.json`), Antigravity (Manage MCP Servers, View raw config), Claude Desktop
|
|
33
|
+
(`claude_desktop_config.json`) and other clients take an `mcpServers` entry (key names vary by client):
|
|
24
34
|
|
|
25
35
|
```json
|
|
26
36
|
{
|
|
@@ -102,6 +112,7 @@ one text block. The result types are in [`shared/contract.ts`](../shared/contrac
|
|
|
102
112
|
| `receipts` | `receipts.json` | How often CVErdict, CVSS 7 or more and EPSS 10% or more flagged a CVE before CISA listed it: the forward log and the hindsight backtest, without the per-CVE lists. `id` adds one CVE's entries | |
|
|
103
113
|
| `search_cves` | `index.json` | Window CVEs whose ID, CNA, vendor, product or title contain every word of `query`, highest score first | `query` 2 to 100 characters, at most 8 words; `limit` 1 to 50 (default 20), `offset` |
|
|
104
114
|
| `check_inventory` | `index.json`, `woke.json` | Per name: the window CVEs and old CVEs that woke up whose vendor or product equals the name (ignoring case and extra spaces, as the site's watchlist matches), most urgent first (tier, then soonest KEV due date, then score), each with tier, verdict, score and KEV due date; `matched` and `total` (in the chosen `tiers`), `omitted`, `no_match`, and the feed for the name's slug `https://cverdict.dev/feeds/v/<slug>.xml`, which folds case, accents and punctuation, so it can carry spellings the name does not match (`umbraco cms` and `umbraco-cms` share one) | `names` 1 to 200, each 1 to 80 characters after trimming; `per_name` 1 to 25 (default 10); to keep the answer under about 17,000 tokens, the least urgent CVEs across all names are left out, with a `note`, so an exploited CVE is never dropped for a quieter one; no control or invisible characters, and at most 20 KB of names together; `tiers`, `knob` |
|
|
115
|
+
| `check_dependencies` | `packages.json`, `packages-older.json` | The project's dependencies with CVEs, most urgent first: the lockfiles and SBOMs under `paths` (npm, yarn, pnpm, pip, Poetry, uv, Pipenv, Go, Cargo, Bundler, Composer, NuGet and Gradle lockfiles; CycloneDX and SPDX; folders are searched, `node_modules`, `vendor` and build output skipped), matched against every CVE an OSV.dev advisory ties to a package version, as the site's the Check page and `cverdict-check` do. Each finding: CVE, tier (or `possible` when the version could not be compared), verdict, score, KEV due date, package, version, `fixed_in`, advisories, file, line, `tracked` and `url` (the CVE page, or cve.org for an older CVE); `counts` per tier over all findings, `files` with any read error, and `coverage` | `paths` 1 to 20, default `["."]`: each must resolve, through symbolic links, inside the folder the server runs in (an MCP client usually starts it in the project), and a file must have a lockfile or SBOM name, so nothing else is ever opened; errors never quote a file. `include_quiet` (default false), `knob`. Files are read locally; only `packages.json` and `packages-older.json` are downloaded, under a 30-second deadline instead of 10. The least urgent findings are cut to keep the answer under about 17,000 tokens, with a `note` |
|
|
105
116
|
| `changes_since` | `events.json` | Verdict events after `since`, newest first, with every event field (`id`, `at`, `type`, `cve`, `vendor`, `product`, `tier_before`, `tier_after`, `score`, `title`, `via`, `url`, `detail`, `backfill`; tiers at the default evidence bar of 50), the span the log covers (`log`, with `capped: true` when the log reached `max_items` and dropped its lower-ranked events) and `next_since` (the log's `generated_at`). To page, pass the first page's `next_since` as `until` on later pages, so events added by a new run between pages do not shift them and every page names the same `next_since`; pass that as `since` to catch up later. Filters: `names` (as `check_inventory` matches), `types` (`kev_added`, `catalog_listed`, `vendor_exploited`, `tier_up`, `fast_lane`, `metasploit_module`, `nuclei_template`, `exploitdb_entry`) | `since` within the log's 7 days, else an error saying where it starts: a date-time is exclusive (so `next_since` repeats nothing), a date takes the whole day from 00:00:00Z, where backfilled items are stamped; `until` optional; `limit` 1 to 50 (default 25), `offset` |
|
|
106
117
|
|
|
107
118
|
Dates (`published_since`, `since`, `until`) are UTC: `2026-10-01`, `2026-10-01T06:00Z` or
|
|
@@ -181,14 +192,16 @@ dependencies. The site never imports them: `shared/mcp.ts` holds the copy both u
|
|
|
181
192
|
## Releasing
|
|
182
193
|
|
|
183
194
|
Maintainers only. Set the new version in `mcp/package.json`, `MCP_SERVER.version` in
|
|
184
|
-
`shared/mcp.ts`, and both `version` fields in `mcp/server.json` (a test keeps them equal),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
195
|
+
`shared/mcp.ts`, and both `version` fields in `mcp/server.json` (a test keeps them equal), and merge
|
|
196
|
+
to main. The release workflow
|
|
197
|
+
([`.github/workflows/release-mcp.yml`](https://github.com/markusweldon/cverdict/blob/main/.github/workflows/release-mcp.yml)) sees a version
|
|
198
|
+
with no `mcp-v<version>` tag yet, runs the MCP tests and the smoke test, packs the bundle, publishes it
|
|
199
|
+
to npm through trusted publishing, with provenance, and tags the commit `mcp-v<version>`. To retry a
|
|
200
|
+
release, run the workflow by hand (Actions → release-mcp → Run workflow). A last job lists the version on the
|
|
190
201
|
[MCP Registry](https://registry.modelcontextprotocol.io) from `mcp/server.json`, logged in with the
|
|
191
|
-
workflow's GitHub OIDC identity
|
|
202
|
+
workflow's GitHub OIDC identity, and then the GitHub release for the tag is added
|
|
203
|
+
([`github-release.yml`](https://github.com/markusweldon/cverdict/blob/main/.github/workflows/github-release.yml)).
|
|
204
|
+
No npm or registry token is stored anywhere.
|
|
192
205
|
|
|
193
206
|
One-time setup: the first version is published by hand (`npm run build:mcp` at the root, then
|
|
194
207
|
`npm login` and `npm publish` in `mcp/`). Then on npmjs.com, package `cverdict-mcp` → Settings →
|