cverdict-mcp 0.0.0-stage → 0.1.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Markus Weldon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,429 @@
1
+ Third-party software in dist/cverdict-mcp.mjs
2
+
3
+ The single-file bundle includes the packages below, unmodified apart from bundling. Their
4
+ licenses follow, each in full. The MCP TypeScript SDK itself includes (vendored in its own dist
5
+ files) ajv, ajv-formats, fast-uri, fast-deep-equal, json-schema-traverse and content-type.
6
+
7
+ - @modelcontextprotocol/server 2.4.0 and @modelcontextprotocol/core 2.4.0: Apache-2.0, with
8
+ contributions under MIT (see the SDK's notice below)
9
+ - zod 4.6.7: MIT
10
+ - ajv 8: MIT
11
+ - ajv-formats 3: MIT
12
+ - fast-uri 3: BSD-3-Clause
13
+ - fast-deep-equal 3: MIT
14
+ - json-schema-traverse 1: MIT
15
+ - content-type 1: MIT
16
+
17
+ ================================================================================
18
+ @modelcontextprotocol/server and @modelcontextprotocol/core (https://github.com/modelcontextprotocol/typescript-sdk)
19
+ ================================================================================
20
+
21
+ The MCP project is undergoing a licensing transition from the MIT License to the Apache License, Version 2.0 ("Apache-2.0"). All new code and specification contributions to the project are licensed under Apache-2.0. Documentation contributions (excluding specifications) are licensed under CC-BY-4.0.
22
+
23
+ Contributions for which relicensing consent has been obtained are licensed under Apache-2.0. Contributions made by authors who originally licensed their work under the MIT License and who have not yet granted explicit permission to relicense remain licensed under the MIT License.
24
+
25
+ No rights beyond those granted by the applicable original license are conveyed for such contributions.
26
+
27
+ ---
28
+
29
+ Apache License
30
+ Version 2.0, January 2004
31
+ http://www.apache.org/licenses/
32
+
33
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
34
+
35
+ 1. Definitions.
36
+
37
+ "License" shall mean the terms and conditions for use, reproduction,
38
+ and distribution as defined by Sections 1 through 9 of this document.
39
+
40
+ "Licensor" shall mean the copyright owner or entity authorized by
41
+ the copyright owner that is granting the License.
42
+
43
+ "Legal Entity" shall mean the union of the acting entity and all
44
+ other entities that control, are controlled by, or are under common
45
+ control with that entity. For the purposes of this definition,
46
+ "control" means (i) the power, direct or indirect, to cause the
47
+ direction or management of such entity, whether by contract or
48
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
49
+ outstanding shares, or (iii) beneficial ownership of such entity.
50
+
51
+ "You" (or "Your") shall mean an individual or Legal Entity
52
+ exercising permissions granted by this License.
53
+
54
+ "Source" form shall mean the preferred form for making modifications,
55
+ including but not limited to software source code, documentation
56
+ source, and configuration files.
57
+
58
+ "Object" form shall mean any form resulting from mechanical
59
+ transformation or translation of a Source form, including but
60
+ not limited to compiled object code, generated documentation,
61
+ and conversions to other media types.
62
+
63
+ "Work" shall mean the work of authorship, whether in Source or
64
+ Object form, made available under the License, as indicated by a
65
+ copyright notice that is included in or attached to the work
66
+ (an example is provided in the Appendix below).
67
+
68
+ "Derivative Works" shall mean any work, whether in Source or Object
69
+ form, that is based on (or derived from) the Work and for which the
70
+ editorial revisions, annotations, elaborations, or other modifications
71
+ represent, as a whole, an original work of authorship. For the purposes
72
+ of this License, Derivative Works shall not include works that remain
73
+ separable from, or merely link (or bind by name) to the interfaces of,
74
+ the Work and Derivative Works thereof.
75
+
76
+ "Contribution" shall mean any work of authorship, including
77
+ the original version of the Work and any modifications or additions
78
+ to that Work or Derivative Works thereof, that is intentionally
79
+ submitted to the Licensor for inclusion in the Work by the copyright
80
+ owner or by an individual or Legal Entity authorized to submit on behalf
81
+ of the copyright owner. For the purposes of this definition, "submitted"
82
+ means any form of electronic, verbal, or written communication sent
83
+ to the Licensor or its representatives, including but not limited to
84
+ communication on electronic mailing lists, source code control systems,
85
+ and issue tracking systems that are managed by, or on behalf of, the
86
+ Licensor for the purpose of discussing and improving the Work, but
87
+ excluding communication that is conspicuously marked or otherwise
88
+ designated in writing by the copyright owner as "Not a Contribution."
89
+
90
+ "Contributor" shall mean Licensor and any individual or Legal Entity
91
+ on behalf of whom a Contribution has been received by Licensor and
92
+ subsequently incorporated within the Work.
93
+
94
+ 2. Grant of Copyright License. Subject to the terms and conditions of
95
+ this License, each Contributor hereby grants to You a perpetual,
96
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
97
+ copyright license to reproduce, prepare Derivative Works of,
98
+ publicly display, publicly perform, sublicense, and distribute the
99
+ Work and such Derivative Works in Source or Object form.
100
+
101
+ 3. Grant of Patent License. Subject to the terms and conditions of
102
+ this License, each Contributor hereby grants to You a perpetual,
103
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
104
+ (except as stated in this section) patent license to make, have made,
105
+ use, offer to sell, sell, import, and otherwise transfer the Work,
106
+ where such license applies only to those patent claims licensable
107
+ by such Contributor that are necessarily infringed by their
108
+ Contribution(s) alone or by combination of their Contribution(s)
109
+ with the Work to which such Contribution(s) was submitted. If You
110
+ institute patent litigation against any entity (including a
111
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
112
+ or a Contribution incorporated within the Work constitutes direct
113
+ or contributory patent infringement, then any patent licenses
114
+ granted to You under this License for that Work shall terminate
115
+ as of the date such litigation is filed.
116
+
117
+ 4. Redistribution. You may reproduce and distribute copies of the
118
+ Work or Derivative Works thereof in any medium, with or without
119
+ modifications, and in Source or Object form, provided that You
120
+ meet the following conditions:
121
+
122
+ (a) You must give any other recipients of the Work or
123
+ Derivative Works a copy of this License; and
124
+
125
+ (b) You must cause any modified files to carry prominent notices
126
+ stating that You changed the files; and
127
+
128
+ (c) You must retain, in the Source form of any Derivative Works
129
+ that You distribute, all copyright, patent, trademark, and
130
+ attribution notices from the Source form of the Work,
131
+ excluding those notices that do not pertain to any part of
132
+ the Derivative Works; and
133
+
134
+ (d) If the Work includes a "NOTICE" text file as part of its
135
+ distribution, then any Derivative Works that You distribute must
136
+ include a readable copy of the attribution notices contained
137
+ within such NOTICE file, excluding those notices that do not
138
+ pertain to any part of the Derivative Works, in at least one
139
+ of the following places: within a NOTICE text file distributed
140
+ as part of the Derivative Works; within the Source form or
141
+ documentation, if provided along with the Derivative Works; or,
142
+ within a display generated by the Derivative Works, if and
143
+ wherever such third-party notices normally appear. The contents
144
+ of the NOTICE file are for informational purposes only and
145
+ do not modify the License. You may add Your own attribution
146
+ notices within Derivative Works that You distribute, alongside
147
+ or as an addendum to the NOTICE text from the Work, provided
148
+ that such additional attribution notices cannot be construed
149
+ as modifying the License.
150
+
151
+ You may add Your own copyright statement to Your modifications and
152
+ may provide additional or different license terms and conditions
153
+ for use, reproduction, or distribution of Your modifications, or
154
+ for any such Derivative Works as a whole, provided Your use,
155
+ reproduction, and distribution of the Work otherwise complies with
156
+ the conditions stated in this License.
157
+
158
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
159
+ any Contribution intentionally submitted for inclusion in the Work
160
+ by You to the Licensor shall be under the terms and conditions of
161
+ this License, without any additional terms or conditions.
162
+ Notwithstanding the above, nothing herein shall supersede or modify
163
+ the terms of any separate license agreement you may have executed
164
+ with Licensor regarding such Contributions.
165
+
166
+ 6. Trademarks. This License does not grant permission to use the trade
167
+ names, trademarks, service marks, or product names of the Licensor,
168
+ except as required for reasonable and customary use in describing the
169
+ origin of the Work and reproducing the content of the NOTICE file.
170
+
171
+ 7. Disclaimer of Warranty. Unless required by applicable law or
172
+ agreed to in writing, Licensor provides the Work (and each
173
+ Contributor provides its Contributions) on an "AS IS" BASIS,
174
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
175
+ implied, including, without limitation, any warranties or conditions
176
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
177
+ PARTICULAR PURPOSE. You are solely responsible for determining the
178
+ appropriateness of using or redistributing the Work and assume any
179
+ risks associated with Your exercise of permissions under this License.
180
+
181
+ 8. Limitation of Liability. In no event and under no legal theory,
182
+ whether in tort (including negligence), contract, or otherwise,
183
+ unless required by applicable law (such as deliberate and grossly
184
+ negligent acts) or agreed to in writing, shall any Contributor be
185
+ liable to You for damages, including any direct, indirect, special,
186
+ incidental, or consequential damages of any character arising as a
187
+ result of this License or out of the use or inability to use the
188
+ Work (including but not limited to damages for loss of goodwill,
189
+ work stoppage, computer failure or malfunction, or any and all
190
+ other commercial damages or losses), even if such Contributor
191
+ has been advised of the possibility of such damages.
192
+
193
+ 9. Accepting Warranty or Additional Liability. While redistributing
194
+ the Work or Derivative Works thereof, You may choose to offer,
195
+ and charge a fee for, acceptance of support, warranty, indemnity,
196
+ or other liability obligations and/or rights consistent with this
197
+ License. However, in accepting such obligations, You may act only
198
+ on Your own behalf and on Your sole responsibility, not on behalf
199
+ of any other Contributor, and only if You agree to indemnify,
200
+ defend, and hold each Contributor harmless for any liability
201
+ incurred by, or claims asserted against, such Contributor by reason
202
+ of your accepting any such warranty or additional liability.
203
+
204
+ END OF TERMS AND CONDITIONS
205
+
206
+ ---
207
+
208
+ MIT License
209
+
210
+ Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
211
+
212
+ Permission is hereby granted, free of charge, to any person obtaining a copy
213
+ of this software and associated documentation files (the "Software"), to deal
214
+ in the Software without restriction, including without limitation the rights
215
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
216
+ copies of the Software, and to permit persons to whom the Software is
217
+ furnished to do so, subject to the following conditions:
218
+
219
+ The above copyright notice and this permission notice shall be included in all
220
+ copies or substantial portions of the Software.
221
+
222
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
223
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
224
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
225
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
226
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
227
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
228
+ SOFTWARE.
229
+
230
+ ---
231
+
232
+ Creative Commons Attribution 4.0 International (CC-BY-4.0)
233
+
234
+ Documentation in this project (excluding specifications) is licensed under
235
+ CC-BY-4.0. See https://creativecommons.org/licenses/by/4.0/legalcode for
236
+ the full license text.
237
+
238
+ ================================================================================
239
+ zod
240
+ ================================================================================
241
+
242
+ MIT License
243
+
244
+ Copyright (c) 2025 Colin McDonnell
245
+
246
+ Permission is hereby granted, free of charge, to any person obtaining a copy
247
+ of this software and associated documentation files (the "Software"), to deal
248
+ in the Software without restriction, including without limitation the rights
249
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
250
+ copies of the Software, and to permit persons to whom the Software is
251
+ furnished to do so, subject to the following conditions:
252
+
253
+ The above copyright notice and this permission notice shall be included in all
254
+ copies or substantial portions of the Software.
255
+
256
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
257
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
258
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
259
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
260
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
261
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
262
+ SOFTWARE.
263
+
264
+ ================================================================================
265
+ ajv
266
+ ================================================================================
267
+
268
+ The MIT License (MIT)
269
+
270
+ Copyright (c) 2015-2021 Evgeny Poberezkin
271
+
272
+ Permission is hereby granted, free of charge, to any person obtaining a copy
273
+ of this software and associated documentation files (the "Software"), to deal
274
+ in the Software without restriction, including without limitation the rights
275
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
276
+ copies of the Software, and to permit persons to whom the Software is
277
+ furnished to do so, subject to the following conditions:
278
+
279
+ The above copyright notice and this permission notice shall be included in all
280
+ copies or substantial portions of the Software.
281
+
282
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
283
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
284
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
285
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
286
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
287
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
288
+ SOFTWARE.
289
+
290
+
291
+ ================================================================================
292
+ ajv-formats
293
+ ================================================================================
294
+
295
+ MIT License
296
+
297
+ Copyright (c) 2020 Evgeny Poberezkin
298
+
299
+ Permission is hereby granted, free of charge, to any person obtaining a copy
300
+ of this software and associated documentation files (the "Software"), to deal
301
+ in the Software without restriction, including without limitation the rights
302
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
303
+ copies of the Software, and to permit persons to whom the Software is
304
+ furnished to do so, subject to the following conditions:
305
+
306
+ The above copyright notice and this permission notice shall be included in all
307
+ copies or substantial portions of the Software.
308
+
309
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
310
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
311
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
312
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
313
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
314
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
315
+ SOFTWARE.
316
+
317
+ ================================================================================
318
+ fast-uri
319
+ ================================================================================
320
+
321
+ Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
322
+ Copyright (c) 2021-present The Fastify team <https://github.com/fastify/fastify#team>
323
+ All rights reserved.
324
+
325
+ Redistribution and use in source and binary forms, with or without
326
+ modification, are permitted provided that the following conditions are met:
327
+ * Redistributions of source code must retain the above copyright
328
+ notice, this list of conditions and the following disclaimer.
329
+ * Redistributions in binary form must reproduce the above copyright
330
+ notice, this list of conditions and the following disclaimer in the
331
+ documentation and/or other materials provided with the distribution.
332
+ * The names of any contributors may not be used to endorse or promote
333
+ products derived from this software without specific prior written
334
+ permission.
335
+
336
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
337
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
338
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
339
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
340
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
341
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
342
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
343
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
344
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
345
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
346
+
347
+ * * *
348
+
349
+ The complete list of contributors can be found at:
350
+ - https://github.com/garycourt/uri-js/graphs/contributors
351
+ ================================================================================
352
+ fast-deep-equal
353
+ ================================================================================
354
+
355
+ MIT License
356
+
357
+ Copyright (c) 2017 Evgeny Poberezkin
358
+
359
+ Permission is hereby granted, free of charge, to any person obtaining a copy
360
+ of this software and associated documentation files (the "Software"), to deal
361
+ in the Software without restriction, including without limitation the rights
362
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
363
+ copies of the Software, and to permit persons to whom the Software is
364
+ furnished to do so, subject to the following conditions:
365
+
366
+ The above copyright notice and this permission notice shall be included in all
367
+ copies or substantial portions of the Software.
368
+
369
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
370
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
371
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
372
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
373
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
374
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
375
+ SOFTWARE.
376
+
377
+ ================================================================================
378
+ json-schema-traverse
379
+ ================================================================================
380
+
381
+ MIT License
382
+
383
+ Copyright (c) 2017 Evgeny Poberezkin
384
+
385
+ Permission is hereby granted, free of charge, to any person obtaining a copy
386
+ of this software and associated documentation files (the "Software"), to deal
387
+ in the Software without restriction, including without limitation the rights
388
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
389
+ copies of the Software, and to permit persons to whom the Software is
390
+ furnished to do so, subject to the following conditions:
391
+
392
+ The above copyright notice and this permission notice shall be included in all
393
+ copies or substantial portions of the Software.
394
+
395
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
396
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
397
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
398
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
399
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
400
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
401
+ SOFTWARE.
402
+
403
+ ================================================================================
404
+ content-type
405
+ ================================================================================
406
+
407
+ (The MIT License)
408
+
409
+ Copyright (c) 2015 Douglas Christopher Wilson
410
+
411
+ Permission is hereby granted, free of charge, to any person obtaining
412
+ a copy of this software and associated documentation files (the
413
+ 'Software'), to deal in the Software without restriction, including
414
+ without limitation the rights to use, copy, modify, merge, publish,
415
+ distribute, sublicense, and/or sell copies of the Software, and to
416
+ permit persons to whom the Software is furnished to do so, subject to
417
+ the following conditions:
418
+
419
+ The above copyright notice and this permission notice shall be
420
+ included in all copies or substantial portions of the Software.
421
+
422
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
423
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
424
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
425
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
426
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
427
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
428
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
429
+
package/README.md CHANGED
@@ -1,3 +1,201 @@
1
- # Temporary Holding Version
1
+ # CVErdict MCP server
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A read-only [Model Context Protocol](https://modelcontextprotocol.io) server that gives AI agents
4
+ the same verdicts as [CVErdict](https://cverdict-psi.vercel.app): tier, score, every reason chip
5
+ with its points and evidence link, and what is unknown. Every answer says when the data was
6
+ generated and which files it came from. No key, no account.
7
+
8
+ It runs on your machine over stdio and reads the published `data` branch on
9
+ raw.githubusercontent.com, then the site's `/data/` copy if GitHub fails. It needs the site only
10
+ when GitHub fails, so it keeps working when the site is down.
11
+
12
+ ## Install
13
+
14
+ Node 22.12 or later. The package is [`cverdict-mcp`](https://www.npmjs.com/package/cverdict-mcp)
15
+ on npm: one file, no runtime dependencies. Versions after 0.1.0 are published from GitHub Actions
16
+ with npm provenance, which links each one to the commit and workflow that built it.
17
+
18
+ ```sh
19
+ # Claude Code
20
+ claude mcp add cverdict -- npx -y cverdict-mcp
21
+ ```
22
+
23
+ Other clients take an `mcpServers` entry (key names vary by client):
24
+
25
+ ```json
26
+ {
27
+ "mcpServers": {
28
+ "cverdict": {
29
+ "command": "npx",
30
+ "args": ["-y", "cverdict-mcp"]
31
+ }
32
+ }
33
+ }
34
+ ```
35
+
36
+ On Windows, clients that cannot start `npx` directly take `"command": "cmd"` and
37
+ `"args": ["/c", "npx", "-y", "cverdict-mcp"]`. `npx -y` runs the newest version; pin one with
38
+ `cverdict-mcp@<version>` (the versions are on the npm page).
39
+
40
+ ## Run it from a clone
41
+
42
+ Node 22.12 or later.
43
+
44
+ ```sh
45
+ git clone --single-branch https://github.com/markusweldon/cverdict.git
46
+ cd cverdict && npm ci
47
+
48
+ # Claude Code
49
+ claude mcp add cverdict -- npm --prefix "$PWD" run -s mcp
50
+ ```
51
+
52
+ Other clients take an `mcpServers` entry (key names vary by client):
53
+
54
+ ```json
55
+ {
56
+ "mcpServers": {
57
+ "cverdict": {
58
+ "command": "npm",
59
+ "args": ["--prefix", "/path/to/cverdict", "run", "-s", "mcp"]
60
+ }
61
+ }
62
+ }
63
+ ```
64
+
65
+ Keep the `-s`: a plain `npm run` prints its own banner to stdout, which is the JSON-RPC channel.
66
+
67
+ To skip npm and TypeScript at start-up (and on Windows, where clients cannot start `npm`
68
+ directly), build the single-file server once and start it with Node:
69
+
70
+ ```sh
71
+ npm run build:mcp # writes mcp/dist/cverdict-mcp.mjs
72
+ claude mcp add cverdict -- node "$PWD/mcp/dist/cverdict-mcp.mjs"
73
+ ```
74
+
75
+ Run `git pull && npm ci` (and `npm run build:mcp` if you use the bundle) to update.
76
+
77
+ ### Options
78
+
79
+ Environment variables, all optional. MCP clients start servers with a minimal environment, so put
80
+ them in the client's `env` block for this server.
81
+
82
+ | Variable | Default | Purpose |
83
+ |---|---|---|
84
+ | `CVERDICT_DATA_BASE` | `https://raw.githubusercontent.com/markusweldon/cverdict/data/v1/,https://cverdict-psi.vercel.app/data/v1/` | Comma-separated base URLs ending in `/v1/`, tried in order. https only, or http on `localhost` and `127.0.0.1` (for example `http://localhost:5173/data/v1/` with `npm run mock` and `npm run dev`). For a fork or a mirror |
85
+ | `NODE_USE_ENV_PROXY`, `HTTPS_PROXY` | unset | Behind a proxy: `NODE_USE_ENV_PROXY=1` and `HTTPS_PROXY=http://proxy.example:3128`. Needs Node 22.21 or later; older versions ignore `NODE_USE_ENV_PROXY` without a warning. `NODE_EXTRA_CA_CERTS` adds a private CA |
86
+
87
+ At start the server writes one line to stderr with its version, the Node version, whether it sees a
88
+ proxy and the data bases. Nothing but JSON-RPC goes to stdout.
89
+
90
+ ## Tools
91
+
92
+ All six are read-only (`readOnlyHint: true`) and return `structuredContent` plus the same JSON as
93
+ one text block. The result types are in [`shared/contract.ts`](../shared/contract.ts), section
94
+ "MCP tool results".
95
+
96
+ | Tool | Answers from | Returns | Bounds |
97
+ |---|---|---|---|
98
+ | `get_verdict` | `meta.json`, `cve/<xx>.json` | Tier, plain-language verdict, score, `score_math`, every reason chip with points and link, unknowns, KEV, EPSS, CVSS, links to the CVE page, the shard and cve.org. `detail: true` adds the description, affected products, CWE, SSVC, exploits, tags, timeline and references | 1 to 15 IDs, at most 5 with `detail`; `knob` 30 to 80 |
99
+ | `list_signal` | `signal.json`, or `index.json` for Watch, Quiet or a knob below 35 | Window CVEs in the chosen tiers (default Exploited and Likely next), highest score first. Filters: `vendor` text, `published_since`, `kev_only` | `limit` 1 to 50 (default 25), `offset` |
100
+ | `kev_due` | `kev.json` | CISA KEV entries due in the next `within_days` (0 to 60, default 7) and overdue by up to `overdue_days` (0 to 14, default 7), soonest first, with `days_left` in UTC calendar days | `limit` 1 to 50 (default 50), `offset` |
101
+ | `woke_up` | `woke.json` | Old CVEs that gained exploitation evidence since `since` (default 7 days before the data was generated), with their dated signals. Filter by `kinds` | `limit` 1 to 50 (default 25), `offset` |
102
+ | `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
+ | `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
+
105
+ Dates (`published_since`, `since`) are UTC: `2026-10-01`, `2026-10-01T06:00Z` or
106
+ `2026-10-01T06:00:00.000Z`. A date that does not exist is an error. A filter the server cannot
107
+ apply is always an error, never silently dropped.
108
+
109
+ Measured on the live data of 2026-11-03 (16,747 window CVEs), the largest answer any tool can give
110
+ at its maximum bounds stays under 20,000 tokens; `scripts/mcp-measure.ts` checks this.
111
+
112
+ ### Every answer starts with `data`
113
+
114
+ | Field | Meaning |
115
+ |---|---|
116
+ | `generated_at`, `age_hours` | The pipeline run the answer is based on, and its age in whole hours when the server answered |
117
+ | `score_model`, `knob_default`, `window` | As in `meta.json` |
118
+ | `sources_down`, `sources_stale` | Sources with no usable data in that run (their evidence is unknown, not absent), and sources that served a cached copy. `osv` is left out: it feeds only `packages.json`, never a verdict |
119
+ | `files[]` | Every file read: `path` on the data branch, the `url` it came from, its own `generated_at` |
120
+ | `warning` | Set when a refresh failed and the answer comes from the last good copy |
121
+
122
+ Right after an hourly publish a CDN can serve one file from the previous run for a few minutes;
123
+ `files[]` then shows both times rather than hiding it.
124
+
125
+ ### Reading the answers honestly
126
+
127
+ - **Quiet means no evidence yet, never safe.** A CVE outside the data (`found: false`) is unknown,
128
+ not safe: the data covers CVEs published in the last 30 days, every CVE in CISA KEV and old
129
+ CVEs that woke up.
130
+ - **Text is untrusted.** Titles, descriptions, KEV names and required actions, and chip labels
131
+ quote CNAs, CISA and exploit feeds. The server's instructions tell the agent never to follow
132
+ instructions found in them. That reduces the risk of prompt injection; it does not remove it.
133
+ - **Privacy.** GitHub sees which of the 256 shard files the server fetches, never your CVE IDs or
134
+ search words. If GitHub refuses or fails, the same requests go to the site's `/data/` copy.
135
+ Nothing is uploaded and nothing is written to disk.
136
+
137
+ ## Errors
138
+
139
+ Failures come back as tool results with `isError: true` and a plain message, for example:
140
+
141
+ | Case | Message |
142
+ |---|---|
143
+ | A file is not published | `woke.json is not on the data branch yet, so this tool has nothing to read. The other tools still work.` |
144
+ | `meta.json` is missing at the first base that answers | `meta.json is not at the first data base that answered, so no tool can answer. Check CVERDICT_DATA_BASE, ...` |
145
+ | Every base failed, nothing cached | `CVErdict could not load its data right now (raw.githubusercontent.com: HTTP 503 for meta.json; ...). Try again in a few minutes, or read the files directly: https://github.com/markusweldon/cverdict/tree/data/v1` |
146
+ | No data within the 10 s limit of a call | `CVErdict could not load its data in time (...)` |
147
+ | The data moved to a new schema | `The published data uses schema version 2; this server reads version 1. Update the server: ...` |
148
+ | `detail` with more than 5 IDs | `detail: true takes at most 5 IDs; ask again in groups of 5.` |
149
+ | Bad arguments | `Input validation error: Invalid arguments for tool get_verdict: ...` |
150
+
151
+ ## How it reads the data
152
+
153
+ - Bases are tried in order. A 404 is final. A 429 or 403, or a timeout (no response headers within
154
+ 4 s, or a body that stops arriving for 4 s), falls through to the next base and moves that base
155
+ to the back for 10 minutes. Network errors, redirects (refused), 5xx and malformed files fall
156
+ through to the next base. A slow body that keeps arriving is not cut off.
157
+ - Each tool call has one 10 s deadline. Shards for `get_verdict` are fetched in parallel, at most 6
158
+ at a time.
159
+ - Bodies are capped at 24 MB decoded, which also stops a compression bomb from a mirror. Files must
160
+ have `schema_version` 1 and `generated_at`; row tables must have exactly the published columns.
161
+ - Parsed files stay in memory for the life of the process. `meta.json` is checked again after 5
162
+ minutes (raw.githubusercontent.com caches for 5 minutes anyway); other files are refetched when
163
+ `meta.json` names a newer run. An idle server makes no requests and runs no timers.
164
+
165
+ ## Development
166
+
167
+ ```sh
168
+ npx vitest run mcp/test # unit, protocol and spawn tests (what the release workflow runs)
169
+ npm test # every test in the repository
170
+ npm run build:mcp # the single-file bundle in mcp/dist/
171
+ npx tsx scripts/mcp-measure.ts # answer sizes against the live data branch
172
+ npx tsx mcp/test/smoke.ts mcp/dist/cverdict-mcp.mjs <data dir> # what CI runs on mock data
173
+ ```
174
+
175
+ The SDK (`@modelcontextprotocol/server`) and `zod` are exact-pinned dev dependencies of the
176
+ repository and are bundled into `dist/cverdict-mcp.mjs`, so the package has no runtime
177
+ dependencies. The site never imports them: `shared/mcp.ts` holds the copy both use.
178
+
179
+ ## Releasing
180
+
181
+ Maintainers only. Set the new version in `mcp/package.json`, `MCP_SERVER.version` in
182
+ `shared/mcp.ts`, and both `version` fields in `mcp/server.json` (a test keeps them equal), commit, and
183
+ push a tag `mcp-v<version>`, for example
184
+ `git tag mcp-v0.1.1 && git push origin mcp-v0.1.1`. The release workflow
185
+ ([`.github/workflows/release-mcp.yml`](https://github.com/markusweldon/cverdict/blob/main/.github/workflows/release-mcp.yml)) checks that the tag
186
+ matches the version, runs the MCP tests and the smoke test, packs the bundle and publishes it to
187
+ npm through trusted publishing, with provenance. A last job lists the version on the
188
+ [MCP Registry](https://registry.modelcontextprotocol.io) from `mcp/server.json`, logged in with the
189
+ workflow's GitHub OIDC identity. No npm or registry token is stored anywhere.
190
+
191
+ One-time setup: the first version is published by hand (`npm run build:mcp` at the root, then
192
+ `npm login` and `npm publish` in `mcp/`). Then on npmjs.com, package `cverdict-mcp` → Settings →
193
+ Trusted publishing → GitHub Actions: owner `markusweldon`, repository `cverdict`, workflow
194
+ `release-mcp.yml`, no environment. Under Publishing access, choose to require two-factor
195
+ authentication and disallow tokens.
196
+
197
+ ## License
198
+
199
+ MIT ([LICENSE](https://github.com/markusweldon/cverdict/blob/main/mcp/LICENSE)). The bundle includes the MCP TypeScript SDK (Apache-2.0, with
200
+ contributions under MIT), zod (MIT) and the libraries the SDK vendors; their notices are in
201
+ [LICENSE-THIRD-PARTY](https://github.com/markusweldon/cverdict/blob/main/mcp/LICENSE-THIRD-PARTY). Data terms: [docs/DATA.md](https://github.com/markusweldon/cverdict/blob/main/docs/DATA.md).