From d16badfbfca01e0a196a1abc89f90408365b102b Mon Sep 17 00:00:00 2001 From: AhardworkingGuy <2922326081@qq.com> Date: Mon, 21 Sep 2026 23:43:45 +0800 Subject: [PATCH] =?UTF-8?q?test(gateway):=20server.test=20MCP=20=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=B8=85=E5=8D=95=E8=A1=A5=E4=B8=8A=20route=5Fmindmap?= =?UTF-8?q?=5Ffinalize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #264 写作路线导图(聚焦改版)把 route_mindmap_finalize 无条件注册进 documents 能力注册表(capabilities/builtins.ts),但 server.test.ts 两处 硬编码 tools/list 断言(MCP 端点直连 + SDK Client 重连)没同步,Windows app CI 自该合入后在所有基于 dev 的 PR 上持续红(两处 AssertionError: 收到 15 项、期望 14 项,多出的正是 route_mindmap_finalize,按注册顺序 位于 context_room_document_comment_add 与 context_room_document_delete 之间)。按实际注册顺序补齐两处断言。 本地 vitest run tests/server.test.ts 19/19 通过。 --- apps/gateway/tests/server.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/gateway/tests/server.test.ts b/apps/gateway/tests/server.test.ts index d81660fe..8a21520f 100644 --- a/apps/gateway/tests/server.test.ts +++ b/apps/gateway/tests/server.test.ts @@ -724,6 +724,7 @@ describe("gateway server", () => { "context_room_write_commit", "context_room_write_abort", "context_room_document_comment_add", + "route_mindmap_finalize", "context_room_document_delete", ]); }); @@ -787,6 +788,7 @@ describe("gateway server", () => { "context_room_write_commit", "context_room_write_abort", "context_room_document_comment_add", + "route_mindmap_finalize", "context_room_document_delete", ]); } finally {