Repository navigation
v0.1.2 — allow-list enforcement across every tool
Marketplace review remediation: the hub/project allow-list now covers every tool, every outcome reaches the audit log, and the manifest describes what the code actually does.
Security — the allow-list now covers every tool
The wrapper resolved the id to allow-list check by input field name, reading whatever was called project_id / hub_id. Two defects followed:
- Tools scoped by a differently-named id —
element_group_id(5 AECDM tools) andurn(md_*,docs_get_viewables) — were never checked. An allow-listed deployment still read any model the credential could see. aecdm_list_element_groupshas aproject_idfield holding an AECDM-native id, not a DMb.<guid>. That id was compared against DM ids: it enforced nothing and rejected valid calls.
Every tool now declares a required scope, enforced centrally. A missing declaration is a type error, and tests/unit/tools/registry-scope.spec.ts holds the invariants across the registry.
| scope | Tools | Behaviour while an allow-list is active |
|---|---|---|
dm |
Issues, Reviews, DM, Admin, mc_*, mp_diff_versions |
id checked against the list |
discovery |
dm_list_hubs, dm_list_projects, admin_list_projects |
results filtered to allow-listed entries |
no-resource |
meta_* |
unaffected |
unmappable |
all aecdm_*, md_*, docs_get_viewables, issues_pin_element |
refused |
The AEC Data Model and Model Derivative endpoints are not project-scoped, so their ids cannot be mapped back to a DM hub/project to compare against the list. Refusing is the only option that keeps the control the manifest advertises. Binding AECDM properly (elementGroupId → dataManagementProjectId) is backlogged.
With the default FORMA_ALLOWED_HUBS=* / FORMA_ALLOWED_PROJECTS=*, nothing changes.
admin_list_projects also returned the APS pagination.totalResults unfiltered, disclosing how many projects exist outside the allow-list.
Security — every outcome now reaches the audit log
Four branches returned before appendAuditEntry ran: the auth-mode gate (read and mutation), the idempotency cache hit, and the missing-approval_token path. Two more — ApprovalError and IdempotencyError — were recorded as failed_api, reporting a denial as an Autodesk API failure. The manifest claimed an entry at every outcome, so the claim was false on all six.
New stages: denied_auth_mode, denied_missing_approval, denied_approval, denied_idempotency, idempotent_replay — all filterable via meta_list_changelog.
The manifest no longer claims "all tool calls" without qualification: it now states that an entry is attempted for every call at whatever outcome it reaches, that FORMA_AUDIT_INCLUDE_READS=false excludes read calls, and that audit writes are fail-open unless FORMA_AUDIT_FAIL_CLOSED=true.
Breaking
docs_get_viewablesdrops its optionalproject_idinput. Nothing tied that project to the URN, so naming an allowed project while reading another project's document passed the check — the input only made the call look scoped.
Declarations match behavior
mcp-manifest.jsondeclares the Authentication API (/authentication/v2/token), called by both auth providers and previously omitted.- Five manifest tool descriptions did not match the code:
admin_list_users(account endpoint only — there is no project roster),admin_get_project(returns status/type/job number/address/dates, not "scopes and relationships"),dm_get_item(items are files, not folders),issues_list(no filter by type),meta_list_changelog(one date, filters by tool and stage — not by project). - 14 runtime tool descriptions rewritten declaratively — the MCP Publisher Guide bars instructions in tool descriptions.
admin_list_usersandissues_get_user_meno longer name the sensitive fields they return.dm_list_projectsclaimed its project IDs work with theaecdm_*tools; they do not. docs/AUTH.mdclaimed three auth modes (APS_AUTH_MODE=3lothrows at startup).docs/SAFETY.mdlisted 3 rate defaults where the code has 6.PRIVACY.mdsaid Autodesk hosts the pre-signed S3 URLs; Autodesk issues them, AWS hosts the storage.
Build
packageManagerpinned to pnpm 9.15.9 — pnpm 11 ignores thepnpm.overridesblock where it currently lives, and the pin keeps local and CI on one version.vitesthookTimeoutraised to 30s:testTimeouthad been raised for suites that dynamically import a large module graph, but a suite importing insidebeforeAllis bound byhookTimeout, whose 10s default trips under full-suite contention.
Verification
43 tools over the live MCP protocol, every description read individually rather than regex-matched. 16 allow-list probes refused with the correct message. The new audit stages verified by reading the JSONL the server actually wrote, not by asserting on a mock. 220 unit tests across 34 files, green twice on a cold cache with no .env — the condition CI runs under. Typecheck, lint, build clean; pnpm audit --prod reports no vulnerabilities; manifest 43/43 matches the registry with mutating flags matching the 7 tools that expose dry_run.