From 34503a2e9a29418346a4ac8f84170ab8f4321d6e Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期四, 19 三月 2026 15:19:05 +0800
Subject: [PATCH] lsh#行号适配
---
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