Skip to content

v1.1.0

Choose a tag to compare

@lekhoa221 lekhoa221 released this 16 Nov 07:36
· 56 commits to master since this release
c6c4828

Install

  1. Download NwdMcp.Setup-v1.1.0-win-x64.zip, check it against NwdMcp.Setup-v1.1.0-win-x64.zip.sha256, extract it and run powershell -ExecutionPolicy Bypass -File install.ps1. uninstall.ps1 in the same ZIP removes it.
  2. Claude Desktop: install nwd-mcp-desktop-1.1.0.mcpb from this release (it launches the server installed in step 1). Use the same release for both.
  3. Restart Navisworks Manage and your MCP client, then call nwd_health_check.

Navisworks years

The setup ZIP now carries plug-ins for Navisworks Manage 2022–2027. Only 2025 has been run live (full benchmark: 35/35 tools, docs/benchmarks/2026-11-16-navisworks-manage-2025.md). 2022–2024 and 2026–2027 are built against each year's Autodesk API but have not yet been tested inside Navisworks; please report problems in the issues.

Upgrading from v1.0.0

Update the server and the Navisworks plug-in together: writes now require a confirmed document (nwd_switch_target(..., verify=true)), which an older plug-in or server cannot provide. v1.0.1 was never published; its changes ship here.

Changes

First release since v1.0.0. It also ships the v1.0.1 changes below, which were never published on their own.

Fixed

  • After nwd_import_model appended or merged into a saved file, every later write was refused with DOCUMENT_CHANGED: Navisworks clears the file name ("Untitled"), which the plug-in reads as a new document. A successful import into the confirmed document now moves the confirmation to it, as nwd_open_file does. Found by the v1.1.0 release benchmark.
  • nwd_send_code no longer fails every compile with CS0009 when a loaded DLL's metadata cannot be read (rvt-mcp #38): such references are left out and listed in skipped_references.
  • Call logs are bounded: files rotate before an append would exceed 5 MiB, and each filename group keeps at most 100 MiB for 30 days. Gateway and plug-in startup apply retention even when recording is off; append, rotation and pruning share a cross-process lock and never fall back to unbounded writing.
  • Local transport is bounded: up to 32 TCP connections, 10 MiB request envelopes (rejected by the gateway before connecting), 120-second idle/incomplete frames and a 30-second response write deadline; file operations keep their 300-second timeout. Stopping the plug-in closes its listener and connected sockets, cancels queued work that has not started, and cannot republish or delete a replacement target. See local transport limits.
  • Empty-document camera reads guard HasFocalDistance and return focal_distance: null instead of throwing.
  • Saved viewpoint/set names containing literal / now round-trip. Lists retain name and add id and path; consumers accept these identifiers. Escaped paths start with path:/, encode ~ as ~0 and / within a segment as ~1. GUID-less SDK items use the escaped path as their ID. Legacy unambiguous names/paths still work; ambiguous names fail rather than silently selecting the first match.
  • Active ToolBaker lists exclude accepted/archived/permanently dismissed suggestions and current snoozes. Dismiss persists a UTC deadline exactly 30 days ahead, reports it, and repeated snooze calls do not extend it. Expired snoozes become effectively open without mutating data during a read-only listing. Legacy dismissed rows without a deadline stay hidden.

