@vantageos/mcp-doctor 0.11.1 → 0.12.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 +75 -0
- package/dist/doctor.js +1080 -98
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,81 @@
|
|
|
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.12.0 — 2026-10-31
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- **C-11 judges list and search tools only, and names every failing one.** The paginable domain is
|
|
10
|
+
mcp-standard §3 item 4 ("every list and every search"): a tool whose DECLARED verb is `list` or
|
|
11
|
+
`search` (the closed set C-9 reads, `VERB_SET`, now exported); a tool with no declared verb is
|
|
12
|
+
placed by its name prefix (`list`/`search`), so a get-by-id (`get_memory`, `get_activity`) is no
|
|
13
|
+
longer accused, and a search named otherwise (`find_party`, verb `search`) is now judged. A
|
|
14
|
+
declared verb outside the closed set is could-not-judge naming the tool and the verb. The verdict
|
|
15
|
+
names every failing tool with its anchor and missing components (`N of M`), not only the first.
|
|
16
|
+
Rule unchanged: C-11 requires the DECLARATION (cursor, default, finite max) — a tool that pages
|
|
17
|
+
without declaring stays non-conforming. Measured: vantage-memory `mcp-server` @ abe13c35 — 0.11.2
|
|
18
|
+
one site (`get_memory`), now 24 of 24 list/search tools named, no `get_*`; vantageos-crm
|
|
19
|
+
`mcp-server` @ 6ae8b07 — 0.11.2 one site (`get_activity`), now 35 of 35.
|
|
20
|
+
- **S-27 reads the value written into `resultType`, not a text shape.** The MRTR round is a
|
|
21
|
+
`resultType` field written (key, quoted key, shorthand, member or bracket assignment; never a
|
|
22
|
+
type member) whose value is the string `"input_required"` — a literal, or an identifier bound by
|
|
23
|
+
a same-file `const`. A conditional, a call, a member access, a template with a substitution or an
|
|
24
|
+
unbound identifier is could-not-judge naming the site, where it previously read as absent.
|
|
25
|
+
- **`extensions: NAME` is read.** An `extensions` / `experimental` key of an object value whose
|
|
26
|
+
value is an identifier resolves the `const NAME = { ... }` it names and reads its keys; a name
|
|
27
|
+
that does not resolve (an import, a parameter) is unread, naming the identifier and the site.
|
|
28
|
+
It was previously skipped in silence.
|
|
29
|
+
- **D7 binds a hand-rolled result to an object a function RETURNS.** A `resultType` / `ttlMs` /
|
|
30
|
+
`cacheScope` write counts only in an object that is returned (`return {..}`, `=> ({..})`,
|
|
31
|
+
nested in a returned object, or a const whose name is returned). A `{ resultType }` literal
|
|
32
|
+
printed, passed to a call or never returned no longer reads non-conforming; a position the
|
|
33
|
+
reader cannot place (a conditional or logical operand) is could-not-judge. Declared limit: an
|
|
34
|
+
object reaching the return through a call or a second variable reads as not returned, and the
|
|
35
|
+
returning function is not proven to be a registered tool handler.
|
|
36
|
+
- **Computed keys are read, or named unread.** `["resultType"]: v`, `` [`resultType`]: v `` and
|
|
37
|
+
`[NAME]: v` (NAME a same-file `const NAME = "<string>"`) are writes of that field, like the plain
|
|
38
|
+
key, for S-27, D7 and every reader of `fieldWrites`. Any other computed key (`[k]`, `[a.b]`,
|
|
39
|
+
`[a + b]`, a template with a substitution) is decided by the value written, never by the key
|
|
40
|
+
alone: S-27 reads it could-not-judge, naming the site, only when its value is
|
|
41
|
+
`"input_required"`; D7 only inside a returned object that already carries `content`,
|
|
42
|
+
`structuredContent` or `resultType`. A map keyed by data (`{ [entry.env]: raw }`) stays ordinary
|
|
43
|
+
code. D3, D4 and the skills surface do not read these keys (declared at their call sites).
|
|
44
|
+
- **S-22 reads an Origin allow-list declared as configuration.** A server that declares its allow-list
|
|
45
|
+
through the declared-variables mechanism (`defineVariables({ allowedOrigins: { env: "MCP_ALLOWED_ORIGINS",
|
|
46
|
+
type: "originList", default: [] } })`) and refuses an unlisted Origin with 403 read `could-not-judge`
|
|
47
|
+
("allowedOrigins is given by `{`"). The declaration, and a member read of the loaded settings that reaches it
|
|
48
|
+
(`allowedOrigins: settings.allowedOrigins`), are now judged by their `type` and `default`: `originList` with a
|
|
49
|
+
literal default free of `*` conforms (`[]` refuses every browser origin); a `*` in the default is
|
|
50
|
+
`non-conforming` whatever the type; a default that is not a literal, an unknown type, or a type other than
|
|
51
|
+
`originList` is `could-not-judge`, naming it. A direct `process.env.X` read is `could-not-judge`, naming the
|
|
52
|
+
variable. A declared list conforms only with what enforces it (a 403 on the Origin read, or the SDK
|
|
53
|
+
protection); with neither the row stays `non-conforming`. A 403 refusal whose call spans more than six lines
|
|
54
|
+
after the Origin read (the boilerplate's `return c.json({ … }, 403)`) is read to the end of that statement.
|
|
55
|
+
|
|
56
|
+
## 0.11.2 — 2026-10-29
|
|
57
|
+
|
|
58
|
+
Patch: static readers that judged natural TypeScript by an identifier's name or missed a
|
|
59
|
+
TypeScript wrapper. No rule and no public type changes.
|
|
60
|
+
|
|
61
|
+
### Fixed
|
|
62
|
+
- **D7 judges a hand-rolled result builder by the object it writes, never by a name.** A local variable named
|
|
63
|
+
`ttlMs` used in a conditional (`healthy ? ttlMs : …`) read as a hand-written `ttlMs:` field and turned D7
|
|
64
|
+
`non-conforming`. A protocol field (`resultType`, `ttlMs`, `cacheScope`) now counts only when it is WRITTEN:
|
|
65
|
+
a key, quoted key or shorthand in an object value, or an assignment `o.f =` / `o["f"] =`, and, for D7, only
|
|
66
|
+
into a RESULT object (one carrying `resultType` or a payload key of an MCP result: `content`,
|
|
67
|
+
`structuredContent`, `isError`, `tools`, `resources`, `resourceTemplates`, `prompts`, `contents`, `messages`,
|
|
68
|
+
`completion`, `nextCursor`). A conditional branch, a type member, a parameter annotation, a binding pattern, a
|
|
69
|
+
member read or a cache-library option is not a builder. A write into an object whose shape is hidden behind a
|
|
70
|
+
spread is `could-not-judge`, naming the spread. A quoted key, a shorthand and an assignment, which the name
|
|
71
|
+
matcher missed, are now read. D3, D4 and the Skills cache check read the same written forms.
|
|
72
|
+
- **The `_meta` readers (C-29, C-30, E-8, E-9, E-12, C-32, A-8, DExt1) see through TypeScript wrappers.**
|
|
73
|
+
`x as T`, `x satisfies T`, `x!`, `(x)` and `<T>x` on a `_meta` value, a const initializer or a spread no
|
|
74
|
+
longer hide its keys. A `_meta` that is a TYPE member (`_meta?: Record<string, unknown>` in a type literal,
|
|
75
|
+
`_meta: T` in an interface) is not read as a served object; it turned eight rows `could-not-judge`. A type
|
|
76
|
+
literal in `const x = (…) as { … }` is no longer read as the value of `x`: a `_meta: x` naming such a const
|
|
77
|
+
was silently resolved to the type and read `absent`; it is now `could-not-judge`, naming what `x` is bound to.
|
|
78
|
+
A spread of a call or a member access inside a `_meta` (`...build()`, `...x._meta`), skipped in silence, is
|
|
79
|
+
now named as unread.
|
|
80
|
+
|
|
6
81
|
## 0.11.1 — 2026-10-29
|
|
7
82
|
|
|
8
83
|
Patch: a safety fix in the runtime introspector. No rule, verdict form or public type changes.
|