Skip to content

Open-source Revit MCP server: let Claude and other AI assistants read and edit BIM models, with human approval on every change.

978 B
Raw Blame

Canonical Test Model

P17.1 is script-first: do not commit generated RVT binaries here.

Run from the repository root while Revit is open with the AEC Model Bridge add-in loaded:

python scripts\revit\generate_canonical_test_model.py

The script discovers the active Revit bridge from %LOCALAPPDATA%\AECModelBridge\registry\, falls back to http://127.0.0.1:3000, and saves to fixtures/canonical-model/generated/canonical_test_model.rvt.

If the bridge-created document is not activated by Revit, open a clean project template yourself and rerun with --use-active-document.

Seeded QA/QC expectations live in seeded-defects.json. It is count-level on purpose: Revit element IDs and UniqueIds are generated per model build.

Local/nightly e2e goldens live in goldens/. To run them, open the generated canonical model in Revit, then run:

$env:AEC_MODEL_BRIDGE_E2E = "1"
python -m pytest packages\mcp-server-revit\tests\e2e -m e2e