GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KenLP/acc-forma-mcp-server: Safety-first MCP server for Autodesk Forma (ACC): use the hosted service at mcp.bimlynx.com, or self-host with your own credentials. Every write is previewed, approval-gated, and recorded in a tamper-evident audit log.

BranchesTags
Open more actions menu

Latest commit

 

History

143 Commits
143 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
bundle-local
bundle-local
 
 
bundle
bundle
 
 
docs
docs
 
 
examples
examples
 
 
prototypes/change-alert
prototypes/change-alert
 
 
scripts
scripts
 
 
site
site
 
 
src
src
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.editorconfig
.editorconfig
 
 
.env.example
.env.example
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.prettierrc
.prettierrc
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
PRIVACY.md
PRIVACY.md
 
 
README.md
README.md
 
 
docker-entrypoint.sh
docker-entrypoint.sh
 
 
eslint.config.js
eslint.config.js
 
 
fly.toml
fly.toml
 
 
mcp-manifest.json
mcp-manifest.json
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.scripts.json
tsconfig.scripts.json
 
 
tsup.config.ts
tsup.config.ts
 
 
tsup.local.config.ts
tsup.local.config.ts
 
 
tsup.sea.config.ts
tsup.sea.config.ts
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

acc-forma-mcp-server

Safety-first MCP server for Autodesk Forma (formerly Autodesk Construction Cloud). Every write is dry-runnable, audit-logged, and scope-guarded.

Read everything · Preview every write · Audit every action.

CI License: MIT Node ≥20


What it looks like

Quantity take-off straight from the model's full Revit parameter set — 203 floor elements grouped across 14 levels, totalled, with the unit system checked rather than assumed:

Total floor area by level, answered from the live ACC model

Every write is previewed before it happens. The dry-run returns the exact request that would be sent and stops there — the issue is not created until you say so:

Dry-run preview of creating an issue, awaiting confirmation

And the audit log proves what actually ran. Note the preview → executed pair: the approval flow is not just a UI courtesy, it is recorded:

Audit chain verified valid, showing the last five logged actions

Why this server?

Two things distinguish it: how much of ACC it covers, and how carefully it writes.

Coverage — seven ACC/APS API families behind one server: Issues (full CRUD, comments, attachments, 3D pushpins anchored to BIM elements), Reviews (list, inspect, and start approval workflows), AEC Data Model element queries and positions, Model Derivative properties, Model Coordination clash detection, Model Properties version diff, and Data Management / Admin. Every tool has been exercised against the live Autodesk APIs — several of ACC's real contracts (Reviews payloads, pushpin coordinates, issue status enums) differ from their documentation, and this server encodes what the API actually accepts.

Safety — writing to a construction project's source of truth deserves more ceremony than a bare API passthrough:

Guardrail What it does
Dry-run by default Every write returns a preview first; executing requires an explicit approval token bound to the exact payload
Tamper-evident audit log Every tool call appended to a hash-chained JSONL — every outcome, including denials and failures
Allow-list enforcement FORMA_ALLOWED_HUBS/FORMA_ALLOWED_PROJECTS bound every call, checked centrally, independent of Autodesk-side permissions
Read-only mode One switch (FORMA_READONLY=true) blocks all mutations
Rate governance Per-tool hourly limits on every project-scoped mutation
Business-rule validators Domain checks (valid status transitions, versioned URNs, normalized pin coordinates) fail fast with actionable messages, before any token is issued

The details, including what each guardrail does not protect against, are in docs/SAFETY.md — the limits are documented with the same care as the features.


Get BIMLynx

BIMLynx is free to use. Email [email protected] for the self-host package: a Claude Desktop extension that runs on your own computer with your organization's own Autodesk app — one file, no Node.js, no terminal — plus a step-by-step guide for your Autodesk team admin, your users and your Forma (ACC) admin. Prefer to build it yourself? See Self-host (advanced).

The hosted service is paused for new organizations. Autodesk now charges for the AEC Data Model API (pricing). On the hosted service that usage is billed to the publisher, not to your organization; with your own Autodesk app it draws on the capacity included with your own subscription. We are not issuing new bearer keys until Autodesk lets customers cover API usage from their own subscription.

