From b2deb1cc93b3d2c3fb9dc795e3589e1c62329a8f Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期一, 23 三月 2026 14:07:29 +0800
Subject: [PATCH] lsh#站点同步至MES
---
rsf-admin/src/api/ai/mcpMount.js | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/rsf-admin/src/api/ai/mcpMount.js b/rsf-admin/src/api/ai/mcpMount.js
index 399d0c9..fd16af3 100644
--- a/rsf-admin/src/api/ai/mcpMount.js
+++ b/rsf-admin/src/api/ai/mcpMount.js
@@ -9,6 +9,24 @@
throw new Error(msg || "鑾峰彇宸ュ叿鍒楄〃澶辫触");
};
+export const testMcpConnectivity = async (mountId) => {
+ const res = await request.post(`aiMcpMount/${mountId}/connectivity/test`);
+ const { code, msg, data } = res.data;
+ if (code === 200) {
+ return data;
+ }
+ throw new Error(msg || "杩為�氭�ф祴璇曞け璐�");
+};
+
+export const validateDraftMcpConnectivity = async (payload) => {
+ const res = await request.post("aiMcpMount/connectivity/validate-draft", payload);
+ const { code, msg, data } = res.data;
+ if (code === 200) {
+ return data;
+ }
+ throw new Error(msg || "鑽夌杩為�氭�ф祴璇曞け璐�");
+};
+
export const testMcpTool = async (mountId, payload) => {
const res = await request.post(`aiMcpMount/${mountId}/tool/test`, payload);
const { code, msg, data } = res.data;
--
Gitblit v1.9.1