wangzhibo
2026-09-11 659c470eba542383987aad227b7f918100f131fa
xiaozhi-esp32-server/main/xiaozhi-server/core/providers/tools/device_mcp/mcp_handler.py
@@ -216,6 +216,15 @@
                    if hasattr(conn, "func_handler") and conn.func_handler:
                        conn.func_handler.tool_manager.refresh_tools()
                        conn.func_handler.current_support_functions()
                    try:
                        from core.app_runtime.runtime import (
                            schedule_ensure_subscribed_app_sd_dirs,
                        )
                        schedule_ensure_subscribed_app_sd_dirs(conn)
                    except Exception as e:
                        logger.bind(tag=TAG).warning(f"调度订阅 App 建目录失败: {e}")
            return
    # Handle method calls (requests from the client)