Hosted service (existing bearer keys)

The publisher operates a hosted instance at https://mcp.bimlynx.com/mcp. Organizations that already hold a bearer key keep using it as described below; new keys are not being issued (see above).

The key on its own is not what protects your data. Each customer gets a dedicated Autodesk Secure Service Account (robot-per-tenant), and that robot sees nothing until your own hub admin invites it into specific projects — access is granted by you, scoped by you, and revocable by you in Forma (ACC) at any time, without contacting us. See PRIVACY.md for exactly what the hosted service stores and for how long.

Claude Desktop — one-click install

Download bimlynx-0.2.0.mcpb from the v0.2.0 release and open it. (The latest release carries the self-host connector, bimlynx-local-*.mcpb, which is a different install — see the self-host section below.) Claude Desktop installs it and asks for your bearer key; nothing else to configure, and no Node or npm setup of your own. Everything below — the JSON snippets, the Windows .cmd workaround — is only needed if you are wiring the connection up by hand or using a different MCP client.

Any MCP client — manual configuration

Connect with mcp-remote (this server speaks Streamable HTTP; mcp-remote bridges it to MCP clients that expect a local stdio process, such as Claude Desktop).

Claude Desktop / VS Code (macOS, Linux)

{
  "mcpServers": {
    "bimlynx": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "https://mcp.bimlynx.com/mcp",
        "--header", "Authorization:Bearer YOUR_BEARER_KEY_HERE"
      ]
    }
  }
}

Claude Desktop (Windows) — required workaround

On Windows, pointing "command": "npx" directly at mcp-remote does not work: recent Node versions wrap .cmd shims in cmd.exe /C, and npx.cmd lives under C:\Program Files\nodejs\ — the command breaks at the space in the path ('C:\Program' is not recognized), and the server disconnects immediately. This is live-verified against the hosted service. Work around it with a .cmd wrapper file placed at a path with no spaces, saved as plain ASCII (no BOM — a BOM breaks the batch file too):

C:\Users\<you>\bimlynx-mcp.cmd:

@echo off
npx -y mcp-remote https://mcp.bimlynx.com/mcp --header "Authorization:Bearer %BIMLYNX_TOKEN%"

claude_desktop_config.json:

{
  "mcpServers": {
    "bimlynx": {
      "command": "C:\\Users\\<you>\\bimlynx-mcp.cmd",
      "env": { "BIMLYNX_TOKEN": "YOUR_BEARER_KEY_HERE" }
    }
  }
}

The bearer key lives in env only — the .cmd file itself contains no secret, so it's safe to share or check in a dotfiles repo. Note there is no space after the colon in Authorization:Bearer — a plain space in that argument tends to get split apart by cmd.exe.

VS Code (MCP extension) — .vscode/mcp.json in your workspace:

{
  "servers": {
    "bimlynx": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "https://mcp.bimlynx.com/mcp",
        "--header", "Authorization:Bearer YOUR_BEARER_KEY_HERE"
      ]
    }
  }
}

If a tool call times out

A timeout means your client gave up waiting — it does not mean the action was cancelled. The server keeps going, and for a write that already reached the execute step, the change is made and recorded in the audit log even though no result came back.

For reads, just ask again. For writes, do not guess and re-run blindly. Two options:

  • Check first — meta_list_changelog shows what actually happened, including calls whose result never reached you.
  • Retry safely — pass an idempotency_key (any string you choose) on the first attempt. If you repeat the call with the same key, the server recognises it and replays the original result instead of performing the action twice. Reusing a key for a different operation is rejected rather than silently accepted, so a copy-pasted key can't quietly overwrite something else. The key is claimed before the action runs, so a retry fired while the original is still executing is refused, not run a second time. If the original got no answer from Autodesk, the key stays claimed until it expires (FORMA_APPROVAL_TOKEN_TTL): check meta_list_changelog, then retry with a new key only if the action did not happen.

