From 7fac6da1a4f0f0de0d130b158a58fb43c1a5af7a Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Wed, 29 Jul 2026 12:41:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20AI=20Agent=20=E5=AF=B9=E8=AF=9D=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20/mcp/agent/chat=EF=BC=8C=E9=81=BF=E5=85=8D=20OMS=20?= =?UTF-8?q?=E5=8F=8D=E4=BB=A3=E6=BC=8F=E9=85=8D=20/ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/Oms.Application/Services/Mcp/McpToolService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Oms.Application/Services/Mcp/McpToolService.cs b/src/Oms.Application/Services/Mcp/McpToolService.cs index 1c4bfad..c404907 100644 --- a/src/Oms.Application/Services/Mcp/McpToolService.cs +++ b/src/Oms.Application/Services/Mcp/McpToolService.cs @@ -101,7 +101,8 @@ public class McpToolService : ApplicationService } /// AI Agent 对话(可自动调用已启用 MCP 工具;带防滥用限流) - [HttpPost("/ai/agent/chat")] + [HttpPost("/mcp/agent/chat")] + [HttpPost("/ai/agent/chat")] // 兼容旧路径;生产 OMS 反代请走 /mcp/* public async Task AgentChatAsync(AiAgentChatInput input) { var customerId = await OmsSessionHelper.ResolveXhsCustomerIdAsync(CustomerRepository, CurrentUser);