Skip to content

ipt-mcp v2.5.1

Choose a tag to compare

@lekhoa221 lekhoa221 released this 23 Nov 11:09
· 62 commits to master since this release
5fdc6c5

Version numbers now follow the shared release number of the four bimwright gateways (rvt-mcp, dwg-mcp, nwd-mcp, ipt-mcp). The jump from 0.2.1 to 2.5.1 does not mark breaking changes; the entries below list what changed since 0.2.1.

Fixed

  • Document confirmation (document_target_v1): two open files that share an InternalName (a checkpoint restore or a file copied in Explorer) got the same document id, so switching from the confirmed file to its copy did not stop the next write. Ids now include the file path; a Save-As through inventor_save_document moves the confirmation to the new file.

  • The add-in serves up to four connections at once (pipe and TCP), each on its own thread. A long call (for example a send_code with a long timeout_ms) held the only connection, so every later call, health included, failed with "connect timed out" until it ended; now health answers with host_busy and other calls queue or return HOST_BUSY.

  • A DLL loaded in Inventor whose metadata the C# compiler cannot read (for example a protected assembly from another add-in) no longer makes every inventor_send_code compile, and so every script baked tool, fail with CS0009. The file is left out of the compile references; the response then includes skipped_references (name, reason) and compile errors list the skipped names. Same fix as rvt-mcp #38.

  • inventor_export_drawing to PDF of every sheet in document order (none excluded from printing) translates the source drawing directly instead of copying each sheet into a hidden template drawing with Sheet.CopyTo, which killed Inventor 2027 on a 5-sheet drawing. Subsets, reordered sheets and per-sheet DWG still use the sheet copy. Each file row reports export_strategy (direct, copy_sheets or save_as).

  • The gateway call log keeps the error code and message of tools answered by the server alone (for example an export path refused by the output-root policy); they were logged with error_code: null and the result's error.code hashed like a script body.

  • inventor_send_code data reaches the script as sent. ISO date-time strings stay strings (they became dates and came back in another format and offset), integers stay exact, and other numbers must be finite doubles: 1e400 and NaN are rejected with INVALID_ARGUMENT instead of arriving as the string "Infinity" or dropping the request; duplicate keys are rejected too. The server sends the data as JSON text (data_json) and data_hash covers that text, so equal hashes mean the script received equal data. The same rules apply to the paramsJson of script baked tools. Update the server and the add-in together: an older add-in does not read data_json, so a script that uses data fails to compile there instead of receiving changed values; a new add-in still accepts data from an older server.

  • ISO date-time strings in any tool argument (for example an iProperty value) reach the add-in handler unchanged instead of being converted to the machine's time zone and re-formatted.

  • iPart assembly failures preserve the committed mutation state in their recovery receipt and reuse the verified member signature without extra COM reads after commit.

  • Call journals rotate and retain files under bounded storage policies; transport shutdown closes active I/O, descriptor publication follows listener readiness, and queued STA work has bounded admission and cancellation before execution.

  • Positional dimensions distinguish an actual parent transaction from Inventor's unidentified idle transaction, allowing existing parts to be edited while preserving cross-document transaction checks and rollback receipts.

  • iLogic rule source is redacted like send_code bodies: journals and History record only its hash and length (unless body caching is opted in), and History disables re-run for redacted iLogic entries.

  • When restoring the sheet thickness fails, set_sheet_fabrication_thickness returns rollback_failed with an unknown mutation state, so batch_execute with continue_on_error=true stops instead of committing an uncertain step.

  • Sketch, feature and sheet fabrication tool errors forward the handler's response data, so restored/unknown mutation receipts from dimension, revolve, batch and thickness calls reach the client.

  • inventor_edit_drawing_table can edit tables made outside the typed tools: name also matches a table's title (case-insensitive) when no managed name does, and a new locator (from inventor_get_drawing_info include=items) replaces name for an untitled or same-titled table. locator is sent only when given, so name-only calls still work with older add-ins. Deleting and annotation edits still match only the exact managed name or a locator. A target that does not resolve lists the candidates on the sheet.

  • The sheet argument of the drawing tools also accepts a 1-based index ("1") and the sheet name without Inventor's :n suffix; an exact name or code still wins. A sheet that does not resolve lists the available sheets and names only what the tool accepts, and a point_intent the curve does not have lists the intents it does.

  • An inventor_send_code script that catches the loop guard's timeout in its own try/catch is still reported as timed out and rolled back; its partial work was committed before, while the message said it was rolled back.

  • The installer also removes stray manifests carrying an ipt-mcp ClientId from %APPDATA%\Autodesk\Inventor <year>\Addins (2022-2027) and %APPDATA%\Autodesk\Inventor Addins, which Inventor reads too; an old manifest there kept loading a stale add-in instead of the installed bundle. Before, only %APPDATA%\Autodesk\Inventor\Addins and folders beside the bundle were checked.

