@vantageos/mcp-doctor 0.14.0 → 0.15.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
@@ -4,6 +4,11 @@ All notable changes to `@vantageos/mcp-doctor` are documented here.
4
4
  This project adheres to [Semantic Versioning](https://semver.org/).
5
5
  Unreleased changes live as one fragment per pull request in `changelog.d/`, folded in here at release time.
6
6
 
7
+ ## 0.15.0 — 2026-11-01
8
+
9
+ ### Added
10
+ - **S-44: a published output schema never closes itself to added fields.** Every object of a tool's `outputSchema`, at any depth, is read, both from source and as served. An object that refuses an unlisted field is non-conforming, named `tool.path` with its closing form. The closing forms are `z.object`, `z.strictObject`, `.strict()`, `.strip()`, `.catchall(z.never())`, a raw shape (the SDK wraps it in `z.object`), and JSON `additionalProperties: false` or `unevaluatedProperties: false`. The open forms are `z.looseObject`, `.passthrough()`, `.loose()` and `.catchall(<another schema>)`; an unreadable `.catchall` argument is could-not-judge. `// allow-closed-output: <reason>` exempts a site and is reported. The served half reads each tool's `outputSchema` from `tools/list`, which the launcher now records. The standard is re-pinned at ElPi-Corp 9fdad5b8 (PR #306, server v2.8), and no numbered rule text changed besides S-44. The reference conforming fixture now opens its output objects with `z.looseObject`. (README: #s-44-reports-an-output-schema-that-refuses-added-fields)
11
+
7
12
  ## 0.14.0 — 2026-11-01
8
13
 
9
14
  ### Changed
package/README.md CHANGED
@@ -224,6 +224,27 @@ 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
+ ### Changes in 0.15.0 — S-44 (standard `9fdad5b8` = mcp-server-standard v2.8, PR #306)
228
+
229
+ #### S-44 reports an output schema that refuses added fields
230
+
231
+ A client checks a tool's `structuredContent` against the `outputSchema` it read when it connected, and keeps that copy
232
+ for the session. An object in that schema that refuses unlisted fields turns every field the server adds later into a
233
+ refusal for each client connected before the release. S-44 reads every tool's output schema, at any depth, both from
234
+ source and as served (`tools/list`), and names each closed object as `tool.path` with the form that closes it.
235
+
236
+ - Closing forms: `z.object` and `z.strictObject` (zod emits `additionalProperties: false` for an output schema),
237
+ `.strict()`, `.strip()`, `.catchall(z.never())`, a raw shape (the SDK wraps it in `z.object`), and JSON
238
+ `additionalProperties: false` or `unevaluatedProperties: false`.
239
+ - Open forms: `z.looseObject`, `.passthrough()`, `.loose()`, `.nonstrict()`, `.catchall(<another schema>)`.
240
+ - The output schema is found in any object argument of a registration, including a project wrapper's annotations
241
+ object (`defineTool(…, { outputSchema })`). A registration that names `outputSchema` somewhere the reader cannot
242
+ take it from is could-not-judge, never "declares none".
243
+ - `// allow-closed-output: <reason>` (six characters or more) on the site's line or the line above exempts it, and the
244
+ reason is reported. A served site has no source line, so it is never exempt.
245
+ - The standard is pinned at ElPi-Corp `9fdad5b8`. Besides S-44, that pin adds only the unnumbered "Agent tool roles"
246
+ section, which no detector reads yet.
247
+
227
248
  ### Changes in 0.14.0 (standard `c29f83d5`)
228
249
 
229
250
  Six readers stopped reporting could-not-judge on real servers, and one stopped calling a correct server
package/dist/doctor.d.ts CHANGED
@@ -157,6 +157,11 @@ interface RuntimeTool {
157
157
  * shape a client must put in each argument from it; absent when the server served none.
158
158
  */
159
159
  inputSchema?: Record<string, unknown>;
160
+ /**
161
+ * The served `outputSchema` exactly as tools/list returned it, when it is an object (S-44 reads it). Unset
162
+ * when the tool serves none.
163
+ */
164
+ outputSchema?: Record<string, unknown>;
160
165
  }
161
166
  /**
162
167
  * What one invalid-cursor probe read (C-11). The domain is the JSON-RPC response shapes: an `error`
package/dist/doctor.js CHANGED
@@ -767,7 +767,7 @@ function enclosingBlock(file, line, col, levels = 0) {
767
767
  }
768
768
 
769
769
  // src/detectors/standardPin.ts
770
- var STANDARD_PIN = "c29f83d50781dcca5c99696dcbb5d19bb77ef33d";
770
+ var STANDARD_PIN = "9fdad5b80bebef09d790e1ca9a4419f7ea2db7d1";
771
771
 
772
772
  // src/detectors/dLocalIdentity.ts
773
773
  var CLOUD_IDENTITY_PACKAGE = "@vantageos/cloud-identity";
@@ -8127,7 +8127,12 @@ function evalShape(n, ctx) {
8127
8127
  props.push({ label: "[computed]", schema: unread(e.form, e.s), at: e.s });
8128
8128
  }
8129
8129
  }
8130
- return { k: "object", props, at: n.s };
8130
+ return {
8131
+ k: "object",
8132
+ props,
8133
+ at: n.s,
8134
+ closed: { form: "raw shape (wrapped in z.object)", at: n.s }
8135
+ };
8131
8136
  }
8132
8137
  function unionArgs(arg, ctx, at) {
8133
8138
  let a = arg;
@@ -8180,7 +8185,7 @@ function zodFactory(m, n, ctx) {
8180
8185
  const a = n.args;
8181
8186
  if (SCALAR_FACTORIES.has(m)) return SCALAR;
8182
8187
  if (ANY_FACTORIES.has(m)) return { k: "any" };
8183
- if (NULL_FACTORIES.has(m)) return { k: "null" };
8188
+ if (NULL_FACTORIES.has(m)) return m === "never" ? { k: "null", never: true } : { k: "null" };
8184
8189
  switch (m) {
8185
8190
  case "array":
8186
8191
  case "set":
@@ -8191,8 +8196,11 @@ function zodFactory(m, n, ctx) {
8191
8196
  }
8192
8197
  case "object":
8193
8198
  case "strictObject":
8194
- case "looseObject":
8195
- return a[0] ? evalZod(a[0], ctx) : { k: "object", props: [], at: n.s };
8199
+ case "looseObject": {
8200
+ const base = a[0] ? evalZod(a[0], ctx) : { k: "object", props: [], at: n.s };
8201
+ if (base.k !== "object") return base;
8202
+ return m === "looseObject" ? { ...base, closed: void 0 } : { ...base, closed: { form: `z.${m}(...)`, at: n.s } };
8203
+ }
8196
8204
  case "record":
8197
8205
  case "partialRecord":
8198
8206
  case "looseRecord":
@@ -8238,6 +8246,17 @@ function zodFactory(m, n, ctx) {
8238
8246
  }
8239
8247
  function zodMethod(base, m, n, ctx) {
8240
8248
  if (base.k === "unread") return base;
8249
+ if (base.k === "object" && (m === "strict" || m === "strip"))
8250
+ return { ...base, closed: { form: `.${m}()`, at: n.s } };
8251
+ if (base.k === "object" && ["passthrough", "loose", "nonstrict"].includes(m))
8252
+ return { ...base, closed: void 0 };
8253
+ if (base.k === "object" && m === "catchall") {
8254
+ const extra = n.args[0] ? evalZod(n.args[0], ctx) : unread(".catchall() with no argument", n.s);
8255
+ if (extra.k === "unread") return unread(`.catchall(...): ${extra.form}`, extra.at ?? n.s);
8256
+ if (extra.k === "null" && extra.never)
8257
+ return { ...base, closed: { form: ".catchall(z.never())", at: n.s } };
8258
+ return { ...base, closed: void 0 };
8259
+ }
8241
8260
  if (IDENTITY_METHODS.has(m)) return base;
8242
8261
  const a = n.args;
8243
8262
  switch (m) {
@@ -8385,7 +8404,8 @@ function jsonToS(v, root, seen, depth = 0) {
8385
8404
  if (isObj(v.patternProperties))
8386
8405
  for (const s of Object.values(v.patternProperties))
8387
8406
  props.push({ label: "*", schema: sub(s), at });
8388
- return { k: "object", props, at };
8407
+ const closer = ["additionalProperties", "unevaluatedProperties"].find((kw) => v[kw] === false);
8408
+ return closer ? { k: "object", props, at, closed: { form: `${closer}: false`, at } } : { k: "object", props, at };
8389
8409
  };
8390
8410
  const type = v.type;
8391
8411
  if (Array.isArray(type)) {
@@ -8485,14 +8505,16 @@ function isJsonLiteral(n) {
8485
8505
  function schemaValue(n) {
8486
8506
  return isJsonLiteral(n) ? { kind: "json", node: n } : { kind: "zod", node: n };
8487
8507
  }
8488
- function fromConfig(obj, ctx) {
8508
+ function fromConfig(obj, ctx, key = "inputSchema") {
8489
8509
  const props = obj.entries.filter((e) => e.kind === "prop");
8490
- const input = props.find((e) => e.key === "inputSchema");
8510
+ const input = props.find((e) => e.key === key);
8491
8511
  if (input) return schemaValue(input.value);
8492
8512
  const literalValued = (e) => isStringish(e.value, ctx) || e.value.k === "lit" && typeof e.value.v !== "string";
8493
8513
  if (props.some((e) => (e.key === "description" || e.key === "title") && isStringish(e.value, ctx)))
8494
8514
  return { kind: "none" };
8495
- if (props.some((e) => e.key === "outputSchema" || e.key === "annotations" || e.key === "_meta"))
8515
+ if (props.some(
8516
+ (e) => e.key === "inputSchema" || e.key === "outputSchema" || e.key === "annotations" || e.key === "_meta"
8517
+ ))
8496
8518
  return { kind: "none" };
8497
8519
  if (props.length > 0 && props.every((e) => ANNOTATION_KEYS.has(e.key) && literalValued(e)))
8498
8520
  return { kind: "none" };
@@ -8507,7 +8529,7 @@ function isStringish(n, ctx) {
8507
8529
  }
8508
8530
  return false;
8509
8531
  }
8510
- function locateSchema(file, toolName, anchorLine) {
8532
+ function locateSchema(file, toolName, anchorLine, key = "inputSchema") {
8511
8533
  const lx = lex(file);
8512
8534
  const ctx = moduleCtx(file, null);
8513
8535
  const lineStart = lx.base + (lx.lineStarts[anchorLine - 1] ?? 0);
@@ -8573,7 +8595,7 @@ function locateSchema(file, toolName, anchorLine) {
8573
8595
  if (open.v === "{") {
8574
8596
  const obj = new Parser(lx, openIdx).parseExpr();
8575
8597
  if (obj.k !== "obj") return { kind: "unread", form: `descriptor of ${toolName}`, at: open.s };
8576
- const input = obj.entries.find((e) => e.kind === "prop" && e.key === "inputSchema");
8598
+ const input = obj.entries.find((e) => e.kind === "prop" && e.key === key);
8577
8599
  return input && input.kind === "prop" ? schemaValue(input.value) : { kind: "none" };
8578
8600
  }
8579
8601
  if (open.v !== "(")
@@ -8586,6 +8608,7 @@ function locateSchema(file, toolName, anchorLine) {
8586
8608
  form: `registration of ${toolName}: name argument not at top level`,
8587
8609
  at: open.s
8588
8610
  };
8611
+ if (key === "outputSchema") return outputOf(args.slice(k + 1), ctx, lx, openIdx, toolName);
8589
8612
  for (const a of args.slice(k + 1)) {
8590
8613
  if (a.k === "fn") return { kind: "none" };
8591
8614
  if (isStringish(a, ctx)) continue;
@@ -8596,11 +8619,34 @@ function locateSchema(file, toolName, anchorLine) {
8596
8619
  else if (d && d.length === 1 && d[0].k === "fn") return { kind: "none" };
8597
8620
  }
8598
8621
  if (node.k === "obj") {
8599
- const cfg = fromConfig(node, ctx);
8622
+ const cfg = fromConfig(node, ctx, key);
8600
8623
  if (cfg) return cfg;
8601
- return schemaValue(node);
8624
+ return key === "inputSchema" ? schemaValue(node) : { kind: "none" };
8625
+ }
8626
+ return key === "inputSchema" ? { kind: "zod", node: a } : { kind: "none" };
8627
+ }
8628
+ return { kind: "none" };
8629
+ }
8630
+ function outputOf(args, ctx, lx, openIdx, toolName) {
8631
+ for (const a of args) {
8632
+ let node = a;
8633
+ if (node.k === "id") {
8634
+ const d = ctx.b.decls.get(node.name);
8635
+ if (d && d.length === 1 && d[0].k === "obj") node = d[0];
8602
8636
  }
8603
- return { kind: "zod", node: a };
8637
+ if (node.k !== "obj") continue;
8638
+ const out = node.entries.find((e) => e.kind === "prop" && e.key === "outputSchema");
8639
+ if (out && out.kind === "prop") return schemaValue(out.value);
8640
+ }
8641
+ const end = new Parser(lx, openIdx).skipGroup(openIdx);
8642
+ for (let j = openIdx; j < end; j++) {
8643
+ const t = lx.toks[j];
8644
+ if (t.t === "id" && t.v === "outputSchema")
8645
+ return {
8646
+ kind: "unread",
8647
+ form: `registration of ${toolName}: outputSchema is named at a position the reader does not take it from`,
8648
+ at: t.s
8649
+ };
8604
8650
  }
8605
8651
  return { kind: "none" };
8606
8652
  }
@@ -8998,6 +9044,93 @@ var s43UnionInput = {
8998
9044
  run: runStatic,
8999
9045
  runServed: (runtime) => runServedHalf(runtime)
9000
9046
  };
9047
+ function walkClosed(s, path, out) {
9048
+ switch (s.k) {
9049
+ case "object":
9050
+ if (s.closed)
9051
+ out.push({ path, kind: "violation", form: s.closed.form, at: s.closed.at ?? s.at });
9052
+ for (const p of s.props) walkClosed(p.schema, `${path}.${p.label}`, out);
9053
+ return;
9054
+ case "union":
9055
+ for (const b of flatten(s.branches)) walkClosed(b, path, out);
9056
+ return;
9057
+ case "array":
9058
+ if (s.items) walkClosed(s.items, `${path}[]`, out);
9059
+ s.prefix.forEach((p, i) => walkClosed(p, `${path}[${i}]`, out));
9060
+ return;
9061
+ case "all":
9062
+ for (const p of s.parts) walkClosed(p, path, out);
9063
+ return;
9064
+ case "unread":
9065
+ out.push({ path, kind: "unread", form: s.form, at: s.at });
9066
+ return;
9067
+ default:
9068
+ return;
9069
+ }
9070
+ }
9071
+ var CLOSED_MARKER_RE = /\/\/\s*allow-closed-output:\s*(.*)$/;
9072
+ function closedExemption(off) {
9073
+ const at = off === void 0 ? null : locate(off);
9074
+ if (!at) return void 0;
9075
+ const lx = lex(at.file);
9076
+ for (const ln of [at.line, at.line - 1]) {
9077
+ const m = lx.comments.get(ln)?.match(CLOSED_MARKER_RE);
9078
+ if (m && m[1].trim().length >= MIN_REASON) return m[1].trim();
9079
+ }
9080
+ return void 0;
9081
+ }
9082
+ function closedOutputSites(tree, toolName, anchor) {
9083
+ const cut = anchor.lastIndexOf(":");
9084
+ const file = tree.files.find((f) => f.rel === anchor.slice(0, cut));
9085
+ if (!file)
9086
+ return {
9087
+ kind: "read",
9088
+ sites: [
9089
+ {
9090
+ path: toolName,
9091
+ kind: "unread",
9092
+ form: "registration file not in the scanned tree",
9093
+ anchor
9094
+ }
9095
+ ]
9096
+ };
9097
+ const located = locateSchema(file, toolName, Number(anchor.slice(cut + 1)), "outputSchema");
9098
+ if (located.kind === "none") return { kind: "none" };
9099
+ const where = (off) => {
9100
+ const at = off === void 0 ? null : locate(off);
9101
+ return at ? `${at.file.rel}:${at.line}` : anchor;
9102
+ };
9103
+ if (located.kind === "unread")
9104
+ return {
9105
+ kind: "read",
9106
+ sites: [{ path: toolName, kind: "unread", form: located.form, anchor: where(located.at) }]
9107
+ };
9108
+ const ctx = moduleCtx(file, tree);
9109
+ const schema = located.kind === "json" ? jsonSchemaOf(located.node, ctx) : evalZod(located.node, ctx);
9110
+ const raw = [];
9111
+ walkClosed(schema, toolName, raw);
9112
+ const seen = /* @__PURE__ */ new Set();
9113
+ const sites = [];
9114
+ for (const r of raw) {
9115
+ const key = `${r.kind}|${r.path}|${r.form}`;
9116
+ if (seen.has(key)) continue;
9117
+ seen.add(key);
9118
+ const exempt = r.kind === "violation" ? closedExemption(r.at) : void 0;
9119
+ sites.push({
9120
+ path: r.path,
9121
+ kind: r.kind,
9122
+ form: r.form,
9123
+ anchor: where(r.at),
9124
+ ...exempt ? { exempt } : {}
9125
+ });
9126
+ }
9127
+ return { kind: "read", sites };
9128
+ }
9129
+ function closedServedSites(schema, toolName, anchor) {
9130
+ const raw = [];
9131
+ walkClosed(jsonToS(schema, { root: schema }, /* @__PURE__ */ new Set()), toolName, raw);
9132
+ return raw.map((r) => ({ path: r.path, kind: r.kind, form: r.form, anchor }));
9133
+ }
9001
9134
 
9002
9135
  // src/detectors/c11-pagination.ts
9003
9136
  var PIN2 = STANDARD_PIN;
@@ -24823,6 +24956,131 @@ var s41LakeReader = {
24823
24956
  }
24824
24957
  };
