Commit d674d68a7393d935cc48045642c1b82d339c8a2a

Authored by YunaiV
1 parent 50b5aeb4

fix:【ai 大模型】修复 mcp webflux 依赖,导致 SSE Server 失效的问题

Showing 1 changed file with 8 additions and 3 deletions
yudao-module-ai/pom.xml
... ... @@ -187,17 +187,22 @@
187 187 </exclusions>
188 188 </dependency>
189 189  
  190 + <!-- MCP 相关 -->
  191 + <!--
  192 + 特殊说明:不能使用 spring-ai-starter-mcp-server-webflux 或 spring-ai-starter-mcp-client-webflux !!!
  193 + 原因:项目使用了 SpringMVC,而不是 WebFlux。引入上述 2 个,会导致 SSE Server 失效。
  194 + -->
190 195 <dependency>
  196 + <!-- 服务端 -->
191 197 <groupId>org.springframework.ai</groupId>
192 198 <artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
193 199 <version>${spring-ai.version}</version>
194 200 </dependency>
195   -
196 201 <dependency>
  202 + <!-- 客户端 -->
197 203 <groupId>org.springframework.ai</groupId>
198   - <artifactId>spring-ai-starter-mcp-client-webflux</artifactId>
  204 + <artifactId>spring-ai-starter-mcp-client</artifactId>
199 205 <version>${spring-ai.version}</version>
200   - <optional>true</optional>
201 206 </dependency>
202 207  
203 208 <!-- TinyFlow:AI 工作流 -->
... ...