Added

  • inventor_send_code compile errors for a missing member (CS1061, CS0117) carry a hint computed from the loaded Inventor API: the closest members of the type, where the member does exist on a neighbouring type or as an indexer, a cast only when the other type is a real subtype, and a pointer to Ipt.Api. Argument and ref errors (CS1620, CS1503, CS1615, CS1501, CS7036) show the real signature of the member being called.

  • Script helper Ipt.Api(type, filter) lists the real members and signatures of an Inventor or Ipt type (the values of an enum); an unknown type or filter answers with the closest names. Ipt.Box also takes two Inventor points, and Ipt.Bbox has ToArray() and a double[] cast. The add-in reports the capability script_helpers_v2 beside v1, and the gateway names these helpers only to an add-in that reports v2.

  • Saved agent reports (bimwright family contract FC-RPT-04/05, rvt-mcp parity). inventor_report_task_result takes an optional Markdown body (max 32 KiB) and the server saves each report as a JSON file in %LOCALAPPDATA%\Bimwright\ipt-mcp\reports\ (newest 500 kept) with the write tools the session ran since the previous report. It is saved even when Inventor is not reachable (toast_shown=false, toast_error); the response adds report_saved, report_id, replaced and call_count. Resending a task_id from the same session replaces that report and keeps its recorded writes. New read-only inventor_get_report_history lists saved reports newest first, or returns one in full by report_id, without Inventor. Until the agent reports, successful model-changing tools add _report to their result (full text once, then short); send_code gets one conditional reminder, and reads, open/close/save, checkpoints, exports and compile_only get none. 150 tools by default, 144 with send-code off, 39 read-only.

  • MCP prompts (rvt-mcp parity): inventor_getting_started (read-only orientation), inventor_change (survey, confirm, change, read back, report) and inventor_save (save by the document's save policy). Read-only gateways get read-only versions.

  • Update notice in Inventor (rvt-mcp parity): the add-in checks GitHub for a newer stable release at most once a day and shows a small card in the corner of the screen with a prompt to paste to the agent, the release page and Skip this version. It never takes focus and never installs anything. BIMWRIGHT_DISABLE_UPDATE_CHECK=1 turns it off.

  • inventor_send_code usage_context (project, test or unknown, default; rvt-mcp parity) records whether a script was real project work or ipt-mcp testing in the call journal. It does not change how the script runs; other values return INVALID_ARGUMENT.

  • Checkpoints (rvt-mcp revit_save_checkpoint / revit_manage_checkpoints parity): inventor_save_checkpoint copies the confirmed active local file into <name>.checkpoints\ next to it, saving first when it has unsaved changes (refused when that save would convert an older-format file, unless allow_format_upgrade=true), verifies the copy by size and SHA-256 and indexes it in index.json. Assembly and drawing checkpoints hold only that file and say so (REFERENCES_NOT_CAPTURED). inventor_manage_checkpoints lists, prunes with a previewed plan_hash (milestones kept) and restores a checkpoint as <name>-restored-<id>.<ext> without touching the working file. Unsaved, template and read-only documents are refused. 150 tools by default, 144 with send-code off, 39 read-only.

  • inventor_get_document_state (rvt-mcp revit_get_document_state parity, read-only): for the active document, a named document or scope=all, reports mode (local_file, unsaved, template, read_only), is_modified, dirty_references, modifiable, is_read_only, exists_on_disk, saved_in_version, needs_migrating, file_save_counter and document_id, plus a save policy {mode, rules, allowed} and the active project's old_versions_to_keep. The policy never lets the agent choose a save path, and asks for the user's consent before a save that migrates the file format. 150 tools by default, 144 with send-code off, 39 read-only.

  • TARGET_BUSY: when the add-in does not accept the connection in time, the call returns TARGET_BUSY and says nothing was sent, instead of TIMEOUT with "a transmitted operation may still complete". A pipe that does not exist returns TARGET_UNAVAILABLE, also saying nothing was sent.

  • HOST_BUSY (bimwright family contract FC-BUSY): while a modal dialog is open in Inventor, every command except health is refused at once with HOST_BUSY and the dialog's caption, instead of queueing behind the dialog until TIMEOUT. The add-in checks again on Inventor's main thread, so a dialog's message loop cannot run a queued command. A full command queue (was API_ERROR) and a command that expired before it started (was TIMEOUT) also return HOST_BUSY. Each says the command was not started and will not run later. TIMEOUT now only means a started command whose outcome is unknown. inventor_health adds host_busy and busy_reason.

  • inventor_new_drawing, inventor_add_sheet and inventor_set_title_block run under Application.SilentOperation, so a template whose title block has prompted entries no longer blocks new_drawing on the "Prompted Texts" dialog until TIMEOUT.

  • Document confirmation before writes (document_target_v1, bimwright family contract; rvt-mcp/dwg-mcp parity). inventor_switch_target(target, verify=true) confirms the document active in that Inventor. Until then writes return TARGET_UNCONFIRMED and are not sent, even with one Inventor open; reads are unaffected. Right before a write runs, the add-in checks on Inventor's thread that the confirmed document is still active, else DOCUMENT_CHANGED (or DOCUMENT_UNCONFIRMED) and the command is not started. A write with an explicit document parameter names its own target and skips that check. Opening or creating a document (open_document(s), new_part, new_assembly, new_drawing, new_sheet_fabrication_part, create_part) moves the confirmation to the document it activates, unless another document had become active before the call. inventor_get_current_target and inventor_switch_target report document_confirmed, confirmed_document_id and confirmed_document_title. Document ids last until Inventor closes the document; reopening it gives a new id. send_code with compile_only and baked-tool installs are not document writes.

  • PAIRING_REQUIRED: writes between a server and an add-in that do not both support document_target_v1 are refused before they run, in both directions; reads and health still work. Update the server and the add-in together and restart Inventor and the MCP client.

  • inventor_send_code result_contract="task_v1" (rvt-mcp parity; default "legacy" is unchanged): the script returns McpTaskResult.Pass(value) or McpTaskResult.Fail(code, message, details), imported automatically. The response carries _task (contract, status passed/failed/not_reported, error{code, message}); Fail sets ok=false with error "<code>: <message>" and returns the details as result, and a script that returns no McpTaskResult fails with TASK_RESULT_REQUIRED. A failed task does not undo edits the script already made. Legacy results that report passed, ok or success false get an advisory task_contract_hint. task_v1 calls are not observed for adaptive bake. Update the server and the add-in together: an older add-in does not import McpTaskResult, so a task_v1 script fails to compile there.

  • HOST_CRASHED: when the add-in closes the connection without answering and the Inventor process is gone within 5 seconds, the call returns HOST_CRASHED instead of TARGET_UNAVAILABLE, says that edits since the last save are lost and where Inventor writes its crash files, and asks the agent not to resend. If Inventor is still running the code stays TARGET_UNAVAILABLE. Both messages name the target the call went to.

  • Crash breadcrumb: while the call log is on, the add-in writes inflight-<pid>.json (tool, request id, start time, session id and log-safe params; send_code only as hash and length) next to mcp-calls.jsonl before a command runs on Inventor's thread and deletes it when the command returns. If Inventor dies inside the command, the next add-in start turns the leftover marker into a crash_suspected line in mcp-calls.jsonl under the original session id, so the command that ended Inventor is no longer missing from the journal.

  • ToolBaker script tools: a send_code script that takes its inputs as data can be baked into a tool and then called with only the data, inventor_run_baked_tool(name, paramsJson=<data>). With adaptive bake on (--enable-adaptive-bake, off by default), each send_code call with data records only two hashes (script, data); when one script has succeeded with 3 different data inputs within 10 days, a suggestion opens and the response carries a bake_hint. inventor_accept_bake_suggestion takes the same code and modules, checks them against the recorded hash and stores the script only then. A script tool runs as send_code and is refused wherever send_code is disabled or the connection is read-only; preset and macro tools keep the read-only dispatch allow-list. A send_code call that matches an accepted script tool gets a bake_hint pointing at it. Usage events no longer fail on an empty session id.

  • inventor_build_solids (feature toolset) builds many extruded solids in an existing part in one call, from data instead of a C# script: items=[{name, op?: new|join|cut, target?, box|tube|prism|extrude}] (max 1000), lengths in mm. box takes min/max corners; tube takes end points, outer diameter and optional wall; prism extrudes a profile along x, y or z between two coordinates; extrude takes a plane pose, signed depth and profile. Profiles use the inventor_create_part shape syntax. Join and cut items may omit name (they create no body; the feature is named <op>_<index>), and defaults={tube: {od: 48.3}, ...} fills shape keys that items leave out, so repeated values are written once. All items are validated before Inventor is touched (degenerate sizes, self-crossing or touching loops, holes outside their loop, duplicate names, targets that are not bodies) and every problem is returned at once. After building, each item must give a healthy feature; a new item must add exactly one body, which is named after the item; a join must add volume and a cut must remove it. A failing item's objects are removed and the build stops (stop_on_error=false continues); built items are kept and the error carries next_index. dry_run=true validates against the part. The build is one undo step. inventor_send_code scripts that extrude sketched profiles get a routing hint to this tool.

  • inventor_export_bodies_sat (export toolset) writes solid bodies one ACIS SAT file per body, across many part documents already in memory, in one call: items=[{document, bodies?, key?}] (max 200 items / 2000 bodies), files <out_dir>\<key>-bNNN.sat. Documents, body refs, output paths (allowed output roots) and existing files are checked before the first write; overwrite=true replaces files. verify=true (default) reads each file back and compares body count, face count, volume and bounding box. A failing body is reported and the rest continue. The response is a compact summary (counts, maximum verify errors, failing bodies); detail=true adds one row per body. inventor_send_code scripts calling DataIO.WriteDataToFile get a routing hint to this tool.

  • Eight ipart MCP tools support managed Standard iPart factory copies, typed table rows, row selection, verified member generation, one-way saved Excel catalogs and assembly occurrence placement/switching. Parameter, material, Part Number, Description and feature-suppression columns are supported. Preview-first table/catalog/generation operations, persistent checkpoints, stale-member detection and explicit partial-file recovery keep library sources separate from generated copies. Custom iParts, sheet metal, existing-factory adoption and iAssemblies remain outside this scope.

  • inventor_list_sketch_points discovers document-scoped sketch point references, centres, endpoints and the origin without changing geometry. inventor_add_sketch_point_dimension creates horizontal, vertical or aligned driving distances between these references, with numeric mm or parameter expressions, explicit document targeting, recompute/geometry verification and transactional rollback.

  • Native Excel parameter link/list/reload tools for local .xlsx workbooks: saved-value preflight, stable table IDs, recompute/readback checks, persisted change checkpoints and explicit recovery receipts for spreadsheet-cache changes that survive transaction abort. Excel mutations are excluded from batch_execute.

  • inventor_add_sketch_dimension and inventor_revolve accept parameter expressions as well as numeric inputs, based on a contribution by gavinmcutler. Line dimensions drive length; circles/arcs drive radius. Expression parameters remain linked when source parameters change. Bare numeric strings use mm/degrees; unitless compound expressions use document units. Dimension values must be positive; expression revolve angles must evaluate to more than 0 and at most 360 degrees. Numeric revolve angles retain their existing full/reverse behavior.

  • Dimension and revolve creation validate expressions, verify recompute/readback, and abort their own transaction on failure. Inside batch_execute, failed operations roll back without discarding successful steps when continue_on_error=true; an uncertain rollback stops further batch writes and forces rollback. Responses do not claim restoration if transaction abort itself fails.

  • Sheet fabrication tools (sheet_fabrication and sheet_fabrication_query toolsets): inventor_new_sheet_fabrication_part (explicit template, or the first localized *Sheet Metal*.ipt), inventor_sheet_fabrication_info (read-only: thickness, bend radius, style, unfold method, bend count, flat blank size), inventor_set_sheet_fabrication_thickness (mm or expression, overrides the style), inventor_sheet_fabrication_face, inventor_sheet_fabrication_flange (height read back and rewritten once if Inventor drops it), inventor_sheet_fabrication_cut (across bends, normal to flat) and inventor_flat_pattern (creates it if missing, reports the blank size for export_dxf source=flat_pattern). inventor_unwrap_try trial-unwraps faces of any part into a surface body, measures it and rolls back unless keep=true.

  • inventor_list_faces and inventor_list_edges (read-only, query): faces with surface type, area, bbox and planar normal; edges with curve type, length and radius. Their body:B/face:F and body:B/edge:E ids feed fillet, chamfer, work features, flanges and unwrap_try. Both filter by body and type and cap output with max_items.

  • iLogic tools (ilogic toolset): inventor_ilogic_list_rules, inventor_ilogic_get_rule and inventor_ilogic_read_log (read-only), and inventor_ilogic_run_rule / inventor_ilogic_run_external_rule with flat arguments passed as a NameValueMap. Rule errors are returned in exceptions[] from iLogic's RuleExceptionsLog, because the file log depends on iLogicLogger.config and is often empty. inventor_ilogic_upsert_rule and inventor_ilogic_run_snippet sit in the code toolset under the send_code gate; a snippet runs as a temporary rule that is always deleted and returns its result through the custom iProperty MCP_RESULT, which is restored afterwards. Rule side effects are not rolled back. Hosts without iLogic return UNSUPPORTED_HOST.

  • inventor_list_commands (read-only) lists Inventor control definitions; inventor_run_command executes one by internal name (silent=true answers prompts with defaults); inventor_undo undoes 1–20 steps on the active document.

  • BIMWRIGHT_KEEP_ALL_LOGS=1 (also true/yes/on, read by the server and the add-in) stops every automatic deletion of logs, journals and reports: the 30-day / 100 MiB pruning of the gateway call log, plug-in call log and send-code journal, the newest-500 report cap, the call-log version migration and the captures cleanup delete nothing. Files still rotate to timestamped archives. It also keeps the send-code journal after body persistence is turned off instead of purging it 7 days later, a deliberate exception to the persisted-body time limit for a machine whose owner wants every record kept. It never turns on a recorder or changes what is recorded or the body TTL; spill, checkpoints, modules, ToolBaker data and discovery files keep their cleanup. Off by default; the server writes one stderr line and the add-in one trace line when it is on.

  • Script helper library Ipt.* for inventor_send_code, imported into every script and module (lengths mm, angles degrees): documents (Ipt.Doc, Ipt.Open, Ipt.Part/Asm/Dwg, Ipt.Docs, Ipt.Active), occurrences (Ipt.Occs, Ipt.Occ, Ipt.Leaves with the inventor_list_occurrences selector; MoveTo, MoveBy, SetTransform), geometry (Ipt.BboxMm, XyzMm, VolumeMm3, Overlapping), transient B-rep (Ipt.Box, Cyl, Cone, Sphere, Union, Subtract, Intersect, AddBody, NewPart), references (Ipt.Ref, WorkPlane/WorkAxis/WorkPoint, Ipt.Face), drawings (Ipt.Sheet, Views, View, ViewLines, Table, TableText, Texts, which also lists sketched text inside views), iProperties (Ipt.Prop, Ipt.SetProp) and number helpers. Lookups return live Inventor objects and throw IptException naming what exists; return Ipt.Help() lists every signature. The add-in reports the capability script_helpers_v1.

  • inventor_send_code responses carry an advisory helper_hint when the script hand-writes a lookup an Ipt.* helper covers (looping app.Documents, occurrences, sheets or drawing views; CustomTables, notes, RangeBox or PropertySets) or rounds with Math.Round. The script runs unchanged, and the hint is given only for an add-in that reports script_helpers_v1.

  • inventor_send_code loop guard: every for, foreach, while and do body of a script and its modules checks the call's time budget (the time left before timeout_ms, minus a small margin). When it runs out, the script stops with an error naming the source and line of the loop and the transaction is rolled back, instead of holding Inventor's main thread after the call has already returned TIMEOUT. Line numbers in diagnostics are unchanged.

  • inventor_get_drawing_info takes styles=false to leave out the style lists, which with the reference list are the largest part of a summary. It is sent only when false, so default calls still work with older add-ins.

  • An inventor_send_code script that returns an McpTaskResult without result_contract="task_v1" gets a task_contract_hint saying it was not read as a task result.

Changed

  • inventor_close_document(save=true), inventor_close_documents(save=true) and inventor_save_all follow the inventor_save_document policy and take allow_format_upgrade. A refused close keeps the document open with its changes (close_documents reports status=refused with the reason per file); closing with nothing to save just closes (reason=no_changes). save_all is refused, also on dry_run, when the root is never-saved, a template, read-only or missing on disk, or when a document it would save is a template or an older-format file without approval (data.files). On Inventor 2027, saving a drawing on close no longer saves its dirty referenced models, as with inventor_save_document.

  • Document confirmation: once the confirmed document is closed, an open or create command that activates another document moves the confirmation to it, so the next write needs no new inventor_switch_target(verify=true). While the confirmed document is still open, the rule is unchanged: only a document activated by the command itself, from the confirmed one, is adopted.

  • inventor_save_document enforces the policy inventor_get_document_state reports (rvt-mcp document lifecycle parity). An in-place save is refused for a never-saved document (DOCUMENT_NEVER_SAVED), a template (TEMPLATE_SAVE_AS_REQUIRED), a read-only file (FILE_READ_ONLY) or a file missing on disk (FILE_MISSING_ON_DISK), and for an older-format file unless allow_format_upgrade=true (FORMAT_UPGRADE_REQUIRES_APPROVAL); with nothing to save it returns saved=false, reason=no_changes instead of saving. A Save-As path must be a new file on a local drive with the document's extension in an existing folder: an existing file is never overwritten (SAVE_AS_TARGET_EXISTS), and network, relative and wrong-extension paths are refused. Refusals use INVALID_ARGUMENT with data.reason and data.mode, and save nothing; document tool errors now keep the handler's data. create_part recipes with save_as follow the same Save-As rules. inventor_save_all and inventor_close_document(save=true) are unchanged.

  • Target selection follows family contract FC-TGT-03..06, FC-SRV-08 and FC-TST-02. inventor_switch_target needs rebind=true to leave a running Inventor that this gateway selected (or whose document it confirmed), and auto or a year never moves a selection to another Inventor, even after TARGET_LOST (new code TARGET_REBIND_REQUIRED; the selection is unchanged). A malformed selector returns INVALID_TARGET_SELECTOR instead of INVALID_ARGUMENT; accepted forms are auto, a year 2022..2027, pid:<n> and id:<target_id>, plus a bare target id or pipe name for older clients (a bare number other than a year is no longer read as a pid). inventor_get_current_target never selects a session: with no selection it returns bound=false with the live candidates. inventor_switch_target is annotated as a write and is not registered under --read-only (39 read-only tools); a read-only gateway uses --target, or the only live Inventor. The add-in descriptor carries process_start_utc, and the gateway drops a descriptor whose pid now belongs to a later process. Toast cards show the PID <n> of their Inventor beside the title on hover.

  • Tool surface is now 150 tools by default (--toolsets all), 144 with --disable-send-code and 39 with --read-only (v0.2.1: 111 / 107 / 28). The README read-only permission allowlists and docs/testing/readonly-tools.json list all 39 read-only tools.

  • The iLogic run, run_command and export_bodies_sat descriptions state that their effects are not rolled back (replaced SAT files are not restored).

  • inventor_send_code accepts data (any JSON, max 512 KiB), which the script sees as the variable data (JToken; Newtonsoft.Json.Linq is imported), so coordinates, paths, member lists and expected values no longer have to be inlined into source. Without data nothing is added, so existing scripts that declare their own data variable keep working. compile_only=true compiles the script and its modules without running it or touching the document. Scripts over 4000 characters without data or modules get an advisory size_hint. Call logs record only the data hash and length; History re-run replays the code without the original data unless BIMWRIGHT_CACHE_SEND_CODE_BODIES=1 keeps the whole call in memory.

  • inventor_send_code can return one advisory routing_hint pointing to an available typed tool, on success or failure. Scripts using saved modules receive no routing hint; execution and script results are unchanged. Its description and server instructions include a compact task-to-tool guide.

  • Target selection no longer guesses between Inventor sessions (rvt-mcp #19 parity). With several live sessions and no selection, calls return AMBIGUOUS_TARGET with candidates instead of using the most recent heartbeat. A selected session is kept by pid and process start time; when it exits or its pid is reused, calls return TARGET_LOST instead of silently moving to another Inventor. inventor_switch_target accepts pid:<n> and id:<target_id>, refuses selectors that match several sessions and keeps the current selection on failure. --target <year> now selects that year instead of falling back to the first live target. inventor_list_available_targets marks the selected target and inventor_get_current_target reports how it was selected.

  • Input schemas publish empty objects instead of bare true schema nodes for client compatibility. Boolean defaults, examples, object-openness policies and native argument handling are preserved.

  • inventor_health reports loaded server/plugin identities and separate update.components statuses against one stable release. Startup requests check_updates=true once; routine probes remain offline. Notification codes distinguish newer releases, mismatched/unverified evidence, unavailable external lookup and informational LOCAL_VERSION_AHEAD. Messages report lookup/protection reasons without implying a local fault. identity_observed/unobserved_components separate missing runtime observation from protected observed builds. update_guidance.mode returns installation steps and installation-authorization requirements only for a permitted prepare_update proposal; offline, failed lookup and review modes contain no installer commands. Semantic update flags do not prove release identity. No target preserves server identity with a failed host probe; health never downloads or installs packages.

  • Initialization includes the full gateway informational version; the health tool's catalog metadata and client_verification support same-connection reconnect verification. The server cannot prove the client discarded cached handshake/catalog data. Runtime assembly version/MVID are separated from capture-time disk hash observations; source revision equality does not verify published artifact bytes or publisher trust.

  • Updated the English, Vietnamese, Japanese and Simplified Chinese health documentation with component statuses, notifications, safe update proposal guards and client-verification limits.

  • The agent install guide gates updates on a permitted health proposal, keeps its exact release tag and verifies the companion ZIP checksum before extraction and the required manifest before installer preview. Health guidance distinguishes external tag-resolution failures and mixed ahead/unobserved component states without treating them as local faults or stopping otherwise healthy Inventor work.

  • Toast agent title, hover PID, and daily pause: Gateway forwards client_name on every tool call and activity notification so cards show ipt-mcp <year> · <Agent>; host PID <n> fades in on deliberate hover; expanded cards and the Status dialog add Pause for today / Resume (toastSnoozedDate in iptmcp.config.json), and the ribbon Toasts toggle resumes while paused.

  • Dependencies (same set as the rvt-mcp dependency trial). The MCP server and its tests run on .NET 10 (.NET 8 reached end of support on 10 November 2026); the release ZIP still ships a self-contained server, so client machines need no .NET install. The add-ins keep the runtime each Inventor year uses (net48 for 2022-2024, .NET 8 for 2025/2026, .NET 10 for 2027). ModelContextProtocol 1.1.0 to 1.4.2 and Microsoft.Extensions.Hosting 8.0.1 to 10.0.7 (the abstractions MCP 1.4 uses); Microsoft.Data.Sqlite 8.0.11 to 8.0.34 with native SQLite pinned through SQLitePCLRaw.lib.e_sqlite3 2.1.14 (SQLite 3.54); Roslyn for send_code 4.8.0 to 4.13.0, the last version whose .NET 8 build uses the System.Collections.Immutable and System.Reflection.Metadata 8.0 that Inventor 2025/2026 provide; test packages xunit 2.9.3, Microsoft.NET.Test.Sdk 17.14.2, xunit.runner.visualstudio 2.8.2. Newtonsoft.Json stays 13.0.3 because of regressions reported against 13.0.4. The 2022-2024 add-ins now ship System.Collections.Immutable and System.Reflection.Metadata 8.0 (was 7.0) for Roslyn; they share Inventor's AppDomain with other add-ins, so report any send_code load error there.

  • Numbers an inventor_send_code script returns are cleaned of floating-point noise by default: doubles keep 12 significant digits (2388.400000000001 becomes 2388.4) and values below 1e-9 in magnitude become 0. The response reports numbers: "clean_v1"; raw_numbers=true returns the doubles as computed (numbers: "raw"). Only the reported numbers change; the model is never rounded.

  • The inventor_send_code description warns about the Inventor calls that have ended the Inventor process during a script (try/catch cannot catch it): reading DrawingViewAnnotation.SecondFormattedText on a detail view, and MeasureTools.GetMinimumDistance between a transient B-rep body and an occurrence body (copy both with TransientBRep.Copy first).

  • inventor_report_task_result describes the limits of task_id, outcome and summary in its input schema, and a summary over 120 characters is refused with its length and a pointer to body.

  • <export-root>\captures\ is bounded (rvt-mcp parity): after each capture written there, generated capture-<date>-<time>-<seq>.png files older than 30 days are deleted, then the oldest until the rest fits 200 MB. The capture just written, files you named, subfolders and other file types are never deleted, and BIMWRIGHT_KEEP_ALL_LOGS=1 keeps every capture.

Distribution

Setup includes the self-contained Windows x64 gateway and Inventor 2025–2027 plugins (built against real Autodesk Inventor Interop assemblies; source shells for 2022–2024 remain in the repository for local SDK builds). NuGet (Bimwright.Ipt.Server) contains the gateway only and requires .NET 10. The Claude Desktop MCPB requires the exact Setup gateway SHA-256 (864416a6bec9ce1a4451428de2b7e868d38585b73e1c1aefb3ed55b2061aa60c), including executable overrides. All three packages have SHA-256 sidecars.

Validation

  • CI run 45162034355 on master (5fdc6c5): public-tree, build (server + tests), installer-powershell, installer-pwsh, and ci-ok all passed.
  • MCPB catalog capture and validation on 2.5.1+5fdc6c565d2ef2f5a5bb8659a5480f3eb6ede2d1: 150 tools (--toolsets all), schema SDK 1.27.1 PASS, mcpb validate PASS.

Source commit: 5fdc6c565d2ef2f5a5bb8659a5480f3eb6ede2d1.