24825
24958
 
24959
+ // src/detectors/s44-closed-output.ts
24960
+ var ID2 = "S44 closed-output";
24961
+ var RULE2 = "S-44";
24962
+ function judge(sites, j) {
24963
+ for (const s of sites) {
24964
+ if (s.kind === "unread")
24965
+ j.unread.push({ anchor: s.anchor, reason: `${s.path}: ${s.form} (${RULE2})` });
24966
+ else if (s.exempt) j.exempt.push(s);
24967
+ else j.violations.push(s);
24968
+ }
24969
+ }
24970
+ function verdictOf2(j, scope, anchorFallback) {
24971
+ const ex = j.exempt.length > 0 ? ` Exempted (${j.exempt.length}): ${j.exempt.map((e) => `${e.path} (${e.anchor}) \u2014 "${e.exempt}"`).join("; ")}.` : "";
24972
+ if (j.withOutput === 0 && j.unread.length === 0)
24973
+ return {
24974
+ id: ID2,
24975
+ anchor: anchorFallback,
24976
+ state: "absent",
24977
+ verdict: `${j.toolCount} tool(s) read (${scope}), none declares an output schema \u2014 ${RULE2} n/a`
24978
+ };
24979
+ const decided = j.violations.length > 0 ? {
24980
+ id: ID2,
24981
+ anchor: j.violations[0].anchor,
24982
+ state: "non-conforming",
24983
+ verdict: `${j.violations.length} closed object(s) in the output schemas of ${j.withOutput} tool(s): each refuses a field added later, which breaks every client connected before the release (${RULE2}): ${j.violations.map((v) => `${v.path} (${v.form}, ${v.anchor})`).join(", ")}.${ex}`
24984
+ } : {
24985
+ id: ID2,
24986
+ anchor: anchorFallback,
24987
+ state: "present",
24988
+ verdict: `${j.withOutput} output schema(s) read (${scope}): no object refuses an added field (${RULE2}).${ex}`
24989
+ };
24990
+ return settle(ID2, decided, j.unread);
24991
+ }
24992
+ function s44Controls() {
24993
+ const red = closedServedSites(
24994
+ { type: "object", properties: { a: { type: "string" } }, additionalProperties: false },
24995
+ "c",
24996
+ "<s44-control>"
24997
+ );
24998
+ const green = closedServedSites(
24999
+ { type: "object", properties: { a: { type: "object", properties: {} } } },
25000
+ "c",
25001
+ "<s44-control>"
25002
+ );
25003
+ return {
25004
+ sees: red.length === 1 && red[0].kind === "violation" && red[0].path === "c",
25005
+ spares: green.length === 0
25006
+ };
25007
+ }
25008
+ function runStatic2(tree) {
25009
+ const controls = s44Controls();
25010
+ if (!controls.sees || !controls.spares)
25011
+ throw new Error(
25012
+ `S44 positive control FAILED: sees=${controls.sees} spares=${controls.spares} \u2014 reader broken, verdict untrustworthy`
25013
+ );
25014
+ const inProduct = (a) => isProductSource(a.slice(0, a.lastIndexOf(":")));
25015
+ const tools = findRegisteredTools(tree).filter((t) => inProduct(t.anchor));
25016
+ const unresolved = findUnresolvedToolSites(tree).filter(inProduct);
25017
+ if (tools.length === 0) {
25018
+ const surface = toolSurfaceAnchor(tree);
25019
+ if (surface || unresolved.length > 0) {
25020
+ const reason = noToolsLocatedReason(tree, `no output schema could be read (${RULE2})`);
25021
+ return couldNotJudge(
25022
+ ID2,
25023
+ surface ?? unresolved[0],
25024
+ unresolved.length > 0 ? `${reason}; unresolved registration site(s): ${unresolved.join(", ")}` : reason
25025
+ );
25026
+ }
25027
+ return {
25028
+ id: ID2,
25029
+ anchor: tree.root,
25030
+ state: "absent",
25031
+ verdict: `no MCP tool registered in product source \u2014 ${RULE2} n/a`
25032
+ };
25033
+ }
25034
+ const j = {
25035
+ violations: [],
25036
+ exempt: [],
25037
+ unread: [],
25038
+ toolCount: tools.length,
25039
+ withOutput: 0
25040
+ };
25041
+ for (const a of unresolved)
25042
+ j.unread.push({
25043
+ anchor: a,
25044
+ reason: `a tool registered here has a name the scan cannot resolve, so its output schema is unread (${RULE2})`
25045
+ });
25046
+ for (const tool of tools) {
25047
+ const read = closedOutputSites(tree, tool.name, tool.anchor);
25048
+ if (read.kind === "none") continue;
25049
+ j.withOutput++;
25050
+ judge(read.sites, j);
25051
+ }
25052
+ return verdictOf2(j, "static, from source", tools[0].anchor);
25053
+ }
25054
+ function runServedHalf2(runtime) {
25055
+ const anchor = `${runtime.root} (served)`;
25056
+ if (runtime.launchError)
25057
+ return couldNotJudge(
25058
+ ID2,
25059
+ anchor,
25060
+ `the server could not be started/introspected, so no served outputSchema was read: ${runtime.launchError} (${RULE2})`
25061
+ );
25062
+ const j = {
25063
+ violations: [],
25064
+ exempt: [],
25065
+ unread: [],
25066
+ toolCount: runtime.tools.length,
25067
+ withOutput: 0
25068
+ };
25069
+ for (const t of runtime.tools) {
25070
+ if (t.outputSchema === void 0) continue;
25071
+ j.withOutput++;
25072
+ judge(closedServedSites(t.outputSchema, t.name, `${anchor} tools/list ${t.name}`), j);
25073
+ }
25074
+ return verdictOf2(j, "served tools/list outputSchema", anchor);
25075
+ }
25076
+ var s44ClosedOutput = {
25077
+ id: ID2,
25078
+ rule: RULE2,
25079
+ pin: STANDARD_PIN,
25080
+ run: runStatic2,
25081
+ runServed: (runtime) => runServedHalf2(runtime)
25082
+ };
25083
+
24826
25084
  // src/detectors/index.ts
