Files
xiaozhi-esp32-server/main/xiaozhi-server
caixypromise 0a765f4aac fix(MCP): 重构MCPClient为后台协程 + AsyncExitStack管理,解决进程退出时的“Attempted to exit cancel scope in a different task”错误
# 变更
----
- 将所有stdio_client与ClientSession的创建/销毁都放到同一个后台 task 中
- 使用AsyncExitStack托管异步资源,cleanup时在同一task内执行exit_stack.aclose()
- 外部只通过事件通知后台task退出,避免跨协程调用cancel-scope异常
2025-05-04 23:27:47 +08:00
..
2025-05-02 16:17:18 +08:00
2025-03-05 23:13:24 +08:00
2025-03-05 23:13:24 +08:00
2025-04-27 22:07:36 +08:00
2025-04-30 15:05:42 +08:00
2025-05-04 01:19:54 +08:00
2025-03-24 10:28:48 +08:00
2025-05-03 22:21:22 +08:00