From 45c875bdd98c128eb1f7ccfe85fe9d91352fb5dd Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Tue, 27 Oct 2026 11:14:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5=E7=82=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E9=87=8C=E8=AF=B4=E6=B8=85=E4=B8=A4=E4=B8=AA=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=B8=BA=E4=BB=80=E4=B9=88=E4=B8=8D=E4=B8=80=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 读者会以为配置填错了,补一段说明:配置里填接入点地址,连接前服务端会自动换成调用点地址,配置仍然填原来那个。 --- docs/mcp-endpoint-integration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/mcp-endpoint-integration.md b/docs/mcp-endpoint-integration.md index 5d452a3cd..1b0402ecb 100644 --- a/docs/mcp-endpoint-integration.md +++ b/docs/mcp-endpoint-integration.md @@ -89,4 +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`会被判为非法格式,启动时直接报错。 + 如果包含了 `'calculator'`,说明设备将可以根据意图识别,调用计算器这个工具。 \ No newline at end of file