@vantageos/mcp-doctor 0.11.2 → 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 +88 -0
- package/README.md +12 -0
- package/dist/doctor.d.ts +5 -0
- package/dist/doctor.js +2277 -130
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,94 @@
|
|
|
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
|
+
|
|
44
|
+
## 0.12.0 — 2026-10-31
|
|
45
|
+
|
|
46
|
+
### Fixed
|
|
47
|
+
- **C-11 judges list and search tools only, and names every failing one.** The paginable domain is
|
|
48
|
+
mcp-standard §3 item 4 ("every list and every search"): a tool whose DECLARED verb is `list` or
|
|
49
|
+
`search` (the closed set C-9 reads, `VERB_SET`, now exported); a tool with no declared verb is
|
|
50
|
+
placed by its name prefix (`list`/`search`), so a get-by-id (`get_memory`, `get_activity`) is no
|
|
51
|
+
longer accused, and a search named otherwise (`find_party`, verb `search`) is now judged. A
|
|
52
|
+
declared verb outside the closed set is could-not-judge naming the tool and the verb. The verdict
|
|
53
|
+
names every failing tool with its anchor and missing components (`N of M`), not only the first.
|
|
54
|
+
Rule unchanged: C-11 requires the DECLARATION (cursor, default, finite max) — a tool that pages
|
|
55
|
+
without declaring stays non-conforming. Measured: vantage-memory `mcp-server` @ abe13c35 — 0.11.2
|
|
56
|
+
one site (`get_memory`), now 24 of 24 list/search tools named, no `get_*`; vantageos-crm
|
|
57
|
+
`mcp-server` @ 6ae8b07 — 0.11.2 one site (`get_activity`), now 35 of 35.
|
|
58
|
+
- **S-27 reads the value written into `resultType`, not a text shape.** The MRTR round is a
|
|
59
|
+
`resultType` field written (key, quoted key, shorthand, member or bracket assignment; never a
|
|
60
|
+
type member) whose value is the string `"input_required"` — a literal, or an identifier bound by
|
|
61
|
+
a same-file `const`. A conditional, a call, a member access, a template with a substitution or an
|
|
62
|
+
unbound identifier is could-not-judge naming the site, where it previously read as absent.
|
|
63
|
+
- **`extensions: NAME` is read.** An `extensions` / `experimental` key of an object value whose
|
|
64
|
+
value is an identifier resolves the `const NAME = { ... }` it names and reads its keys; a name
|
|
65
|
+
that does not resolve (an import, a parameter) is unread, naming the identifier and the site.
|
|
66
|
+
It was previously skipped in silence.
|
|
67
|
+
- **D7 binds a hand-rolled result to an object a function RETURNS.** A `resultType` / `ttlMs` /
|
|
68
|
+
`cacheScope` write counts only in an object that is returned (`return {..}`, `=> ({..})`,
|
|
69
|
+
nested in a returned object, or a const whose name is returned). A `{ resultType }` literal
|
|
70
|
+
printed, passed to a call or never returned no longer reads non-conforming; a position the
|
|
71
|
+
reader cannot place (a conditional or logical operand) is could-not-judge. Declared limit: an
|
|
72
|
+
object reaching the return through a call or a second variable reads as not returned, and the
|
|
73
|
+
returning function is not proven to be a registered tool handler.
|
|
74
|
+
- **Computed keys are read, or named unread.** `["resultType"]: v`, `` [`resultType`]: v `` and
|
|
75
|
+
`[NAME]: v` (NAME a same-file `const NAME = "<string>"`) are writes of that field, like the plain
|
|
76
|
+
key, for S-27, D7 and every reader of `fieldWrites`. Any other computed key (`[k]`, `[a.b]`,
|
|
77
|
+
`[a + b]`, a template with a substitution) is decided by the value written, never by the key
|
|
78
|
+
alone: S-27 reads it could-not-judge, naming the site, only when its value is
|
|
79
|
+
`"input_required"`; D7 only inside a returned object that already carries `content`,
|
|
80
|
+
`structuredContent` or `resultType`. A map keyed by data (`{ [entry.env]: raw }`) stays ordinary
|
|
81
|
+
code. D3, D4 and the skills surface do not read these keys (declared at their call sites).
|
|
82
|
+
- **S-22 reads an Origin allow-list declared as configuration.** A server that declares its allow-list
|
|
83
|
+
through the declared-variables mechanism (`defineVariables({ allowedOrigins: { env: "MCP_ALLOWED_ORIGINS",
|
|
84
|
+
type: "originList", default: [] } })`) and refuses an unlisted Origin with 403 read `could-not-judge`
|
|
85
|
+
("allowedOrigins is given by `{`"). The declaration, and a member read of the loaded settings that reaches it
|
|
86
|
+
(`allowedOrigins: settings.allowedOrigins`), are now judged by their `type` and `default`: `originList` with a
|
|
87
|
+
literal default free of `*` conforms (`[]` refuses every browser origin); a `*` in the default is
|
|
88
|
+
`non-conforming` whatever the type; a default that is not a literal, an unknown type, or a type other than
|
|
89
|
+
`originList` is `could-not-judge`, naming it. A direct `process.env.X` read is `could-not-judge`, naming the
|
|
90
|
+
variable. A declared list conforms only with what enforces it (a 403 on the Origin read, or the SDK
|
|
91
|
+
protection); with neither the row stays `non-conforming`. A 403 refusal whose call spans more than six lines
|
|
92
|
+
after the Origin read (the boilerplate's `return c.json({ … }, 403)`) is read to the end of that statement.
|
|
93
|
+
|
|
6
94
|
## 0.11.2 — 2026-10-29
|
|
7
95
|
|
|
8
96
|
Patch: static readers that judged natural TypeScript by an identifier's name or missed a
|
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`
|