Long-running tools are the usual cause. mp_diff_versions polls Autodesk for up to wait_seconds; if it runs out it returns a diff_id, and calling it again with that id picks the result up where it left off. Lowering wait_seconds keeps each call inside your client's timeout.

One client-side quirk worth knowing: mcp-remote (the local bridge described above) can stop responding after a long call, and every later tool then times out even though the server is healthy. Restarting your MCP client respawns it. Restarting also refreshes the tool list — clients read it once when they connect, so newly added tools and fields only appear after a reconnect.

The hosted service also caps each request body at 256kb — far above a normal tool call, which is usually a few KB of JSON. A request over that limit gets a 413 with a JSON-RPC error naming the limit, not a generic server error. The bearer token is checked before the body is parsed at all, so this — like a malformed JSON body — only applies once you've presented a valid token; a request with no token or the wrong one gets a 401 regardless of what's in the body.

Prefer to run your own instance instead of using the publisher's? The same code self-hosts over stdio with your own Autodesk credentials — see "Self-host (advanced)" below.


Self-host (advanced)

Run the server yourself, on your own machine, with your own Autodesk credentials. In this mode nothing is shared with the publisher — see PRIVACY.md §6.

Claude Desktop users: use the self-host extension instead of the steps below. One .mcpb file, no Node.js, no terminal, no PEM download — the robot account is created from inside the chat. Admin + user walkthrough: docs/SELF-HOST-GUIDE.md (tiếng Việt). The steps below are for other MCP clients and for running from a clone of the repository.

The two differ in reach. The extension acts only as its robot, so it reads only the projects the robot is invited to: 39 tools, no hub-level Admin tools, no webhook tools, never a 2-legged token. Running from a clone adds a 2-legged token for Data Management, Admin and Model Derivative tools, which sees every project in the hub.

Step 1 — APS credentials (one-time)

You need an Autodesk Platform Services (APS) application with an SSA (Secure Service Account). SSA is a bot identity that can be scoped to specific projects without a human login.

See docs/AUTH.md for the full walkthrough. Quick summary:

  1. Create an app at aps.autodesk.com → enable Autodesk Construction Cloud APIs
  2. App → Security → Service Accounts → generate key pair → download the PEM private key (never commit it)
  3. Note your APS_CLIENT_ID, APS_CLIENT_SECRET, SSA_ID, SSA_KEY_ID, and the path to the PEM file
  4. Hub Admin → Members → invite the SSA email → assign Project Admin role
  5. Hub Admin → Custom Integrations → add your app by Client ID (required — without this, all project calls return 403)

Step 2 — Configure env

Create a .env file in the project root (or pass these as env vars in your MCP client config — see Step 3):

APS_AUTH_MODE=ssa
APS_CLIENT_ID=your_client_id
APS_CLIENT_SECRET=your_client_secret
SSA_ID=your_ssa_id
SSA_KEY_ID=your_key_id
SSA_KEY_PATH=/absolute/path/to/private-key.pem

Full variable reference: Configuration

Step 3 — Add to your MCP client

This server communicates over stdio (JSON-RPC). It is spawned by your MCP client — not run standalone in a terminal.

Option A — npx (no clone needed; requires the package to be published on npm)

{
  "mcpServers": {
    "forma": {
      "command": "npx",
      "args": ["-y", "acc-forma-mcp-server"],
      "env": {
        "APS_CLIENT_ID": "your_client_id",
        "APS_CLIENT_SECRET": "your_client_secret",
        "APS_AUTH_MODE": "ssa",
        "SSA_ID": "your_ssa_id",
        "SSA_KEY_ID": "your_key_id",
        "SSA_KEY_PATH": "/absolute/path/to/private-key.pem"
      }
    }
  }
}

Option B — Clone and build locally

git clone https://github.com/KenLP/acc-forma-mcp-server.git
cd acc-forma-mcp-server
pnpm install
pnpm build

Then point your MCP client at the built file:

