Repository navigation
ipt-mcp v2.5.1
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 throughinventor_save_documentmoves 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_codewith a longtimeout_ms) held the only connection, so every later call, health included, failed with "connect timed out" until it ended; now health answers withhost_busyand other calls queue or returnHOST_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_codecompile, and so every script baked tool, fail withCS0009. The file is left out of the compile references; the response then includesskipped_references(name,reason) and compile errors list the skipped names. Same fix as rvt-mcp #38. -
inventor_export_drawingto 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 withSheet.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 reportsexport_strategy(direct,copy_sheetsorsave_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: nulland the result'serror.codehashed like a script body. -
inventor_send_codedatareaches 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:1e400andNaNare rejected withINVALID_ARGUMENTinstead 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) anddata_hashcovers that text, so equal hashes mean the script received equal data. The same rules apply to theparamsJsonof script baked tools. Update the server and the add-in together: an older add-in does not readdata_json, so a script that usesdatafails to compile there instead of receiving changed values; a new add-in still acceptsdatafrom 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_codebodies: 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_thicknessreturnsrollback_failedwith an unknown mutation state, sobatch_executewithcontinue_on_error=truestops 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_tablecan edit tables made outside the typed tools:namealso matches a table's title (case-insensitive) when no managed name does, and a newlocator(frominventor_get_drawing_infoinclude=items) replacesnamefor an untitled or same-titled table.locatoris 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
sheetargument of the drawing tools also accepts a 1-based index ("1") and the sheet name without Inventor's:nsuffix; 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 apoint_intentthe curve does not have lists the intents it does. -
An
inventor_send_codescript 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\Addinsand folders beside the bundle were checked.
Added
-
inventor_send_codecompile 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 toIpt.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.Boxalso takes two Inventor points, andIpt.BboxhasToArray()and adouble[]cast. The add-in reports the capabilityscript_helpers_v2beside 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_resulttakes an optional Markdownbody(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 addsreport_saved,report_id,replacedandcall_count. Resending atask_idfrom the same session replaces that report and keeps its recorded writes. New read-onlyinventor_get_report_historylists saved reports newest first, or returns one in full byreport_id, without Inventor. Until the agent reports, successful model-changing tools add_reportto their result (full text once, then short);send_codegets one conditional reminder, and reads, open/close/save, checkpoints, exports andcompile_onlyget 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) andinventor_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=1turns it off. -
inventor_send_codeusage_context(project,testorunknown, 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 returnINVALID_ARGUMENT. -
Checkpoints (rvt-mcp
revit_save_checkpoint/revit_manage_checkpointsparity):inventor_save_checkpointcopies 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, unlessallow_format_upgrade=true), verifies the copy by size and SHA-256 and indexes it inindex.json. Assembly and drawing checkpoints hold only that file and say so (REFERENCES_NOT_CAPTURED).inventor_manage_checkpointslists, prunes with a previewedplan_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-mcprevit_get_document_stateparity, read-only): for the active document, a nameddocumentorscope=all, reportsmode(local_file,unsaved,template,read_only),is_modified,dirty_references,modifiable,is_read_only,exists_on_disk,saved_in_version,needs_migrating,file_save_counteranddocument_id, plus a savepolicy {mode, rules, allowed}and the active project'sold_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 returnsTARGET_BUSYand says nothing was sent, instead ofTIMEOUTwith "a transmitted operation may still complete". A pipe that does not exist returnsTARGET_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 withHOST_BUSYand the dialog's caption, instead of queueing behind the dialog untilTIMEOUT. 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 (wasAPI_ERROR) and a command that expired before it started (wasTIMEOUT) also returnHOST_BUSY. Each says the command was not started and will not run later.TIMEOUTnow only means a started command whose outcome is unknown.inventor_healthaddshost_busyandbusy_reason. -
inventor_new_drawing,inventor_add_sheetandinventor_set_title_blockrun underApplication.SilentOperation, so a template whose title block has prompted entries no longer blocksnew_drawingon the "Prompted Texts" dialog untilTIMEOUT. -
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 returnTARGET_UNCONFIRMEDand 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, elseDOCUMENT_CHANGED(orDOCUMENT_UNCONFIRMED) and the command is not started. A write with an explicitdocumentparameter 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_targetandinventor_switch_targetreportdocument_confirmed,confirmed_document_idandconfirmed_document_title. Document ids last until Inventor closes the document; reopening it gives a new id.send_codewithcompile_onlyand baked-tool installs are not document writes. -
PAIRING_REQUIRED: writes between a server and an add-in that do not both supportdocument_target_v1are 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_coderesult_contract="task_v1"(rvt-mcp parity; default"legacy"is unchanged): the script returnsMcpTaskResult.Pass(value)orMcpTaskResult.Fail(code, message, details), imported automatically. The response carries_task(contract,statuspassed/failed/not_reported,error{code, message});Failsetsok=falsewitherror"<code>: <message>"and returns the details asresult, and a script that returns noMcpTaskResultfails withTASK_RESULT_REQUIRED. A failed task does not undo edits the script already made. Legacy results that reportpassed,okorsuccessfalseget an advisorytask_contract_hint.task_v1calls are not observed for adaptive bake. Update the server and the add-in together: an older add-in does not importMcpTaskResult, so atask_v1script 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 returnsHOST_CRASHEDinstead ofTARGET_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 staysTARGET_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_codeonly as hash and length) next tomcp-calls.jsonlbefore 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 acrash_suspectedline inmcp-calls.jsonlunder the original session id, so the command that ended Inventor is no longer missing from the journal. -
ToolBaker script tools: a
send_codescript that takes its inputs asdatacan 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), eachsend_codecall withdatarecords 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 abake_hint.inventor_accept_bake_suggestiontakes the samecodeandmodules, checks them against the recorded hash and stores the script only then. A script tool runs assend_codeand is refused whereversend_codeis disabled or the connection is read-only; preset and macro tools keep the read-only dispatch allow-list. Asend_codecall that matches an accepted script tool gets abake_hintpointing 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.boxtakes min/max corners;tubetakes end points, outer diameter and optional wall;prismextrudes a profile along x, y or z between two coordinates;extrudetakes a plane pose, signed depth and profile. Profiles use theinventor_create_partshape syntax. Join and cut items may omitname(they create no body; the feature is named<op>_<index>), anddefaults={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=falsecontinues); built items are kept and the error carriesnext_index.dry_run=truevalidates against the part. The build is one undo step.inventor_send_codescripts 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=truereplaces 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=trueadds one row per body.inventor_send_codescripts callingDataIO.WriteDataToFileget a routing hint to this tool. -
Eight
ipartMCP 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_pointsdiscovers document-scoped sketch point references, centres, endpoints and the origin without changing geometry.inventor_add_sketch_point_dimensioncreates 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
.xlsxworkbooks: 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 frombatch_execute. -
inventor_add_sketch_dimensionandinventor_revolveaccept parameter expressions as well as numeric inputs, based on a contribution bygavinmcutler. 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 whencontinue_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_fabricationandsheet_fabrication_querytoolsets):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) andinventor_flat_pattern(creates it if missing, reports the blank size forexport_dxf source=flat_pattern).inventor_unwrap_trytrial-unwraps faces of any part into a surface body, measures it and rolls back unlesskeep=true. -
inventor_list_facesandinventor_list_edges(read-only,query): faces with surface type, area, bbox and planar normal; edges with curve type, length and radius. Theirbody:B/face:Fandbody:B/edge:Eids feed fillet, chamfer, work features, flanges andunwrap_try. Both filter by body and type and cap output withmax_items. -
iLogic tools (
ilogictoolset):inventor_ilogic_list_rules,inventor_ilogic_get_ruleandinventor_ilogic_read_log(read-only), andinventor_ilogic_run_rule/inventor_ilogic_run_external_rulewith flatargumentspassed as a NameValueMap. Rule errors are returned inexceptions[]from iLogic's RuleExceptionsLog, because the file log depends oniLogicLogger.configand is often empty.inventor_ilogic_upsert_ruleandinventor_ilogic_run_snippetsit in thecodetoolset under thesend_codegate; a snippet runs as a temporary rule that is always deleted and returns its result through the custom iPropertyMCP_RESULT, which is restored afterwards. Rule side effects are not rolled back. Hosts without iLogic returnUNSUPPORTED_HOST. -
inventor_list_commands(read-only) lists Inventor control definitions;inventor_run_commandexecutes one by internal name (silent=trueanswers prompts with defaults);inventor_undoundoes 1–20 steps on the active document. -
BIMWRIGHT_KEEP_ALL_LOGS=1(alsotrue/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.*forinventor_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.Leaveswith theinventor_list_occurrencesselector;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 throwIptExceptionnaming what exists;return Ipt.Help()lists every signature. The add-in reports the capabilityscript_helpers_v1. -
inventor_send_coderesponses carry an advisoryhelper_hintwhen the script hand-writes a lookup anIpt.*helper covers (loopingapp.Documents, occurrences, sheets or drawing views;CustomTables, notes,RangeBoxorPropertySets) or rounds withMath.Round. The script runs unchanged, and the hint is given only for an add-in that reportsscript_helpers_v1. -
inventor_send_codeloop guard: everyfor,foreach,whileanddobody of a script and its modules checks the call's time budget (the time left beforetimeout_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 returnedTIMEOUT. Line numbers in diagnostics are unchanged. -
inventor_get_drawing_infotakesstyles=falseto 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_codescript that returns anMcpTaskResultwithoutresult_contract="task_v1"gets atask_contract_hintsaying it was not read as a task result.
Changed
-
inventor_close_document(save=true),inventor_close_documents(save=true)andinventor_save_allfollow theinventor_save_documentpolicy and takeallow_format_upgrade. A refused close keeps the document open with its changes (close_documentsreportsstatus=refusedwith the reason per file); closing with nothing to save just closes (reason=no_changes).save_allis refused, also ondry_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 withinventor_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_documentenforces the policyinventor_get_document_statereports (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 unlessallow_format_upgrade=true(FORMAT_UPGRADE_REQUIRES_APPROVAL); with nothing to save it returnssaved=false,reason=no_changesinstead of saving. A Save-Aspathmust 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 useINVALID_ARGUMENTwithdata.reasonanddata.mode, and save nothing; document tool errors now keep the handler'sdata.create_partrecipes withsave_asfollow the same Save-As rules.inventor_save_allandinventor_close_document(save=true)are unchanged. -
Target selection follows family contract FC-TGT-03..06, FC-SRV-08 and FC-TST-02.
inventor_switch_targetneedsrebind=trueto leave a running Inventor that this gateway selected (or whose document it confirmed), andautoor a year never moves a selection to another Inventor, even afterTARGET_LOST(new codeTARGET_REBIND_REQUIRED; the selection is unchanged). A malformed selector returnsINVALID_TARGET_SELECTORinstead ofINVALID_ARGUMENT; accepted forms areauto, a year 2022..2027,pid:<n>andid:<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_targetnever selects a session: with no selection it returnsbound=falsewith the live candidates.inventor_switch_targetis 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 carriesprocess_start_utc, and the gateway drops a descriptor whose pid now belongs to a later process. Toast cards show thePID <n>of their Inventor beside the title on hover. -
Tool surface is now 150 tools by default (
--toolsets all), 144 with--disable-send-codeand 39 with--read-only(v0.2.1: 111 / 107 / 28). The README read-only permission allowlists anddocs/testing/readonly-tools.jsonlist all 39 read-only tools. -
The iLogic run,
run_commandandexport_bodies_satdescriptions state that their effects are not rolled back (replaced SAT files are not restored). -
inventor_send_codeacceptsdata(any JSON, max 512 KiB), which the script sees as the variabledata(JToken;Newtonsoft.Json.Linqis imported), so coordinates, paths, member lists and expected values no longer have to be inlined into source. Withoutdatanothing is added, so existing scripts that declare their owndatavariable keep working.compile_only=truecompiles the script and its modules without running it or touching the document. Scripts over 4000 characters withoutdataor modules get an advisorysize_hint. Call logs record only the data hash and length; History re-run replays the code without the originaldataunlessBIMWRIGHT_CACHE_SEND_CODE_BODIES=1keeps the whole call in memory. -
inventor_send_codecan return one advisoryrouting_hintpointing 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_TARGETwith 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 returnTARGET_LOSTinstead of silently moving to another Inventor.inventor_switch_targetacceptspid:<n>andid:<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_targetsmarks the selected target andinventor_get_current_targetreports how it was selected. -
Input schemas publish empty objects instead of bare
trueschema nodes for client compatibility. Boolean defaults, examples, object-openness policies and native argument handling are preserved. -
inventor_healthreports loaded server/plugin identities and separateupdate.componentsstatuses against one stable release. Startup requestscheck_updates=trueonce; routine probes remain offline. Notification codes distinguish newer releases, mismatched/unverified evidence, unavailable external lookup and informationalLOCAL_VERSION_AHEAD. Messages report lookup/protection reasons without implying a local fault.identity_observed/unobserved_componentsseparate missing runtime observation from protected observed builds.update_guidance.modereturns installation steps and installation-authorization requirements only for a permittedprepare_updateproposal; 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_verificationsupport 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_nameon every tool call and activity notification so cards showipt-mcp <year> · <Agent>; hostPID <n>fades in on deliberate hover; expanded cards and the Status dialog add Pause for today / Resume (toastSnoozedDateiniptmcp.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_code4.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 anysend_codeload error there. -
Numbers an
inventor_send_codescript 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 reportsnumbers: "clean_v1";raw_numbers=truereturns the doubles as computed (numbers: "raw"). Only the reported numbers change; the model is never rounded. -
The
inventor_send_codedescription warns about the Inventor calls that have ended the Inventor process during a script (try/catch cannot catch it): readingDrawingViewAnnotation.SecondFormattedTexton a detail view, andMeasureTools.GetMinimumDistancebetween a transient B-rep body and an occurrence body (copy both withTransientBRep.Copyfirst). -
inventor_report_task_resultdescribes the limits oftask_id,outcomeandsummaryin its input schema, and asummaryover 120 characters is refused with its length and a pointer tobody. -
<export-root>\captures\is bounded (rvt-mcp parity): after each capture written there, generatedcapture-<date>-<time>-<seq>.pngfiles 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, andBIMWRIGHT_KEEP_ALL_LOGS=1keeps 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, andci-okall passed. - MCPB catalog capture and validation on
2.5.1+5fdc6c565d2ef2f5a5bb8659a5480f3eb6ede2d1: 150 tools (--toolsets all), schema SDK 1.27.1 PASS,mcpb validatePASS.
Source commit: 5fdc6c565d2ef2f5a5bb8659a5480f3eb6ede2d1.