From c2bcb4631f6064b4c33f9d7ab832a62f95338617 Mon Sep 17 00:00:00 2001 From: Helian Nuits Date: Wed, 25 Nov 2026 01:35:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(crates/panache-mcp):=20=E6=8C=87=E6=98=8E?= =?UTF-8?q?=E8=A5=BF=E6=96=87=E6=8E=92=E7=89=88=E6=8E=A7=E4=BB=B6=E5=85=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 背景:describe_controls 提示了松散笔迹和偶发划改,但单独调整英文字母或数字时,模型在真实 stdio 试验中先猜测未定义的组,或带稿件编号却漏填 group。 解决手段:在工具说明中引导模型先读取 typography 组的字体、缩放和数字继承现值,不改变运行时架构、参数或渲染。 收益:两个配对弱模型试验均从六次调用降到三次、两次工具错误降到零,最后状态与普通预览仍通过断言;范围和反例见 PR。 --- CHANGELOG.md | 1 + crates/panache-mcp/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ea1959c..6b2ca51a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 未发布 +- MCP 提示在单独调整英文字母或数字时,先从西文排版参数组核对当前字体、缩放和数字设置。 - MCP 新检查单记录首次入档时的稿件版本,历史查单会说明单据能证明的先后关系。 - MCP 调参兼容直接指定控件或按控件组提交。 - 可用 `PANACHE_MCP_PRESERVE_REVIEWS=1` 在改稿和打印期间保留原有检查记录。 diff --git a/crates/panache-mcp/src/main.rs b/crates/panache-mcp/src/main.rs index fe797d7b..c243eb6f 100644 --- a/crates/panache-mcp/src/main.rs +++ b/crates/panache-mcp/src/main.rs @@ -283,7 +283,7 @@ impl ServerHandler for Panache { impl Panache { #[tool( annotations(read_only_hint = true, open_world_hint = false), - description = "For less even handwriting, inspect group=variation; for requested occasional crossed-out mistakes, group=strike. Pass draft_id to read current values before tune_handwriting. Omit group for the index." + description = "For less even handwriting, inspect group=variation; for requested occasional crossed-out mistakes, group=strike. If the request targets English letters or digits separately, inspect group=typography; check current font, scale and digit settings before changing them. Pass draft_id to read current values before tune_handwriting. Omit group for the index." )] fn describe_controls(&self, Parameters(input): Parameters) -> CallToolResult { tool_result((|| {