<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: omar abdelaziz</title>
    <description>The latest articles on DEV Community by omar abdelaziz (@omarabdelaziz-sketch).</description>
    <link>https://dev.to/omarabdelaziz-sketch</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3935666%2F270d460b-2f2c-4e55-9f67-7faf37004f07.png</url>
      <title>DEV Community: omar abdelaziz</title>
      <link>https://dev.to/omarabdelaziz-sketch</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omarabdelaziz-sketch"/>
    <language>en</language>
    <item>
      <title>oa-aec-mcp: Revit Audit Workflows as MCP Tools</title>
      <dc:creator>omar abdelaziz</dc:creator>
      <pubDate>Sun, 17 May 2026 01:52:33 +0000</pubDate>
      <link>https://dev.to/omarabdelaziz-sketch/oa-aec-mcp-revit-audit-workflows-as-mcp-tools-25kj</link>
      <guid>https://dev.to/omarabdelaziz-sketch/oa-aec-mcp-revit-audit-workflows-as-mcp-tools-25kj</guid>
      <description>&lt;h1&gt;
  
  
  oa-aec-mcp: Revit Audit Workflows as MCP Tools
&lt;/h1&gt;

&lt;p&gt;Most Revit MCP servers expose element-level primitives.&lt;/p&gt;

&lt;p&gt;Get walls. Create walls. Set parameters. Delete elements.&lt;/p&gt;

&lt;p&gt;Those building blocks are useful if your goal is to let an LLM edit a model. But BIM coordinators usually do not think in terms of element CRUD. They think in terms of model health, naming compliance, warning clusters, and incomplete room data.&lt;/p&gt;

&lt;p&gt;There is also a practical problem with element-level interfaces: they put the wrong work in the wrong place. If an LLM has to run a naming convention audit using raw element tools, it has to enumerate all elements in a category, read each name, apply a pattern, collect failures, and repeat for every category. That is thousands of round trips, significant token cost, and a lot of reasoning the model has to do in its context window instead of focusing on the actual question.&lt;/p&gt;

&lt;p&gt;That is the gap oa-aec-mcp is trying to fill.&lt;/p&gt;




&lt;h2&gt;
  
  
  What It Is
&lt;/h2&gt;

&lt;p&gt;oa-aec-mcp is an open-source MCP server that exposes four read-only Revit audit tools to Claude Desktop. The C# plugin handles all data collection and filtering inside Revit, sending only aggregated results across the WebSocket connection. The model gets a structured answer, not a pile of element IDs to sort through.&lt;/p&gt;

&lt;p&gt;Two public repositories, built over two weeks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;oa-aec-mcp — TypeScript MCP server: &lt;a href="https://github.com/omarabdelazizeng-sketch/oa-aec-mcp" rel="noopener noreferrer"&gt;https://github.com/omarabdelazizeng-sketch/oa-aec-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;oa-aec-mcp-plugin — C# Revit plugin: &lt;a href="https://github.com/omarabdelazizeng-sketch/oa-aec-mcp-plugin" rel="noopener noreferrer"&gt;https://github.com/omarabdelazizeng-sketch/oa-aec-mcp-plugin&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The Four Tools
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;summarize_model_health&lt;/strong&gt; — no input required. Returns warning count, unused families, unplaced rooms, view count, and a plain-English summary of model condition. This is the first tool to call when you want a quick read on where a model stands.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;list_unplaced_rooms&lt;/strong&gt; — optional level filter. Returns unplaced rooms with room number, name, department, and level. Useful when a room program is still evolving and placeholders have accumulated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;find_warnings_by_category&lt;/strong&gt; — accepts a specific warning type or "all". Groups warnings by type and returns affected element IDs. Instead of a raw warning count, you get structure: which warning categories are driving the number, and which elements are involved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;audit_naming_conventions&lt;/strong&gt; — accepts a regex pattern and an optional list of categories (Views, Sheets, Rooms, Levels, Walls, Doors, Windows, Families). Returns violations grouped by category, with total counts and a truncation flag if there are more violations than the return cap.&lt;/p&gt;

