Skip to content

rvt-mcp v2.5.2

Latest

Choose a tag to compare

@lekhoa221 lekhoa221 released this 26 Nov 06:29
· 3 commits to master since this release
8d7a27e

This release begins an ongoing MCP gateway upgrade focused on cleaner server instructions, tool discovery, and client compatibility.

  • Catalog counts: --toolsets all 257, adaptive bake 260, and bare defaults 63.

Server instructions and tool discovery

  • Keep ServerInstructions under 2,048 UTF-8 bytes, with product keywords first, target and health guidance that accounts for filtered toolsets, survey before edits and read-back after, reporting when available, a corrected 24-toolset index, and a closing Safety & permissions: block.
  • Mark startup and reporting tools (
    evit_health,
    evit_list_available_targets,
    evit_switch_target,
    evit_report_task_result) with _meta["anthropic/alwaysLoad"]: true and _meta["antigravity/alwaysLoad"]: true across both stdio and HTTP transports (preserving �imwright/rvt-mcp/runtime on
    evit_health, omitting
    evit_switch_target under --read-only, and never setting them on
    evit_send_code_to_revit or
    evit_get_report_history).
  • Add survey and read-back guidance to 65 tools that can modify existing elements, including
    evit_set_project_info. Move subagent, document and timeout details into the relevant tool descriptions. Keep the
    evit_send_code_to_revit description within its 599-byte budget; document script shapes, globals, imports and rollback scope on code.

Targeting

  • Fix #71: when an MCP client runs rvt-mcp inside its Windows AppContainer sandbox (for example Codex Desktop), the gateway cannot see or reach Revit, and it used to report only count: 0 or NO_TARGET. It now detects the sandbox and, when no Revit is discovered, returns the new error code CLIENT_SANDBOXED instead of NO_TARGET (the command is not sent).
    evit_list_available_targets keeps its normal result and adds a sandbox block with guidance, and
    evit_health reports the sandbox block whenever the sandbox is detected. The message explains that the sandbox protects the user's computer, that only a person can let this one server run outside it (a per-server exception first), and that agents must not try to bypass it. Outside a sandbox nothing changes.

Send code and baked tools

  • Fix #68:
    evit_send_code_to_revit and baked-tool compiles failed with Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.13.0.0' when another add-in, such as pyRevit 7, had already loaded an older Roslyn. In Revit 2025–2027 the add-in now compiles in its own .NET load context with the Roslyn it ships. Revit 2022–2024 still compile as before.
  • A compiler that cannot be loaded is reported as SCRIPT_COMPILER_UNAVAILABLE, naming the other add-in folder that loaded Microsoft.CodeAnalysis by its last three folders, for example pyRevit-Master/bin/netcore, without the drive or user name. Before this fix it was reported as SCRIPT_INPUT_INVALID, which suggested the script was wrong.
  • The pyRevit loader is exempt from the third-party MCP check, as Autodesk's MCP already is. pyRevit's own MCP server (pyrevit mcp) is a separate process, and the two gateways can run side by side.

Distribution

Setup includes the self-contained Windows x64 gateway and Revit 2022–2027 plugins. NuGet (RvtMcp.Server) contains the gateway only and requires .NET 10. The Claude Desktop MCPB is unsigned and requires the exact Setup gateway SHA-256 (2d4e9017dc7f21b4e542f0baac031732212e0908a2a91ec9bc544f1ff9b1ebcf), including executable overrides. All three packages have SHA-256 sidecars.

Validation

  • CI run 45766781411 on PR #74: public-tree, ests-xunit, installer-powershell, installer-pwsh, plugin-R22–plugin-R27, server-nuget, client-setup-zip all passed.
  • Packaged Setup ZIP verification (�erify-package.py) and stdio MCP handshake on 2.5.2+8d7a27e4c9cecdcccf27a7be9ccb6e942b222c2c: default (63 tools), --toolsets all (257 / 260 with adaptive bake), --read-only (105 tools), �nthropic/alwaysLoad + �ntigravity/alwaysLoad metadata verified.
  • MCPB catalog capture and validation on 2.5.2+8d7a27e4c9cecdcccf27a7be9ccb6e942b222c2c: 260 tools (--toolsets all + adaptive bake), schema SDK 1.27.1 PASS, @anthropic-ai/mcpb@2.1.2 �alidate and pack PASS.

Source commit: 8d7a27e.