From 59e6fac9f1bdb0424c0edbfce4085179b3777d9a Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Tue, 27 Oct 2026 11:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5=E7=82=B9=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E6=AE=B5=E7=9A=84=E8=AF=B4=E6=B3=95=E6=94=B9=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 指明是代码块第一行,非法地址填错时是打一行错误日志、接入点不启用,不是直接起不来。 --- docs/mcp-endpoint-integration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mcp-endpoint-integration.md b/docs/mcp-endpoint-integration.md index 1b0402ecb..243bf9264 100644 --- a/docs/mcp-endpoint-integration.md +++ b/docs/mcp-endpoint-integration.md @@ -89,6 +89,6 @@ python mcp_pipe.py calculator.py 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-当前支持的函数列表: [ 'get_time', 'get_lunar', 'play_music', 'get_weather', 'handle_exit_intent', 'calculator'] ``` -上面这行地址跟启动日志里的不一样,是正常的:启动日志里的`mcp接入点是`是你在配置里填的接入点地址(`/mcp_endpoint/mcp/`),建立连接之前服务端会把它自动换成`/mcp_endpoint/call/`——小智端走的是调用点路由,MCP 服务端那边走的仍是`/mcp_endpoint/mcp/`——所以设备连上之后打印出来的是`/mcp_endpoint/call/`。配置里仍然填`/mcp_endpoint/mcp/`,不用改成`/call/`,填成`call`会被判为非法格式,启动时直接报错。 +上面代码块第一行「正在初始化MCP接入点」里的地址跟启动日志里的不一样,是正常的:启动日志里的`mcp接入点是`是你在配置里填的接入点地址(`/mcp_endpoint/mcp/`),建立连接之前服务端会把它自动换成`/mcp_endpoint/call/`——小智端走的是调用点路由,MCP 服务端那边走的仍是`/mcp_endpoint/mcp/`——所以设备连上之后打印出来的是`/mcp_endpoint/call/`。配置里仍然填`/mcp_endpoint/mcp/`,把路径写成`/call/`会被判为非法格式,启动时会打出「mcp接入点不符合规范」的错误日志,MCP 接入点不会启用。 如果包含了 `'calculator'`,说明设备将可以根据意图识别,调用计算器这个工具。 \ No newline at end of file