pyRevit 7.1 hardens its MCP agent runtime and adds Deep Purge

Share

The pyRevit team released pyRevit 7.1.0 (build 26319) on November 15, 2026. The release notes call it “a hardening release”: most of the work goes into making the MCP agent runtime introduced in 7.0 safer, with a handful of new tools on top.

What’s new

A safer agent runtime. pyRevit 7.0 added an MCP server so AI clients can run code in Revit. Version 7.1 puts limits around it:

  • inputs, outputs and record counts are now bounded, and timeout escapes are closed;
  • rollbacks are checked against the model, and a run reports rollback_incomplete if the undo stack was flushed;
  • a run is refused when the active document is not the one the agent asked for;
  • one hung Revit call no longer blocks every other MCP tool, and the server no longer hangs when its input stream closes.

The agent runtime stays off until you enable it with pyrevit configs agent enable.

New tools. Deep Purge joins the Wipe pulldown. Diagnose Invisibility opens an interactive report that explains why an element is not showing, with suggested fixes and a 3D preview. Count Faces arrives in the Family Editor. Print Sheets gains an “All Models” scope, and Batch Sheet Maker can now set sheet parameters.

CLI. New commands include pyrevit launch, pyrevit env --redact and pyrevit env path to manage the PATH entry.

Fixes. Synchronize with Central no longer fails with a false “file is corrupt” error after a CPython script runs (issue #4075), and deep IronPython recursion no longer crashes Revit.

The release was tested on Revit 2023 to 2027 with IronPython 2.7 and 3.4, CPython 3.12 and C#. pyRevit is free and open source.

Why it matters

Letting an AI agent touch a live model is only acceptable if mistakes can be contained. Checked rollbacks and a refusal to act on the wrong document are exactly the guardrails BIM managers ask for before allowing these tools in production.

Before upgrading, check the breaking changes listed in the notes:

  • ribbon IDs now follow folder names, so custom shortcuts and Quick Access Toolbar buttons on localized panels may need to be rebound;
  • some Routes status codes changed, and a few legacy APIs such as SelectFromList.check_selected were removed;
  • only files named *_check.py load as preflight checks.

Known issues include a deadlock in Python 3 compatibility tests on Revit 2026 (#3998). If you use DevTools or DevHooks, choose the custom install type again, as a full install does not include them. Existing 7.0.x installs upgrade in place.

Source

pyRevit 7.1.0 release notes on GitHub

Get the Revit news that matters

AI, releases, add-ins and API updates for Revit users. One short email, no spam, unsubscribe anytime.

Editor of revit.news and founder of HEXABIM. 25 years in civil engineering and digital modelling. Articles are prepared with the help of automated tools from linked public sources and published under his editorial responsibility.

Get the Revit news that matters

AI, releases, add-ins and API updates for Revit users. One short email, no spam, unsubscribe anytime.

Read more

Latest Revit news