@vantageos/mcp-doctor 0.12.0 → 0.13.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 +55 -0
- package/README.md +12 -0
- package/dist/doctor.d.ts +5 -0
- package/dist/doctor.js +1828 -105
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,61 @@
|
|
|
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.1 — 2026-10-31
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- **S-43 reads the zod 4 scalar builders instead of calling them unread.** The builders that return a
|
|
10
|
+
scalar schema are taken from the declarations of zod 4.6.7 (`v4/classic/schemas.d.ts`, `iso.d.ts`,
|
|
11
|
+
`coerce.d.ts`): the string formats (`z.email`, `z.uuid`, `z.url`, `z.ipv4`, `z.jwt`, `z.hash`, ...,
|
|
12
|
+
now including `z.xid`, `z.ksuid`, `z.mac`, `z.creditCard`, `z.iban`, `z.currencyCode`,
|
|
13
|
+
`z.stringFormat`), `z.iso.datetime/date/time/duration`, the number and bigint formats,
|
|
14
|
+
`z.stringbool`, `z.templateLiteral`, `z.literal`, `z.enum` and `z.coerce.*`, chained methods
|
|
15
|
+
keeping the kind. A builder outside that list (`z.someFutureBuilder()`, `z.iso.someFuture()`) stays
|
|
16
|
+
could-not-judge, named. A format inside an array|scalar union is still non-conforming. A spread of
|
|
17
|
+
`Object.fromEntries(...)` stays could-not-judge and is now named as such, not as an unbound
|
|
18
|
+
`Object`. Measured: vantage-neoteem-mcp @ d4c6812 — before, could-not-judge with 36 unread sites
|
|
19
|
+
(30 `member z.iso`, 6 `spread ...sinceInput(...)`); now 6, all the `sinceInput` spread
|
|
20
|
+
(`Object.fromEntries`), the readable remainder of 20 tools present. vantage-peers @ dbcfc2fc is
|
|
21
|
+
unchanged: non-conforming, 4 of 482.
|
|
22
|
+
|
|
23
|
+
## 0.13.0 — 2026-10-31
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
- **S-43: a tool input argument declared as a union mixing an array and a non-array value is
|
|
27
|
+
non-conforming.** Clients do not agree on which branch to send: Claude.ai sent a shape that
|
|
28
|
+
vantage-peers `mark_as_read.receiptIds` (`z.union([z.array(receiptIdSchema).min(1),
|
|
29
|
+
receiptIdSchema])`) refused, while Claude Code was accepted. The detector reads the input schema
|
|
30
|
+
of every registered tool (`registerTool` config, positional `server.tool`, a project wrapper such as
|
|
31
|
+
`defineTool`, a `{ name, inputSchema }` descriptor) and walks it at any depth (object properties,
|
|
32
|
+
array items, record and `additionalProperties` values): Zod `z.union` / `.or` / `z.xor`, a named
|
|
33
|
+
const or function bound in the same file or imported by name from a relative module of the tree
|
|
34
|
+
(`./m.js`, `./m.ts`, `./m`, `./dir` index, through re-export hops), with each function parameter
|
|
35
|
+
bound to the argument at the call site (a wrapper returning its argument is judged by that
|
|
36
|
+
argument), `z.preprocess(fn, inner)` judged by `inner` and `a.pipe(b)` by `a` (the shape
|
|
37
|
+
`z.toJSONSchema(.., { io: "input" })` serves), JSON Schema `anyOf` / `oneOf` / `type: [...]` and
|
|
38
|
+
local `$ref`; the served half reads each served `inputSchema`, which the introspector now records
|
|
39
|
+
on every launched tool (before, it kept only name, description and the cursor flag, so a live run
|
|
40
|
+
could not have read one). A union whose only non-array branch
|
|
41
|
+
is null, a scalar-only or object-only union, an enum and every output schema are not judged
|
|
42
|
+
violations. `// allow-union-input: <reason>` (six characters or more) on the site's line or the
|
|
43
|
+
line above exempts a site, and the exemption is reported; an identifier, spread or call the reader
|
|
44
|
+
cannot follow (a bare-package, namespace or default import, a module outside the tree, an import
|
|
45
|
+
cycle, a spread, an unreadable call) is could-not-judge naming the site and the form. Every offending `tool.path` is
|
|
46
|
+
named. Measured: vantage-peers `mcp-server` @ 065a951f — non-conforming, 26 of 482 input sites,
|
|
47
|
+
`mark_as_read.receiptIds` first (the 20 uses of the shared `flexArray` const, the three status
|
|
48
|
+
filters, `create_briefing_note.participants`, `validate_task_payload.payload.*`); with that one
|
|
49
|
+
argument changed to `z.array(receiptIdSchema).min(1)`, 25, `mark_as_read.receiptIds` no longer
|
|
50
|
+
named. On vantage-peers @ dbcfc2fc, whose list arguments go through `src/listArgs.ts`
|
|
51
|
+
(`stringListSchema`, `idListSchema(item)`, `acceptsJsonArrayString(schema)`): 4 of 482 sites
|
|
52
|
+
(`list_tasks.status`, `list_tasks_by_mission.status`, `list_missions.status`,
|
|
53
|
+
`validate_task_payload.payload.*`), 0 could-not-judge; `mark_as_read.receiptIds` and
|
|
54
|
+
`create_task.tags` conform. `scripts/standard-coverage.ts` now names a detector rule id the pinned standard does not
|
|
55
|
+
define instead of leaving it out.
|
|
56
|
+
- **Standard pin moves to ElPi-Corp `c29f83d5`** (PR #299, mcp-server-standard v2.7, 63 commits ahead
|
|
57
|
+
of `015053b7`, 0 behind), which writes S-42 and S-43; mcp-standard changes only its v2.7 change note
|
|
58
|
+
and rule total (98 -> 100), the extension and App standards are byte-identical. S-43 is read there
|
|
59
|
+
and counted covered; S-42 has no detector yet and the coverage script reports it uncovered.
|
|
60
|
+
|
|
6
61
|
## 0.12.0 — 2026-10-31
|
|
7
62
|
|
|
8
63
|
### 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`
|