Repository navigation
v1.1.0
Install
- Download
NwdMcp.Setup-v1.1.0-win-x64.zip, check it againstNwdMcp.Setup-v1.1.0-win-x64.zip.sha256, extract it and runpowershell -ExecutionPolicy Bypass -File install.ps1.uninstall.ps1in the same ZIP removes it. - Claude Desktop: install
nwd-mcp-desktop-1.1.0.mcpbfrom this release (it launches the server installed in step 1). Use the same release for both. - 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_modelappended or merged into a saved file, every later write was refused withDOCUMENT_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, asnwd_open_filedoes. Found by the v1.1.0 release benchmark. nwd_send_codeno 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 inskipped_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
HasFocalDistanceand returnfocal_distance: nullinstead of throwing. - Saved viewpoint/set names containing literal
/now round-trip. Lists retainnameand addidandpath; consumers accept these identifiers. Escaped paths start withpath:/, encode~as~0and/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 overridesBIMWRIGHT_NWD_ENABLE_CALL_LOGand server JSONenableCallLog). The gateway records every MCP call, including local tools and failures, innwd-mcp-calls.jsonl; each forwarded request overrides the matching plug-in'smcp-calls.jsonlrecording without changing saved host settings. Legacy gateways keep the host toggle fallback.send_codeparameters retain only script length and SHA-256. The MCPB source profile adds a false-defaultcall_logsetting; no new bundle is published by this change. nwd_health_checknow 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 separateunobserved_componentsprevent unsafe full-bundle proposals. Onlyupdate_guidance.mode=prepare_updatewithbundle_update_proposal_allowed=truereturns 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 intools/list, andclient_verificationevidence 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, JSONenableResponseGuard) and--response-warn-bytes,--response-strong-warn-bytes,--response-budget-bytes(envBIMWRIGHT_NWD_RESPONSE_*_BYTES, JSONresponseWarnBytes,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, JSONspillRetentionHours); 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_codetakesdata(one JSON value; the script reads it asdata["key"], a Newtonsoft JToken) andresult_contract(legacydefault, ortask_v1: the script returnsMcpTaskResult.Pass(value)orMcpTaskResult.Fail(code, message, details?), the response carries_task{contract, status, error}, a failed or missing result setsok=falsewithTASK_RESULT_REQUIRED). rvt-mcp / ipt-mcp parity. Invaliddataor contract is refused before anything is sent. Only scripts that receivedataget the variable, and compile errors keep the caller's line numbers.nwd_send_codereturns objects as JSON (ipt-mcp parity): anonymous objects, POCOs, dictionaries and lists inresultare JSON objects and arrays instead of theirToString()text; enums stay names. A return value that contains a Navisworks API object setsok=falsewith a hint to return a DTO, because such objects reach the whole model tree.nwd_report_task_resultandnwd_get_report_history(family contract FC-RPT-01..05,metatoolset, 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_reportuntil 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 newnwd_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_UNCONFIRMEDand 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_CHANGEDand the command does not start. nwd_open_filemoves 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_REQUIREDfor writes, in both directions. Reads work.nwd_goto_viewpoint,nwd_clear_selection,nwd_select_items_by_searchand installing a baked tool (nwd_accept_bake_suggestion) need no confirmation. nwd_get_current_targetandnwd_switch_targetreportdocument_confirmed,confirmed_document_idandconfirmed_document_title. Plug-in responses carrydocument_id/document_title, and descriptors listcapabilities.
- Until a document is confirmed, writes return
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.APINuGet 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 theIsExternalInitpolyfill and the correctAutodesk.Navisworks.Controlsreference, 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, likenwd_select_items_by_searchandnwd_clear_selection(family contract D11). The gateway no longer forcesselect=falseor sendsread_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.TIMEOUTnow only means a started command with an unknown outcome; the plug-in answers it 1 s before the gateway gives up.nwd_health_checkanswers from the transport thread while Navisworks is busy (host_busy,busy_reason,answered_without_ui_thread), andnwd_switch_target(verify=true)then returnsHOST_BUSYinstead of confirming nothing. --read-onlyfilters tools by their read-only annotation instead of dropping whole toolsets: 23 tools instead of 21.nwd_goto_viewpoint,nwd_clear_selectionandnwd_select_items_by_searchare now available (they change the view or selection, not the model), andnwd_switch_targetis 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_TARGETwith 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_TARGETorNO_TARGET. The command is not sent, and the binding stays lost untilnwd_switch_targetconfirms a target. A reused PID is detected by its start time. nwd_switch_targetacceptspid:<n>,id:<target_id>, a barenavis-…id, a year 2022–2027 orauto(also for--target/BIMWRIGHT_NWD_TARGET, where an invalid selector stops the server). R-codes and malformed selectors returnINVALID_TARGET_SELECTOR. A year orautonever moves an existing binding (TARGET_REBIND_REQUIRED); leaving a live, explicitly selected instance needs the newrebind=true. Refusals return{ok:false, error:{code, message, target}}instead of{ok:false}.nwd_get_current_targetno longer selects a target; it reportsbinding,binding_state,generation,bound_pid,window_title,next_target_idandconfirmation_requirednext to the old fields.nwd_list_available_targetsaddstarget_id,host_year,pid,process_start_utc,identity_verified,window_title,is_currentandlast_heartbeat_utc.- The first selection becomes the binding only once its first request is written; a failed first connect returns
TARGET_UNAVAILABLEand keeps the statenone, so an instance opened later is still a first selection, notTARGET_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 returnsTARGET_INTERRUPTED(sent: true,outcome: "unknown") instead ofTARGET_UNAVAILABLE. - Failed tool results carry the target payload as
error.target(sent,outcome,candidates,recommended_next_tool,next_step).
- With two or more matching instances and no choice, commands return
- 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-bytesbelow the 1 MiB default budget now also needs a matching--response-budget-bytes.