makecindy / makecindy/cindy

cindy_helper / cindy_scheduler 的 call_tool 报 UNKNOWN_TOOL(MCP 分派名不匹配)

Open
#1,765 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: 匿名
**客户端版本**: 0.1.30

---

## 现象

`cindy_helper`(跨会话投递)和 `cindy_scheduler`(定时任务)两个 MCP 的 `call_tool` 执行具体工具时返回 `UNKNOWN_TOOL`("找不到工具")。

- `list_tools` 能正常列出工具列表(如 `send_to_session` / `schedule_create` 等),但执行时报找不到工具。
- 错误显示:**requested 是 wrapper 名、可用工具是内部工具名**——两者不一致,疑似 MCP 分派层拿 wrapper 名去查工具,但实际注册的是内部工具名。
- 影响:定时任务建不了(`schedule_create` 等)、跨会话消息投递用不了(`send_to_session` 等)。

## 复现步骤

1. 在受影响会话中调用 `cindy_helper.list_tools`(或 `cindy_scheduler.list_tools`)→ 工具列表正常可见。
2. 调用 `cindy_helper.call_tool` 执行 `send_to_session`(或 `cindy_scheduler.call_tool` 执行 `schedule_create`)→ 返回 `UNKNOWN_TOOL`。
3. 观察错误信息:requested 工具名 ≠ 可用工具名。

## 期望行为

`call_tool` 应能正常调用这些工具——定时任务能创建、跨会话消息能投递。

## 实际行为

调用返回 `UNKNOWN_TOOL`,定时任务建不了、跨会话消息投递用不了。

## 补充诊断线索(条件性故障)

同一平台上部分会话的同类工具**正常**:例如军师会话的 `cindy_helper` 可正常调用 `send_to_session`;故障主要出现在主客户端 / 总控会话。疑似与会话类型或客户端构建有关。其他 MCP(如 `cindy_memory`)功能正常,说明不是全局 MCP 不可用,而是特定服务器的分派层问题。
---
**OS**: win32 x64 (10.0.19045)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start at the cindy_helper.call_tool and cindy_scheduler.call_tool entry points, then trace how wrapper names are mapped to registered internal tool names. Reproduce the failure in the main client or control session and compare it with a working session; done means send_to_session and schedule_create execute successfully without UNKNOWN_TOOL.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.