{
  "mcpServers": {
    "forma": {
      "command": "node",
      "args": ["/absolute/path/to/acc-forma-mcp-server/dist/index.js"],
      "env": {
        "APS_CLIENT_ID": "your_client_id",
        "APS_CLIENT_SECRET": "your_client_secret",
        "APS_AUTH_MODE": "ssa",
        "SSA_ID": "your_ssa_id",
        "SSA_KEY_ID": "your_key_id",
        "SSA_KEY_PATH": "/absolute/path/to/private-key.pem"
      }
    }
  }
}

Tip: Pass credentials via env in the MCP client config (as shown above) rather than relying on a .env file. The working directory when your client spawns the process may not be the repo root.

MCP client config file locations

Client Config path
Claude Desktop (macOS) ~/Library/Application Support/Claude/claude_desktop_config.json
Claude Desktop (Windows) %APPDATA%\Claude\claude_desktop_config.json
VS Code (MCP extension) .vscode/mcp.json in your workspace

Tools (46; 43 available on the hosted service)

All tools are grouped by domain. Read tools take no approval; write/mutation tools (marked ✍️) follow the two-call dry-run protocol in the default mutation mode. The 3 Webhooks tools require 2-legged auth and are self-host only — see the note in that section.

Account Admin (4)

Tool Purpose
admin_list_projects List all projects under a hub (hub-wide visibility via 2LO).
admin_get_project Fetch a single project's admin metadata: status, type, job number, address, and start/end dates.
admin_list_users List the members of the account. Account-level directory only — the Account Admin API has no project-roster endpoint.
admin_list_companies List companies registered on the account.

Data Management (6)

Tool Purpose
dm_list_hubs List ACC/BIM 360 hubs accessible to the app.
dm_list_projects List projects in a hub.
dm_list_top_folders List the top-level folders of a project (Plans, Project Files, etc.).
dm_list_folder_contents List items (files + subfolders) in a folder.
dm_get_item Get metadata for a single item (a file/document), including its tip version id.
dm_list_versions List all versions of a file with version numbers and timestamps.

Issues (12)

Tool Purpose
issues_list List issues in a project, filterable by status or assignee.
issues_get Get a single issue with full details, including permittedStatuses and permittedAttributes for the current user.
issues_create ✍️ Create a new issue with subtype, location, due date, assignment, and optional pushpin links.
issues_pin_element ✍️ Create an issue with a 3D pushpin auto-placed on a BIM element — resolves the viewable GUID, objectId, globalOffset and viewer position from the element's External ID in one call.
issues_update ✍️ Update an existing issue — status, title, description, assignee, due date, subtype, location (sparse PATCH; only provided fields change).
issues_add_comment ✍️ Add a comment to an existing issue.
issues_list_comments List the comment thread on an issue, paginated.
issues_list_types List valid issue types and subtypes (with isActive flag) for a project.
issues_list_root_causes List configured root cause categories for a project.
issues_get_user_me Get the current identity's permission flags for the Issues module (canCreate, canUpdate, canCreateComments).
issues_list_attrs List custom attribute definitions for a project — use to get UUIDs needed by customAttributes in create/update.
issues_list_attachments List files and links attached to an issue, paginated.

Status values (confirmed from live ACC API): draft | open | pending | in_review | closed | void. Valid transitions depend on the project workflow — check permittedStatuses from issues_get before updating.

Reviews (4)

Tool Purpose
reviews_list List the reviews in a project, with status and due date.
reviews_get Get a single review including status and current step.
reviews_list_workflows List the project's approval workflow definitions and their IDs.
reviews_create ✍️ Start a review of selected file versions under an approval workflow.

Approvers come from the workflow definition, not from the create call — pick a workflow with reviews_list_workflows, then pass its id plus the file version URNs. ACC's Reviews API exposes no endpoint for changing a review's state from outside, so there is no transition tool; approvals happen in ACC itself.

AEC Data Model — BIM GraphQL (8)

