We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a058bef commit 7b40501Copy full SHA for 7b40501
1 file changed
astrbot/core/provider/func_tool_manager.py
@@ -333,6 +333,7 @@ async def init_mcp_clients(self) -> None:
333
if info.init_future in pending_futures:
334
# 超时,初始化未完成,取消 task
335
logger.error(f"MCP 服务 {info.name} 初始化超时")
336
+ self._log_safe_mcp_debug_config(info.cfg)
337
if info.task is not None:
338
info.task.cancel()
339
cancelled_tasks.append(info.task)
@@ -398,6 +399,7 @@ async def _init_mcp_client_task_wrapper(
398
399
if not initialized:
400
logger.error(f"初始化 MCP 客户端 {name} 失败", exc_info=True)
401
raise
402
+ logger.error(f"MCP 客户端 {name} 初始化后运行异常: {e}", exc_info=True)
403
finally:
404
await self._terminate_mcp_client(name)
405
0 commit comments