&lt;p&gt;The key feature of this tool is not the regex itself. It is that Claude can translate a natural-language naming rule into a regex before calling the tool. A coordinator does not need to know regex syntax — they describe the standard, Claude writes the pattern, and the tool runs the audit.&lt;/p&gt;




&lt;h2&gt;
  
  
  Example: Pre-Submission Model Check
&lt;/h2&gt;

&lt;p&gt;A realistic prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Review this model before issue. Check overall health, list any unplaced rooms on Level 02, identify the top warning categories, and check that views and sheets follow our naming standard — two uppercase letters, a hyphen, then the name.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Claude calls four tools in sequence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;summarize_model_health&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nf"&gt;list_unplaced_rooms&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Level 02&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;find_warnings_by_category&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;all&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;audit_naming_conventions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;^[A-Z]{2}-[A-Z0-9_]+$&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Views&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Sheets&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The third call is where the natural-language → regex translation happens. Claude reads "two uppercase letters, a hyphen, then the name" and generates ^[A-Z]{2}-[A-Z0-9_]+$ before calling the tool. The user never writes a pattern.&lt;/p&gt;

&lt;p&gt;Example response from Claude after the four calls return:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The model is not ready for issue. Warning count is 143, concentrated in duplicate mark values (18 instances) and unenclosed rooms (9 instances). Level 02 has three unplaced rooms assigned to Operations and IT — these look like program placeholders that were never placed. View and sheet naming compliance is poor: 34 violations of the two-letter prefix standard across 156 checked elements. I would address room placement and naming before the next coordination package.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That is the intended workflow. One prompt, four targeted tool calls, one actionable summary.&lt;/p&gt;




&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Claude Desktop
  ↕ stdio (MCP)
TypeScript MCP Server (oa-aec-mcp)
  ↕ WebSocket localhost:8765
C# Revit Plugin (oa-aec-mcp-plugin)
  ↕ ExternalEvent dispatcher
Revit API
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The TypeScript server handles the MCP protocol and exposes tools to Claude Desktop. The C# plugin runs inside Revit, receives requests over WebSocket, and executes them through Revit's ExternalEvent mechanism so all API calls run on the Revit main thread. The two repos are intentionally separate — the protocol layer and the Revit-specific logic stay independent.&lt;/p&gt;




&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Naming audits use regular expressions only — no semantic understanding of BIM standards&lt;/li&gt;
&lt;li&gt;Audit only — does not prevent bad naming or block user actions in Revit&lt;/li&gt;
&lt;li&gt;No automatic fixes of any kind&lt;/li&gt;
&lt;li&gt;v0.1 supports Revit 2025 only&lt;/li&gt;
&lt;li&gt;Requires the companion plugin to be running inside Revit before calling any tool&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What This Is Not
&lt;/h2&gt;

&lt;p&gt;There are already four or five open-source Revit MCP implementations, including at least one with several hundred stars. This project is not trying to be the most complete. It is narrower: four read-only audit tools that cover a specific slice of what BIM coordinators actually do repeatedly.&lt;/p&gt;

&lt;p&gt;If that narrow scope saves a few manual QA steps before a coordination meeting, it is doing its job.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Next
&lt;/h2&gt;

&lt;p&gt;v0.2 candidates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multi-pattern naming audits in a single call&lt;/li&gt;
&lt;li&gt;extract_sheet_index — sheet numbers, names, and current revision&lt;/li&gt;
&lt;li&gt;get_view_filter_summary — view visibility override detection&lt;/li&gt;
&lt;li&gt;Workset usage summary&lt;/li&gt;
&lt;li&gt;View template coverage report&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The same principle applies to everything on that list: one tool per coordination workflow, not one tool per API method.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;Open a production model, run a health check, and see whether the results are useful.&lt;/p&gt;

&lt;p&gt;If something breaks, or if there is an audit workflow you run regularly that should be a tool, open an issue on either repo.&lt;/p&gt;

</description>
      <category>revit</category>
      <category>mcp</category>
      <category>bim</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
