@vantageos/mcp-doctor 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +55 -1
- package/dist/doctor.js +576 -200
- package/package.json +10 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@vantageos/mcp-doctor` are documented here.
|
|
4
4
|
This project adheres to [Semantic Versioning](https://semver.org/).
|
|
5
|
+
Unreleased changes live as one fragment per pull request in `changelog.d/`, folded in here at release time.
|
|
6
|
+
|
|
7
|
+
## 0.14.0 — 2026-11-01
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- **Changelog entries are per-PR fragments.** A pull request adds `changelog.d/<branch>.md` (frontmatter `section:`) instead of editing `CHANGELOG.md`; `node scripts/changelog-assemble.mjs --version <x.y.z>` folds them in at release (`--check` validates, run by `npm test`). Merging one PR no longer makes every other open PR conflict on the same `## Unreleased` block. Assembler reused from vantage-peers (0107cb0d), headers adapted to `## <version> — <date>`. (README: #changelog-fragments-for-contributors)
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **`scripts/changelog-assemble.mjs` runs when invoked through a symlink.** Its entry guard compared `argv[1]` (the link) with `import.meta.url` (the real file), so a run through a link exited 0 without checking. Both sides now go through `realpathSync`. This is the same fix as `@vantageos/mcp-boilerplate` 0.6.1, and a test runs the script through a symlink. (README: #changelog-fragments-for-contributors)
|
|
14
|
+
- **D16 credits a version served from the server manifest.** `/health` serving `manifest.version`, where `manifest` comes from @vantageos/mcp-boilerplate's `loadServerManifest` (`mcp-server.json`), directly or through a same-file function, was could-not-judge ("not a resolvable package.json binding"). It is now read as package.json's version exactly when `mcp-server.json` carries the same version as `package.json` (C-18 requires them equal); with differing versions the source stays unreadable. Measured on vantage-neoteem-mcp @ cabcafa2: D16 could-not-judge -> present. (README: #d16-credits-a-version-served-from-mcp-serverjson)
|
|
15
|
+
- **D10 and C19 read a description computed by a translation call.** `description: t("en", "<key>")` and `_meta: { description_fr: t("fr", "<key>") }` were could-not-judge ("not a string literal"). They are now read back through the in-tree locales JSON (`src/detectors/i18nKeys.ts`). The form read: `<fn>("<locale>", "<key>")`, where `<fn>` is imported from a relative module whose source names `locales/<…>.json`, and the key resolves to a non-empty string in `<module dir>/locales/<locale>.json`. Any departure is could-not-judge naming the reason. D10 also skips an optional TYPE member `description_fr?: …`, which declares a shape, not a value. Measured on vantage-neoteem-mcp @ cabcafa2: C19 could-not-judge -> present (20 tools); D10 could-not-judge -> non-conforming (README.fr.md missing, a real finding, traced to that server); could-not-judge 26 -> 24. (README: #d10-and-c19-read-a-translated-description)
|
|
16
|
+
- **S-22 no longer reads an outbound client's `allowedOrigins` as the inbound allow-list.** `createPaginatedUpstreamClient({ allowedOrigins: [origin] })` restricts where the server's own requests may go (S-10), not which browser origins may call `/mcp`; it held vantage-neoteem-mcp at could-not-judge ("allowedOrigins is given by `origin`"). The calls that take the option are derived from @vantageos/mcp-boilerplate 0.5.0 (`httpApp.d.ts:59` inbound, `settings.d.ts` declared variable, `upstream/paginatedClient.d.ts:78` outbound); only the outbound one is skipped, any other callee is still judged. Measured: vantage-neoteem-mcp @ cabcafa2 — S22 could-not-judge -> present (the 403 in `src/app.ts:202`, the declared originList `MCP_ALLOWED_ORIGINS`). (README: #s-22-skips-an-outbound-clients-allowedorigins)
|
|
17
|
+
- **S-37 reads two forms it reported as unread.**
|
|
18
|
+
- `env[name]` inside `for (const name of L)`, where `L` is a same-file literal list, reads the listed names. Each is judged like any read.
|
|
19
|
+
- A declaration whose `env` is a member read `<x>.<key>`, with `<key>` declared elsewhere with a literal env, is an indirection: the variable's name is configuration held by that declared variable.
|
|
20
|
+
- A non-literal list element, or a member read of an undeclared key, stays could-not-judge.
|
|
21
|
+
- Inside the loop, the variable may appear only as `env[<id>]` or as a value in an object literal (`{ source: <id> }` after `return` or a lone `=`). Any other occurrence, a destructured parameter or catch binding included, leaves the read could-not-judge. (README: #s-37-reads-a-literal-list-of-variable-names-and-a-declared-variable-indirection)
|
|
22
|
+
|
|
23
|
+
Measured on vantage-neoteem-mcp @ cabcafa2: S37 could-not-judge -> non-conforming. `src/app.ts:114` reads `RAILWAY_GIT_COMMIT_SHA` and `GIT_COMMIT_SHA` without declaring them; this is what the rule says as written, with only `NODE_ENV` exempt.
|
|
24
|
+
- **The upstream rules see through a decorating `registerTool` rebind and a literal method list.** Two cases are no longer reported as unread registration routes:
|
|
25
|
+
- a rebind `const X = server.registerTool.bind(server); server.registerTool = (name, config, handler) => X(name, <rewritten config>, <wrapped handler>)` that forwards the tool name unchanged first and only CALLS the original handler (one call of the original);
|
|
26
|
+
- `setRequestHandler(method, …)` over `for (const method of L)`, where `L` is a same-file literal list without `tools/call`. (README: #upstream-rules-see-through-a-decorating-registertool-rebind-and-s-40-fails-closed)
|
|
27
|
+
|
|
28
|
+
Any departure stays unread, named.
|
|
29
|
+
- **S-40 fails closed:** a tree that calls an upstream and registers tools, with no handler traced to the call, is could-not-judge, never "no tool serves upstream rows". (README: #upstream-rules-see-through-a-decorating-registertool-rebind-and-s-40-fails-closed)
|
|
30
|
+
|
|
31
|
+
Measured on vantage-neoteem-mcp @ cabcafa2: S39 could-not-judge -> present; S36, S40 and S41 now name their remaining gap instead of the rebind; could-not-judge 26 -> 25.
|
|
5
32
|
|
|
6
33
|
## 0.13.2 — 2026-11-01
|
|
7
34
|
|
package/README.md
CHANGED
|
@@ -224,7 +224,61 @@ an error message) it counts only as code or as a quoted property key.
|
|
|
224
224
|
| **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) |
|
|
225
225
|
| **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) |
|
|
226
226
|
|
|
227
|
-
###
|
|
227
|
+
### Changes in 0.14.0 (standard `c29f83d5`)
|
|
228
|
+
|
|
229
|
+
Six readers stopped reporting could-not-judge on real servers, and one stopped calling a correct server
|
|
230
|
+
non-conforming. Every rule still fails closed: a form the reader does not recognise is named, never passed.
|
|
231
|
+
Measured on vantage-neoteem-mcp (a real Pujol server) unless stated otherwise.
|
|
232
|
+
|
|
233
|
+
#### S-37 reads a literal list of variable names and a declared-variable indirection
|
|
234
|
+
|
|
235
|
+
- `env[name]` inside `for (const name of L)`, where `L` is a same-file literal list
|
|
236
|
+
(`const L = ["A", "B"] as const`), now reads the listed names, each judged like any environment read.
|
|
237
|
+
- The list resolves only under an **occurrence invariant**. Every occurrence of `L` in the file must be its one
|
|
238
|
+
literal declaration or a `for … of L` loop head. Inside the loop, the variable may appear only as `env[name]` or
|
|
239
|
+
as a value in an object literal (`return { source: name }`, `const r = { source: name }`). Any other occurrence
|
|
240
|
+
(a parameter, an import, a return of the list, a destructuring, a catch binding) leaves the read could-not-judge.
|
|
241
|
+
- A declaration whose `env` is `settings.<key>`, with `<key>` itself declared with a literal env, is an
|
|
242
|
+
indirection. The variable's name is configuration held by that declared variable.
|
|
243
|
+
- Effect on neoteem: S-37 went from could-not-judge to non-conforming (the commit variables it read were
|
|
244
|
+
undeclared). Neoteem then declared them, and it now reads present.
|
|
245
|
+
|
|
246
|
+
#### Upstream rules see through a decorating registerTool rebind and S-40 fails closed
|
|
247
|
+
|
|
248
|
+
- `const X = server.registerTool.bind(server); server.registerTool = (name, config, handler) => X(name, …, …)` is
|
|
249
|
+
read as a registration route when it forwards the name unchanged and calls the original handler once.
|
|
250
|
+
- `setRequestHandler(method, …)` over `for (const method of L)`, with `L` a same-file literal list without
|
|
251
|
+
`tools/call`, is read the same way, under the same occurrence invariant as S-37 (here the variable may appear
|
|
252
|
+
only as a method-call argument).
|
|
253
|
+
- S-40: a tree that calls an upstream and registers tools, with no handler traced to the call, is could-not-judge,
|
|
254
|
+
never "no tool serves upstream rows".
|
|
255
|
+
|
|
256
|
+
#### S-22 skips an outbound client's allowedOrigins
|
|
257
|
+
|
|
258
|
+
`createPaginatedUpstreamClient({ allowedOrigins })` restricts where the server's own requests go (S-10). It is not
|
|
259
|
+
the browser-origin allow-list of `/mcp`, and S-22 no longer reads it as one. The callees are derived from
|
|
260
|
+
@vantageos/mcp-boilerplate 0.5.0. Only the outbound one is skipped, and any other callee is still judged.
|
|
261
|
+
|
|
262
|
+
#### D10 and C19 read a translated description
|
|
263
|
+
|
|
264
|
+
`description: t("en", "<key>")` and `_meta: { description_fr: t("fr", "<key>") }` are read through the in-tree
|
|
265
|
+
locales JSON (`<module dir>/locales/<locale>.json`) when `t` is imported from a relative module that names those
|
|
266
|
+
files. D10 accepts the French text only from the `fr` locale. Any other form is could-not-judge, naming why.
|
|
267
|
+
|
|
268
|
+
#### D16 credits a version served from mcp-server.json
|
|
269
|
+
|
|
270
|
+
`/health` serving `manifest.version`, with `manifest` from @vantageos/mcp-boilerplate's `loadServerManifest`, reads
|
|
271
|
+
as package.json's version, but only when `mcp-server.json` carries the same version as `package.json` (C-18). With
|
|
272
|
+
differing versions it stays unreadable.
|
|
273
|
+
|
|
274
|
+
#### Changelog fragments for contributors
|
|
275
|
+
|
|
276
|
+
A pull request adds `changelog.d/<branch>.md` (frontmatter `section:`) instead of editing `CHANGELOG.md`.
|
|
277
|
+
`node scripts/changelog-assemble.mjs --version <x.y.z>` folds the fragments at release, and `--check` runs in
|
|
278
|
+
`npm test`. Each entry carries `(README: #<anchor>)` naming the README section that documents it, and
|
|
279
|
+
`npm test` refuses an entry without one. The assembler also runs when invoked through a symlink.
|
|
280
|
+
|
|
281
|
+
### Added in 0.13.0 — S-43 (standard `c29f83d5` = mcp-server-standard v2.7, PR #299)
|
|
228
282
|
|
|
229
283
|
| ID | Rule | The static run reads | Verdicts |
|
|
230
284
|
|----|------|----------------------|----------|
|