From 788b372e3273f4804e83d50608dc001c7fcf9b58 Mon Sep 17 00:00:00 2001 From: ageerle <ageerle@163.com> Date: 星期四, 17 四月 2025 16:23:32 +0800 Subject: [PATCH] feat: mcp支持远程调用 --- ruoyi-modules-api/ruoyi-chat-api/pom.xml | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git a/ruoyi-modules-api/ruoyi-chat-api/pom.xml b/ruoyi-modules-api/ruoyi-chat-api/pom.xml index 62578a0..6fbae9e 100644 --- a/ruoyi-modules-api/ruoyi-chat-api/pom.xml +++ b/ruoyi-modules-api/ruoyi-chat-api/pom.xml @@ -32,6 +32,14 @@ <!-- 瀵硅瘽鍩虹妯″潡 --> <dependencies> + + <dependency> + <groupId>io.modelcontextprotocol.sdk</groupId> + <artifactId>mcp-spring-webflux</artifactId> + <version>0.8.0</version> + </dependency> + + <dependency> <groupId>org.ruoyi</groupId> <artifactId>ruoyi-common-chat</artifactId> @@ -55,16 +63,27 @@ <dependency> <groupId>org.springframework.ai</groupId> - <artifactId>spring-ai-mcp-client-webflux-spring-boot-starter</artifactId> + <artifactId>spring-ai-openai-spring-boot-starter</artifactId> </dependency> <dependency> - <groupId>io.modelcontextprotocol.sdk</groupId> - <artifactId>mcp-spring-webflux</artifactId> - <version>0.8.0</version> - <scope>compile</scope> + <groupId>org.springframework.ai</groupId> + <artifactId>spring-ai-mcp-client-spring-boot-starter</artifactId> </dependency> + <dependency> + <groupId>org.springframework.ai</groupId> + <artifactId>spring-ai-mcp</artifactId> + </dependency> + + + <dependency> + <groupId>org.springframework.ai</groupId> + <artifactId>spring-ai-mcp-client-webflux-spring-boot-starter</artifactId> + </dependency> + + + </dependencies> -- Gitblit v1.9.3