A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
feat(mcp): a local log of which tools fail; the guide says how undo, permissions and progress work
yhh61f4931ab8af
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fe57a898d..4698265ac 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -20,6 +20,7 @@ published separately; it ships inside the editor.### Changed+- **An agent call over MCP is one undo step, files included.** Everything one call changes — its scene edits and the project files it writes — goes back with one Undo and forward with one Redo, shown in History as **AI · *tool***. A call that only wrote files does not mark the scene unsaved, and the `undo` / `redo` tools answer once the files are back on disk. Every tool also carries MCP annotations from what it does (read-only, undoable, destructive), so a client asks before only the calls that leave the project or run unlisted code; a long call sends a progress note every five seconds; arguments are checked inside arrays and objects, with the place named; and each call is noted in a local log (`~/.estella/mcp-calls.jsonl`, never the arguments, `ESTELLA_MCP_CALL_LOG=0` to turn off) that `desktop/scripts/mcp-call-stats.mjs` summarises by the tools that fail most. `write_project_file` no longer reports a failure for a script it wrote outside the project's script folders.- **Plugin agent tools reach MCP clients.** A tool a plugin lends with `ctx.agentTools.register` is now listed to every connected MCP client beside the editor's own, and a call runs in the editor. Its `schema` is checked first, and a tool whose `effect` is not `read` is offered only while the editor lets agents change the project. The LDtk plugin's `estella_ldtk_import` is the first.## [0.97.0] - 2026-10-31diff --git a/desktop b/desktopindex 8b37be60c..a0c24bb62 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 8b37be60ca7e485675264c0252fdba82f26f8bb5+Subproject commit a0c24bb62e25e4a6683a9badde45a5000b930189diff --git a/docs/astro/src/content/docs/agents/mcp.mdx b/docs/astro/src/content/docs/agents/mcp.mdxindex 7b4de7401..40a4fe0bb 100644--- a/docs/astro/src/content/docs/agents/mcp.mdx+++ b/docs/astro/src/content/docs/agents/mcp.mdx@@ -226,6 +226,20 @@ stretches its corners. `get_import_settings` shows every knob with its default.folder in one call — each asset keeps the settings the patch does not name.</Aside>+## Undo, permissions and progress++- **One call is one undo step.** Everything a call changes — the scene edits *and* the project files it writes — goes back with+ one **Ctrl/⌘ + Z**, and comes forward again with Redo. The step shows in **History** as **AI · *tool***. A call that only wrote+ files does not mark the scene unsaved. The agent's own `undo` / `redo` tools answer once the files are back on disk.+- **Your client knows what each tool does.** Every tool carries MCP annotations: reading tools are marked read-only, and only the+ ones that leave the project or run code nobody listed (an editor command, a probe in the running game) are marked destructive.+ A client that asks before such calls asks only before those.+- **Long calls say they are still running.** A client that asks for progress hears every five seconds which tool is running and+ for how long — opening a large scene or exporting reads as working, not hung.+- **Which tools fail, on this machine.** The connection notes each call (tool, client, outcome, time, the start of an error —+ never the arguments) in `~/.estella/mcp-calls.jsonl`. `node desktop/scripts/mcp-call-stats.mjs` lists the tools that fail+ most and how. Nothing is sent anywhere; `ESTELLA_MCP_CALL_LOG=0` turns it off.+## From the repository (contributors)In a source checkout, `pnpm --filter @estella/editor editor:mcp` serves the samediff --git a/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx b/docs/astro/src/content/docs/zh-cn/agents/mcp.mdxindex 9477e3996..759b249de 100644--- a/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx+++ b/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx@@ -202,6 +202,16 @@ claude mcp add estella --env ESTELLA_MCP_ALLOW_WRITES=1 -- \每个资产保留 patch 没点名的设置。</Aside>+## 撤销、权限与进度++- **一次调用就是一步撤销。** 一次调用改的所有东西——场景改动*和*它写的项目文件——按一次 **Ctrl/⌘ + Z** 一起退回,重做再一起回来。+ 这一步在**历史**里显示为 **AI · *工具名***。只写了文件的调用不会把场景标成未保存。代理自己的 `undo` / `redo` 工具会等文件回到磁盘上才回复。+- **客户端知道每个工具会做什么。** 每个工具都带 MCP 注解:读取类标为只读,只有离开当前项目、或执行没人列得清后果的代码(编辑器命令、在运行中的游戏里跑探针)的才标为破坏性。+ 会在这类调用前询问的客户端,只会在这些调用前问。+- **长调用会说自己还在跑。** 请求了进度的客户端每五秒会收到一次:哪个工具在跑、跑了多久——打开大场景或导出不再像卡住了。+- **在这台机器上,哪些工具最常失败。** 连接会把每次调用(工具、客户端、成败、耗时、报错开头——从不记参数)记在 `~/.estella/mcp-calls.jsonl`。+ `node desktop/scripts/mcp-call-stats.mjs` 列出最常失败的工具和原因。不会发到任何地方;`ESTELLA_MCP_CALL_LOG=0` 可以关掉。+## 从源码仓库使用(贡献者)源码仓库里,`pnpm --filter @estella/editor editor:mcp` 用无头夹具宿主提供同一套