Repository navigation
Releases: preluceo-tools/mcp-bridge-for-moi
Releases · preluceo-tools/mcp-bridge-for-moi
Release list
v0.5.0 — token transparency
No bridge change in this release: updating the server is enough.
Added
mcp-bridge-for-moi tokensestimates the tokens each tool definition costs an agent, and the
total;--jsonprints the definitions as the server sends them. It needs no MoI session.- A test fails when the tool definitions together pass 15,600 characters, so their cost cannot
grow unnoticed. - The README has a Token use section: what the tool definitions cost in an agent's context, tool
by tool, and how to check it. A test keeps its table in step with the server.
Changed
- A
moi_evalthat fails withmoi_errorends its reply with a line pointing to
moi_factory_help('traps'). Other failures and successful calls are unchanged. moi_eval's description now fits Claude Code's 2,048-character cap on tool descriptions (it was
6,324 characters, so the traps and refusal notes at its end were cut off). The MoI scripting traps
and the helper details moved tomoi_factory_help('traps')andmoi_factory_help('helpers').
A test keeps every tool description within the cap.
v0.4.0 — factory help and eval hints
No bridge change in this release: updating the server is enough.
Added
moi_factory_helpanswers forobject,edgeandstylewith hand-written notes on their
members (MoI's objects list none of their own), without a MoI session. The index names them.- When a
moi_evalresult isnulland the script has noreturn, the reply says the last
expression was not returned. - Nine more MoI scripting traps in the
moi_evaldescription:commit()return values, mesh
import throughfileImportSubD, all-or-nothing imports, writableobj.selected, reading files,
whole-list factory calls,joinreturning one object per connected group,execCommandon
commands with a UI, andisClosedon breps.
Changed
- The traps in the
moi_evaldescription are one bullet per line instead of one paragraph. - When a
moi_evalscript throws, each list of created or consumed ids names at most 10 ids and
gives the count of the rest, so a script that fails on a large document no longer returns an
oversized error. - On a document with no unit system, the agent may set millimeters itself when it is only
testing. Otherwise it still asks you. The refusal itself is unchanged.
Updating: pull, run npm install and npm run build, then restart your MCP client. The bridge protocol is unchanged, so no bridge reinstall is needed.
v0.3.0 — scripting traps
The bridge protocol changes in this release: install the bridge again after updating (see
Updating in the README). The server refuses the old bridge until you do.
Added
- A
boolean(kind, targets, tools)helper in everymoi_evalscript, fordifference,
unionandintersection. It returns every result object, gives the results the first
target's name and style, and warns when a difference or union left the face count unchanged
(the cutter most likely missed), when a union left separate objects, or when nothing was
created. - When a
moi_evalscript throws, the error lists the ids of the objects it created or
consumed before the throw, so they can be deleted withdelete_objects. - The
moi_evaldescription lists the MoI scripting traps the bridge cannot change (factory
inputs, object lists, frame directions, gaps between parallel faces, non-destructive
intersection tests, and more), and says to readisSolidBRepon a live object. - The
export_objectsdescription says to give each re-export a new file name.
Changed
get_scenereplies with compact JSON. On a document of more than 100 objects, it lists every
object with its id, name and type only, and says to query the details withmoi_eval.- A
moi_evaltimeout has the error codetimeout. It says whether the script never started
and nothing changed, or may still finish, in which case the agent checks the scene before
running it again. get_viewandset_viewfail when none of the ids to frame exist, before any angle or
camera changes and without a render. When some ids exist, those are framed and the rest are
listed, as before.
Updating: pull, run npm install and npm run build, then node dist/cli.js install and restart MoI. This release changes the bridge protocol, so the reinstall is required.
v0.2.0 — mesh export settings
Added
export_objectstakes the full set of MoI's mesh settings for mesh formats (OBJ, STL, 3DS,
FBX, LWO, SKP):angle,output(ngons,quads,triangles),weld,
divideLargerThan,divideLargerThanApplyTo,avoidSmallerThanandaspectRatioLimit.
Every mesh export sends all of them, defaults filling any left out, so the same call always
writes the same mesh. See ADR-0006.- The reply of a mesh export lists the settings used, as
meshSettings. - The server reports its version from
package.json.
Changed
- A mesh export no longer inherits whatever was last set in MoI's mesh dialog; it overwrites
the dialog's values for the rest of the MoI session.
Fixed
export_objectsrefuses.dwg, which MoI 4 cannot write and fails on silently, and points
to.dxfinstead.export_objectsrefuses a path in a folder that does not exist, which left MoI stuck on an
error box.- Mesh settings on a format that is not meshed, and an STL
outputother thantriangles,
are refused instead of ignored.
Updating: pull, run npm install and npm run build, then node dist/cli.js install and restart MoI.