Tool Purpose
aecdm_list_hubs List AECDM-native hubs (distinct from DM hubs). Start here for any AECDM workflow.
aecdm_list_projects List projects in an AECDM hub.
aecdm_list_element_groups List BIM model files (Revit/IFC) published to an AECDM project, including fileVersionUrn.
aecdm_list_categories List BIM categories present in an element group (Walls, Structural Columns, MEP equipment, etc.) by parallel-probing ~60 well-known Revit categories.
aecdm_query_elements Query BIM elements by category with full properties. Supports multi-word categories like Structural Columns, Electrical Equipment.
aecdm_get_element_properties Re-fetch full properties for a specific element by node ID (requires the originating category).
aecdm_aggregate_by_parameter Count elements grouped by a parameter value within a category (e.g. walls by type name) — fast take-off queries.
aecdm_query_element_positions Query elements with origin position (x, y, z) in metres, plus each element's external_id (Revit UniqueId). Primary use: populate ACC Issue pushpins. For a 3D pin, convert to viewer space first: metres × 3.280839895 − globalOffset (imperial). NOTE: returns an origin point (not an AABB). Only point-placed elements (Pipe Fittings, Fixtures, Columns, Doors) have geometry — linear (Pipes, Ducts) and planar (Walls, Floors) return position: null. Uses the AECDM geometryDataByElements Public Beta field.

Model Derivative — SVF2 Translation (3)

Tool Purpose
md_get_manifest Check SVF2 translation status and list available 3D/2D view GUIDs for a model version.
md_get_properties Fetch Revit element properties (names, parameters, category) from an SVF2-translated model. Supports category and objectId filters.
md_trigger_translation ✍️ Submit a new SVF2 translation job for a model version. Poll with md_get_manifest.

Note: bounding boxes are NOT available from the MD Properties API for any SVF2 model — this is an APS platform limitation. For element bboxes, the Model Properties API (/construction/index/v2/) is the correct path; it works with SSA (see mp_diff_versions, whose diff payload carries real bboxMin/bboxMax). A general single-version bbox query is not wrapped yet.

Model Coordination — Clash Detection (2)

Tool Purpose
mc_list_modelsets List the coordination modelsets (coordination spaces) in a project. The SSA needs Model Coordination product access (Member/Administrator) or the API returns 404.
mc_list_clashes Pull clash-detection results for a modelset — each clash pair with its two models, element identities (objectId/dbId), and penetration depth (distance negative = hard clash). Joins the clash/instance/document result files; sorted worst-first. Feeds issues_pin_element to turn a clash into a pinned issue.

Model Properties — Version Diff (1)

