Repository navigation
v0.1.4 — auth claim, pagination predicate, manifest drift guard
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.tsalways constructs the 2LO provider, soeffectiveCtxalways handspreferredAuth: '2lo'tools the 2LO token. Thectx.auth2locheck 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
totalResultskeyed offisAllowlistActive(), which is true when either allow-list is narrowed. This tool only filters by project, soFORMA_ALLOWED_HUBS=b.xwithFORMA_ALLOWED_PROJECTS=*degraded the response while filtering nothing. Now keyed off the newisProjectAllowlistActive(). - No continuation contract. With a project allow-list active and
totalResultswithheld, 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 carrieshasMoreandnextOffset, derived from the raw APS page:limit/offsetaddress 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.