Dify 连接本地 SpringAI MCP server
连接 MCP server 的方式大致有两种,一种是基于 stdio,一种是基于 sse,如果对于稳定和性能好的方案的话,sse 要比 stdio 好的多,所以本文采用的是基于 sse 和 Spring AI 部署本地 MCP server,并通过 Dify 连接本地 MCP Server。
如何使用 SpringAI 搭建一个本地 MCP server
依赖:
<dependencies>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-server-webflux</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>3.5.3</version>
</dependency>
</dependencies>
<dependencyManagement>

9587

被折叠的 条评论
为什么被折叠?



