@cyanheads/nist-nvd-mcp-server 0.1.6 → 0.1.8
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/AGENTS.md +17 -38
- package/CLAUDE.md +17 -38
- package/README.md +1 -1
- package/changelog/0.1.x/0.1.7.md +25 -0
- package/changelog/0.1.x/0.1.8.md +24 -0
- package/changelog/template.md +9 -1
- package/dist/mcp-server/tools/definitions/nvd-audit-cpe.tool.d.ts +10 -11
- package/dist/mcp-server/tools/definitions/nvd-audit-cpe.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/nvd-audit-cpe.tool.js +29 -38
- package/dist/mcp-server/tools/definitions/nvd-audit-cpe.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/nvd-get-cve-history.tool.d.ts +6 -7
- package/dist/mcp-server/tools/definitions/nvd-get-cve-history.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/nvd-get-cve-history.tool.js +17 -19
- package/dist/mcp-server/tools/definitions/nvd-get-cve-history.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/nvd-get-cve.tool.d.ts +6 -7
- package/dist/mcp-server/tools/definitions/nvd-get-cve.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/nvd-get-cve.tool.js +18 -19
- package/dist/mcp-server/tools/definitions/nvd-get-cve.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/nvd-search-cpes.tool.d.ts +7 -7
- package/dist/mcp-server/tools/definitions/nvd-search-cpes.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/nvd-search-cpes.tool.js +23 -21
- package/dist/mcp-server/tools/definitions/nvd-search-cpes.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/nvd-search-cves.tool.d.ts +17 -17
- package/dist/mcp-server/tools/definitions/nvd-search-cves.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/nvd-search-cves.tool.js +51 -50
- package/dist/mcp-server/tools/definitions/nvd-search-cves.tool.js.map +1 -1
- package/dist/services/nvd-cve/nvd-cve-service.d.ts.map +1 -1
- package/dist/services/nvd-cve/nvd-cve-service.js +3 -3
- package/dist/services/nvd-cve/nvd-cve-service.js.map +1 -1
- package/manifest.json +13 -3
- package/package.json +8 -7
- package/server.json +3 -3
- package/dist/nist-nvd-mcp-server.mcpb +0 -0
package/AGENTS.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** nist-nvd-mcp-server
|
|
4
|
-
**Version:** 0.1.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.
|
|
4
|
+
**Version:** 0.1.8
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.16`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
|
|
8
8
|
**Zod:** ^4.4.3
|
|
@@ -37,7 +37,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
|
|
|
37
37
|
- **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
|
|
38
38
|
- **Check `ctx.elicit` / `ctx.sample`** for presence before calling.
|
|
39
39
|
- **Secrets in env vars only** — never hardcoded.
|
|
40
|
-
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed
|
|
40
|
+
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
@@ -176,6 +176,8 @@ Handlers throw — the framework catches, classifies, and formats.
|
|
|
176
176
|
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required descriptive metadata for the agent's next move (≥ 5 words, lint-validated); for the wire `data.recovery.hint` (mirrored into `content[]` text), pass explicitly at the throw site when dynamic context matters: `ctx.fail('reason', msg, { recovery: { hint: '...' } })`. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
|
|
177
177
|
|
|
178
178
|
```ts
|
|
179
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
180
|
+
|
|
179
181
|
errors: [
|
|
180
182
|
{ reason: 'no_match', code: JsonRpcErrorCode.NotFound,
|
|
181
183
|
when: 'No item matched the query',
|
|
@@ -270,9 +272,13 @@ Available skills:
|
|
|
270
272
|
| `add-service` | Scaffold a new service integration |
|
|
271
273
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
272
274
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
275
|
+
| `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
|
|
273
276
|
| `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
|
|
277
|
+
| `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
|
|
274
278
|
| `devcheck` | Lint, format, typecheck, audit |
|
|
275
279
|
| `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
|
|
280
|
+
| `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
|
|
281
|
+
| `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
|
|
276
282
|
| `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
|
|
277
283
|
| `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
|
|
278
284
|
| `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
|
|
@@ -281,6 +287,7 @@ Available skills:
|
|
|
281
287
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
282
288
|
| `api-context` | Context interface, logger, state, progress |
|
|
283
289
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
290
|
+
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
284
291
|
| `api-services` | LLM, Speech, Graph services |
|
|
285
292
|
| `api-testing` | createMockContext, test patterns |
|
|
286
293
|
| `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
|
|
@@ -319,40 +326,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
319
326
|
|
|
320
327
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
|
|
321
328
|
|
|
322
|
-
**README install badges
|
|
323
|
-
|
|
324
|
-
| Client | Mechanism |
|
|
325
|
-
|:-------|:----------|
|
|
326
|
-
| Claude Desktop | Browser downloads the `.mcpb` from the latest GitHub Release; OS file handler routes it to Claude Desktop, which opens the install dialog. No deep-link URL scheme yet — this is the canonical path. |
|
|
327
|
-
| Cursor | Official `https://cursor.com/en/install-mcp` endpoint with base64 JSON config. |
|
|
328
|
-
| VS Code / Insiders | Official `vscode:mcp/install?...` deep link, wrapped in `https://vscode.dev/redirect?url=` so GitHub-rendered markdown doesn't strip the non-HTTP scheme. |
|
|
329
|
-
| Claude Code / Codex | CLI only (`claude mcp add` / `codex mcp add`); no URL scheme. |
|
|
330
|
-
|
|
331
|
-
```markdown
|
|
332
|
-
[](https://github.com/<OWNER>/<REPO>/releases/latest/download/<PACKAGE_NAME>.mcpb)
|
|
333
|
-
[](https://cursor.com/en/install-mcp?name=<PACKAGE_NAME>&config=<BASE64_CONFIG>)
|
|
334
|
-
[](https://vscode.dev/redirect?url=vscode:mcp/install?<URLENCODED_JSON>)
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
Both install links route through HTTPS endpoints (`cursor.com/en/install-mcp` and `vscode.dev/redirect`) — GitHub-rendered markdown strips non-HTTP URL schemes from anchors, so a raw `cursor://` or `vscode:` link won't click through from github.com.
|
|
338
|
-
|
|
339
|
-
Generate the encoded configs (replace `<PACKAGE_NAME>` and add env vars for any required API keys):
|
|
340
|
-
|
|
341
|
-
```bash
|
|
342
|
-
# Cursor: base64-encoded JSON. Split command/args, add env when keys are needed.
|
|
343
|
-
echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"],"env":{"API_KEY":"your-api-key"}}' | base64
|
|
344
|
-
# Without env (no required keys):
|
|
345
|
-
echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"]}' | base64
|
|
346
|
-
|
|
347
|
-
# VS Code: URL-encoded JSON. Same shape plus a `name` field.
|
|
348
|
-
node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"],env:{API_KEY:"your-api-key"}}))'
|
|
349
|
-
# Without env:
|
|
350
|
-
node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"]}))'
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
Both clients use the same `{command, args, env}` shape (matching `mcp.json` schema). VS Code adds a top-level `name` field. Omit `env` entirely when no API keys are needed — don't include empty objects or framework-only vars like `MCP_TRANSPORT_TYPE`.
|
|
354
|
-
|
|
355
|
-
The Claude Desktop badge requires the bundle to ship with a stable filename — `bun run bundle` outputs `dist/<PACKAGE_NAME>.mcpb`, and `release-and-publish` attaches that file to the GitHub Release. `releases/latest/download/<PACKAGE_NAME>.mcpb` then redirects to the most recent release.
|
|
329
|
+
**README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `skills/polish-docs-meta/references/readme.md`.
|
|
356
330
|
|
|
357
331
|
---
|
|
358
332
|
|
|
@@ -375,6 +349,8 @@ security: false # optional — true flags security fi
|
|
|
375
349
|
|
|
376
350
|
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
377
351
|
|
|
352
|
+
`agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
|
|
353
|
+
|
|
378
354
|
**Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
|
|
379
355
|
|
|
380
356
|
**Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
|
|
@@ -407,4 +383,7 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
407
383
|
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
408
384
|
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
409
385
|
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
410
|
-
- [ ] `
|
|
386
|
+
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
|
|
387
|
+
- [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
|
|
388
|
+
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
|
|
389
|
+
- [ ] `bun run devcheck` passes
|
package/CLAUDE.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Developer Protocol
|
|
2
2
|
|
|
3
3
|
**Server:** nist-nvd-mcp-server
|
|
4
|
-
**Version:** 0.1.
|
|
5
|
-
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.
|
|
4
|
+
**Version:** 0.1.8
|
|
5
|
+
**Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.16`
|
|
6
6
|
**Engines:** Bun ≥1.3.0, Node ≥24.0.0
|
|
7
7
|
**MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
|
|
8
8
|
**Zod:** ^4.4.3
|
|
@@ -37,7 +37,7 @@ Tailor suggestions to what's actually missing or stale — don't recite the full
|
|
|
37
37
|
- **Use `ctx.state`** for tenant-scoped storage. Never access persistence directly.
|
|
38
38
|
- **Check `ctx.elicit` / `ctx.sample`** for presence before calling.
|
|
39
39
|
- **Secrets in env vars only** — never hardcoded.
|
|
40
|
-
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed
|
|
40
|
+
- **Close the loop on issues.** When implementing work tracked by a GitHub issue, comment on the issue with what landed and close it. Do both — a comment without a close leaves stale issues open; a close without a comment leaves no record of what shipped. The comment is for future readers — state the concrete changes, not the conversation that produced them.
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
@@ -176,6 +176,8 @@ Handlers throw — the framework catches, classifies, and formats.
|
|
|
176
176
|
**Recommended: typed error contract.** Declare `errors: [{ reason, code, when, recovery, retryable? }]` on `tool()` / `resource()` to receive `ctx.fail(reason, …)` typed against the reason union. TypeScript catches typos at compile time, `data.reason` is auto-populated for observability, linter enforces conformance against the handler body. `recovery` is required descriptive metadata for the agent's next move (≥ 5 words, lint-validated); for the wire `data.recovery.hint` (mirrored into `content[]` text), pass explicitly at the throw site when dynamic context matters: `ctx.fail('reason', msg, { recovery: { hint: '...' } })`. Baseline codes (`InternalError`, `ServiceUnavailable`, `Timeout`, `ValidationError`, `SerializationError`) bubble freely and don't need declaring.
|
|
177
177
|
|
|
178
178
|
```ts
|
|
179
|
+
import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors';
|
|
180
|
+
|
|
179
181
|
errors: [
|
|
180
182
|
{ reason: 'no_match', code: JsonRpcErrorCode.NotFound,
|
|
181
183
|
when: 'No item matched the query',
|
|
@@ -270,9 +272,13 @@ Available skills:
|
|
|
270
272
|
| `add-service` | Scaffold a new service integration |
|
|
271
273
|
| `add-test` | Scaffold test file for a tool, resource, or service |
|
|
272
274
|
| `field-test` | Exercise tools/resources/prompts with real inputs, verify behavior, report issues |
|
|
275
|
+
| `tool-defs-analysis` | Read-only audit of MCP definition language across the surface — voice, leaks, defaults, recovery hints, output descriptions |
|
|
273
276
|
| `security-pass` | Audit server for MCP-flavored security gaps: output injection, scope blast radius, input sinks, tenant isolation |
|
|
277
|
+
| `code-simplifier` | Post-session cleanup against `git diff` — modernize syntax, consolidate duplication, align with the codebase |
|
|
274
278
|
| `devcheck` | Lint, format, typecheck, audit |
|
|
275
279
|
| `polish-docs-meta` | Finalize docs, README, metadata, and agent protocol for shipping |
|
|
280
|
+
| `git-wrapup` | Land working-tree changes as a versioned commit + annotated tag — version bump, changelog, verify, tag. Local only. |
|
|
281
|
+
| `release-and-publish` | Push + npm + MCP Registry + GH Release + Docker. Picks up from `git-wrapup` |
|
|
276
282
|
| `maintenance` | Investigate changelogs, adopt upstream changes, sync skills to agent dirs |
|
|
277
283
|
| `report-issue-framework` | File a bug or feature request against `@cyanheads/mcp-ts-core` via `gh` CLI |
|
|
278
284
|
| `report-issue-local` | File a bug or feature request against this server's own repo via `gh` CLI |
|
|
@@ -281,6 +287,7 @@ Available skills:
|
|
|
281
287
|
| `api-config` | AppConfig, parseConfig, env vars |
|
|
282
288
|
| `api-context` | Context interface, logger, state, progress |
|
|
283
289
|
| `api-errors` | McpError, JsonRpcErrorCode, error patterns |
|
|
290
|
+
| `api-linter` | Definition linter rule catalog — invoked by `bun run lint:mcp` and `devcheck` |
|
|
284
291
|
| `api-services` | LLM, Speech, Graph services |
|
|
285
292
|
| `api-testing` | createMockContext, test patterns |
|
|
286
293
|
| `api-utils` | Formatting, parsing, security, pagination, scheduling, telemetry helpers |
|
|
@@ -319,40 +326,7 @@ When you complete a skill's checklist, check the boxes and add a completion time
|
|
|
319
326
|
|
|
320
327
|
**Adding an env var requires both files:** `server.json` (registry discovery, `environmentVariables[]`) and `manifest.json` (bundle install UX, `mcp_config.env` + `user_config`). `lint:packaging` (run by `devcheck`) verifies the env var names match.
|
|
321
328
|
|
|
322
|
-
**README install badges
|
|
323
|
-
|
|
324
|
-
| Client | Mechanism |
|
|
325
|
-
|:-------|:----------|
|
|
326
|
-
| Claude Desktop | Browser downloads the `.mcpb` from the latest GitHub Release; OS file handler routes it to Claude Desktop, which opens the install dialog. No deep-link URL scheme yet — this is the canonical path. |
|
|
327
|
-
| Cursor | Official `https://cursor.com/en/install-mcp` endpoint with base64 JSON config. |
|
|
328
|
-
| VS Code / Insiders | Official `vscode:mcp/install?...` deep link, wrapped in `https://vscode.dev/redirect?url=` so GitHub-rendered markdown doesn't strip the non-HTTP scheme. |
|
|
329
|
-
| Claude Code / Codex | CLI only (`claude mcp add` / `codex mcp add`); no URL scheme. |
|
|
330
|
-
|
|
331
|
-
```markdown
|
|
332
|
-
[](https://github.com/<OWNER>/<REPO>/releases/latest/download/<PACKAGE_NAME>.mcpb)
|
|
333
|
-
[](https://cursor.com/en/install-mcp?name=<PACKAGE_NAME>&config=<BASE64_CONFIG>)
|
|
334
|
-
[](https://vscode.dev/redirect?url=vscode:mcp/install?<URLENCODED_JSON>)
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
Both install links route through HTTPS endpoints (`cursor.com/en/install-mcp` and `vscode.dev/redirect`) — GitHub-rendered markdown strips non-HTTP URL schemes from anchors, so a raw `cursor://` or `vscode:` link won't click through from github.com.
|
|
338
|
-
|
|
339
|
-
Generate the encoded configs (replace `<PACKAGE_NAME>` and add env vars for any required API keys):
|
|
340
|
-
|
|
341
|
-
```bash
|
|
342
|
-
# Cursor: base64-encoded JSON. Split command/args, add env when keys are needed.
|
|
343
|
-
echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"],"env":{"API_KEY":"your-api-key"}}' | base64
|
|
344
|
-
# Without env (no required keys):
|
|
345
|
-
echo -n '{"command":"npx","args":["-y","<PACKAGE_NAME>"]}' | base64
|
|
346
|
-
|
|
347
|
-
# VS Code: URL-encoded JSON. Same shape plus a `name` field.
|
|
348
|
-
node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"],env:{API_KEY:"your-api-key"}}))'
|
|
349
|
-
# Without env:
|
|
350
|
-
node -p 'encodeURIComponent(JSON.stringify({name:"<SHORT_NAME>",command:"npx",args:["-y","<PACKAGE_NAME>"]}))'
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
Both clients use the same `{command, args, env}` shape (matching `mcp.json` schema). VS Code adds a top-level `name` field. Omit `env` entirely when no API keys are needed — don't include empty objects or framework-only vars like `MCP_TRANSPORT_TYPE`.
|
|
354
|
-
|
|
355
|
-
The Claude Desktop badge requires the bundle to ship with a stable filename — `bun run bundle` outputs `dist/<PACKAGE_NAME>.mcpb`, and `release-and-publish` attaches that file to the GitHub Release. `releases/latest/download/<PACKAGE_NAME>.mcpb` then redirects to the most recent release.
|
|
329
|
+
**README install badges** (Claude Desktop `.mcpb`, Cursor, VS Code) and the `base64` / `encodeURIComponent` config-generation commands are ship-time concerns — run the `polish-docs-meta` skill, which carries the badge format, layout, and generation snippets in `skills/polish-docs-meta/references/readme.md`.
|
|
356
330
|
|
|
357
331
|
---
|
|
358
332
|
|
|
@@ -375,6 +349,8 @@ security: false # optional — true flags security fi
|
|
|
375
349
|
|
|
376
350
|
`breaking: true` renders a `· ⚠️ Breaking` badge — use it when consumers must update code on upgrade (signature changes, removed APIs, config renames). `security: true` renders a `· 🛡️ Security` badge and pairs with a `## Security` body section. When both are set, badges render `· ⚠️ Breaking · 🛡️ Security`.
|
|
377
351
|
|
|
352
|
+
`agent-notes` is an optional free-form field for maintenance agents processing the release downstream. Content here won't appear in the rendered CHANGELOG — it's consumed by agents running the `maintenance` skill. Use it for adoption instructions that don't fit the human-facing sections: new files to create, fields to populate, one-time migration steps. Omit entirely when there's nothing to say.
|
|
353
|
+
|
|
378
354
|
**Section order** (Keep a Changelog): Added, Changed, Deprecated, Removed, Fixed, Security. Include only sections with entries — don't ship empty headers.
|
|
379
355
|
|
|
380
356
|
**Tag annotations** render as GitHub Release bodies via `--notes-from-tag`. They must be structured markdown — never a flat comma-separated string. Subject omits the version number (GitHub prepends it). See `changelog/template.md` for the full format reference.
|
|
@@ -407,4 +383,7 @@ import { getMyService } from '@/services/my-domain/my-service.js';
|
|
|
407
383
|
- [ ] If wrapping external API: tests include at least one sparse payload case with omitted upstream fields
|
|
408
384
|
- [ ] Registered in `createApp()` arrays (directly or via barrel exports)
|
|
409
385
|
- [ ] Tests use `createMockContext()` from `@cyanheads/mcp-ts-core/testing`
|
|
410
|
-
- [ ] `
|
|
386
|
+
- [ ] `.codex-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; `interface.displayName` = package name; `interface.shortDescription` from `package.json` description
|
|
387
|
+
- [ ] `.codex-plugin/mcp.json` updated — server name key matches `package.json` name; env vars added for any required API keys
|
|
388
|
+
- [ ] `.claude-plugin/plugin.json` populated — `name`, `version`, `description`, `repository`, `license` from `package.json`; inline `mcpServers` entry with server name key, env vars for any required API keys
|
|
389
|
+
- [ ] `bun run devcheck` passes
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<div align="center">
|
|
9
9
|
|
|
10
|
-
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/nist-nvd-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/nist-nvd-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Adopt mcp-ts-core ^0.9.13; error-contract corrections (InvalidParams → ValidationError) across all tools; dependency refresh"
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 0.1.7 — 2026-05-28
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
- **Error codes reclassified** — all tool error-contract entries that used `JsonRpcErrorCode.InvalidParams` now use `JsonRpcErrorCode.ValidationError`. Affected: `nvd_search_cves` (6 reasons), `nvd_search_cpes` (2 reasons), `nvd_audit_cpe` (4 reasons), `nvd_get_cve` (1 reason), `nvd_get_cve_history` (1 reason). Clients that branch on `error.code` should expect `-32602` to be replaced by the `ValidationError` code.
|
|
12
|
+
- **`nvd-cve-service.ts`** — `McpError(JsonRpcErrorCode.NotFound, …)` replaced with `notFound()` factory calls for the `cve_not_found` and `cpe_not_found` paths. Semantically identical; now consistent with the rest of the codebase.
|
|
13
|
+
- **`@cyanheads/mcp-ts-core` ^0.9.9 → ^0.9.13** — picks up:
|
|
14
|
+
- HTTP request-body cap (`MCP_HTTP_MAX_BODY_BYTES`, default 1 MiB; oversized requests rejected with 413 before the SDK parses the body).
|
|
15
|
+
- Stricter HTTP session-init gate: stateful HTTP mode now rejects non-`initialize` requests arriving without `Mcp-Session-Id` with HTTP 400.
|
|
16
|
+
- Quieter expected-client-error logging: 401/403/400/404 HTTP errors now log at `warning` level instead of triggering the full error pipeline with stack traces.
|
|
17
|
+
- `GET /mcp` now includes `server.keywords` from `package.json`.
|
|
18
|
+
|
|
19
|
+
## Dependencies
|
|
20
|
+
|
|
21
|
+
- `@cyanheads/mcp-ts-core` ^0.9.9 → ^0.9.13
|
|
22
|
+
- `@biomejs/biome` ^2.4.7 → ^2.4.16
|
|
23
|
+
- `@types/node` ^25.6.0 → ^25.9.1
|
|
24
|
+
- `tsc-alias` ^1.8.16 → ^1.8.17
|
|
25
|
+
- `vitest` ^4.1.0 → ^4.1.7
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
summary: "Enrichment adoption — CVE/CPE search tools surface result totals, pagination, and empty-result guidance via the typed enrichment block"
|
|
3
|
+
breaking: false
|
|
4
|
+
security: false
|
|
5
|
+
agent-notes: |
|
|
6
|
+
Enrichment adoption: `queryMeta` removed from tool `output` schemas on all search/list tools
|
|
7
|
+
(`nvd_search_cves`, `nvd_search_cpes`, `nvd_audit_cpe`, `nvd_get_cve`, `nvd_get_cve_history`).
|
|
8
|
+
Those fields now live in the `enrichment` block and reach both channels automatically.
|
|
9
|
+
Handler code now calls `ctx.enrich(...)` and `ctx.enrich.notice(...)` rather than returning
|
|
10
|
+
`queryMeta` in the output object.
|
|
11
|
+
Framework dep `@cyanheads/mcp-ts-core ^0.9.13 → ^0.9.16` enables `ctx.enrich` API.
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# 0.1.8 — 2026-05-30
|
|
15
|
+
|
|
16
|
+
## Changed
|
|
17
|
+
|
|
18
|
+
- **`nvd_search_cves`, `nvd_search_cpes`, `nvd_audit_cpe`, `nvd_get_cve`, `nvd_get_cve_history`** — `queryMeta` output field removed; its values (`totalResults`, `returned`, `offset`, `missingIds`, etc.) now surface in a typed `enrichment` block reaching both `structuredContent` JSON and the `content[]` markdown trailer. Empty-result and truncation guidance now delivered via `ctx.enrich.notice()`.
|
|
19
|
+
- **`nvd_audit_cpe`** — `queryMeta.cpeName` / `queryMeta.virtualMatchString` consolidated into a single `enrichment.auditTarget` string (whichever CPE identifier was used for the query).
|
|
20
|
+
- **`@cyanheads/mcp-ts-core` ^0.9.13 → ^0.9.16** — enables `ctx.enrich` / `enrichmentTrailer` API; picks up enrichment linter rules (`enrichment-type`, `enrichment-prefer-block`, `enrichment-output-collision`, and related).
|
|
21
|
+
|
|
22
|
+
## Dependencies
|
|
23
|
+
|
|
24
|
+
- `@cyanheads/mcp-ts-core` ^0.9.13 → ^0.9.16
|
package/changelog/template.md
CHANGED
|
@@ -19,6 +19,14 @@ breaking: false
|
|
|
19
19
|
# `## Security` section below. Flagged as `Security` in the rollup so
|
|
20
20
|
# users can triage upgrade urgency at a glance.
|
|
21
21
|
security: false
|
|
22
|
+
|
|
23
|
+
# Optional free-form notes for maintenance agents processing this release.
|
|
24
|
+
# Not rendered in CHANGELOG — consumed by agents running `maintenance` on
|
|
25
|
+
# downstream servers. Use for adoption instructions that don't fit the
|
|
26
|
+
# human-facing sections: new files to create, fields to populate, one-time
|
|
27
|
+
# migration steps. Omit the field entirely when there's nothing to say.
|
|
28
|
+
# agent-notes: |
|
|
29
|
+
# <instructions for downstream maintenance agents>
|
|
22
30
|
---
|
|
23
31
|
|
|
24
32
|
# <version> — YYYY-MM-DD
|
|
@@ -35,7 +43,7 @@ security: false
|
|
|
35
43
|
name the symbol, state what changed, stop. Use a second sentence only when
|
|
36
44
|
it carries weight. If a bullet feels long, it is.
|
|
37
45
|
|
|
38
|
-
Cut: mechanism walkthroughs (those belong in JSDoc, AGENTS.md, or the
|
|
46
|
+
Cut: mechanism walkthroughs (those belong in JSDoc, CLAUDE.md/AGENTS.md, or the
|
|
39
47
|
relevant skill), ceremonial framings ("This release introduces…",
|
|
40
48
|
backwards-compat paragraphs), file-by-file test enumerations, internal
|
|
41
49
|
implementation notes. Prefer code/symbol names over English re-explanations.
|
|
@@ -75,30 +75,24 @@ export declare const nvdAuditCpe: import("@cyanheads/mcp-ts-core").ToolDefinitio
|
|
|
75
75
|
vulnerabilityName: z.ZodString;
|
|
76
76
|
}, z.core.$strip>>;
|
|
77
77
|
}, z.core.$strip>>;
|
|
78
|
-
queryMeta: z.ZodObject<{
|
|
79
|
-
totalResults: z.ZodNumber;
|
|
80
|
-
returned: z.ZodNumber;
|
|
81
|
-
cpeName: z.ZodOptional<z.ZodString>;
|
|
82
|
-
virtualMatchString: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
78
|
}, z.core.$strip>, readonly [{
|
|
85
79
|
readonly reason: "missing_cpe_input";
|
|
86
|
-
readonly code: JsonRpcErrorCode.
|
|
80
|
+
readonly code: JsonRpcErrorCode.ValidationError;
|
|
87
81
|
readonly when: "Neither cpeName nor virtualMatchString was provided.";
|
|
88
82
|
readonly recovery: "Provide either cpeName (exact CPEv2.3 string) or virtualMatchString (partial match pattern) — use nvd_search_cpes to find the correct CPE.";
|
|
89
83
|
}, {
|
|
90
84
|
readonly reason: "conflicting_cpe_inputs";
|
|
91
|
-
readonly code: JsonRpcErrorCode.
|
|
85
|
+
readonly code: JsonRpcErrorCode.ValidationError;
|
|
92
86
|
readonly when: "Both cpeName and virtualMatchString were provided simultaneously.";
|
|
93
87
|
readonly recovery: "Provide only one of cpeName or virtualMatchString per call, not both.";
|
|
94
88
|
}, {
|
|
95
89
|
readonly reason: "version_range_without_match_string";
|
|
96
|
-
readonly code: JsonRpcErrorCode.
|
|
90
|
+
readonly code: JsonRpcErrorCode.ValidationError;
|
|
97
91
|
readonly when: "versionStart or versionEnd was provided without virtualMatchString.";
|
|
98
92
|
readonly recovery: "Version range parameters require virtualMatchString; provide that parameter or use cpeName for exact-version queries.";
|
|
99
93
|
}, {
|
|
100
94
|
readonly reason: "invalid_cpe_format";
|
|
101
|
-
readonly code: JsonRpcErrorCode.
|
|
95
|
+
readonly code: JsonRpcErrorCode.ValidationError;
|
|
102
96
|
readonly when: "cpeName or virtualMatchString does not start with \"cpe:2.3:\" — not a valid CPEv2.3 string.";
|
|
103
97
|
readonly recovery: "Provide a valid CPEv2.3 string starting with \"cpe:2.3:\". Use nvd_search_cpes to find the correct CPE name.";
|
|
104
98
|
}, {
|
|
@@ -112,5 +106,10 @@ export declare const nvdAuditCpe: import("@cyanheads/mcp-ts-core").ToolDefinitio
|
|
|
112
106
|
readonly when: "NVD returned HTTP 403 indicating the rate limit was exceeded.";
|
|
113
107
|
readonly retryable: true;
|
|
114
108
|
readonly recovery: "Wait for the NVD rate window to reset or set the NVD_API_KEY environment variable for higher limits.";
|
|
115
|
-
}]
|
|
109
|
+
}], {
|
|
110
|
+
readonly totalResults: z.ZodNumber;
|
|
111
|
+
readonly returned: z.ZodNumber;
|
|
112
|
+
readonly auditTarget: z.ZodString;
|
|
113
|
+
readonly notice: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}>;
|
|
116
115
|
//# sourceMappingURL=nvd-audit-cpe.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nvd-audit-cpe.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nvd-audit-cpe.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA2HjE,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"nvd-audit-cpe.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nvd-audit-cpe.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA2HjE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgRtB,CAAC"}
|
|
@@ -155,43 +155,43 @@ export const nvdAuditCpe = tool('nvd_audit_cpe', {
|
|
|
155
155
|
cves: z
|
|
156
156
|
.array(CveRecordSchema.describe('Full CVE record for one vulnerability affecting the product.'))
|
|
157
157
|
.describe('Full CVE records for CVEs affecting the specified product.'),
|
|
158
|
-
queryMeta: z
|
|
159
|
-
.object({
|
|
160
|
-
totalResults: z.number().describe('Total CVEs matched before pagination.'),
|
|
161
|
-
returned: z.number().describe('Number of CVE records returned.'),
|
|
162
|
-
cpeName: z
|
|
163
|
-
.string()
|
|
164
|
-
.optional()
|
|
165
|
-
.describe('The exact CPE name used in the query, if provided.'),
|
|
166
|
-
virtualMatchString: z
|
|
167
|
-
.string()
|
|
168
|
-
.optional()
|
|
169
|
-
.describe('The virtual match string used, if provided.'),
|
|
170
|
-
})
|
|
171
|
-
.describe('Query metadata echoing the CPE identifier and match counts for the audit.'),
|
|
172
158
|
}),
|
|
159
|
+
enrichment: {
|
|
160
|
+
totalResults: z.number().describe('Total CVEs matched before pagination.'),
|
|
161
|
+
returned: z.number().describe('Number of CVE records returned.'),
|
|
162
|
+
auditTarget: z.string().describe('The CPE name or virtual match string used for this audit.'),
|
|
163
|
+
notice: z
|
|
164
|
+
.string()
|
|
165
|
+
.optional()
|
|
166
|
+
.describe('Guidance when no CVEs were found — suggests verifying the CPE name.'),
|
|
167
|
+
},
|
|
168
|
+
enrichmentTrailer: {
|
|
169
|
+
totalResults: { label: 'Total CVEs' },
|
|
170
|
+
returned: { label: 'Returned' },
|
|
171
|
+
auditTarget: { label: 'Audit Target' },
|
|
172
|
+
},
|
|
173
173
|
errors: [
|
|
174
174
|
{
|
|
175
175
|
reason: 'missing_cpe_input',
|
|
176
|
-
code: JsonRpcErrorCode.
|
|
176
|
+
code: JsonRpcErrorCode.ValidationError,
|
|
177
177
|
when: 'Neither cpeName nor virtualMatchString was provided.',
|
|
178
178
|
recovery: 'Provide either cpeName (exact CPEv2.3 string) or virtualMatchString (partial match pattern) — use nvd_search_cpes to find the correct CPE.',
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
reason: 'conflicting_cpe_inputs',
|
|
182
|
-
code: JsonRpcErrorCode.
|
|
182
|
+
code: JsonRpcErrorCode.ValidationError,
|
|
183
183
|
when: 'Both cpeName and virtualMatchString were provided simultaneously.',
|
|
184
184
|
recovery: 'Provide only one of cpeName or virtualMatchString per call, not both.',
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
reason: 'version_range_without_match_string',
|
|
188
|
-
code: JsonRpcErrorCode.
|
|
188
|
+
code: JsonRpcErrorCode.ValidationError,
|
|
189
189
|
when: 'versionStart or versionEnd was provided without virtualMatchString.',
|
|
190
190
|
recovery: 'Version range parameters require virtualMatchString; provide that parameter or use cpeName for exact-version queries.',
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
reason: 'invalid_cpe_format',
|
|
194
|
-
code: JsonRpcErrorCode.
|
|
194
|
+
code: JsonRpcErrorCode.ValidationError,
|
|
195
195
|
when: 'cpeName or virtualMatchString does not start with "cpe:2.3:" — not a valid CPEv2.3 string.',
|
|
196
196
|
recovery: 'Provide a valid CPEv2.3 string starting with "cpe:2.3:". Use nvd_search_cpes to find the correct CPE name.',
|
|
197
197
|
},
|
|
@@ -242,30 +242,21 @@ export const nvdAuditCpe = tool('nvd_audit_cpe', {
|
|
|
242
242
|
...(input.severityMin && { severityMin: input.severityMin }),
|
|
243
243
|
limit: input.limit,
|
|
244
244
|
}, ctx);
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
245
|
+
const auditTarget = result.cpeName ?? result.virtualMatchString ?? 'unknown CPE';
|
|
246
|
+
ctx.enrich({
|
|
247
|
+
totalResults: result.totalResults,
|
|
248
|
+
returned: result.returned,
|
|
249
|
+
auditTarget,
|
|
250
|
+
});
|
|
251
|
+
if (result.cves.length === 0) {
|
|
252
|
+
ctx.enrich.notice('No CVEs found for this product. Verify the CPE name with nvd_search_cpes.');
|
|
253
|
+
}
|
|
254
|
+
return { cves: result.cves };
|
|
254
255
|
},
|
|
255
256
|
format: (result) => {
|
|
256
257
|
const lines = [];
|
|
257
|
-
const cpeName = result.queryMeta.cpeName;
|
|
258
|
-
const virtualMatchString = result.queryMeta.virtualMatchString;
|
|
259
|
-
const target = cpeName ?? virtualMatchString ?? 'unknown CPE';
|
|
260
|
-
lines.push(`**CPE Audit:** ${target}`);
|
|
261
|
-
if (cpeName)
|
|
262
|
-
lines.push(`**CPE Name:** ${cpeName}`);
|
|
263
|
-
if (virtualMatchString)
|
|
264
|
-
lines.push(`**Virtual Match String:** ${virtualMatchString}`);
|
|
265
|
-
lines.push(`**Total CVEs:** ${result.queryMeta.totalResults} | **Returned:** ${result.queryMeta.returned}\n`);
|
|
266
258
|
if (result.cves.length === 0) {
|
|
267
|
-
|
|
268
|
-
return [{ type: 'text', text: lines.join('\n') }];
|
|
259
|
+
return [{ type: 'text', text: 'No CVEs returned for this product.' }];
|
|
269
260
|
}
|
|
270
261
|
for (const cve of result.cves) {
|
|
271
262
|
lines.push(`## ${cve.cveId}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nvd-audit-cpe.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nvd-audit-cpe.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,MAAM,aAAa,GAAG,aAAa,CAAC;AAEpC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IACzE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;IACpF,SAAS,EAAE,CAA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AS,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,CAAC;YACvF,CAAC;YAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjB,CAAC;QAED,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpD,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -20,14 +20,9 @@ export declare const nvdGetCveHistory: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
20
20
|
newValue: z.ZodOptional<z.ZodString>;
|
|
21
21
|
}, z.core.$strip>>;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
|
-
queryMeta: z.ZodObject<{
|
|
24
|
-
totalResults: z.ZodNumber;
|
|
25
|
-
returned: z.ZodNumber;
|
|
26
|
-
offset: z.ZodNumber;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
23
|
}, z.core.$strip>, readonly [{
|
|
29
24
|
readonly reason: "invalid_cve_id_format";
|
|
30
|
-
readonly code: JsonRpcErrorCode.
|
|
25
|
+
readonly code: JsonRpcErrorCode.ValidationError;
|
|
31
26
|
readonly when: "The CVE ID fails format validation (NVD returns HTTP 404 for malformed IDs).";
|
|
32
27
|
readonly recovery: "Use the format CVE-YYYY-NNNNN (e.g., CVE-2021-44228) and verify the ID is correct.";
|
|
33
28
|
}, {
|
|
@@ -41,5 +36,9 @@ export declare const nvdGetCveHistory: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
41
36
|
readonly when: "NVD returned HTTP 403 indicating the rate limit was exceeded.";
|
|
42
37
|
readonly retryable: true;
|
|
43
38
|
readonly recovery: "Wait for the NVD rate window to reset or set the NVD_API_KEY environment variable for higher limits.";
|
|
44
|
-
}]
|
|
39
|
+
}], {
|
|
40
|
+
readonly totalResults: z.ZodNumber;
|
|
41
|
+
readonly returned: z.ZodNumber;
|
|
42
|
+
readonly offset: z.ZodNumber;
|
|
43
|
+
}>;
|
|
45
44
|
//# sourceMappingURL=nvd-get-cve-history.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nvd-get-cve-history.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nvd-get-cve-history.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"nvd-get-cve-history.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/nvd-get-cve-history.tool.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgJ3B,CAAC"}
|