# surajprem7/navisworks-ai-connect architecture

> Architecture diagram of the GitHub repository surajprem7/navisworks-ai-connect, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/surajprem7/navisworks-ai-connect
- Repository: https://github.com/surajprem7/navisworks-ai-connect

## Overview

Navisworks AI Connect lets an MCP client operate on an open Navisworks model. The principal workflow is MCP tool calls over stdio, forwarded over localhost HTTP to the plugin, marshalled onto Navisworks’ UI thread, and executed against model and document state. The graph separates search and selection, saved sets, viewpoints, and clash-test operations to preserve the product’s distinct capabilities. The updater is a separate documented capability. Unsampled implementation details are represented only where the README or source index supports the relationship.

Main entry points: [`NavisBridge/BridgePlugin.cs`](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/BridgePlugin.cs) (HTTP bridge and ribbon), [`NavisBridge/Updater.cs`](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Updater.cs) (Plugin updater), [`mcp-server/server.js`](https://github.com/surajprem7/navisworks-ai-connect/blob/main/mcp-server/server.js) (MCP server), [`NavisBridge/Tools.cs`](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs) (Selection sets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["MCP client access"]
  node_mcp["MCP server<br/>[server.js]"]
end

subgraph group_bridge["Navisworks bridge"]
  node_plugin["HTTP bridge and ribbon<br/>[BridgePlugin.cs]"]
end

subgraph group_operations["Model operations"]
  node_model["Model info and search<br/>[Tools.cs]"]
  node_selection["Item selection<br/>[Tools.cs]"]
  node_sets["Selection sets<br/>[Tools.cs]"]
  node_viewpoints["Viewpoints<br/>[Tools.cs]"]
  node_clash["Clash tests and results<br/>[Tools.cs]"]
end

subgraph group_updates["Update service"]
  node_updater["Plugin updater<br/>[Updater.cs]"]
end

node_assistant(("AI assistant"))
node_github["GitHub releases"]
node_user(("Navisworks user"))
node_installer["Windows installer"]

node_assistant -->|"sends MCP requests"| node_mcp
node_mcp -->|"forwards tool calls"| node_plugin
node_plugin -->|"dispatches tools"| node_model
node_plugin -->|"dispatches tools"| node_selection
node_plugin -->|"dispatches tools"| node_sets
node_plugin -->|"dispatches tools"| node_viewpoints
node_plugin -->|"dispatches tools"| node_clash
node_selection -->|"searches items"| node_model
node_sets -->|"finds matching items"| node_model
node_clash -->|"uses saved sets"| node_sets
node_updater -->|"checks releases"| node_github
node_mcp -->|"checks latest release"| node_github
node_updater -->|"requests update consent"| node_user
node_updater -->|"schedules verified update"| node_installer

click node_mcp "https://github.com/surajprem7/navisworks-ai-connect/blob/main/mcp-server/server.js"
click node_plugin "https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/BridgePlugin.cs"
click node_model "https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs"
click node_selection "https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs"
click node_sets "https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs"
click node_viewpoints "https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs"
click node_clash "https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs"
click node_updater "https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Updater.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_mcp,node_user toneBlue
class node_plugin toneAmber
class node_model,node_selection,node_sets,node_viewpoints,node_clash toneMint
class node_updater toneRose
class node_assistant,node_github,node_installer toneIndigo
```

## Components

### MCP client access

- [MCP server](https://github.com/surajprem7/navisworks-ai-connect/blob/main/mcp-server/server.js): `mcp-server/server.js`

### Navisworks bridge

- [HTTP bridge and ribbon](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/BridgePlugin.cs): `NavisBridge/BridgePlugin.cs`

### Model operations

- [Model info and search](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs): `NavisBridge/Tools.cs`
- [Item selection](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs): `NavisBridge/Tools.cs`
- [Selection sets](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs): `NavisBridge/Tools.cs`
- [Viewpoints](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs): `NavisBridge/Tools.cs`
- [Clash tests and results](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Tools.cs): `NavisBridge/Tools.cs`

### Update service

- [Plugin updater](https://github.com/surajprem7/navisworks-ai-connect/blob/main/NavisBridge/Updater.cs): `NavisBridge/Updater.cs`

### Other components

- **AI assistant**
- **GitHub releases**
- **Navisworks user**
- **Windows installer**

## Connections

- AI assistant → MCP server: sends MCP requests (evidence: `README.md`)
- MCP server → HTTP bridge and ribbon: forwards tool calls (evidence: `mcp-server/server.js`)
- HTTP bridge and ribbon → Model info and search: dispatches tools (evidence: `NavisBridge/BridgePlugin.cs`)
- HTTP bridge and ribbon → Item selection: dispatches tools (evidence: `NavisBridge/BridgePlugin.cs`)
- HTTP bridge and ribbon → Selection sets: dispatches tools (evidence: `NavisBridge/BridgePlugin.cs`)
- HTTP bridge and ribbon → Viewpoints: dispatches tools (evidence: `NavisBridge/BridgePlugin.cs`)
- HTTP bridge and ribbon → Clash tests and results: dispatches tools (evidence: `NavisBridge/BridgePlugin.cs`)
- Item selection → Model info and search: searches items (evidence: `NavisBridge/Tools.cs`)
- Selection sets → Model info and search: finds matching items (evidence: `NavisBridge/Tools.cs`)
- Clash tests and results → Selection sets: uses saved sets (evidence: `NavisBridge/Tools.cs`)
- Plugin updater → GitHub releases: checks releases (evidence: `NavisBridge/Updater.cs`)
- MCP server → GitHub releases: checks latest release (evidence: `mcp-server/server.js`)
- Plugin updater → Navisworks user: requests update consent (evidence: `NavisBridge/Updater.cs`)
- Plugin updater → Windows installer: schedules verified update (evidence: `NavisBridge/Updater.cs`)
