Skip to content

dwg-mcp v2.1.2

Choose a tag to compare

@lekhoa221 lekhoa221 released this 12 Nov 14:07
· 98 commits to master since this release

dwg-mcp 2.1.2 adds separate JSON inputs and compile-only validation to C# scripting, and fixes the AutoCAD 2025 scripting/leader failures reported in issue #5.

  • dwg_send_code(code, data?, compile_only=false) accepts non-null JSON input as a Newtonsoft JToken, up to 512 KiB UTF-8. Date strings remain strings; code-only calls remain supported.
  • compile_only=true compiles without invoking statements. Results add compiled, executed, structured compiler diagnostics and optional runtime source locations. Inspect the inner result.ok for script success.
  • Use matching isolated Roslyn libraries on modern AutoCAD hosts while sharing Autodesk types and keeping execution on the document-lock thread.
  • Fix text leader initialization and no-text leader readback.
  • Upgrade gateway and plugins together. Enhanced scripts refuse older plugins before code is sent and must be direct calls outside batches/baked tools. Modules/task_v1 are outside this release.

Setup includes the self-contained Windows x64 gateway and AutoCAD 2022–2027 plugins. NuGet contains the gateway only and requires .NET 8. The Claude Desktop MCPB requires the exact Setup gateway SHA-256, including executable overrides. All three packages have SHA-256 sidecars. Also published on NuGet.org and the MCP Registry.

Validation: this version correction changes documentation/version metadata only. The existing 1,522 main tests, 13 rewrite tests, WPF, 112 installer checks and native acceptance (21 checks each on AutoCAD 2024 and installed 2025/.NET 10.0.14) are reused with evidence pins. New 2.1.2 package builds, archive inventories, all six catalog modes, local NuGet tool installation, installer WhatIf and MCPB schema/launcher probes passed. Catalog counts remain 45 default / 69 all and 17 default read-only / 23 all read-only. Final version-stamped plugins were not reloaded into AutoCAD; no new installed-client acceptance or other native host-year coverage is claimed.

Source commit: 83a4acaa4696fb7c2bffb3e15bbc659a83b8c172.