@vantageos/mcp-doctor 0.23.0 → 0.25.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,19 @@ 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.25.0 — 2026-11-27
8
+
9
+ ### Fixed
10
+ - **S-28 judges a forwarded claim against the door that receives it, and no longer carries a hand-typed claim list.** The detector counted only `verifiedOrg` and `verifiedPerson` as forwarding, so a tool that forwards `verifiedActor` to a door that accepts only `verifiedActor` (vantage-peers `get_profile` to `profiles:getProfile`) was reported as forwarding no claim. A claim now counts when it is one the door accepts, read from the `verified<Name>` keys of that door's own argument validator. The same read ends a second false pass: a fetcher that added a claim cleared every door reached through it, so a fetcher adding `verifiedOrg` cleared `missions:list` (a door that takes no claim) and `memories:listMemories` (takes `verifiedActor`). Each call through a fetcher is now judged against its own door, and a door the fetcher's claim does not reach is reported with the claim the fetcher adds. Proven on verbatim vantage-peers copies at 85fe5d21 and c335c8a6 (MUST_PASS), and on a copy with the forwarded claim dropped for each kind (org, actor, person: MUST_BLOCK). (README: #states-and-exit-codes)
11
+ - **S-28 no longer exempts the agent claim from the refusal half of the rule.** An optional-helper site (the helper returns `{}` when the bearer holds no claim) was conform for `verifiedActor` on the assumption that every actor door refuses a claimless call itself; the vantage-peers doors `memories:listMemories` and `briefingNotes:update` accept `verifiedActor` and show no branch that refuses the claimless call. Such a site is now judged per door from the door's own source: conform only when the door refuses the claimless SERVICE-ACCOUNT call (the property backend-doctor R-54 measures): a `requireVerified<Name>FromServiceAccount(` call (the family, matched by pattern), or an `if` on the absence of a `verified…` claim whose block throws, read in the door and in the helpers of the tree it calls. `requireResolvedCaller` is not such a refusal: it returns early for the master the service account resolves as, so a door whose only guard is that call (vantage-peers `kbMutations:claimUpload`) is non-conforming. A door that shows neither refusal and calls a function whose body the scan cannot read and whose name says it resolves a caller (Verified, Actor, Caller or Profile) is could-not-judge, naming it (`profiles:getProfile` -> `resolveVerifiedProfileAgent`); a door region that cannot be read is could-not-judge, naming it. Proven on verbatim vantage-peers copies at edab6a79 (`githubRepoMapping:getRoute` and `issueStatsQueries:getLatest` MUST_PASS, `kbMutations:claimUpload` MUST_BLOCK), and on copies with the `requireVerified…FromServiceAccount` call removed and with the throw removed (MUST_BLOCK per form). (README: #states-and-exit-codes)
12
+ - **S-28 no longer reads a tool-side guard that admits the master as a refusal of the claimless service-account call.** A tool that called `unresolvedOrgDenial(...)` before its door call read conform, but that guard returns null for the master (`if (facts.isMaster || facts.hasClerkJwt) return null`), and the service account resolves as master, so the guard refuses nothing the rule is about. The recognised guard names were swept against their vantage-peers bodies: only `requireVerified<Name>FromServiceAccount(` and `requireClaim…(` (`requireClaimedCaller`, which throws for the claimless service account) remain. Proven on the whole `kbIngest.ts` of vantage-peers edab6a79: the `claim_upload` site (`kbMutations:claimUpload`) reads non-conforming. (README: #states-and-exit-codes)
13
+
14
+ ## 0.24.0 — 2026-11-27
15
+
16
+ ### Fixed
17
+ - **D6, C19 and S25 no longer report three real vantage-peers `mcp-server` sources as violations.** D6 reads the GA binding `_meta.ui.resourceUri` on the syntax tree (`registerAppTool`, a literal, a shorthand `resourceUri`, a spread-merged `ui: { ...x, resourceUri }`, a quoted key, a member assignment) instead of a one-line regex, and a `_meta` / `ui` shape it cannot follow is could-not-judge "could not determine binding", never a pass nor a red. C19 derives the description argument a registration wrapper forwards through a local (`description: advertised` where `advertised` is built from the `description` parameter) and reads a `+`-concatenation or a template literal with expressions as declared. S25 matches a `blob` property assignment (`blob: v`, `"blob": v`, `x.blob = v`) on the syntax tree, so the string `"blob:"` in a Set of URL schemes is not a binary-content assignment; a file that does not parse is could-not-judge. Evidence: the real sources, copied unchanged under `fixtures/foreign-vantage-peers/`, pass; a violation injected into each goes red. Task k170z6dkshhs6kycqtjdjxkmd98jwb6g. (README: #what-it-checks-mcp-2026-07-28)
18
+ - **DServer6 (C-6) Form D now sees the infrastructure value however it reaches the log call.** The detector matched the identifier NAME, so a mutation of vantage-peers `mcp-server/server-http.ts` startup logs was caught as `${server["hostname"]}` and `${server.hostname}` and missed as `${server.url}` and as a renamed destructure (`const { hostname: h } = server` then `${h}`). It now follows the value on the syntax tree inside the file: member and element access of `hostname` (any object) and of `host`/`url`/`origin`/`href` on a server or URL object, destructuring (renamed too), aliases (including through a template), `new URL(...).host`, and a plain argument as well as a template interpolation. A request URL (`req.url`) is not flagged. A flow it cannot follow (a host/url-named value assigned from a call) is could-not-judge naming it, never a pass. Proven per form on a verbatim copy of vantage-peers `server-http.ts` at 1c51a20b (MUST_BLOCK) and 0c872585 (MUST_PASS). (README: #states-and-exit-codes)
19
+
7
20
  ## 0.23.0 — 2026-11-25
8
21
 
9
22
  ### Added
package/README.md CHANGED
@@ -340,7 +340,7 @@ Each detector maps one standard item and is proven **bipolar** on real material:
340
340
  | **D15** cache-coherence | Server Rule 15 — every tool-set mutation (RegisteredTool `.enable/.disable/.update/.remove`, `unregisterTool`) is correlated with a `notifications/tools/list_changed` emission | present / absent / non-conforming / could-not-judge |
341
341
  | **D16** version-observable | Server Rule 16 — `server/discover` (or an HTTP `/health` route) exposes a `version` field sourced from `package.json`, reachable pre-auth; an SDK v2 `new McpServer({ name, version })` carrying a `package.json`-derived version counts (pre-auth reach is the dynamic half) | present / absent / non-conforming / could-not-judge |
342
342
  | **DLocalIdentity** no-local-identity | No MCP server defines its own identity primitive: resolving a caller to a tenant or agent (local JWT verify, a populated allow-list attached to a bearer), asserting org membership or role, filtering rows by caller scope (`fromAllowList`, a name allow-list, a row's `orgId` or acting-name field such as `createdBy` / `assignedTo` compared to the caller's, by `===`, `==`, `Object.is` or after `toLowerCase()`), or validating a credential (local `timingSafeEqual`, a digest of a presented value, HMAC; a hash over a static literal, or over local content — file bytes, a directory listing, a digest of them, i.e. a content fingerprint of the built tree — is not a site). A call to a binding imported from `@vantageos/cloud-identity` is not a site. Minting/signing sites (`new SignJWT`, `jwt.sign`, a private-key import) are listed as `MINTING/SIGNING` and not counted; verification and claim reads stay violations whoever issued the token (no issuer carve-out). | present (0, or EXEMPT) / non-conforming (count > ceiling, default 0) / could-not-judge |
343
- | **S-28** claim-forwarded | Server complement S-28 (standard `bacc54a`) — a tool forwards the verified claim of its caller (`verifiedOrg` / `verifiedPerson`) to every backend door it calls and refuses when it holds none. Reads each `<client>.query\|mutation\|action` call, the helpers it spreads, the refusal before it, and the backend source's door list (`--backend=<convex-dir>`, else the nearest `convex/` above the tree). A door that is service-account-only or declared `fleet-wide:` needs no claim; no backend found, an unknown door, a computed door name are could-not-judge. | present / non-conforming / could-not-judge / absent (no Convex client imported) |
343
+ | **S-28** claim-forwarded | Server complement S-28 (standard `bacc54a`) — a tool forwards the verified claim of its caller (`verifiedOrg` / `verifiedPerson`) to every backend door it calls and refuses when it holds none. Reads each `<client>.query\|mutation\|action` call, the helpers it spreads, the refusal before it, and the backend source's door list (`--backend=<convex-dir>`, else the nearest `convex/` above the tree). An optional-helper site with no refusal in the tool is conform only when the door refuses the claimless service-account call (`requireVerified<Name>FromServiceAccount(`, or a throw on the absence of a claim; `requireResolvedCaller` does not count); a door showing neither is non-conforming, or could-not-judge naming an unreadable caller-resolving helper. A door that is service-account-only or declared `fleet-wide:` needs no claim; no backend found, an unknown door, a computed door name are could-not-judge. | present / non-conforming / could-not-judge / absent (no Convex client imported) |
344
344
 
345
345
  ### Detectors without a row in the release tables (back-filled)
346
346