@vantageos/mcp-doctor 0.12.0 → 0.13.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
@@ -3,6 +3,44 @@
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.13.0 — 2026-10-31
7
+
8
+ ### Added
9
+ - **S-43: a tool input argument declared as a union mixing an array and a non-array value is
10
+ non-conforming.** Clients do not agree on which branch to send: Claude.ai sent a shape that
11
+ vantage-peers `mark_as_read.receiptIds` (`z.union([z.array(receiptIdSchema).min(1),
12
+ receiptIdSchema])`) refused, while Claude Code was accepted. The detector reads the input schema
13
+ of every registered tool (`registerTool` config, positional `server.tool`, a project wrapper such as
14
+ `defineTool`, a `{ name, inputSchema }` descriptor) and walks it at any depth (object properties,
15
+ array items, record and `additionalProperties` values): Zod `z.union` / `.or` / `z.xor`, a named
16
+ const or function bound in the same file or imported by name from a relative module of the tree
17
+ (`./m.js`, `./m.ts`, `./m`, `./dir` index, through re-export hops), with each function parameter
18
+ bound to the argument at the call site (a wrapper returning its argument is judged by that
19
+ argument), `z.preprocess(fn, inner)` judged by `inner` and `a.pipe(b)` by `a` (the shape
20
+ `z.toJSONSchema(.., { io: "input" })` serves), JSON Schema `anyOf` / `oneOf` / `type: [...]` and
21
+ local `$ref`; the served half reads each served `inputSchema`, which the introspector now records
22
+ on every launched tool (before, it kept only name, description and the cursor flag, so a live run
23
+ could not have read one). A union whose only non-array branch
24
+ is null, a scalar-only or object-only union, an enum and every output schema are not judged
25
+ violations. `// allow-union-input: <reason>` (six characters or more) on the site's line or the
26
+ line above exempts a site, and the exemption is reported; an identifier, spread or call the reader
27
+ cannot follow (a bare-package, namespace or default import, a module outside the tree, an import
28
+ cycle, a spread, an unreadable call) is could-not-judge naming the site and the form. Every offending `tool.path` is
29
+ named. Measured: vantage-peers `mcp-server` @ 065a951f — non-conforming, 26 of 482 input sites,
30
+ `mark_as_read.receiptIds` first (the 20 uses of the shared `flexArray` const, the three status
31
+ filters, `create_briefing_note.participants`, `validate_task_payload.payload.*`); with that one
32
+ argument changed to `z.array(receiptIdSchema).min(1)`, 25, `mark_as_read.receiptIds` no longer
33
+ named. On vantage-peers @ dbcfc2fc, whose list arguments go through `src/listArgs.ts`
34
+ (`stringListSchema`, `idListSchema(item)`, `acceptsJsonArrayString(schema)`): 4 of 482 sites
35
+ (`list_tasks.status`, `list_tasks_by_mission.status`, `list_missions.status`,
36
+ `validate_task_payload.payload.*`), 0 could-not-judge; `mark_as_read.receiptIds` and
37
+ `create_task.tags` conform. `scripts/standard-coverage.ts` now names a detector rule id the pinned standard does not
38
+ define instead of leaving it out.
39
+ - **Standard pin moves to ElPi-Corp `c29f83d5`** (PR #299, mcp-server-standard v2.7, 63 commits ahead
40
+ of `015053b7`, 0 behind), which writes S-42 and S-43; mcp-standard changes only its v2.7 change note
41
+ and rule total (98 -> 100), the extension and App standards are byte-identical. S-43 is read there
42
+ and counted covered; S-42 has no detector yet and the coverage script reports it uncovered.
43
+
6
44
  ## 0.12.0 — 2026-10-31
7
45
 
8
46
  ### Fixed
package/README.md CHANGED
@@ -224,6 +224,18 @@ 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
+ ### Unreleased — S-43 (standard `c29f83d5` = mcp-server-standard v2.7, PR #299)
228
+
229
+ | ID | Rule | The static run reads | Verdicts |
230
+ |----|------|----------------------|----------|
231
+ | **S43** union-input | S-43 | the input schema of every registered tool (`registerTool` config, positional `server.tool`, a project wrapper, a `{ name, inputSchema }` descriptor): Zod `z.union` / `.or` / `z.xor`, a same-file named const or local function, JSON `anyOf` / `oneOf` / `type: [...]`, at any depth (object properties, array items, record values, local `$ref`); the served half reads each served `inputSchema` | absent / present / non-conforming / could-not-judge (an identifier, spread or call the reader cannot follow) |
232
+
233
+ A union mixing an array branch and a non-array, non-null branch is non-conforming: clients do not agree on
234
+ which branch to send. `// allow-union-input: <reason>` (six characters or more) on the site's line or the
235
+ line above exempts it, and the exemption is reported. A named schema is followed to its binding in the same
236
+ file or through a named import from a relative module of the tree; a function's parameters take the call-site
237
+ argument; `z.preprocess(fn, inner)` is judged by `inner`. S-42, also written at `c29f83d5`, has no detector yet.
238
+
227
239
  ### Changes in 0.9.0 (standard `015053b7` = mcp-standard v2.7, "Third-party upstream API")
228
240
 
229
241
  | ID | Rule | The static run reads |
package/dist/doctor.d.ts CHANGED
@@ -152,6 +152,11 @@ interface RuntimeTool {
152
152
  * ARGUMENT, which C-11 (b) probes with an invalid value (SEP-1303).
153
153
  */
154
154
  cursorArgument?: boolean;
155
+ /**
156
+ * The served `inputSchema` exactly as tools/list returned it, when it is an object. S-43 reads the
157
+ * shape a client must put in each argument from it; absent when the server served none.
158
+ */
159
+ inputSchema?: Record<string, unknown>;
155
160
  }
156
161
  /**
157
162
  * What one invalid-cursor probe read (C-11). The domain is the JSON-RPC response shapes: an `error`