Added

  • Tool-call logging is off by default and controlled by --enable-call-log / --disable-call-log (CLI overrides BIMWRIGHT_NWD_ENABLE_CALL_LOG and server JSON enableCallLog). The gateway records every MCP call, including local tools and failures, in nwd-mcp-calls.jsonl; each forwarded request overrides the matching plug-in's mcp-calls.jsonl recording without changing saved host settings. Legacy gateways keep the host toggle fallback. send_code parameters retain only script length and SHA-256. The MCPB source profile adds a false-default call_log setting; no new bundle is published by this change.
  • nwd_health_check now reports loaded server/plugin runtime identities, versions, build ids and version/revision alignment. Host failure preserves the running server identity; legacy plugins without identity report unknown evidence. Disk hashes are explicitly scoped to identity capture, not loaded memory or publisher verification.
  • Optional check_updates (offline by default; recommended once at session start) compares both components with one official stable release and tag revision using a shared 5-second budget and bounded responses. Missing evidence/failures remain unknown. Notifications distinguish new releases, revision review, unverified identity, external lookup failure and informational newer local versions. protected_components/reasons and separate unobserved_components prevent unsafe full-bundle proposals. Only update_guidance.mode=prepare_update with bundle_update_proposal_allowed=true returns installation steps and requests authorization; other modes only check/report/review. Health never downloads packages, installs, saves/closes documents or restarts anything.
  • Full informational version in initialize.serverInfo, per-process health tool runtime metadata in tools/list, and client_verification evidence for reconnect/cache checks. The server cannot itself verify a client catalog refresh. Health remains available in read-only mode; its open-world annotation is true for the optional GitHub lookup. Tool counts and existing no-argument calls are unchanged.
  • Version/revision assembly attributes enabled for all six plugin shells, plus runtime, release comparison and stdio protocol regression tests.
  • Response guard settings (family release checklist, rvt-mcp names). --disable-response-guard / --enable-response-guard (default on; BIMWRIGHT_NWD_ENABLE_RESPONSE_GUARD, JSON enableResponseGuard) and --response-warn-bytes, --response-strong-warn-bytes, --response-budget-bytes (env BIMWRIGHT_NWD_RESPONSE_*_BYTES, JSON responseWarnBytes, responseStrongWarnBytes, responseBudgetBytes; defaults 64 KiB / 256 KiB / 1 MiB). With the guard off there are no warnings and the budget becomes the transport cap --max-response-bytes, which stays active.
  • --spill-retention-hours <n> (1–8760, BIMWRIGHT_NWD_SPILL_RETENTION_HOURS, JSON spillRetentionHours); a missing or invalid value uses 36.
  • The client setup package script writes <zip>.sha256 (<hash> <file name>) next to the ZIP for the GitHub Release.
  • nwd_send_code takes data (one JSON value; the script reads it as data["key"], a Newtonsoft JToken) and result_contract (legacy default, or task_v1: the script returns McpTaskResult.Pass(value) or McpTaskResult.Fail(code, message, details?), the response carries _task{contract, status, error}, a failed or missing result sets ok=false with TASK_RESULT_REQUIRED). rvt-mcp / ipt-mcp parity. Invalid data or contract is refused before anything is sent. Only scripts that receive data get the variable, and compile errors keep the caller's line numbers.
  • nwd_send_code returns objects as JSON (ipt-mcp parity): anonymous objects, POCOs, dictionaries and lists in result are JSON objects and arrays instead of their ToString() text; enums stay names. A return value that contains a Navisworks API object sets ok=false with a hint to return a DTO, because such objects reach the whole model tree.
  • nwd_report_task_result and nwd_get_report_history (family contract FC-RPT-01..05, meta toolset, read-only). A report shows a card on the Navisworks toast and is saved under %LOCALAPPDATA%\Bimwright\nwd-mcp\reports (newest 500 kept) with the write tools run since the previous report, also when Navisworks is not reachable (toast_shown=false). Responses of document writes carry _report until the agent reports; scripts and baked tools get one conditional reminder. The plug-in answers reports off the UI thread, so a report arrives while Navisworks is busy. Default surface 35 tools, read-only 25.
  • Document confirmation before writes (family contract FC-DOC-01..06, FC-PAIR-01..03, capability document_target_v1). Writes run only on the document confirmed with the new nwd_switch_target(..., verify=true), which reads the open document with one health check. Before: a write went to whatever file was open, even one the user had opened after the agent looked.
    • Until a document is confirmed, writes return TARGET_UNCONFIRMED and are not sent. A new binding starts unconfirmed; selecting the same instance again keeps the confirmation.
    • The plug-in checks again on the Navisworks UI thread right before the handler: another file open now returns DOCUMENT_CHANGED and the command does not start.
    • nwd_open_file moves the confirmation to the file it opens, if the confirmed file was still open when it started.
    • A server and plug-in from different releases return PAIRING_REQUIRED for writes, in both directions. Reads work. nwd_goto_viewpoint, nwd_clear_selection, nwd_select_items_by_search and installing a baked tool (nwd_accept_bake_suggestion) need no confirmation.
    • nwd_get_current_target and nwd_switch_target report document_confirmed, confirmed_document_id and confirmed_document_title. Plug-in responses carry document_id / document_title, and descriptors list capabilities.

