Skip to content

v0.1.4 — auth claim, pagination predicate, manifest drift guard

Choose a tag to compare

@KenLP KenLP released this 17 Jul 07:59
· 62 commits to main since this release

Closes the last manifest/runtime mismatch found in review, and automates the check that kept catching them by hand.

The manifest described an auth failover that does not exist

auth.notes said 2LO was preferred for the Account Admin / Data Management / Model Derivative / Docs read tools "with SSA as fallback". There is no fallback:

  • In APS_AUTH_MODE=ssa, index.ts always constructs the 2LO provider, so effectiveCtx always hands preferredAuth: '2lo' tools the 2LO token. The ctx.auth2lo check that reads like a fallback never fails in that mode.
  • A 2LO request that fails is not retried under SSA.

The note now describes what happens: a per-tool choice made at startup, explicitly not a failover. docs/AUTH.md said "used automatically (when available)", which hinted at the same fiction, and now states the rule outright. README.md also listed 3lo as an APS_AUTH_MODE value — setting it throws at startup.

admin_list_projects pagination

Two defects in the v0.1.3 fix:

  • Wrong predicate. The decision to withhold totalResults keyed off isAllowlistActive(), which is true when either allow-list is narrowed. This tool only filters by project, so FORMA_ALLOWED_HUBS=b.x with FORMA_ALLOWED_PROJECTS=* degraded the response while filtering nothing. Now keyed off the new isProjectAllowlistActive().
  • No continuation contract. With a project allow-list active and totalResults withheld, a client could not tell whether to fetch the next page — a page 1 holding no allowed projects looked identical to an empty result while allowed projects sat on page 2. The response now always carries hasMore and nextOffset, derived from the raw APS page: limit/offset address the unfiltered set, so deriving them from the filtered count would re-read rows forever or skip them.

hasMore does reveal that further rows exist beyond this page even when all of them are filtered out. That is a far weaker signal than an exact unfiltered count ("more exist", not "how many"), and without it the tool cannot be paginated under an allow-list at all. Deliberate trade, documented inline.

Manifest drift is now a test, not a habit

mcp-manifest.json is the artifact Autodesk reviews, and a mismatch with the real tool set is a failure mode they call out explicitly. It drifted five times across this review cycle and was caught by hand every round. tests/unit/manifest-sync.spec.ts now asserts: the manifest's tool-name set exactly equals the registry's (extras and missing reported by name), every mutating flag agrees with the tool's kind, every description is non-empty, and no name is duplicated.

Runtime descriptions are deliberately fuller than the manifest's one-liners, so the test does not compare description text — only the facts that must agree.

Verification

Server binary announces 0.1.4; 43 tools over the live MCP protocol, 7 exposing dry_run, 0 with imperative descriptions. auth.notes no longer contains the word "fallback". 231 unit tests across 35 files, green twice on a cold cache with no .env — the condition CI runs under. Typecheck, lint, build clean; CI green on Node 20 and 22.