forked from bai/curriculum-project-hub
fix(hub): ship checklist via cph_hub todo_write MCP tool
Native Claude TodoWrite is not registered in headless agent mode even with --tools default. Add mcp__cph_hub__todo_write (always enabled), mirror the TodoWrite schema, instruct multi-step runs to use it, and keep the Feishu progress panel parsing both native and hub tool names.
This commit is contained in:
@@ -12,7 +12,10 @@ const itOnLinux = process.platform === "linux" ? it : it.skip;
|
||||
describe("Feishu message resource download", () => {
|
||||
it("exposes the download tool to default and explicitly configured roles", () => {
|
||||
expect(cphHubMcpToolsForRole(undefined)).toContain("feishu_download_resource");
|
||||
expect(cphHubMcpToolsForRole(["feishu_download_resource"])).toEqual(["feishu_download_resource"]);
|
||||
expect(cphHubMcpToolsForRole(["feishu_download_resource"])).toEqual([
|
||||
"todo_write",
|
||||
"feishu_download_resource",
|
||||
]);
|
||||
expect(claudeSdkToolConfigForRole(["feishu_download_resource"]).allowedTools).toEqual([
|
||||
"mcp__cph_hub__feishu_download_resource",
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user