Changed

  • Plug-ins for every Navisworks year build without Navisworks installed (plan M5): each shell compiles against that year's Autodesk-signed API reference assemblies from the Speckle.Navisworks.API NuGet package, compile-time only, so they are never copied to the output or the bundle. The setup ZIP now carries all six years (2022–2027), and CI builds each year. The 2022–2024 and 2026–2027 shells also gained the IsExternalInit polyfill and the correct Autodesk.Navisworks.Controls reference, which they lacked since the 2025 fix. Only Navisworks Manage 2025 has been run live; the other years are build-verified against their real API but not yet tested in Navisworks.
  • nwd_execute_search_set(select=true) selects the matches in read-only mode too (owner decision 2026-11-16): selection is transient UI state, like nwd_select_items_by_search and nwd_clear_selection (family contract D11). The gateway no longer forces select=false or sends read_only_enforced; the plug-in still honours that flag from an older gateway.
  • Busy Navisworks returns HOST_BUSY (family contract FC-BUSY-01..05, ipt-mcp parity). A modal dialog waiting for the user refuses commands before they are queued, and again on the UI thread, because a dialog's message loop runs queued work. A command the UI thread did not start by its start deadline (timeout minus 2 s) is abandoned and never runs later. Both say the command was not started. TIMEOUT now only means a started command with an unknown outcome; the plug-in answers it 1 s before the gateway gives up. nwd_health_check answers from the transport thread while Navisworks is busy (host_busy, busy_reason, answered_without_ui_thread), and nwd_switch_target(verify=true) then returns HOST_BUSY instead of confirming nothing.
  • --read-only filters tools by their read-only annotation instead of dropping whole toolsets: 23 tools instead of 21. nwd_goto_viewpoint, nwd_clear_selection and nwd_select_items_by_search are now available (they change the view or selection, not the model), and nwd_switch_target is removed (family contract D10/D11); pin the target with --target pid:<n>.
  • Target binding (family contract FC-TGT-01..06, BW-TARGET-001). The gateway binds to one Navisworks instance identified by PID and process start time, and never falls through to another one. Before: with no choice it took the newest heartbeat, and a bound instance that exited was silently replaced by another live one, so writes could reach the wrong Navisworks.
    • With two or more matching instances and no choice, commands return AMBIGUOUS_TARGET with the candidates instead of picking one.
    • When the bound instance exits: TARGET_LOST (explicit choice), TARGET_CHANGED (one other instance, proposed but not selected), AMBIGUOUS_TARGET or NO_TARGET. The command is not sent, and the binding stays lost until nwd_switch_target confirms a target. A reused PID is detected by its start time.
    • nwd_switch_target accepts pid:<n>, id:<target_id>, a bare navis-… id, a year 2022–2027 or auto (also for --target / BIMWRIGHT_NWD_TARGET, where an invalid selector stops the server). R-codes and malformed selectors return INVALID_TARGET_SELECTOR. A year or auto never moves an existing binding (TARGET_REBIND_REQUIRED); leaving a live, explicitly selected instance needs the new rebind=true. Refusals return {ok:false, error:{code, message, target}} instead of {ok:false}.
    • nwd_get_current_target no longer selects a target; it reports binding, binding_state, generation, bound_pid, window_title, next_target_id and confirmation_required next to the old fields. nwd_list_available_targets adds target_id, host_year, pid, process_start_utc, identity_verified, window_title, is_current and last_heartbeat_utc.
    • The first selection becomes the binding only once its first request is written; a failed first connect returns TARGET_UNAVAILABLE and keeps the state none, so an instance opened later is still a first selection, not TARGET_LOST.
    • Every tool call pins the binding generation on arrival; a call that was pending across a switch is not sent (TARGET_CHANGED). A call that arrived before any binding may go only to the first binding; if the binding moved since, it is not sent either. A connection that closes after the command was written returns TARGET_INTERRUPTED (sent: true, outcome: "unknown") instead of TARGET_UNAVAILABLE.
    • Failed tool results carry the target payload as error.target (sent, outcome, candidates, recommended_next_tool, next_step).
  • Discovery descriptors are schema v3 (schema_version, host_app, host_year, pid, process_start_utc, transport) and keep every old field, so older gateways still read them. Liveness no longer uses the heartbeat: a descriptor is live while its process runs with the recorded start time, and the gateway deletes descriptors it has proven dead. Instances sort by year, then newest process start.
  • Spill files are kept 36 hours instead of 24, and the 50-file cap is gone: age is the only reason a spill file is deleted, so the file an agent was pointed to is never removed early. With a small budget the spill receipt shrinks (preview, schema, then summary text) but always keeps the file path; before, a receipt over the budget was replaced by a generic success message without the path.
  • The server refuses to start when response limits are below 1024 bytes or out of order (warn ≤ strong ≤ budget ≤ maxResponseBytes). A --max-response-bytes below the 1 MiB default budget now also needs a matching --response-budget-bytes.