Tool Purpose
mp_diff_versions Diff two versions of the same model (the backend of ACC's Compare Versions): returns whole-model added/removed/modified stats plus a rollup of changed elements by Revit category and by change type (Transform vs Geometry vs property-only). Works with SSA (no 3LO). Async — returns a resumable diff_id if still processing. The per-category rollup is what makes cross-discipline change alerting possible: an Architectural model whose Rooms changed is a signal for Structural, Ducts/Mechanical Equipment for MEP. See prototypes/change-alert.

ACC Docs — Viewables (1)

Tool Purpose
docs_get_viewables Resolve the ACC Docs-native viewableId (e.g. "Layout1") and page/sheet name(s) for a document version URN, so you can place a 2D PDF pushpin (issues_create with type=TwoDRasterPushpin). This is the manifest viewableID field — distinct from the SVF2 guid returned by md_get_manifest, which the markups service rejects for raster PDF pins. markupCapable: false means the document has no Docs-native viewable yet (e.g. a raw PDF uploaded via the DM API that ACC has not processed — re-publish through ACC Docs or the Sheets API).

Webhooks — event subscriptions (3, self-host only)

These 3 tools require 2-legged auth (client_credentials) — the hosted service deliberately never attaches a 2-legged provider per tenant, since 2LO would see every project in the hub and defeat tenant isolation. They register on stdio/self-host deployments (APS_AUTH_MODE=2lo) and are not part of the hosted mcp.bimlynx.com tool set.

Tool Purpose
webhooks_list List the hooks this application has registered — hookId, event, delivery status, callback URL, scope. Only returns hooks created under the server's APS_REGION: hooks are region-partitioned, so one created elsewhere is absent rather than reported as an error.
webhooks_create ✍️ Subscribe to a Data Management event (dm.version.added and 15 others, scoped to a folder URN) or an ACC Issues event (issue.created-1.0 and 4 others, scoped to a project id). Configures ongoing egress — Autodesk posts event payloads to your callback URL until the hook is deleted. Callback must be public https; see FORMA_ALLOWED_CALLBACK_HOSTS.
webhooks_delete ✍️ Delete a hook, permanently stopping delivery. Needs both the event and the hookId — the endpoint is addressed by system+event, not by id alone.

Verifying a delivered callback: Autodesk signs each POST with HMAC-SHA1 (not SHA-256) over the raw body, hex, prefixed sha1hash=, in the x-adsk-signature header. verifyWebhookSignature() is exported from acc-forma-mcp-server/core for consumers. Parsing the JSON and re-serialising it before hashing will never match. Your endpoint must answer 2xx within 6 seconds; five consecutive failures deactivate the hook.

Meta / Observability (2)

Tool Purpose
meta_list_changelog Read the local audit log for one date, filterable by tool name and audit stage.
meta_verify_audit_chain Verify the hash links across the retained audit entries are unbroken.

Phase 3 backlog: non-diff Model Properties single-version index (POST indexes + queries) for bbox/property queries on one version — same API family as mp_diff_versions, not yet wrapped.


Safety Guardrails

1. Dry-run by default

Every mutation tool defaults to dry_run=true. On first call, the server:

  • Validates allow-lists, read-only mode, rate limits, business rules
  • Resolves the exact APS API request (method, URL, body)
  • Returns a preview + single-use approval_token
  • Does not call APS

To execute, re-call the same tool with dry_run=false, approval_token=<token>.

The two-step flow is the default (FORMA_MUTATION_MODE=preview_required). Operators may opt into client_approval_only (skips the token round-trip when the MCP client itself gates approvals) or readonly (blocks every write). See Configuration.

Claude: "Create an issue titled 'Leak at Level 3' in project xyz"

Tool: issues_create(dry_run=true)
→ {
    preview: { method: "POST", url: "...issues", body: {...} },
    approval_token: "appr_01JXW...",
    next_step: "Re-call with dry_run=false and approval_token to execute"
  }

Tool: issues_create(dry_run=false, approval_token="appr_01JXW...")
→ Issue created: ID abc-456

2. Tamper-evident audit log

Tool calls are appended to ~/.acc-forma-mcp/audit/audit-YYYY-MM-DD.jsonl with SHA-256 hash chaining — every outcome, not just the successful ones: preview, executed, each denied_* reason, idempotent_replay, failed_api, and outcome_unknown.

Three limits worth knowing:

  • Only invocations that reach a tool handler are audited. A call whose input fails the MCP SDK's schema validation, or that names a tool that does not exist, is rejected by the protocol layer before any handler runs — nothing is logged, because nothing was done: no Autodesk API is touched on that path.
  • FORMA_AUDIT_INCLUDE_READS=false drops read-tool entries (mutations are always attempted).
  • Audit writes are fail-open by default: if the file cannot be written, the error is logged and the call still proceeds. Set FORMA_AUDIT_FAIL_CLOSED=true to abort the call instead, so no action goes unrecorded.
  • What verification proves, and what it does not. A valid result means the retained entries have not been modified or reordered and the hash links between them are unbroken. It does not detect entries truncated off the end of the file, or the whole file being swapped for a fresh chain starting at genesis — catching either needs an anchor kept outside the log, which this server does not yet publish.

Verify integrity at any time:

# Using the MCP tool
meta_verify_audit_chain()

# Or read the JSONL directly — one JSON object per line
cat ~/.acc-forma-mcp/audit/audit-$(date +%F).jsonl | jq .

3. Project allow-list

FORMA_ALLOWED_PROJECTS=proj-uuid-1,proj-uuid-2
FORMA_ALLOWED_HUBS=hub-id-1

The server rejects any tool call referencing a project/hub outside this list — independent of SSA permissions.

Each tool declares how it binds to the allow-list (scope in its definition), and _wrap.ts enforces that declaration centrally:

Tool group Behaviour while an allow-list is active
Takes a DM hub/project id (Issues, Reviews, DM, Admin, mc_*, mp_diff_versions) id is checked against the list; a call outside it is refused
dm_list_hubs, dm_list_projects, admin_list_projects results are filtered down to allow-listed entries
meta_* unaffected — reads the local audit log, touches no ACC resource
All aecdm_*, md_*, docs_get_viewables, issues_pin_element, all webhooks_* refused

That last row is the honest consequence of a real limitation, not an oversight. Those tools are addressed by an AEC Data Model-native id or a Model Derivative URN, and neither of those endpoints is project-scoped — the id alone reaches any model the credential can see, and it cannot be mapped back to a DM hub/project to compare against the list. Rather than let them through unchecked (which would make the allow-list a claim the server does not keep), they are refused while either list is narrowed. FORMA_ALLOWED_HUBS=* and FORMA_ALLOWED_PROJECTS=* — the default — leaves every tool enabled.

Note that mp_diff_versions also takes version URNs but is not in that row: every Model Properties call is addressed under /construction/index/v2/projects/{project_id}/, so checking its project_id genuinely bounds what it can read.

The webhooks_* tools are in that row for the same reason: a Data Management hook is scoped to a folder URN and a hook is deleted by its hook id, neither of which maps back to a DM project. (An Issues hook is project-scoped, but scope is one static declaration per tool, so the tool is bound by its weakest case.)

3b. Webhook callback allow-list

webhooks_create is the one mutation that configures ongoing egress: once the hook exists, Autodesk — not this server — posts project event data to the callback URL until the hook is deleted.

FORMA_ALLOWED_CALLBACK_HOSTS=hooks.example.com,.n8n.acme.io

A callback URL must be https and publicly routable. Loopback, private and link-local addresses (including 169.254.169.254) are refused unconditionally — Autodesk cannot deliver to them, so such a hook would look healthy and silently never fire. The dry-run preview names the receiving host, the class of data that will flow to it, and the fact that deleting the hook is the only way to stop it.

4. Read-only mode

FORMA_READONLY=true
# or
FORMA_MUTATION_MODE=readonly

Blocks all mutation tools instantly, without touching APS.

5. Mutation modes

FORMA_MUTATION_MODE Behavior
preview_required (default) Must dry_run=true first; re-call with approval_token
client_approval_only Single call; trust MCP client's built-in approval UI
readonly All mutations blocked

Configuration

Copy .env.example to .env and fill in your values. All options documented with comments in .env.example.

Key variables:

Variable Default Description
APS_CLIENT_ID — Required
APS_CLIENT_SECRET — Required
APS_AUTH_MODE ssa ssa or 2lo. 3lo is not implemented — setting it throws at startup
APS_REGION US US, EMEA, or AUS
SSA_ID — Required for SSA mode
SSA_KEY_ID — Required for SSA mode
SSA_KEY_PATH — Path to PEM private key file
FORMA_READONLY false Block all mutations
FORMA_MUTATION_MODE preview_required See Safety section
FORMA_ALLOWED_HUBS * Comma-separated hub IDs
FORMA_ALLOWED_PROJECTS * Comma-separated project UUIDs
FORMA_ALLOWED_CALLBACK_HOSTS * Hosts webhooks_create may send event data to. Leading dot matches subdomains
FORMA_APPROVAL_TOKEN_TTL 300 Approval-token lifetime, in seconds. Also bounds idempotency records.
FORMA_RATE_CONFIG_PATH — JSON file overriding the built-in per-tool hourly limits
FORMA_AUDIT_DIR ~/.acc-forma-mcp/audit JSONL audit log directory
FORMA_AUDIT_INCLUDE_READS true Set false to audit mutations only
FORMA_AUDIT_RETENTION_DAYS 90 Audit files older than this are deleted on server start and at least once every 24 hours after that
FORMA_AUDIT_FAIL_CLOSED false Surface audit write failures as errors. When true and the write fails after an APS mutation, the response indicates whether the change was applied.
FORMA_AUDIT_INDEX none none or sqlite (sqlite not implemented yet)
FORMA_PERSISTENCE_MODE memory memory or sqlite. sqlite keeps approval tokens, rate counters and idempotency records across restarts — see PRIVACY.md for what it stores. better-sqlite3's native binding is built automatically on pnpm install (pnpm.onlyBuiltDependencies in package.json allows its build script); no extra step needed.
FORMA_DB_PATH ~/.acc-forma-mcp/state.db SQLite file, only used when FORMA_PERSISTENCE_MODE=sqlite
LOG_LEVEL info trace, debug, info, warn, error, fatal
LOG_PRETTY false Human-readable log output (stderr)

Remote / HTTP mode

This is the technology behind the hosted service at https://mcp.bimlynx.com/mcp (see "Hosted service (existing bearer keys)" above): a stateless, multi-tenant HTTP server — one bearer key per tenant, each mapped to its own SSA robot. If you'd rather run this yourself instead of using the publisher's instance — for your own organization, or to self-host the multi-tenant setup for multiple people/orgs instead of one server per machine — set FORMA_TRANSPORT=http. The default for a self-hosted server remains local stdio, as shown in "Self-host (advanced)" above; setting FORMA_TRANSPORT=http does not change stdio behavior when you're not using it. See "Remote mode isolation" in docs/SAFETY.md for how a tenant is kept separate from every other one and how to offboard one, Dockerfile/fly.toml for deployment, and scripts/tenant-seed.ts / scripts/tenant-admin.ts (run them directly: npx tsx scripts/tenant-admin.ts create --name "X") to provision tenants.


Core SDK (acc-forma-mcp-server/core)

The typed APS client layer (auth providers, apsRequest/apsGraphQL, all eight API domains) is also consumable as a library — no MCP server, no APS_*/FORMA_* env vars required at import:

import { SsaAuthProvider, issuesApi, mcApi } from 'acc-forma-mcp-server/core';

const auth = new SsaAuthProvider(['data:read', 'data:write'], {
  clientId, clientSecret, ssaId, ssaKeyId,
  privateKey: pemString, // straight from a credential store — no key file needed
});
const issues = await issuesApi.listIssues(auth, projectId, { status: 'open' });

This is the shared kernel for sibling automation products (n8n nodes, cross-CDE extractors). Full guide: docs/CORE_SDK.md · rationale: ADR 0002.

The safety layer (dry-run, approval tokens, audit chain) is MCP-server behavior and intentionally not part of core — write-guarding belongs to the server, not the HTTP client.


Development

# Install
pnpm install

# Build
pnpm run build

# Type check
pnpm run typecheck

# Tests
pnpm run test

# Watch mode
pnpm run test:watch

Privacy

Two different pictures depending on how you use this server. Hosted service (mcp.bimlynx.com): project data passes through the publisher's infrastructure in transit to fulfil your tool calls; a per-tenant audit log, robot credentials (encrypted at rest), and short-TTL approval/idempotency state live there too — see PRIVACY.md for exactly what's stored, the sub-processors involved (Autodesk, Fly.io), and how to revoke access or request deletion. Self-host: the publisher receives no data from you — no telemetry, no analytics, no phone-home. You run the server yourself with your own Autodesk credentials; it contacts only Autodesk's APIs, and the only things written to disk are a local audit log on your own machine (90-day default retention) and — only if you enable SQLite persistence — a local state.db for approval tokens/rate counters/idempotency records.

License

MIT — see LICENSE.

Not affiliated with Autodesk, Inc. Autodesk Forma®, Autodesk Construction Cloud®, and Autodesk Platform Services® are trademarks of Autodesk, Inc.

About

Safety-first MCP server for Autodesk Forma (ACC): use the hosted service at mcp.bimlynx.com, or self-host with your own credentials. Every write is previewed, approval-gated, and recorded in a tamper-evident audit log.

bimlynx.com

Topics

aecapsautodeskautodesk-construction-cloudautodesk-formabimcdecde-cloudclaudeformamcpmodel-context-protocol

Resources

Readme
License
Activity

Stars

4 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.