24827
25085
  var registered = [
24828
25086
  d2,
@@ -24929,6 +25187,7 @@ var registered = [
24929
25187
  s40UpstreamRowsNarrowed,
24930
25188
  s41LakeReader,
24931
25189
  s43UnionInput,
25190
+ s44ClosedOutput,
24932
25191
  e5ExtensionIsolation,
24933
25192
  a3SandboxRespected,
24934
25193
  a4WcagGate,
@@ -24963,6 +25222,7 @@ var READS_CODE = /* @__PURE__ */ new Set([
24963
25222
  "S-40",
24964
25223
  "S-41",
24965
25224
  "S-43",
25225
+ "S-44",
24966
25226
  "E-5",
24967
25227
  "A-3"
24968
25228
  ]);
@@ -25333,7 +25593,7 @@ const onMessage = (msg) => {
25333
25593
  const props = schemaOf(t).properties;
25334
25594
  return Boolean(props && typeof props === "object" && Object.prototype.hasOwnProperty.call(props, "cursor"));
25335
25595
  };
25336
- tools = served.map((t) => ({ name: String(t && t.name), description: t && typeof t.description === "string" ? t.description : undefined, cursorArgument: takesCursor(t), inputSchema: t && t.inputSchema && typeof t.inputSchema === "object" && !Array.isArray(t.inputSchema) ? t.inputSchema : undefined }));
25596
+ tools = served.map((t) => ({ name: String(t && t.name), description: t && typeof t.description === "string" ? t.description : undefined, cursorArgument: takesCursor(t), inputSchema: t && t.inputSchema && typeof t.inputSchema === "object" && !Array.isArray(t.inputSchema) ? t.inputSchema : undefined, outputSchema: t && t.outputSchema && typeof t.outputSchema === "object" && !Array.isArray(t.outputSchema) ? t.outputSchema : undefined }));
25337
25597
  const methods = ["tools/list"];
25338
25598
  if (capabilities.resources) methods.push("resources/list", "resources/templates/list");
25339
25599
  if (capabilities.prompts) methods.push("prompts/list");
@@ -25638,7 +25898,8 @@ function introspect(plan, root, evalSource, expectedCommit, evalsNote, secrets)
25638
25898
  const count = evals.counts.get(name);
25639
25899
  const base = t.description ? { name, description: t.description } : { name };
25640
25900
  const withCursor = t.cursorArgument === true ? { ...base, cursorArgument: true } : base;
25641
- const withSchema = t.inputSchema ? { ...withCursor, inputSchema: t.inputSchema } : withCursor;
25901
+ const withInput = t.inputSchema ? { ...withCursor, inputSchema: t.inputSchema } : withCursor;
25902
+ const withSchema = t.outputSchema ? { ...withInput, outputSchema: t.outputSchema } : withInput;
25642
25903
  return count === void 0 ? withSchema : { ...withSchema, evalCaseCount: count };
25643
25904
  });
25644
25905
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vantageos/mcp-doctor",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
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",