@vantageos/mcp-doctor 0.22.0 → 0.23.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 CHANGED
@@ -4,6 +4,15 @@ All notable changes to `@vantageos/mcp-doctor` are documented here.
4
4
  This project adheres to [Semantic Versioning](https://semver.org/).
5
5
  Unreleased changes live as one fragment per pull request in `changelog.d/`, folded in here at release time.
6
6
 
7
+ ## 0.23.0 — 2026-11-25
8
+
9
+ ### Added
10
+ - **C-41: a `@vantageos/*` dependency behind its latest published version is refused.** Every `@vantageos/*` declaration in every `package.json` of the tree (the four dependency fields) is read against the npm registry: a spec that does not select the `latest` dist-tag is non-conforming, naming package, spec, latest, manifest and field; an unreadable registry, an unreadable manifest or a non-registry spec is could-not-judge, never a pass; no declaration reads absent. Ranges are read by npm itself. Pinned to ElPi-Corp `173d3f0b` (mcp-standard v2.19, PR #364). Task k177aqhhm1gz0at6rex6j9fped8jwfyw. (README: #c-41-reports-a-vantageos-dependency-behind-its-latest-published-version)
11
+
12
+ ### Fixed
13
+ - **S-5 (g)(l) and S-46 read an installed package's facts only in the files it serves, derived from its declared entry points.** The installed authorization-server reader skipped a hand-written list of eight directory names, so a fact stated in a shipped `fixture/`, `spec/`, `e2e/`, `mocks/` or `docs/` file (or `Tests/`) was read as what the package serves. It now reads the targets of `exports` / `main` / `module` / `bin` and the files they load through relative imports, transitively, and names the files left out and every import it does not follow; a package declaring none of those fields falls back to the name list, now case-insensitive and covering `spec(s)`, `fixture`, `e2e`, `mocks`, `samples`, `demo`, `docs`, `test-utils`, `__test__`. Every name of that list, and the S-5 text naming the package the facts came from, is now pinned by a test. (README: #s-5-gl-read-from-an-installed-authorization-server)
14
+ - **S-5 (g)(l) and S-46 no longer establish an installed fact from a fixture or from two packages.** The installed authorization-server reader took a fact from any `.js/.mjs/.cjs/.json` file of a declared package, test and example fixtures included, and combined facts across publisher packages, so a fixture or a cross-package merge could turn (g) `ok`. A fact now counts only in a file that carries the well-known route literal, inside one publisher package, outside test/example directories; anything else is owed to the served metadata. The unread `authMethodsKeyWithoutNone` field is removed. Under `--url`, a new test asserts that an authenticated request answered 302 or 307 to a same-origin target re-sends nothing to that target and reads could-not-judge naming the status. (README: #s-5-gl-read-from-an-installed-authorization-server)
15
+
7
16
  ## 0.22.0 — 2026-11-24
8
17
 
9
18
  ### Changed
package/README.md CHANGED
@@ -344,60 +344,9 @@ Each detector maps one standard item and is proven **bipolar** on real material:
344
344
 
345
345
  ### Detectors without a row in the release tables (back-filled)
346
346
 
347
- Registered detectors that no description table above or below documents, in registry order; each row is read from the detector's own source file. The last eight (S-35..S-41, C-36) were introduced in a "Changes in" release note, which records a release and does not cover a detector.
348
-
349
- | ID | Rule | The static run reads | Verdicts |
350
- |----|------|----------------------|----------|
351
- | **D8** eval-suite-coverage | C-5 (the >=3-cases count half) | registered tools against the case count per tool in `evals/evals.json` | absent (no tool) / present / non-conforming (including tools registered and no eval file) / could-not-judge |
352
- | **D9** semver+changelog | C-3 | `package.json` `version` against strict SemVer, and `CHANGELOG.md` beside it | present / non-conforming (including no `CHANGELOG.md`) / could-not-judge |
353
- | **D10** bilingual | C-1 | `description_fr` in `package.json` or in source, `README.fr.md`, and its listing in `files[]` | present / non-conforming / could-not-judge |
354
- | **D11** zod-schemas | C-4 | `z.any()` per line, and tool registrations against `outputSchema` occurrences tree-wide (not per tool) | absent (no tool) / present / non-conforming / could-not-judge |
355
- | **D12** stdio-transport | S-1 | `StdioServerTransport`, a `package.json` `bin` entry, or a stdio `transport` declared in the server manifest (`mcp.json` / `mcp-server.json`), against an HTTP/Streamable transport | absent (no transport signal and no MCP server surface) / present / non-conforming / could-not-judge (an MCP server with no transport signal, or an unparseable `package.json`) |
356
- | **C7** artifact-verifiable | C-7 | `README.md` / `README.fr.md`: one-command install naming a registry, version pin, two obtain channels, provenance or checksum | present / non-conforming / could-not-judge |
357
- | **C8** authority-declared | C-8 | each registered tool's `authRead` / `authWrite` pair in the closed 5-tier set (a folded `auth` refused) | absent (no tool) / present / non-conforming / could-not-judge |
358
- | **C9** verb-declared | C-9 | each registered tool's `annotations.verb` in the closed set (`rpc` refused) | absent (no tool) / present / non-conforming / could-not-judge |
359
- | **C10** mechanism-declared | C-10 | each list/search tool's `annotations.searchMechanism` in the closed set (`unindexed-scan` refused); an `indexed-*` claim checked against the data layer's source on every filter path (see [C-10 reads the data layer](#c-10-reads-the-data-layer-v212)) | absent (no list/search tool) / present / non-conforming / could-not-judge |
360
- | **C11** pagination-declared-applied | C-11 | each list/search tool's cursor, default and finite max in its annotations or `inputSchema` | absent (no paginable tool) / present / non-conforming / could-not-judge |
361
- | **C12** no-duplicates | C-12 | the (verb, table, mechanism) triplet of every tool declaring verb and table | absent (no tool) / present / non-conforming / could-not-judge |
362
- | **C13** context-ceiling | C-13 | each tool's `tokensEstimeContexte` against the declared (global, perTool) context ceiling | absent (no tool) / present / non-conforming / could-not-judge |
363
- | **C14** catalog-registration | C-14 | the `mcpCatalog` block in `package.json` and its required fields | absent (no block) / non-conforming / could-not-judge (complete block; registry resolution owed) |
364
- | **C15** annotations-untrusted | C-15 | each tool's four behavioral hints and title, read/write enum parameters, and consumer auto-approval off a hint | absent (no tool) / present / non-conforming / could-not-judge |
365
- | **C16** untrusted-output | C-16 | template interpolation into instruction positions and its trust-boundary marker, and free-body strings in event payloads | absent (no interpolation site) / present / non-conforming |
366
- | **C17** supply-chain | C-17 | a committed lockfile, and a provenance claim (`publishConfig`, `.github/workflows/*.yml`) or a provenance record | present / non-conforming / could-not-judge |
367
- | **C18** structure-manifest | C-18 | the root `mcp.json` / `mcp-server.json` or `extension.json`: required fields and version against `package.json` | present / non-conforming / could-not-judge |
368
- | **C19** served-descriptions | C-19 | an inline source description on each registered tool (presence proxy; the served text is the dynamic run) | absent (no tool) / present / non-conforming / could-not-judge |
369
- | **C20** locales-derived | C-20 | locale files under `src/i18n/` against hardcoded locale enumerations elsewhere | absent (no `src/i18n/`) / present / non-conforming |
370
- | **C21** progressive-disclosure | C-21 | nothing: the connection load is measured only with a live session | could-not-judge (static run of an MCP server: not measured) / absent (not an MCP server) |
371
- | **C22** test-ratio-gate | C-22 | test/coverage ratios cited in `README.md`, `README.fr.md`, `CHANGELOG.md` and their passage identifier | absent (no ratio cited) / non-conforming / could-not-judge |
372
- | **C25** build-identity | C-25 | the `new McpServer(...)` / `new Server(...)` arguments and a `/health` route: a build-fed identity field beside `version` | absent (no construction) / present / non-conforming / could-not-judge |
373
- | **C26** subpackage-lockfile | C-26 | deployment configs (`railway.json`, `Dockerfile`, `fly.toml`, ...) and a frozen install of each targeted subpackage in isolation | absent (no deployment config) / present / non-conforming / could-not-judge (also: every site skipped as not npm-managed, its lockfile not measured) |
374
- | **A2** declared-domains | A-2 | network and frame targets in the UI code against the `_meta.ui.csp` lists, and the single-file bundle | absent (no `ui://` resource) / present / non-conforming / could-not-judge |
375
- | **A7** consent-before-destructive | A-7 | the gate logic: event-origin approvals, `destructiveHint`-only skips, explicit confirmation requests | absent (not an App and no tool call) / present / non-conforming / could-not-judge (also: an App or a tool call with no confirmation, or a request whose method is an expression) |
376
- | **S12** list-pagination | S-12 | `nextCursor` in each hand-registered protocol list handler, and code that decodes a cursor | absent (no list method served) / present / non-conforming / could-not-judge |
377
- | **DServer2** naming | C-2 | tool names (snake_case, 64-character cap) and the `package.json` name (kebab-case) | present / non-conforming / could-not-judge |
378
- | **DServer6** secret-hygiene | C-6 | log calls referencing secrets, PII or internal detail, and raw error traces sent to the client | present / non-conforming / could-not-judge |
379
- | **DDebugOptIn** debug-opt-in | C-6 (debug half) | `.debug(...)` calls and the env/config gate around them | absent (no debug output) / present / non-conforming / could-not-judge |
380
- | **DServer8** ui-fallback | A-1 | each `content[]` emitting a `ui://` resource, and a sibling text/markdown entry | absent (no `ui://` emission) / present / non-conforming / could-not-judge |
381
- | **DServer14** oauth-resource-server | S-5 | the five-element OAuth 2.1 resource-server chain and the `@vantageos/cloud-identity` dependency and range | absent (no resource-server surface, out of S-5's scope: not an MCP server, or stdio only) / present / non-conforming (also: in scope with no surface) / could-not-judge (also: the scope unread — HTTP with no tenancy statement, or no transport wired) |
382
- | **DAppI18n** app-i18n | C-20 | `i18n/fr.json` keys against `i18n/en.json` | absent (no `i18n/`) / present / non-conforming / could-not-judge |
383
- | **DExt1** identifier | E-1 | the reverse-DNS `identifier` in `extension.json` and TS factories, and vendor host-key namespaces against the registry | absent (not an extension: no manifest, no `defineExtension` call, no identifier) / present / non-conforming (including a `defineExtension` call with no `identifier`) / could-not-judge |
384
- | **DExt2** graceful-degradation | E-2 | `graceful_degradation` in `extension.json` and `gracefulDegradation` in `defineExtension` | absent (no flag found) / present / non-conforming / could-not-judge |
385
- | **DExt3** single-type | E-3 | the extension `type` in `extension.json` and `defineExtension`: exactly one known category | absent (no type declared) / present / non-conforming / could-not-judge |
386
- | **DExt4** lifecycle-hooks | E-4 | the manifest `lifecycle` hooks against their implementations (`hooks/` files, factory hooks) | absent (no hook declared) / present / non-conforming / could-not-judge |
387
- | **DExt5** bilingual | C-1 | `description_fr` and `README.fr.md` beside each `extension.json`, and per-tool `description_fr` | absent (no manifest) / present / non-conforming (an FR piece missing) / could-not-judge |
388
- | **DExt7** eval-coverage | C-5 | each extension's `evals/evals.json`: >=3 cases including an "extension absente" case | absent (no manifest) / present / non-conforming / could-not-judge |
389
- | **DExt8** semver+changelog | C-3 | each extension's `package.json` `version` against strict SemVer, and `CHANGELOG.md` beside it | absent (no manifest) / present / non-conforming (including no `CHANGELOG.md`) / could-not-judge |
390
- | **DExt9** hook-timeout | E-6 | each declared lifecycle hook's timeout guard (manifest `timeouts.<hook>` or in its implementation) | absent (no hook declared) / present / non-conforming / could-not-judge |
391
- | **S42** write-read-claims | S-42 | the verified claims each write tool forwards to its backend door against those of the read tools on the same table | absent (no backend door call) / present / non-conforming / could-not-judge |
392
- | **S44** closed-output | S-44 | every object of each tool's output schema closed to added fields (`.strict()`, `additionalProperties: false`, ...) | absent (no tool) / present / non-conforming / could-not-judge |
393
- | **S35** scope-in-read | S-35 | each `<client>.query\|action(<door>, <args>)` and, in the same block, a narrowing of what it returned (`scopeFilterList`, `scopeFilterGet`, a `.filter` on an organisation / namespace / recipient / owner field or the caller context, a skipping branch in a loop) | absent / present / non-conforming / could-not-judge (door named by an expression) |
394
- | **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 | absent (no outbound call, no token source) / present / non-conforming / could-not-judge (unread source) |
395
- | **S37** upstream-settings | S-37 | environment reads against the declared variables, literal upstream addresses, URL variables, secret flags, defaults on required variables | absent (no outbound call, token source, `upstreams` declaration or `defineVariables`) / present / non-conforming / could-not-judge (unread source) |
396
- | **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 | absent (no upstream call to bound) / present / non-conforming / could-not-judge (unread source) |
397
- | **S39** upstream-error | S-39 | time budgets, `isError` results and what is interpolated into them, catch sites, empty-success fallbacks | absent (no outbound call) / present / non-conforming / could-not-judge (unread source) |
398
- | **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) | absent (no tool serves upstream rows) / non-conforming / could-not-judge, with an owed human verdict (C-23) per tool serving upstream rows |
399
- | **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 | absent (no data-lake reader) / present / non-conforming / could-not-judge (unread source) |
400
- | **C36** readme-npm-limit | C-36 | the size of every root `readme*` file a published package ships, against the npm truncation point | absent (not published) / present / non-conforming / could-not-judge (package.json, the package root or a README that cannot be read) |
347
+ Registered detectors that no description table of this README documents, each with its rule, what the static run
348
+ reads and its verdicts, are listed in [analysis/detectors-back-filled.md](analysis/detectors-back-filled.md)
349
+ (moved out of the README, past its own C-36 size limit).
401
350
 
402
351
  ### Detectors added in 0.7.0 (standard `b714129a`, ElPi-Corp #243)
403
352
 
@@ -427,6 +376,26 @@ where the tree contradicts the rule, and otherwise `could-not-judge` naming the
427
376
  | **A11** sandbox-domain-derived | A-11 | a `ui://` resource served over HTTP and a SHA-256 + `.claudemcpcontent.com` derivation | absent / non-conforming / could-not-judge |
428
377
  | **A12** file-write | A-12 | `openai/resources/write`: `ifMatch`, `conflict` + `too-large` handled, received URI only | absent / present / non-conforming |
429
378
 
379
+ #### S-5 (g)(l) read from an installed authorization server
380
+
381
+ When the tree names `/.well-known/oauth-authorization-server` but never writes the metadata document, (g) and (l) are
382
+ read in the declared dependency that serves that route (S-46 reads its registration facts the same way). A fact counts
383
+ only when all three hold: it is stated in a file that itself carries the route literal, inside ONE publisher package
384
+ (facts are never combined across packages, and the S-5 text names that package), and in a file the package actually
385
+ serves. A fact stated anywhere else is owed to the served metadata (`--url`), never established.
386
+
387
+ Which files a package serves is derived, not listed: the targets of `exports`, `main`, `module` and `bin` in its own
388
+ `package.json`, and every file those entry points load through a relative `import` / `export … from` /
389
+ `import("…")` / `require("…")`, transitively. A test suite, a fixture, an example or a doc page ships in the tarball
390
+ but no entry point loads it, so it is never read, whatever its directory is called; the count of files left out is
391
+ named in the unread list, as is every import the reader does not follow (a non-literal `require(name)`, a `#` subpath
392
+ import, an unresolved path). `files` is not used: npm has already applied it, so every installed file is in `files`
393
+ (`@vantageos/mcp-boilerplate@0.11.0` ships `docs`, `skills` and `examples/` that way). Only a package that declares
394
+ none of the four fields falls back to walking the whole package minus the conventional test/fixture/example/doc
395
+ directories, compared case-insensitively — `test`, `tests`, `__test__`, `__tests__`, `test-utils`, `spec`, `specs`,
396
+ `e2e`, `__mocks__`, `mocks`, `__fixtures__`, `fixture`, `fixtures`, `example`, `examples`, `samples`, `demo`, `docs`
397
+ — each skipped directory named as not read.
398
+
430
399
  ### Detectors added in 0.8.0 (standard `b714129a`) — the 27 rules 0.7.0 left uncovered
431
400
 
432
401
  One detector per remaining rule, so `scripts/standard-coverage.ts` derives **91/91**. Each keeps the
@@ -532,6 +501,28 @@ Not probed: `data` against `payloadSchema` (S-33), another principal and restart
532
501
  (S-30), access recheck (S-34). The SSRF canary listens on the probe's own loopback, so a hit is seen only for a
533
502
  server on the same host; for a remote server the answer decides (-32602 passes, -32015 or a result is red).
534
503
 
504
+ ### Added in 0.23.0 — C-41 (standard `173d3f0b` = mcp-standard v2.19, ElPi-Corp PR #364)
505
+
506
+ | ID | Rule | The static run reads | Verdicts |
507
+ |----|------|----------------------|----------|
508
+ | **C41** vantageos-latest | C-41 | every `@vantageos/*` declaration of every `package.json` in the tree, and from the npm registry the `latest` dist-tag and the versions each declared spec selects | absent (no `@vantageos/*` dependency) / present / non-conforming / could-not-judge (registry unreadable, manifest unreadable, or a spec that is not a registry spec) |
509
+
510
+ #### C-41 reports a @vantageos dependency behind its latest published version
511
+
512
+ A fleet server runs the latest published version of the fleet's own packages. C-41 reads every `@vantageos/*`
513
+ declaration in `dependencies`, `devDependencies`, `peerDependencies` and `optionalDependencies` of every `package.json`
514
+ in the tree (a subpackage such as `mcp-server/` is read like the root), and every value `npm:@vantageos/<name>[@<spec>]` under any key (an alias: the value names the package, judged on its
515
+ `<spec>`, or `*` when it has none), then asks the registry, with `npm view`, which
516
+ version `latest` is and which published versions the declared spec selects. npm reads the range itself, so the
517
+ semantics are npm's, never a re-implementation. A spec that does not select `latest` (none at all included) is
518
+ non-conforming, naming the package, the spec, `latest`, the manifest and the field; the lag is reported even when other
519
+ declarations could not be judged, and those are listed with it. A registry that does not answer (offline, refused,
520
+ timeout, unreadable reply) is could-not-judge, never a pass; so is a spec that is not a registry spec (`file:`, `link:`,
521
+ `workspace:`, git, URL, `npm:` alias, `owner/repo`), named. No `@vantageos/*` dependency reads absent.
522
+
523
+ C-41 is the one rule that reads the network on a static run: point npm at a mirror with the usual npm configuration
524
+ (`npm_config_registry`). Answers are cached per run, so a package is asked once.
525
+
535
526
  ### Changes in 0.21.0 — S-51..S-54 (standard `3b4982f7`)
536
527
 
537
528
  #### S-51..S-54 read the served tool results