Deploy addon

From shuotao/REVIT_MCP_study · View interactive version

Deploy addon is an AI agent skill from the GitHub repository shuotao/REVIT_MCP_study. Deploy the built RevitMCP.dll to the correct Revit Add-ins folder for a specified version (Windows only)

How to use this skill

Skill file

Deploy RevitMCP.dll to the Revit Add-ins directory for the selected version.

Platform Check

First, detect the OS. If not Windows, do not attempt deployment. Instead, show:

⚠️  This skill deploys to Windows only.
    Run the following command on your Windows machine:

    $version = "2024"  # change to your Revit version
    $yy = $version.Substring(2)  # "24"
    Copy-Item "MCP\bin\Release.R$yy\RevitMCP.dll" `
      "$env:APPDATA\Autodesk\Revit\Addins\$version\RevitMCP\" -Force

Then stop.

Usage

Target Paths

| Version | Target Directory |

|---------|-----------------|

| 2022 | %APPDATA%\Autodesk\Revit\Addins\2022\RevitMCP\ |

| 2023 | %APPDATA%\Autodesk\Revit\Addins\2023\RevitMCP\ |

| 2024 | %APPDATA%\Autodesk\Revit\Addins\2024\RevitMCP\ |

| 2025 | %APPDATA%\Autodesk\Revit\Addins\2025\RevitMCP\ |

| 2026 | %APPDATA%\Autodesk\Revit\Addins\2026\RevitMCP\ |

Steps

  1. Check source DLL: Verify MCP/bin/Release.R{YY}/RevitMCP.dll exists (where {YY} matches the target version, e.g. Release.R24 for Revit 2024).
  1. Check if Revit is running: Run tasklist | grep -i revit to detect Revit process.

```

⚠️ Revit is currently running. The DLL cannot be overwritten while Revit is open.

Please close Revit before continuing.

```

Ask: Ready to deploy? (y/n) — stop if user says no.

  1. Create target directory if it doesn't exist:

```powershell

New-Item -ItemType Directory -Force -Path "$env:APPDATA\Autodesk\Revit\Addins\{version}\RevitMCP\"

```

  1. Copy DLL:

```powershell

$yy = "{version}".Substring(2) # e.g. "2024" → "24"

Copy-Item "MCP\bin\Release.R$yy\RevitMCP.dll" "$env:APPDATA\Autodesk\Revit\Addins\{version}\RevitMCP\" -Force

```

  1. Verify: Confirm the file exists at the target path and show its timestamp.
  1. Report success:

```

✅ Deployed to %APPDATA%\Autodesk\Revit\Addins\{version}\RevitMCP\RevitMCP.dll

→ Restart Revit to load the updated add-in.

```

Error Handling

| Error | Response |

|-------|----------|

| Source DLL missing | Direct user to /build-revit --version {version} |

| Target directory creation failed | Suggest running terminal as Administrator |

| Copy failed (access denied) | Check if Revit is still running; suggest closing it or running as Administrator |

| Verification fails after copy | Show full error and suggest manual copy command |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.