xiaozhi-esp32-server/main/xiaozhi-server
shinjiyu af1982c424
fix: device MCP tools/call 避开握手占用的 JSON-RPC id 1/2 (#3462)
握手阶段写死 id=1 (initialize) / id=2 (tools/list),但 MCPClient.next_id
从 1 起算,导致前两次 tools/call 复用同一连接上的 request id。合规设备端
会拒收并触发服务端 30s 超时(表现为前两次调用失败、第三次起恢复)。

将 next_id 初始值改为 3,与官方协议序列及 #3461 复现一致;同时去掉
mcp_handler 里重复的 MCPClient 定义,改为从 mcp_client 导入。

Fixes #3461

Co-authored-by: shinjiyu <shinjiyu@users.noreply.github.com>
2026-10-26 14:05:40 +08:00
..
config Bump to 0.9.8 (#3469) 2026-10-23 18:54:05 +08:00
core fix: device MCP tools/call 避开握手占用的 JSON-RPC id 1/2 (#3462) 2026-10-26 14:05:40 +08:00
models 重新划分目录 (#214) 2025-03-05 23:13:24 +08:00
music 重新划分目录 (#214) 2025-03-05 23:13:24 +08:00
performance_tester feat(tts): support Bailian workspace endpoints 2026-09-04 12:05:09 +08:00
plugins_func feat(web_search): 新增Serply搜索源 2026-09-17 16:45:28 -04:00
tests 文件直接写入wav,无需经过二次编解码 2026-10-20 10:45:31 +08:00
agent-base-prompt.txt fix: 2026-07-08 16:14:10 +08:00
app.py fix: 消除死锁隐患 2026-07-09 10:29:41 +08:00
config.yaml feat(web_search): 新增Serply搜索源 2026-09-17 16:45:28 -04:00
config_from_api.yaml fix:修复全模块时缺少prompt_template配置的问题 2025-10-31 20:36:55 +08:00
docker-compose.yml fix: 设备最后连接时间返回 UTC 时间戳,修复时区显示问题 2026-05-27 17:35:10 +08:00
docker-compose_all.yml update:增加ragflow部署教程 2025-11-11 18:47:25 +08:00
mcp_server_settings.json update:服务端MCP新增支持Streamable HTTP传输协议 2025-10-29 23:14:42 +08:00
performance_tester.py update:优化测试工具目录结构 2025-08-16 10:09:36 +08:00
pyproject.toml 配 pytest 与 conftest,修模块路径 2026-09-02 22:24:35 +08:00
requirements.txt chore(deps): 批量升级 15 个依赖,适配 mcp 2.x 2026-10-23 15:15:50 +08:00