You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP: find_text ignores its query; stylesmanager set returns the whole 255-style table #3011
Two MCP (agent interface) problems found while driving CADCraft from an MCP client.
1. find_text ignores its query. It returns the same list of texts whatever query string is given, so it cannot be used to find a word. Workaround: an AutoLISP loop over (ssget "X" '((0 . "TEXT,MTEXT"))) with wcmatch.
2. stylesmanager with action: "set" returns the whole table. Changing one style (style: {name: "Color_13", lineweight: 0.3}) returns all 255 styles of the CTB, about 25 kB of JSON, for every change. Returning only the changed style would keep agent context small.
Also seen, already tracked: save reports a timeout although the file is written (#1078).
I'm taking this one: a PR for both parts follows shortly. It can be split into two if you prefer separate tickets, since the changes touch different files.
Activity
ticket-craft commentedon Nov 10, 2026
Thanks! This ticket describes several separate problems:
It helps a lot if each one has its own ticket, so they can be tracked and fixed separately.
Possibly related: #1039 and #335.
cdwilson127 commentedon Nov 10, 2026
I'm taking this one: a PR for both parts follows shortly. It can be split into two if you prefer separate tickets, since the changes touch different files.
stylesmanager set replies with only what changed (storytold#3011)
stylesmanager set: a long style name finds and replies with the store…
MCP: find_text takes `query` as its filter; stylesmanager set replies…
stylesmanager set: a long style name cut at a space finds its stored …
dotCooCoo commentedon Nov 20, 2026
Fixed in #3026, merged 2026-11-20. It is expected in v0.21.0.