Skip to main content

Protocol

The Model Context Protocol (MCP) is a standard way for an AI client to discover and use capabilities exposed by a local server. RevitDevTool uses the protocol to connect an AI client to running Revit or AutoCAD-family hosts.

Official SDKs​

RevitDevTool pins the SDK versions used by its two toolset entry points:

SDKPinned versionOfficial documentation
.NET SDK2.2.0C# SDK Getting Started · C# SDK repository
Python SDK2.1.1Python SDK documentation · Python SDK repository

For the protocol itself, see the official MCP specification.

Core concepts​

MCP conceptMeaning
ClientThe AI application, such as Cursor, Claude Desktop, VS Code Copilot, or ChatGPT Desktop
ServerThe local RevitDevTool MCP service that connects the client to hosts
ToolAn operation the client can call, such as querying a model or opening a document
ResourceReadable context identified by a URI, such as model state or an API cheatsheet
PromptA reusable instruction template exposed to the client

The normal user-facing flow is: connect the client, choose a running host, search the available capabilities, invoke a tool or read a resource, then inspect the result.

RevitDevTool default tools​

These capabilities are available from the local MCP service or from a connected host:

ToolPurpose
list_host_instancesShow running Revit and AutoCAD-family instances
launch_hostStart a supported host instance
read_file_infoRead metadata and a safe summary for a local file
list_machinesList available local machine targets
search_dynamicFind tools and resources available on a connected host
invoke_dynamicInvoke a discovered capability
execute_csharp_codeRun C# code in the host context
execute_python_codeRun Python code in the host context
open_documentOpen a document in the host
navigate_historyMove backward or forward through supported model changes
view_screenshotCapture the current host view for visual inspection

The exact host-specific entries depend on which host is running and which optional toolsets are registered.

Default resources​

RevitDevTool provides host reference and context resources. The available set depends on the connected host:

HostResource URIPurpose
Revitrevit://python-cheatsheetRevit Python usage guidance
Revitrevit://csharp-cheatsheetRevit C# usage guidance
Revitrevit://model/contextCurrent model context and summary
Revitrevit://model/warningsCurrent model warnings
Revitrevit://versionHost and API version information
AutoCAD-familyacad://python-cheatsheetAutoCAD Python usage guidance
AutoCAD-familyacad://csharp-cheatsheetAutoCAD C# usage guidance

These resources are read-only context. Registered .NET or Python toolsets may add additional tools and resources for their own domain.

Default prompts​

The local service exposes:

  • revit_code for Revit code-generation guidance;
  • acad_code for AutoCAD-family code-generation guidance.

.NET and Python toolsets​

RevitDevTool accepts both compiled .NET assemblies and Python toolset folders containing a *mcp.py entry file. The entry file carries its own PEP 723 dependency metadata; its capabilities appear alongside the defaults when the relevant host is running.

Use MCP .NET or MCP Python for registration guidance.