From b552f58d677fd7c76d7a20b292fdf84242ca8c82 Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Tue, 27 Oct 2026 10:04:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5=E7=82=B9=E9=9B=86=E6=88=90?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E7=9A=84=E7=AB=AF=E5=8F=A3=E5=92=8C=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E6=A0=B7=E4=BE=8B=E6=94=B9=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 单模块的OTA和视觉接口是8003,两段日志样例按真实输出写。 --- docs/mcp-endpoint-integration.md | 38 ++++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/mcp-endpoint-integration.md b/docs/mcp-endpoint-integration.md index c0ee90735..af6d3d696 100644 --- a/docs/mcp-endpoint-integration.md +++ b/docs/mcp-endpoint-integration.md @@ -16,15 +16,15 @@ ### 如果你是单模块部署 如果你是单模块部署,且你已经在配置文件里配置了MCP接入点地址,那么正常来说,单模块部署启动的时候,会输出如下的日志。 ``` -250705[__main__]-INFO-初始化组件: vad成功 SileroVAD -250705[__main__]-INFO-初始化组件: asr成功 FunASRServer -250705[__main__]-INFO-OTA接口是 http://192.168.1.25:8002/xiaozhi/ota/ -250705[__main__]-INFO-视觉分析接口是 http://192.168.1.25:8002/mcp/vision/explain -250705[__main__]-INFO-mcp接入点是 ws://192.168.1.25:8004/mcp_endpoint/mcp/?token=abc -250705[__main__]-INFO-Websocket地址是 ws://192.168.1.25:8000/xiaozhi/v1/ -250705[__main__]-INFO-=======上面的地址是websocket协议地址,请勿用浏览器访问======= -250705[__main__]-INFO-如想测试websocket请启动digital-human模块,打开浏览器交互测试 -250705[__main__]-INFO-============================================================= +250705 13:04:20[0.9.8_00000000000000][core.utils.modules_initialize]-INFO-初始化组件: vad成功 SileroVAD +250705 13:04:20[0.9.8_00000000000000][core.utils.modules_initialize]-INFO-初始化组件: asr成功 FunASRServer +250705 13:04:20[0.9.8_00000000000000][__main__]-INFO-OTA接口是 http://192.168.1.25:8003/xiaozhi/ota/ +250705 13:04:20[0.9.8_00000000000000][__main__]-INFO-视觉分析接口是 http://192.168.1.25:8003/mcp/vision/explain +250705 13:04:20[0.9.8_00000000000000][__main__]-INFO-mcp接入点是 ws://192.168.1.25:8004/mcp_endpoint/mcp/?token=abc +250705 13:04:20[0.9.8_00000000000000][__main__]-INFO-Websocket地址是 ws://192.168.1.25:8000/xiaozhi/v1/ +250705 13:04:20[0.9.8_00000000000000][__main__]-INFO-=======上面的地址是websocket协议地址,请勿用浏览器访问======= +250705 13:04:20[0.9.8_00000000000000][__main__]-INFO-如想测试websocket请启动digital-human模块,打开浏览器交互测试 +250705 13:04:20[0.9.8_00000000000000][__main__]-INFO-============================================================= ``` 如上,输出`mcp接入点是`中`ws://192.168.1.25:8004/mcp_endpoint/mcp/?token=abc`就是你的`MCP接入点地址`。 @@ -80,15 +80,15 @@ python mcp_pipe.py calculator.py 如果你是单模块部署,当设备连接后,会输出类似的日志,说明成功了 ``` -250705 -INFO-正在初始化MCP接入点: wss://2662r3426b.vicp.fun/mcp_e -250705 -INFO-发送MCP接入点初始化消息 -250705 -INFO-MCP接入点连接成功 -250705 -INFO-MCP接入点初始化成功 -250705 -INFO-统一工具处理器初始化完成 -250705 -INFO-MCP接入点服务器信息: name=Calculator, version=1.9.4 -250705 -INFO-MCP接入点支持的工具数量: 1 -250705 -INFO-所有MCP接入点工具已获取,客户端准备就绪 -250705 -INFO-工具缓存已刷新 -250705 -INFO-当前支持的函数列表: [ 'get_time', 'get_lunar', 'play_music', 'get_weather', 'handle_exit_intent', 'calculator'] +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.unified_tool_handler]-INFO-正在初始化MCP接入点: wss://2662r3426b.vicp.fun/mcp_e +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.mcp_endpoint.mcp_endpoint_handler]-INFO-发送MCP接入点初始化消息 +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.mcp_endpoint.mcp_endpoint_handler]-INFO-MCP接入点连接成功 +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.unified_tool_handler]-INFO-MCP接入点初始化成功 +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.unified_tool_handler]-DEBUG-统一工具处理器初始化完成 +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.mcp_endpoint.mcp_endpoint_handler]-INFO-MCP接入点服务器信息: name=Calculator, version=1.9.4 +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.mcp_endpoint.mcp_endpoint_handler]-INFO-MCP接入点支持的工具数量: 1 +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.mcp_endpoint.mcp_endpoint_handler]-INFO-所有MCP接入点工具已获取,客户端准备就绪 +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.unified_tool_manager]-DEBUG-工具缓存已刷新 +250705 13:04:20[0.9.8_00000000000000][core.providers.tools.unified_tool_handler]-INFO-当前支持的函数列表: [ 'get_time', 'get_lunar', 'play_music', 'get_weather', 'handle_exit_intent', 'calculator'] ``` 如果包含了 `'calculator'`,说明设备将可以根据意图识别,调用计算器这个工具。 \ No newline at end of file