@vantageos/mcp-doctor 0.13.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 +17 -0
- package/dist/doctor.js +53 -30
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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
|
+
|
|
6
23
|
## 0.13.0 — 2026-10-31
|
|
7
24
|
|
|
8
25
|
### Added
|
package/dist/doctor.js
CHANGED
|
@@ -23217,52 +23217,64 @@ var unread = (form, at) => ({
|
|
|
23217
23217
|
});
|
|
23218
23218
|
var SCALAR = { k: "scalar", name: "scalar" };
|
|
23219
23219
|
var SCALAR_FACTORIES = /* @__PURE__ */ new Set([
|
|
23220
|
+
// string formats
|
|
23220
23221
|
"string",
|
|
23221
|
-
"number",
|
|
23222
|
-
"boolean",
|
|
23223
|
-
"bigint",
|
|
23224
|
-
"date",
|
|
23225
|
-
"literal",
|
|
23226
|
-
"enum",
|
|
23227
|
-
"nativeEnum",
|
|
23228
|
-
"int",
|
|
23229
|
-
"int32",
|
|
23230
|
-
"int64",
|
|
23231
|
-
"uint32",
|
|
23232
|
-
"uint64",
|
|
23233
|
-
"float32",
|
|
23234
|
-
"float64",
|
|
23235
23222
|
"email",
|
|
23236
|
-
"
|
|
23237
|
-
"httpUrl",
|
|
23223
|
+
"guid",
|
|
23238
23224
|
"uuid",
|
|
23239
23225
|
"uuidv4",
|
|
23240
23226
|
"uuidv6",
|
|
23241
23227
|
"uuidv7",
|
|
23242
|
-
"
|
|
23228
|
+
"url",
|
|
23229
|
+
"httpUrl",
|
|
23230
|
+
"emoji",
|
|
23231
|
+
"nanoid",
|
|
23243
23232
|
"cuid",
|
|
23244
23233
|
"cuid2",
|
|
23245
23234
|
"ulid",
|
|
23246
|
-
"
|
|
23247
|
-
"
|
|
23248
|
-
"base64",
|
|
23249
|
-
"base64url",
|
|
23250
|
-
"jwt",
|
|
23235
|
+
"xid",
|
|
23236
|
+
"ksuid",
|
|
23251
23237
|
"ipv4",
|
|
23238
|
+
"mac",
|
|
23252
23239
|
"ipv6",
|
|
23253
23240
|
"cidrv4",
|
|
23254
23241
|
"cidrv6",
|
|
23242
|
+
"base64",
|
|
23243
|
+
"base64url",
|
|
23255
23244
|
"e164",
|
|
23245
|
+
"creditCard",
|
|
23246
|
+
"iban",
|
|
23247
|
+
"jwt",
|
|
23248
|
+
"stringFormat",
|
|
23256
23249
|
"hostname",
|
|
23257
23250
|
"hex",
|
|
23251
|
+
"currencyCode",
|
|
23258
23252
|
"hash",
|
|
23259
|
-
|
|
23260
|
-
"
|
|
23253
|
+
// number / bigint formats
|
|
23254
|
+
"number",
|
|
23255
|
+
"int",
|
|
23256
|
+
"float32",
|
|
23257
|
+
"float64",
|
|
23258
|
+
"int32",
|
|
23259
|
+
"uint32",
|
|
23260
|
+
"bigint",
|
|
23261
|
+
"int64",
|
|
23262
|
+
"uint64",
|
|
23263
|
+
// other scalars
|
|
23264
|
+
"boolean",
|
|
23261
23265
|
"symbol",
|
|
23266
|
+
"date",
|
|
23262
23267
|
"nan",
|
|
23263
23268
|
"file",
|
|
23264
|
-
"
|
|
23269
|
+
"literal",
|
|
23270
|
+
"enum",
|
|
23271
|
+
"nativeEnum",
|
|
23272
|
+
"keyof",
|
|
23273
|
+
"templateLiteral",
|
|
23274
|
+
"stringbool"
|
|
23265
23275
|
]);
|
|
23276
|
+
var ISO_FACTORIES = /* @__PURE__ */ new Set(["datetime", "date", "time", "duration"]);
|
|
23277
|
+
var COERCE_FACTORIES = /* @__PURE__ */ new Set(["string", "number", "boolean", "bigint", "date"]);
|
|
23266
23278
|
var ANY_FACTORIES = /* @__PURE__ */ new Set(["any", "unknown", "custom", "instanceof", "json"]);
|
|
23267
23279
|
var NULL_FACTORIES = /* @__PURE__ */ new Set(["null", "undefined", "void", "never"]);
|
|
23268
23280
|
var IDENTITY_METHODS = /* @__PURE__ */ new Set([
|
|
@@ -23496,7 +23508,7 @@ function evalShape(n, ctx) {
|
|
|
23496
23508
|
if (spread.k === "object") props.push(...spread.props);
|
|
23497
23509
|
else
|
|
23498
23510
|
props.push({
|
|
23499
|
-
label: "
|
|
23511
|
+
label: "(spread)",
|
|
23500
23512
|
schema: unread(
|
|
23501
23513
|
`spread ...${describeNode(e.value)}${spread.k === "unread" ? ` (${spread.form})` : ""}`,
|
|
23502
23514
|
e.s
|
|
@@ -23526,8 +23538,14 @@ function evalCall(n, ctx) {
|
|
|
23526
23538
|
if (callee.k === "member") {
|
|
23527
23539
|
const m = callee.prop;
|
|
23528
23540
|
if (isZodRoot(callee.obj, ctx)) return zodFactory(m, n, ctx);
|
|
23529
|
-
if (callee.obj.k === "member" &&
|
|
23530
|
-
|
|
23541
|
+
if (callee.obj.k === "member" && isZodRoot(callee.obj.obj, ctx)) {
|
|
23542
|
+
const ns = callee.obj.prop;
|
|
23543
|
+
const known = ns === "iso" ? ISO_FACTORIES : ns === "coerce" ? COERCE_FACTORIES : null;
|
|
23544
|
+
if (known?.has(m)) return SCALAR;
|
|
23545
|
+
return unread(`z.${ns}.${m}() (not a builder of zod 4.6.7 the reader knows)`, n.s);
|
|
23546
|
+
}
|
|
23547
|
+
if (callee.obj.k === "id" && callee.obj.name === "Object" && m === "fromEntries")
|
|
23548
|
+
return unread("Object.fromEntries(...): keys and schemas built at run time", n.s);
|
|
23531
23549
|
const base = evalZod(callee.obj, ctx);
|
|
23532
23550
|
return zodMethod(base, m, n, ctx);
|
|
23533
23551
|
}
|
|
@@ -23566,10 +23584,10 @@ function zodFactory(m, n, ctx) {
|
|
|
23566
23584
|
case "object":
|
|
23567
23585
|
case "strictObject":
|
|
23568
23586
|
case "looseObject":
|
|
23569
|
-
case "interface":
|
|
23570
23587
|
return a[0] ? evalZod(a[0], ctx) : { k: "object", props: [], at: n.s };
|
|
23571
23588
|
case "record":
|
|
23572
23589
|
case "partialRecord":
|
|
23590
|
+
case "looseRecord":
|
|
23573
23591
|
case "map": {
|
|
23574
23592
|
const v = a[a.length - 1];
|
|
23575
23593
|
return {
|
|
@@ -23584,8 +23602,13 @@ function zodFactory(m, n, ctx) {
|
|
|
23584
23602
|
case "discriminatedUnion":
|
|
23585
23603
|
return unionArgs(a[1] ?? a[0], ctx, n.s);
|
|
23586
23604
|
case "optional":
|
|
23605
|
+
case "exactOptional":
|
|
23587
23606
|
case "nonoptional":
|
|
23588
23607
|
case "readonly":
|
|
23608
|
+
case "prefault":
|
|
23609
|
+
case "catch":
|
|
23610
|
+
case "success":
|
|
23611
|
+
case "codec":
|
|
23589
23612
|
return a[0] ? evalZod(a[0], ctx) : unread(`z.${m}() with no argument`, n.s);
|
|
23590
23613
|
case "nullable":
|
|
23591
23614
|
case "nullish":
|
|
@@ -23634,7 +23657,7 @@ function zodMethod(base, m, n, ctx) {
|
|
|
23634
23657
|
if (base.k !== "object") return unread(`.${m}() on a non-object schema`, n.s);
|
|
23635
23658
|
const more = a[0] ? evalZod(a[0], ctx) : unread(`.${m}() with no argument`, n.s);
|
|
23636
23659
|
if (more.k === "object") return { ...base, props: [...base.props, ...more.props] };
|
|
23637
|
-
return { ...base, props: [...base.props, { label: "
|
|
23660
|
+
return { ...base, props: [...base.props, { label: "(spread)", schema: more, at: n.s }] };
|
|
23638
23661
|
}
|
|
23639
23662
|
case "pick":
|
|
23640
23663
|
case "omit": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vantageos/mcp-doctor",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Static MCP conformance checker: audits an MCP server source tree against the MCP 2026-07-28 standard and emits a conformance-diff table (file:line | present | absent | non-conforming | verdict).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/doctor.js",
|