@vantageos/mcp-doctor 0.8.3 → 0.9.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/CHANGELOG.md +60 -0
- package/README.md +21 -0
- package/dist/doctor.js +6339 -2667
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,66 @@
|
|
|
3
3
|
All notable changes to `@vantageos/mcp-doctor` are documented here.
|
|
4
4
|
This project adheres to [Semantic Versioning](https://semver.org/).
|
|
5
5
|
|
|
6
|
+
## 0.9.1 — 2026-10-28
|
|
7
|
+
|
|
8
|
+
Two could-not-judge classes of S-36..S-41 that were false, found by running 0.9.0 on
|
|
9
|
+
`@vantageos/mcp-boilerplate` 0.4.0 (main `d34e9f05`). Both vocabularies are derived, and each keeps a
|
|
10
|
+
fail-closed remainder.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **A Node core `createServer` is not an outbound call.** `createServer` of `node:http`, `node:https` and
|
|
14
|
+
`node:http2` builds an inbound server; it makes no request, yet S-36..S-41 named it as "an outbound HTTP call
|
|
15
|
+
through a form the scan does not follow". What a call through a Node core networking binding does is now read
|
|
16
|
+
from the module's export: `src/detectors/nodeCoreExports.ts` classifies every export of `http`, `https`,
|
|
17
|
+
`http2`, `net`, `tls` and `dgram` as `outbound` or `not-a-request`. A test derives the export list from the
|
|
18
|
+
running Node (`Object.keys(require("node:<module>"))`) and fails, naming each, when one is unclassified. An
|
|
19
|
+
unclassified member, `request`, `get`, `connect` and every ambiguous one (`Socket`, `WebSocket`,
|
|
20
|
+
`ClientRequest`) stay named.
|
|
21
|
+
- **A forwarding rebind of a registration method is transparent.** `const register = server.registerTool.bind(server);
|
|
22
|
+
server.registerTool = (name, config, cb) => register(name, config, cb)` (the boilerplate's `trackToolRecords`)
|
|
23
|
+
no longer makes every S-36..S-41 could-not-judge "by a route the scan does not read". It is transparent only
|
|
24
|
+
when all of this is proven: one `.bind(server)` original, one assignment of a function literal, that function
|
|
25
|
+
forwards exactly its own parameters, in order, to the original, the original is referenced nowhere else
|
|
26
|
+
in the file, and the tree registers tools by direct calls the scan reads. A `typeof server.registerTool`
|
|
27
|
+
type query is no route. Anything else (a wrapper that does not forward, that alters an argument, whose original
|
|
28
|
+
escapes, the method passed or returned as a value, a computed member) stays named, with the reason it is not
|
|
29
|
+
proven.
|
|
30
|
+
Forwarding the parameters' NAMES is not enough: the wrapper must also leave every parameter untouched. A
|
|
31
|
+
parameter that is re-assigned or re-declared (`callback = ...`, `name += ...`, a destructuring target), mutated
|
|
32
|
+
(`config.x = ...`, `delete config.x`, `Object.assign(config, ...)`), passed to any other call, stored, or
|
|
33
|
+
indexed, or a body that reads `arguments`, keeps the route named, with the touching statement. A member read
|
|
34
|
+
that only copies or tests (`{ ...config.annotations }`, `if (config.annotations)`) is kept.
|
|
35
|
+
|
|
36
|
+
## 0.9.0 — 2026-10-25
|
|
37
|
+
|
|
38
|
+
Standard re-pinned to ElPi-Corp `015053b7268125cf441d7555fecfe41f318a06ed` (mcp-standard v2.7, ElPi-Corp
|
|
39
|
+
#279). Coverage is derived, never typed here:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
npx tsx scripts/standard-coverage.ts 015053b7268125cf441d7555fecfe41f318a06ed <ElPi-Corp checkout>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
- **S36..S41**, the section "Third-party upstream API" (task k177spssq8c4y2vd0zbmdjt70s8gzaty):
|
|
47
|
+
- S-36: the outbound credential.
|
|
48
|
+
- S-37: declared upstream settings.
|
|
49
|
+
- S-38: a bounded upstream call.
|
|
50
|
+
- S-39: typed upstream errors.
|
|
51
|
+
- S-40: rows narrowed to the verified caller. Each tool serving upstream rows is listed as an owed human
|
|
52
|
+
verdict (C-23).
|
|
53
|
+
- S-41: a read-only data-lake reader.
|
|
54
|
+
|
|
55
|
+
Each one implements the static half of the standard's detector specification. The dynamic half is named
|
|
56
|
+
in the verdict as owed. A form the scan cannot follow is could-not-judge.
|
|
57
|
+
|
|
58
|
+
### Changed
|
|
59
|
+
- **C-10** accepts `upstream-delegated(<upstream>)`. It is red when the name is empty, a URL, or not a
|
|
60
|
+
declared upstream, and could-not-judge when no `upstreams` declaration is found. That declaration form is
|
|
61
|
+
the doctor's convention until the standard fixes one.
|
|
62
|
+
- **Behaviour:** trees that call third-party APIs can now turn red on S-37, S-38 or S-39. On readable input,
|
|
63
|
+
every pre-existing rule keeps its verdict: 0.8.3 and 0.9.0 give identical (state, verdict) results for
|
|
64
|
+
every 0.8.3 rule on five trees.
|
|
65
|
+
|
|
6
66
|
## 0.8.3 — 2026-10-25
|
|
7
67
|
|
|
8
68
|
### Fixed
|
package/README.md
CHANGED
|
@@ -213,6 +213,27 @@ an error message) it counts only as code or as a quoted property key.
|
|
|
213
213
|
| **A4** wcag-axe-gate | A-4 | an axe dependency and a script, workflow or test that runs it | absent / non-conforming / could-not-judge (0 blocking violations is the owed gate) |
|
|
214
214
|
| **A5** performance-budgets | A-5 | gzipped size of the UI bundle files (`dist/` and `build/` read for size only): one file or one directory over 250 KB | absent / non-conforming / could-not-judge (render, roundtrip, memory probes owed) |
|
|
215
215
|
|
|
216
|
+
### Changes in 0.9.0 (standard `015053b7` = mcp-standard v2.7, "Third-party upstream API")
|
|
217
|
+
|
|
218
|
+
| ID | Rule | The static run reads |
|
|
219
|
+
|----|------|----------------------|
|
|
220
|
+
| **S36** upstream-credential | S-36 | the `client_credentials` grant, where the token source is built, its cache and expiry, the 401 path, the tenancy key, secrets near logs, errors and results |
|
|
221
|
+
| **S37** upstream-settings | S-37 | environment reads against the declared variables, literal upstream addresses, URL variables, secret flags, defaults on required variables |
|
|
222
|
+
| **S38** bounded-upstream-call | S-38 | page walks and their ceiling, page size, cursor wrapping, retry bounds and `Retry-After`, the origin check, redirect options |
|
|
223
|
+
| **S39** upstream-error | S-39 | time budgets, `isError` results and what is interpolated into them, catch sites, empty-success fallbacks |
|
|
224
|
+
| **S40** upstream-rows-narrowed | S-40 | how the person is resolved, the package narrowing, the refusal paths; each tool serving upstream rows is listed as an owed human verdict (C-23) |
|
|
225
|
+
| **S41** lake-reader | S-41 | the reader interface, the kind of each store call, the page check, the upstream reached only on a lake miss |
|
|
226
|
+
|
|
227
|
+
**Limit, declared.** An outbound call is recognised through `fetch`, `axios`, `got`, `ky`, `node:http(s)`, `undici` and the other HTTP-client modules named in `HTTP_CLIENT_MODULE` (`src/detectors/upstreamKit.ts`). A server that reaches its upstream only through a vendor SDK outside that list, under a name the scan does not know, reads `absent` on S36..S41: the doctor does not see the call. A tool registered from a definitions array, or a handler passed by reference, is could-not-judge naming the registration call.
|
|
228
|
+
|
|
229
|
+
**C-10** accepts `upstream-delegated(<upstream>)`. It is red when the name is empty, a URL, or not a declared
|
|
230
|
+
upstream. The standard does not fix how an upstream is declared, so the doctor reads an `upstreams` key, in a
|
|
231
|
+
JSON manifest or in a TypeScript list or object. If no declaration is found, C-10 is could-not-judge.
|
|
232
|
+
|
|
233
|
+
All six rules are static + dynamic in the standard. This release runs the static half only, and each verdict
|
|
234
|
+
names the dynamic half it owes. **Behaviour change:** a server that calls `fetch` without a ceiling, a retry
|
|
235
|
+
bound or a typed error can now turn red on S-38 or S-39, where 0.8.x said nothing.
|
|
236
|
+
|
|
216
237
|
### Changes in 0.8.1 (standard `6d463a1e` = v2.6 `24c1ffc9` + S-35)
|
|
217
238
|
|
|
218
239
|
| ID | Rule | The static run reads | Verdicts |
|