From 05148eeef860d33232874a640dbd67ba43ac5686 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 19 三月 2026 12:51:49 +0800
Subject: [PATCH] #AI.配置中心可运营化

---
 rsf-server/src/main/java/com/vincent/rsf/server/ai/controller/AiMcpMountController.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/ai/controller/AiMcpMountController.java b/rsf-server/src/main/java/com/vincent/rsf/server/ai/controller/AiMcpMountController.java
index 90ba38f..c37681b 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/ai/controller/AiMcpMountController.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/ai/controller/AiMcpMountController.java
@@ -76,6 +76,13 @@
         return R.ok().add(aiMcpMountService.testConnectivity(id, getLoginUserId(), getTenantId()));
     }
 
+    @PreAuthorize("hasAnyAuthority('system:aiMcpMount:save','system:aiMcpMount:update')")
+    @PostMapping("/aiMcpMount/connectivity/validate-draft")
+    public R testDraftConnectivity(@RequestBody AiMcpMount mount) {
+        mount.setTenantId(getTenantId());
+        return R.ok().add(aiMcpMountService.testDraftConnectivity(mount, getLoginUserId(), getTenantId()));
+    }
+
     @PreAuthorize("hasAuthority('system:aiMcpMount:update')")
     @PostMapping("/aiMcpMount/{id}/tool/test")
     public R testTool(@PathVariable("id") Long id, @RequestBody AiMcpToolTestRequest request) {

--
Gitblit v1.9.1