@vantageos/mcp-doctor 0.14.0 → 0.16.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 +21 -0
- package/README.md +79 -0
- package/dist/doctor.d.ts +5 -0
- package/dist/doctor.js +1165 -205
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@ 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.16.0 — 2026-11-01
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- **S-42: a write tool forwards the verified claims its read siblings forward.** Every backend door call is read with the claims it forwards (a spread helper's declared keys, literal keys, a door-keyed resolver), and the backend source with the table each door writes and reads. A write that lacks a claim a read of the same table forwards is non-conforming, naming both tools and the claim. Measured on vantage-peers:
|
|
11
|
+
- 010edc9 -> non-conforming (create_task writes tasks without the verifiedOrg that list_tasks, get_task and the other task tools forward);
|
|
12
|
+
- 83fa7ac (the fix, doorScopeArgs) -> no mismatch; could-not-judge on 8 calls that name their door by an expression, each named.
|
|
13
|
+
(README: #s-42-reports-a-write-tool-that-forwards-fewer-claims-than-its-read-siblings)
|
|
14
|
+
- **C-36: the README a package ships stays under the npm truncation point.** Every root `readme*` file npm ships (any case, any or no extension) is refused above 61 440 bytes (npm truncates at 65 536); the largest decides. A private or unpublished tree reads absent. The standard is re-pinned at ElPi-Corp 4ec4826b (distribution rules S-45..S-48, C-34..C-36, C-29 amended). Measured: @vantageos/cloud-identity 0.33.0 ships a 115 203-byte README -> non-conforming (49 667 bytes cut); mcp-doctor (40 623 bytes) and vantage-peers mcp-server (25 751 bytes) -> present. (README: #c-36-reports-a-readme-past-the-npm-truncation-point)
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- **S-28 follows resource read handlers and injected fetchers to where the door is named.** A client call whose door is the first parameter of its enclosing function is followed through its name, every function it is handed to (directly or as an object property, `deps.KEY(…)`, destructured, and `deps` handed on), and judged at each call site. Before, such calls read as could-not-judge. Measured on vantage-peers d4278807 (`npx tsx` scan of `mcp-server/`):
|
|
18
|
+
- violations 68 -> 77: the eight `ui://vp/v1` resource primitive reads (`diary:get`, `diary:list`, `tasks:list`, `messages:listMessages`, `missions:list`, `briefingNotes:get`, `briefingNotes:list`, `memories:listMemories`) and send_message's state-token `tasks:get`, all reached through a fetcher with no claim;
|
|
19
|
+
- could-not-judge 24 -> 22: the three fetcher wrappers resolve; one call through a fetcher names its door by an expression (`fresh-state-guard.ts:496`).
|
|
20
|
+
(README: #s-28-follows-a-fetcher-handed-to-other-code-to-where-its-door-is-named)
|
|
21
|
+
- **S-28, S-35 and S-42 recognise a backend client by its binding, never by its name.** A reader keyed on the receiver's name (`/convex|client/i`) was silenced by `const cx = convex`. The receiver is now resolved through an alias, a `Convex…Client` type, a constructor or a destructured key; an unresolved receiver whose call names a door, or that sits in a file importing a Convex client, is could-not-judge, naming it. (README: #s-28-follows-a-fetcher-handed-to-other-code-to-where-its-door-is-named)
|
|
22
|
+
|
|
23
|
+
## 0.15.0 — 2026-11-01
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
- **S-44: a published output schema never closes itself to added fields.** Every object of a tool's `outputSchema`, at any depth, is read, both from source and as served. An object that refuses an unlisted field is non-conforming, named `tool.path` with its closing form. The closing forms are `z.object`, `z.strictObject`, `.strict()`, `.strip()`, `.catchall(z.never())`, a raw shape (the SDK wraps it in `z.object`), and JSON `additionalProperties: false` or `unevaluatedProperties: false`. The open forms are `z.looseObject`, `.passthrough()`, `.loose()` and `.catchall(<another schema>)`; an unreadable `.catchall` argument is could-not-judge. `// allow-closed-output: <reason>` exempts a site and is reported. The served half reads each tool's `outputSchema` from `tools/list`, which the launcher now records. The standard is re-pinned at ElPi-Corp 9fdad5b8 (PR #306, server v2.8), and no numbered rule text changed besides S-44. The reference conforming fixture now opens its output objects with `z.looseObject`. (README: #s-44-reports-an-output-schema-that-refuses-added-fields)
|
|
27
|
+
|
|
7
28
|
## 0.14.0 — 2026-11-01
|
|
8
29
|
|
|
9
30
|
### Changed
|
package/README.md
CHANGED
|
@@ -224,6 +224,85 @@ 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
|
+
### Changes in 0.16.0 — S-28 follows resource read handlers and injected fetchers (standard `6870b775` = mcp-server-standard v2.10, PR #310)
|
|
228
|
+
|
|
229
|
+
#### S-28 follows a fetcher handed to other code to where its door is named
|
|
230
|
+
|
|
231
|
+
S-28 (every data path forwards the verified claim of its caller) now reads resource read handlers as well as tool
|
|
232
|
+
handlers. It also follows injected fetchers. An injected fetcher is a client call whose door is the first parameter of
|
|
233
|
+
the function that holds it, `(fn, args) => convex.query(fn, args)`, so the door is named only where the fetcher is
|
|
234
|
+
called. Before, such a call read as could-not-judge, and the doors reached through it went unread.
|
|
235
|
+
|
|
236
|
+
- **How a fetcher is followed:** by its name in its own file, and through every function it is handed to, by the
|
|
237
|
+
parameter at that position in the file defining that function. It can be handed directly as an argument, or as a
|
|
238
|
+
property of an object argument (called as `deps.KEY(…)`, or taken by a destructuring parameter); the object is
|
|
239
|
+
followed again when it is handed on.
|
|
240
|
+
- **Judgement:** each call through the fetcher with a literal door is judged like a direct call. The site names the
|
|
241
|
+
fetcher and where it was injected. A fetcher that adds the claim itself forwards it for every call made through it.
|
|
242
|
+
- **Could-not-judge, each named:** a fetcher handed to a function the tree does not define, used in a form the scan
|
|
243
|
+
does not follow, called with its door named by an expression, or never called.
|
|
244
|
+
- **Labels:** a call inside `registerResource(...)` is labelled `resource <name>`, never with an earlier tool.
|
|
245
|
+
- **Receivers:** a backend client is recognised by how it is bound, never by its name alone: an alias
|
|
246
|
+
(`const cx = convex`), a `Convex…Client` type on a binding or parameter, `new Convex…Client(…)`, or a destructured
|
|
247
|
+
client-named key. A receiver none of these resolves is could-not-judge, naming it, when its call names a door or sits
|
|
248
|
+
in a file importing a Convex client. S-35 and S-42 use the same resolver.
|
|
249
|
+
|
|
250
|
+
### Changes in 0.16.0 — S-42 (standard `9fdad5b8`, item 42)
|
|
251
|
+
|
|
252
|
+
#### S-42 reports a write tool that forwards fewer claims than its read siblings
|
|
253
|
+
|
|
254
|
+
A tool that writes a table and the tools that read it must forward the same verified claims to their backend doors,
|
|
255
|
+
or the backend stores a row its own reads cannot return. S-42 reads every backend door call (`<client>.query`,
|
|
256
|
+
`.mutation`, `.action`), the claims each call forwards, and the backend source (`convex/` above the scanned tree) for
|
|
257
|
+
the table each door writes and reads. It names each write that lacks a claim forwarded by a read of the same table.
|
|
258
|
+
|
|
259
|
+
- Claims read: `verifiedOrg`, `verifiedPerson`, `verifiedActor` and `seatOrgSlug`. They come from a spread helper (the
|
|
260
|
+
claim keys its definition declares, following only the helpers it returns) or from a literal key in the call's
|
|
261
|
+
arguments.
|
|
262
|
+
- A spread helper whose first argument is the call's own door (`...doorScopeArgs("tasks:create", …)`) is a resolver
|
|
263
|
+
keyed by the door. The claims are decided per door from one table, so these calls are green by construction.
|
|
264
|
+
`verifiedActor` added from a `VERIFIED_…DOORS` set is door-keyed in the same way and is not compared.
|
|
265
|
+
- A door's table access: `db.insert("T")` is a write, `db.query("T")` a read, and `db.get(args.x)` a read when
|
|
266
|
+
`x: v.id("T")`. Each also counts when reached through a same-file function the door calls.
|
|
267
|
+
- could-not-judge, each named: a door named by an expression, a door the backend does not define, a spread helper
|
|
268
|
+
whose claim keys cannot be read, or no backend source.
|
|
269
|
+
|
|
270
|
+
### Changes in 0.16.0 — distribution rules (standard `4ec4826b` = mcp-server-standard v2.9, mcp-standard v2.8)
|
|
271
|
+
|
|
272
|
+
#### C-36 reports a README past the npm truncation point
|
|
273
|
+
|
|
274
|
+
npm truncates a package README at 65 536 bytes, so everything past that point is missing from the package page.
|
|
275
|
+
C-36 measures every README a package ships: npm ships each root file named `readme*`, case-insensitive, with any or
|
|
276
|
+
no extension (`README.md`, `readme.md`, `README.markdown`, `README`, `README.txt`, `README.fr.md`…), all of them when
|
|
277
|
+
several exist (measured with `npm pack --dry-run`). Each one is refused above 61 440 bytes (60 KiB, a margin under the
|
|
278
|
+
cut); the largest decides, because which one the registry displays is not derived. The verdict says how many bytes are
|
|
279
|
+
already missing. A tree with no `package.json`, or with `"private": true`, is not published, so it reads absent. A
|
|
280
|
+
published package with no README also reads absent, because the README's presence belongs to C-1 and C-31.
|
|
281
|
+
|
|
282
|
+
The standard is pinned at ElPi-Corp `4ec4826b`, which adds the distribution rules S-45 to S-48 and C-34 to C-36 and
|
|
283
|
+
amends C-29 (usage skills also ship in each plugin package). The other distribution checks follow.
|
|
284
|
+
|
|
285
|
+
### Changes in 0.15.0 — S-44 (standard `9fdad5b8` = mcp-server-standard v2.8, PR #306)
|
|
286
|
+
|
|
287
|
+
#### S-44 reports an output schema that refuses added fields
|
|
288
|
+
|
|
289
|
+
A client checks a tool's `structuredContent` against the `outputSchema` it read when it connected, and keeps that copy
|
|
290
|
+
for the session. An object in that schema that refuses unlisted fields turns every field the server adds later into a
|
|
291
|
+
refusal for each client connected before the release. S-44 reads every tool's output schema, at any depth, both from
|
|
292
|
+
source and as served (`tools/list`), and names each closed object as `tool.path` with the form that closes it.
|
|
293
|
+
|
|
294
|
+
- Closing forms: `z.object` and `z.strictObject` (zod emits `additionalProperties: false` for an output schema),
|
|
295
|
+
`.strict()`, `.strip()`, `.catchall(z.never())`, a raw shape (the SDK wraps it in `z.object`), and JSON
|
|
296
|
+
`additionalProperties: false` or `unevaluatedProperties: false`.
|
|
297
|
+
- Open forms: `z.looseObject`, `.passthrough()`, `.loose()`, `.nonstrict()`, `.catchall(<another schema>)`.
|
|
298
|
+
- The output schema is found in any object argument of a registration, including a project wrapper's annotations
|
|
299
|
+
object (`defineTool(…, { outputSchema })`). A registration that names `outputSchema` somewhere the reader cannot
|
|
300
|
+
take it from is could-not-judge, never "declares none".
|
|
301
|
+
- `// allow-closed-output: <reason>` (six characters or more) on the site's line or the line above exempts it, and the
|
|
302
|
+
reason is reported. A served site has no source line, so it is never exempt.
|
|
303
|
+
- The standard is pinned at ElPi-Corp `9fdad5b8`. Besides S-44, that pin adds only the unnumbered "Agent tool roles"
|
|
304
|
+
section, which no detector reads yet.
|
|
305
|
+
|
|
227
306
|
### Changes in 0.14.0 (standard `c29f83d5`)
|
|
228
307
|
|
|
229
308
|
Six readers stopped reporting could-not-judge on real servers, and one stopped calling a correct server
|
package/dist/doctor.d.ts
CHANGED
|
@@ -157,6 +157,11 @@ interface RuntimeTool {
|
|
|
157
157
|
* shape a client must put in each argument from it; absent when the server served none.
|
|
158
158
|
*/
|
|
159
159
|
inputSchema?: Record<string, unknown>;
|
|
160
|
+
/**
|
|
161
|
+
* The served `outputSchema` exactly as tools/list returned it, when it is an object (S-44 reads it). Unset
|
|
162
|
+
* when the tool serves none.
|
|
163
|
+
*/
|
|
164
|
+
outputSchema?: Record<string, unknown>;
|
|
160
165
|
}
|
|
161
166
|
/**
|
|
162
167
|
* What one invalid-cursor probe read (C-11). The domain is the JSON-RPC response shapes: an `error`
|