@burdenoff/microfe-botmanor 2026.1127.3 → 2026.1127.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/botlit/pages/AgentTestChatPage.js +95 -94
- package/dist/botlit/pages/AgentTestChatPage.js.map +1 -1
- package/dist/botlit/pages/BotChannelsTab.js +327 -328
- package/dist/botlit/pages/BotChannelsTab.js.map +1 -1
- package/dist/botlit/pages/MCPServerDetailPage.js +285 -289
- package/dist/botlit/pages/MCPServerDetailPage.js.map +1 -1
- package/dist/botlit/pages/PolicyDetailPage.js +457 -453
- package/dist/botlit/pages/PolicyDetailPage.js.map +1 -1
- package/dist/botlit/pages/RetrievalProfileDetailPage.js +229 -228
- package/dist/botlit/pages/RetrievalProfileDetailPage.js.map +1 -1
- package/dist/botlit/pages/SkillDetailPage.js +324 -323
- package/dist/botlit/pages/SkillDetailPage.js.map +1 -1
- package/dist/shared/hooks/useTr.js +1 -1
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
2
|
+
import { useBotlit as t } from "../providers/BotlitProvider.js";
|
|
3
|
+
import { isMCPServerHealthy as n, mcpServerDescription as r, mcpServerEndpoint as i, useCreateMCPServer as ee, useDeleteMCPServer as te, useMCPResources as a, useMCPServer as o, useMCPTools as ne, useTestMCPConnection as re, useUpdateMCPServer as ie, useUpdateMCPTool as ae } from "../hooks/useMCPServers.js";
|
|
4
|
+
import { isNative as s, nativeImpact as oe, nativeNotify as c } from "../../utils/nativeBridge.js";
|
|
5
|
+
import { BOTMANOR_PERMISSIONS as l } from "../permissions/botmanorPermissions.js";
|
|
6
|
+
import { BotmanorPermissionGate as u, useBotmanorCan as se } from "../permissions/useBotmanorPermissions.js";
|
|
6
7
|
import { PageLayout as d } from "../components/PageLayout.js";
|
|
7
8
|
import { Card as f, CardContent as p, CardDescription as m, CardHeader as h, CardTitle as g } from "../components/Card.js";
|
|
8
9
|
import { Button as _ } from "../components/Button.js";
|
|
9
|
-
import { FormField as v, Input as y, Textarea as
|
|
10
|
-
import { Badge as
|
|
11
|
-
import { EmptyState as
|
|
10
|
+
import { FormField as v, Input as y, Textarea as ce } from "../components/Input.js";
|
|
11
|
+
import { Badge as b, StatusBadge as le } from "../components/Badge.js";
|
|
12
|
+
import { EmptyState as x } from "../components/EmptyState.js";
|
|
12
13
|
import "../hooks/index.js";
|
|
13
|
-
import { formatRelativeTime as
|
|
14
|
+
import { formatRelativeTime as S } from "../utils/formatters.js";
|
|
14
15
|
import "../permissions/index.js";
|
|
15
|
-
import { useMemo as
|
|
16
|
-
import { GlassCard as
|
|
17
|
-
import { Fragment as
|
|
18
|
-
import { useParams as
|
|
19
|
-
import { AlertTriangle as
|
|
20
|
-
import { toast as
|
|
16
|
+
import { useMemo as ue, useState as C } from "react";
|
|
17
|
+
import { GlassCard as de, PagePurpose as fe, ThemedSelect as w } from "@burdenoff/fe-libs/ui";
|
|
18
|
+
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
19
|
+
import { useParams as pe } from "react-router";
|
|
20
|
+
import { AlertTriangle as me, ArrowLeft as he, CheckCircle as ge, Clock as _e, Edit as ve, ExternalLink as ye, Plug as O, PlugZap as k, RefreshCw as A, Save as j, Server as M, Settings as N, Trash2 as P, Wrench as F, XCircle as be } from "lucide-react";
|
|
21
|
+
import { toast as I } from "sonner";
|
|
21
22
|
// src/botlit/pages/MCPServerDetailPage.tsx
|
|
22
|
-
function
|
|
23
|
+
function L(e, t) {
|
|
23
24
|
let n = e?.[t];
|
|
24
25
|
return typeof n == "string" && n !== "" ? n : void 0;
|
|
25
26
|
}
|
|
26
|
-
var
|
|
27
|
-
let { serverId:
|
|
27
|
+
var R = ({ isNew: R }) => {
|
|
28
|
+
let z = e(), { serverId: B } = pe(), { navigateTo: V } = t(), xe = se(), { data: H, loading: Se, refetch: U } = o(R ? void 0 : B), { data: W } = ne(R ? void 0 : B), { data: G } = a(R ? void 0 : B), [Ce, we] = ee(), [Te, Ee] = ie(), [De, Oe] = te(), [ke, Ae] = re(), [je, Me] = ae(), [Ne, K] = C(!1), [q, J] = C(!1), [Y, X] = C({
|
|
28
29
|
name: "",
|
|
29
30
|
description: "",
|
|
30
31
|
transport: "HTTP_JSON",
|
|
31
32
|
baseUrl: "",
|
|
32
33
|
authMethod: "NONE",
|
|
33
34
|
secretRefId: ""
|
|
34
|
-
}), [Z,
|
|
35
|
+
}), [Z, Pe] = C(null), Q = ue(() => W.find((e) => e.name === Z) ?? null, [W, Z]), Fe = async () => {
|
|
35
36
|
if (Y.name && Y.baseUrl) try {
|
|
36
|
-
let e = await
|
|
37
|
+
let e = await Ce({
|
|
37
38
|
name: Y.name,
|
|
38
39
|
type: Y.transport,
|
|
39
40
|
config: {
|
|
@@ -43,20 +44,20 @@ var B = ({ isNew: B }) => {
|
|
|
43
44
|
secretRefId: Y.secretRefId || void 0
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
|
-
|
|
47
|
+
I.success(z("botlit.mcpServerDetail.connectedName", "Connected \"{{name}}\"", { name: e.name })), V(`mcp/${e.id}`);
|
|
47
48
|
} catch (e) {
|
|
48
|
-
|
|
49
|
+
I.error(e instanceof Error ? e.message : z("botlit.mcpServerDetail.failedToConnectMcpServer", "Failed to connect MCP server"));
|
|
49
50
|
}
|
|
50
|
-
},
|
|
51
|
-
if (
|
|
52
|
-
await
|
|
51
|
+
}, Ie = async () => {
|
|
52
|
+
if (B) try {
|
|
53
|
+
await ke(B) ? I.success(z("botlit.mcpServerDetail.mcpServerIsReachable", "MCP server is reachable")) : I.error(z("botlit.mcpServerDetail.mcpServerDidNotRespond", "MCP server did not respond")), U();
|
|
53
54
|
} catch (e) {
|
|
54
|
-
|
|
55
|
+
I.error(e instanceof Error ? e.message : z("botlit.mcpServerDetail.failedToTestMcpConnection", "Failed to test MCP connection"));
|
|
55
56
|
}
|
|
56
|
-
},
|
|
57
|
-
if (
|
|
58
|
-
await
|
|
59
|
-
serverId:
|
|
57
|
+
}, Le = async () => {
|
|
58
|
+
if (B && Y.name) try {
|
|
59
|
+
await Te({
|
|
60
|
+
serverId: B,
|
|
60
61
|
input: {
|
|
61
62
|
name: Y.name,
|
|
62
63
|
config: {
|
|
@@ -66,68 +67,68 @@ var B = ({ isNew: B }) => {
|
|
|
66
67
|
secretRefId: Y.secretRefId || void 0
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
|
-
}),
|
|
70
|
+
}), I.success(z("botlit.mcpServerDetail.mcpServerUpdated", "MCP server updated")), U(), K(!1);
|
|
70
71
|
} catch (e) {
|
|
71
|
-
|
|
72
|
+
I.error(e instanceof Error ? e.message : z("botlit.mcpServerDetail.failedToUpdateMcpServer", "Failed to update MCP server"));
|
|
72
73
|
}
|
|
73
|
-
},
|
|
74
|
-
if (
|
|
75
|
-
await
|
|
74
|
+
}, Re = async () => {
|
|
75
|
+
if (B) try {
|
|
76
|
+
await De(B), s() && c("success"), I.success(z("botlit.mcpServerDetail.mcpServerDisconnected", "MCP server disconnected")), V("mcp");
|
|
76
77
|
} catch (e) {
|
|
77
|
-
|
|
78
|
+
s() && c("error"), I.error(e instanceof Error ? e.message : z("botlit.mcpServerDetail.failedToDisconnectMcpServer", "Failed to disconnect MCP server"));
|
|
78
79
|
}
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
name:
|
|
82
|
-
description:
|
|
83
|
-
transport:
|
|
84
|
-
baseUrl:
|
|
85
|
-
authMethod:
|
|
86
|
-
secretRefId:
|
|
87
|
-
}),
|
|
80
|
+
}, ze = () => {
|
|
81
|
+
H && (X({
|
|
82
|
+
name: H.name,
|
|
83
|
+
description: r(H) ?? "",
|
|
84
|
+
transport: H.type,
|
|
85
|
+
baseUrl: i(H) ?? "",
|
|
86
|
+
authMethod: L(H.config, "authMethod") ?? "NONE",
|
|
87
|
+
secretRefId: L(H.config, "secretRefId") ?? ""
|
|
88
|
+
}), K(!0));
|
|
88
89
|
}, $ = (e) => {
|
|
89
90
|
switch (e) {
|
|
90
91
|
case "HIGH": return "destructive";
|
|
91
92
|
case "MEDIUM": return "warning";
|
|
92
93
|
default: return "success";
|
|
93
94
|
}
|
|
94
|
-
},
|
|
95
|
+
}, Be = async (e, t) => {
|
|
95
96
|
try {
|
|
96
|
-
await
|
|
97
|
+
await je({
|
|
97
98
|
toolId: e,
|
|
98
99
|
input: { riskLevel: t }
|
|
99
|
-
}),
|
|
100
|
+
}), I.success(z("botlit.mcpServerDetail.toolRiskLevelUpdated", "Tool risk level updated"));
|
|
100
101
|
} catch (e) {
|
|
101
|
-
|
|
102
|
+
I.error(e instanceof Error ? e.message : z("botlit.mcpServerDetail.failedToUpdateToolRisk", "Failed to update tool risk level"));
|
|
102
103
|
}
|
|
103
104
|
};
|
|
104
|
-
return
|
|
105
|
-
title: "Add MCP Server",
|
|
106
|
-
description: "Connect a new Model Context Protocol server",
|
|
107
|
-
actions: /* @__PURE__ */
|
|
105
|
+
return R ? /* @__PURE__ */ E(d, {
|
|
106
|
+
title: z("botlit.mcpServerDetail.addMcpServer", "Add MCP Server"),
|
|
107
|
+
description: z("botlit.mcpServerDetail.connectANewModelContext", "Connect a new Model Context Protocol server"),
|
|
108
|
+
actions: /* @__PURE__ */ D("div", {
|
|
108
109
|
className: "flex gap-2",
|
|
109
|
-
children: [/* @__PURE__ */
|
|
110
|
+
children: [/* @__PURE__ */ E(_, {
|
|
110
111
|
variant: "outline",
|
|
111
|
-
onClick: () =>
|
|
112
|
-
children: "Cancel"
|
|
113
|
-
}), /* @__PURE__ */
|
|
114
|
-
leftIcon: /* @__PURE__ */
|
|
115
|
-
onClick:
|
|
116
|
-
isLoading:
|
|
112
|
+
onClick: () => V("mcp"),
|
|
113
|
+
children: z("botlit.mcpServerDetail.cancel", "Cancel")
|
|
114
|
+
}), /* @__PURE__ */ E(_, {
|
|
115
|
+
leftIcon: /* @__PURE__ */ E(j, { size: 16 }),
|
|
116
|
+
onClick: Fe,
|
|
117
|
+
isLoading: we.loading,
|
|
117
118
|
disabled: !Y.name || !Y.baseUrl,
|
|
118
|
-
children: "Connect"
|
|
119
|
+
children: z("botlit.mcpServerDetail.connect", "Connect")
|
|
119
120
|
})]
|
|
120
121
|
}),
|
|
121
|
-
children: /* @__PURE__ */
|
|
122
|
+
children: /* @__PURE__ */ E("div", {
|
|
122
123
|
className: "max-w-2xl space-y-6",
|
|
123
|
-
children: /* @__PURE__ */
|
|
124
|
+
children: /* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(h, { children: /* @__PURE__ */ E(g, { children: z("botlit.mcpServerDetail.serverConfiguration", "Server Configuration") }) }), /* @__PURE__ */ D(p, {
|
|
124
125
|
className: "space-y-4",
|
|
125
126
|
children: [
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
label: "Server Name",
|
|
127
|
+
/* @__PURE__ */ E(v, {
|
|
128
|
+
label: z("botlit.mcpServerDetail.serverName", "Server Name"),
|
|
128
129
|
required: !0,
|
|
129
|
-
children: /* @__PURE__ */
|
|
130
|
-
placeholder: "e.g., GitHub MCP Server",
|
|
130
|
+
children: /* @__PURE__ */ E(y, {
|
|
131
|
+
placeholder: z("botlit.mcpServerDetail.exampleGithubMcpServer", "e.g., GitHub MCP Server"),
|
|
131
132
|
value: Y.name,
|
|
132
133
|
onChange: (e) => X({
|
|
133
134
|
...Y,
|
|
@@ -135,10 +136,10 @@ var B = ({ isNew: B }) => {
|
|
|
135
136
|
})
|
|
136
137
|
})
|
|
137
138
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
label: "Description",
|
|
140
|
-
children: /* @__PURE__ */
|
|
141
|
-
placeholder: "What capabilities does this server provide?",
|
|
139
|
+
/* @__PURE__ */ E(v, {
|
|
140
|
+
label: z("botlit.mcpServerDetail.description", "Description"),
|
|
141
|
+
children: /* @__PURE__ */ E(ce, {
|
|
142
|
+
placeholder: z("botlit.mcpServerDetail.whatCapabilitiesDoesThisServer", "What capabilities does this server provide?"),
|
|
142
143
|
value: Y.description,
|
|
143
144
|
onChange: (e) => X({
|
|
144
145
|
...Y,
|
|
@@ -147,12 +148,12 @@ var B = ({ isNew: B }) => {
|
|
|
147
148
|
rows: 3
|
|
148
149
|
})
|
|
149
150
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ D("div", {
|
|
151
152
|
className: "grid grid-cols-2 gap-4",
|
|
152
|
-
children: [/* @__PURE__ */
|
|
153
|
-
label: "Transport",
|
|
153
|
+
children: [/* @__PURE__ */ E(v, {
|
|
154
|
+
label: z("botlit.mcpServerDetail.transport", "Transport"),
|
|
154
155
|
required: !0,
|
|
155
|
-
children: /* @__PURE__ */
|
|
156
|
+
children: /* @__PURE__ */ D(w, {
|
|
156
157
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
157
158
|
value: Y.transport,
|
|
158
159
|
onChange: (e) => X({
|
|
@@ -160,27 +161,27 @@ var B = ({ isNew: B }) => {
|
|
|
160
161
|
transport: e.target.value
|
|
161
162
|
}),
|
|
162
163
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ E("option", {
|
|
164
165
|
value: "HTTP_JSON",
|
|
165
|
-
children: "HTTP JSON"
|
|
166
|
+
children: z("botlit.mcpServerDetail.httpJson", "HTTP JSON")
|
|
166
167
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ E("option", {
|
|
168
169
|
value: "JSON_RPC",
|
|
169
|
-
children: "JSON RPC"
|
|
170
|
+
children: z("botlit.mcpServerDetail.jsonRpc", "JSON RPC")
|
|
170
171
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ E("option", {
|
|
172
173
|
value: "SSE",
|
|
173
|
-
children: "Server-Sent Events"
|
|
174
|
+
children: z("botlit.mcpServerDetail.serverSentEvents", "Server-Sent Events")
|
|
174
175
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ E("option", {
|
|
176
177
|
value: "CUSTOM",
|
|
177
|
-
children: "Custom"
|
|
178
|
+
children: z("botlit.mcpServerDetail.custom", "Custom")
|
|
178
179
|
})
|
|
179
180
|
]
|
|
180
181
|
})
|
|
181
|
-
}), /* @__PURE__ */
|
|
182
|
-
label: "Auth Method",
|
|
183
|
-
children: /* @__PURE__ */
|
|
182
|
+
}), /* @__PURE__ */ E(v, {
|
|
183
|
+
label: z("botlit.mcpServerDetail.authMethod", "Auth Method"),
|
|
184
|
+
children: /* @__PURE__ */ D(w, {
|
|
184
185
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
185
186
|
value: Y.authMethod,
|
|
186
187
|
onChange: (e) => X({
|
|
@@ -188,31 +189,31 @@ var B = ({ isNew: B }) => {
|
|
|
188
189
|
authMethod: e.target.value
|
|
189
190
|
}),
|
|
190
191
|
children: [
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ E("option", {
|
|
192
193
|
value: "NONE",
|
|
193
|
-
children: "None"
|
|
194
|
+
children: z("botlit.mcpServerDetail.none", "None")
|
|
194
195
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ E("option", {
|
|
196
197
|
value: "API_KEY",
|
|
197
|
-
children: "API Key"
|
|
198
|
+
children: z("botlit.mcpServerDetail.apiKey", "API Key")
|
|
198
199
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ E("option", {
|
|
200
201
|
value: "OAUTH",
|
|
201
|
-
children: "OAuth"
|
|
202
|
+
children: z("botlit.mcpServerDetail.oauth", "OAuth")
|
|
202
203
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ E("option", {
|
|
204
205
|
value: "CUSTOM_HEADER",
|
|
205
|
-
children: "Custom Header"
|
|
206
|
+
children: z("botlit.mcpServerDetail.customHeader", "Custom Header")
|
|
206
207
|
})
|
|
207
208
|
]
|
|
208
209
|
})
|
|
209
210
|
})]
|
|
210
211
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
label: "Base URL",
|
|
212
|
+
/* @__PURE__ */ E(v, {
|
|
213
|
+
label: z("botlit.mcpServerDetail.baseUrl", "Base URL"),
|
|
213
214
|
required: !0,
|
|
214
|
-
children: /* @__PURE__ */
|
|
215
|
-
placeholder: "e.g., https://mcp.example.com",
|
|
215
|
+
children: /* @__PURE__ */ E(y, {
|
|
216
|
+
placeholder: z("botlit.mcpServerDetail.exampleBaseUrl", "e.g., https://mcp.example.com"),
|
|
216
217
|
value: Y.baseUrl,
|
|
217
218
|
onChange: (e) => X({
|
|
218
219
|
...Y,
|
|
@@ -220,10 +221,10 @@ var B = ({ isNew: B }) => {
|
|
|
220
221
|
})
|
|
221
222
|
})
|
|
222
223
|
}),
|
|
223
|
-
Y.authMethod !== "NONE" && /* @__PURE__ */
|
|
224
|
-
label: "Secret Reference ID",
|
|
225
|
-
children: /* @__PURE__ */
|
|
226
|
-
placeholder: "e.g., secret-mcp-github",
|
|
224
|
+
Y.authMethod !== "NONE" && /* @__PURE__ */ E(v, {
|
|
225
|
+
label: z("botlit.mcpServerDetail.secretReferenceId", "Secret Reference ID"),
|
|
226
|
+
children: /* @__PURE__ */ E(y, {
|
|
227
|
+
placeholder: z("botlit.mcpServerDetail.exampleSecretMcpGithub", "e.g., secret-mcp-github"),
|
|
227
228
|
value: Y.secretRefId,
|
|
228
229
|
onChange: (e) => X({
|
|
229
230
|
...Y,
|
|
@@ -234,386 +235,381 @@ var B = ({ isNew: B }) => {
|
|
|
234
235
|
]
|
|
235
236
|
})] })
|
|
236
237
|
})
|
|
237
|
-
}) :
|
|
238
|
-
title: "Loading...",
|
|
239
|
-
children: /* @__PURE__ */
|
|
240
|
-
}) :
|
|
241
|
-
title: /* @__PURE__ */
|
|
238
|
+
}) : Se ? /* @__PURE__ */ E(d, {
|
|
239
|
+
title: z("botlit.mcpServerDetail.loading", "Loading..."),
|
|
240
|
+
children: /* @__PURE__ */ E("div", { className: "h-96 bg-bg-sunken motion-safe:animate-vc-shimmer rounded-lg" })
|
|
241
|
+
}) : H ? /* @__PURE__ */ E(d, {
|
|
242
|
+
title: /* @__PURE__ */ D("div", {
|
|
242
243
|
className: "flex items-center gap-3",
|
|
243
244
|
children: [
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ E(_, {
|
|
245
246
|
variant: "ghost",
|
|
246
247
|
size: "icon",
|
|
247
|
-
onClick: () =>
|
|
248
|
-
children: /* @__PURE__ */
|
|
248
|
+
onClick: () => V("mcp"),
|
|
249
|
+
children: /* @__PURE__ */ E(he, { size: 20 })
|
|
249
250
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
+
/* @__PURE__ */ E("div", {
|
|
251
252
|
className: "p-2 rounded-lg bg-action-primary-bg/10",
|
|
252
|
-
children:
|
|
253
|
+
children: n(H.status) ? /* @__PURE__ */ E(k, { className: "h-6 w-6 text-status-success-text" }) : /* @__PURE__ */ E(O, { className: "h-6 w-6 text-text-secondary" })
|
|
253
254
|
}),
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
255
256
|
className: "flex items-center gap-2",
|
|
256
|
-
children: [/* @__PURE__ */
|
|
257
|
-
}), /* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ E("span", { children: H.name }), /* @__PURE__ */ E(le, { status: H.status })]
|
|
258
|
+
}), /* @__PURE__ */ E("p", {
|
|
258
259
|
className: "text-sm font-normal text-text-secondary",
|
|
259
|
-
children:
|
|
260
|
+
children: r(H)
|
|
260
261
|
})] })
|
|
261
262
|
]
|
|
262
263
|
}),
|
|
263
|
-
actions: /* @__PURE__ */
|
|
264
|
+
actions: /* @__PURE__ */ D("div", {
|
|
264
265
|
className: "flex gap-2",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
266
|
-
permission:
|
|
267
|
-
children: /* @__PURE__ */
|
|
266
|
+
children: [/* @__PURE__ */ E(u, {
|
|
267
|
+
permission: l.MCP_TEST,
|
|
268
|
+
children: /* @__PURE__ */ E(_, {
|
|
268
269
|
variant: "outline",
|
|
269
|
-
leftIcon: /* @__PURE__ */
|
|
270
|
-
onClick:
|
|
271
|
-
isLoading:
|
|
272
|
-
children: "Test"
|
|
270
|
+
leftIcon: /* @__PURE__ */ E(A, { size: 16 }),
|
|
271
|
+
onClick: Ie,
|
|
272
|
+
isLoading: Ae.loading,
|
|
273
|
+
children: z("botlit.mcpServerDetail.test", "Test")
|
|
273
274
|
})
|
|
274
|
-
}),
|
|
275
|
+
}), Ne ? /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(_, {
|
|
275
276
|
variant: "outline",
|
|
276
|
-
onClick: () =>
|
|
277
|
-
children: "Cancel"
|
|
278
|
-
}), /* @__PURE__ */
|
|
279
|
-
leftIcon: /* @__PURE__ */
|
|
280
|
-
onClick:
|
|
281
|
-
isLoading:
|
|
282
|
-
children: "Save"
|
|
283
|
-
})] }) : /* @__PURE__ */
|
|
284
|
-
permission:
|
|
285
|
-
children: /* @__PURE__ */
|
|
277
|
+
onClick: () => K(!1),
|
|
278
|
+
children: z("botlit.mcpServerDetail.cancel", "Cancel")
|
|
279
|
+
}), /* @__PURE__ */ E(_, {
|
|
280
|
+
leftIcon: /* @__PURE__ */ E(j, { size: 16 }),
|
|
281
|
+
onClick: Le,
|
|
282
|
+
isLoading: Ee.loading,
|
|
283
|
+
children: z("botlit.mcpServerDetail.save", "Save")
|
|
284
|
+
})] }) : /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(u, {
|
|
285
|
+
permission: l.MCP_UPDATE,
|
|
286
|
+
children: /* @__PURE__ */ E(_, {
|
|
286
287
|
variant: "outline",
|
|
287
|
-
leftIcon: /* @__PURE__ */
|
|
288
|
-
onClick:
|
|
289
|
-
children: "Edit"
|
|
288
|
+
leftIcon: /* @__PURE__ */ E(ve, { size: 16 }),
|
|
289
|
+
onClick: ze,
|
|
290
|
+
children: z("botlit.mcpServerDetail.edit", "Edit")
|
|
290
291
|
})
|
|
291
|
-
}),
|
|
292
|
+
}), q ? /* @__PURE__ */ D("div", {
|
|
292
293
|
className: "flex gap-2",
|
|
293
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ E(_, {
|
|
294
295
|
variant: "outline",
|
|
295
296
|
size: "sm",
|
|
296
297
|
onClick: () => J(!1),
|
|
297
|
-
children: "Cancel"
|
|
298
|
-
}), /* @__PURE__ */
|
|
298
|
+
children: z("botlit.mcpServerDetail.cancel", "Cancel")
|
|
299
|
+
}), /* @__PURE__ */ E(_, {
|
|
299
300
|
variant: "destructive",
|
|
300
301
|
size: "sm",
|
|
301
302
|
onClick: () => {
|
|
302
|
-
oe("medium"),
|
|
303
|
+
oe("medium"), Re();
|
|
303
304
|
},
|
|
304
|
-
isLoading:
|
|
305
|
-
children: "Confirm"
|
|
305
|
+
isLoading: Oe.loading,
|
|
306
|
+
children: z("botlit.mcpServerDetail.confirm", "Confirm")
|
|
306
307
|
})]
|
|
307
|
-
}) : /* @__PURE__ */
|
|
308
|
-
permission:
|
|
309
|
-
children: /* @__PURE__ */
|
|
308
|
+
}) : /* @__PURE__ */ E(u, {
|
|
309
|
+
permission: l.MCP_DELETE,
|
|
310
|
+
children: /* @__PURE__ */ E(_, {
|
|
310
311
|
variant: "destructive",
|
|
311
|
-
leftIcon: /* @__PURE__ */
|
|
312
|
+
leftIcon: /* @__PURE__ */ E(P, { size: 16 }),
|
|
312
313
|
onClick: () => J(!0),
|
|
313
|
-
children: "Delete"
|
|
314
|
+
children: z("botlit.mcpServerDetail.delete", "Delete")
|
|
314
315
|
})
|
|
315
316
|
})] })]
|
|
316
317
|
}),
|
|
317
|
-
children: /* @__PURE__ */
|
|
318
|
+
children: /* @__PURE__ */ D("div", {
|
|
318
319
|
className: "space-y-6",
|
|
319
320
|
children: [
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
icon: /* @__PURE__ */
|
|
322
|
-
children: "This is one connected MCP server and everything it exposes to your agents — its health, the tools and resources it provides, and its connection settings. Check that it is healthy and that the right tools are available, then your agents can call them (subject to your tool policies) to take real actions."
|
|
321
|
+
/* @__PURE__ */ E(fe, {
|
|
322
|
+
icon: /* @__PURE__ */ E(M, { size: 18 }),
|
|
323
|
+
children: z("botlit.mcpServerDetail.thisIsOneConnectedMcp", "This is one connected MCP server and everything it exposes to your agents — its health, the tools and resources it provides, and its connection settings. Check that it is healthy and that the right tools are available, then your agents can call them (subject to your tool policies) to take real actions.")
|
|
323
324
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ D("div", {
|
|
325
326
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
326
327
|
children: [
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ D(de, {
|
|
328
329
|
treatment: "glass",
|
|
329
330
|
glow: !0,
|
|
330
331
|
className: "p-6 text-center",
|
|
331
332
|
children: [
|
|
332
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ E("div", {
|
|
333
334
|
className: "p-3 rounded-full bg-action-primary-bg/10 w-fit mx-auto mb-2",
|
|
334
335
|
children: ((e) => {
|
|
335
336
|
switch (e) {
|
|
336
|
-
case "CONNECTED": return /* @__PURE__ */
|
|
337
|
-
case "CONNECTING": return /* @__PURE__ */
|
|
337
|
+
case "CONNECTED": return /* @__PURE__ */ E(ge, { className: "h-5 w-5 text-status-success-text" });
|
|
338
|
+
case "CONNECTING": return /* @__PURE__ */ E(me, { className: "h-5 w-5 text-status-warning-text" });
|
|
338
339
|
case "ERROR":
|
|
339
|
-
case "DISCONNECTED": return /* @__PURE__ */
|
|
340
|
-
default: return /* @__PURE__ */
|
|
340
|
+
case "DISCONNECTED": return /* @__PURE__ */ E(be, { className: "h-5 w-5 text-status-error-text" });
|
|
341
|
+
default: return /* @__PURE__ */ E(_e, { className: "h-5 w-5 text-text-secondary" });
|
|
341
342
|
}
|
|
342
|
-
})(
|
|
343
|
+
})(H.status)
|
|
343
344
|
}),
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ E("p", {
|
|
345
346
|
className: "text-lg font-bold capitalize text-text-primary",
|
|
346
|
-
children:
|
|
347
|
+
children: H.status.toLowerCase()
|
|
347
348
|
}),
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ E("p", {
|
|
349
350
|
className: "text-sm text-text-secondary",
|
|
350
|
-
children: "Health Status"
|
|
351
|
+
children: z("botlit.mcpServerDetail.healthStatus", "Health Status")
|
|
351
352
|
})
|
|
352
353
|
]
|
|
353
354
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ E(f, { children: /* @__PURE__ */ D(p, {
|
|
355
356
|
className: "pt-6 text-center",
|
|
356
|
-
children: [/* @__PURE__ */
|
|
357
|
+
children: [/* @__PURE__ */ E("p", {
|
|
357
358
|
className: "text-3xl font-bold text-text-primary",
|
|
358
|
-
children:
|
|
359
|
-
}), /* @__PURE__ */
|
|
359
|
+
children: W.length
|
|
360
|
+
}), /* @__PURE__ */ E("p", {
|
|
360
361
|
className: "text-sm text-text-secondary",
|
|
361
|
-
children: "Tools Available"
|
|
362
|
+
children: z("botlit.mcpServerDetail.toolsAvailable", "Tools Available")
|
|
362
363
|
})]
|
|
363
364
|
}) }),
|
|
364
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ E(f, { children: /* @__PURE__ */ D(p, {
|
|
365
366
|
className: "pt-6 text-center",
|
|
366
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ E("p", {
|
|
367
368
|
className: "text-3xl font-bold text-text-primary",
|
|
368
|
-
children:
|
|
369
|
-
}), /* @__PURE__ */
|
|
369
|
+
children: G.length
|
|
370
|
+
}), /* @__PURE__ */ E("p", {
|
|
370
371
|
className: "text-sm text-text-secondary",
|
|
371
|
-
children: "Resources"
|
|
372
|
+
children: z("botlit.mcpServerDetail.resources", "Resources")
|
|
372
373
|
})]
|
|
373
374
|
}) }),
|
|
374
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ E(f, { children: /* @__PURE__ */ D(p, {
|
|
375
376
|
className: "pt-6 text-center",
|
|
376
|
-
children: [/* @__PURE__ */
|
|
377
|
+
children: [/* @__PURE__ */ E("p", {
|
|
377
378
|
className: "text-3xl font-bold text-text-primary",
|
|
378
|
-
children:
|
|
379
|
-
}), /* @__PURE__ */
|
|
379
|
+
children: H.lastConnectedAt ? S(H.lastConnectedAt) : z("botlit.mcpServerDetail.never", "Never")
|
|
380
|
+
}), /* @__PURE__ */ E("p", {
|
|
380
381
|
className: "text-sm text-text-secondary",
|
|
381
|
-
children: "Last Connected"
|
|
382
|
+
children: z("botlit.mcpServerDetail.lastConnected", "Last Connected")
|
|
382
383
|
})]
|
|
383
384
|
}) })
|
|
384
385
|
]
|
|
385
386
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(h, { children: /* @__PURE__ */ D(g, {
|
|
387
388
|
className: "flex items-center gap-2",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
389
|
-
}) }), /* @__PURE__ */
|
|
389
|
+
children: [/* @__PURE__ */ E(M, { size: 18 }), z("botlit.mcpServerDetail.connectionDetails", "Connection Details")]
|
|
390
|
+
}) }), /* @__PURE__ */ D(p, { children: [/* @__PURE__ */ D("div", {
|
|
390
391
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6",
|
|
391
392
|
children: [
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
393
394
|
className: "text-sm text-text-secondary",
|
|
394
|
-
children: "Transport"
|
|
395
|
-
}), /* @__PURE__ */
|
|
395
|
+
children: z("botlit.mcpServerDetail.transport", "Transport")
|
|
396
|
+
}), /* @__PURE__ */ E(b, {
|
|
396
397
|
variant: "outline",
|
|
397
398
|
className: "capitalize mt-1",
|
|
398
|
-
children:
|
|
399
|
+
children: H.type.toLowerCase().replace("_", " ")
|
|
399
400
|
})] }),
|
|
400
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
401
402
|
className: "text-sm text-text-secondary",
|
|
402
|
-
children: "Base URL"
|
|
403
|
-
}), /* @__PURE__ */
|
|
403
|
+
children: z("botlit.mcpServerDetail.baseUrl", "Base URL")
|
|
404
|
+
}), /* @__PURE__ */ E("p", {
|
|
404
405
|
className: "font-medium text-sm truncate",
|
|
405
|
-
children:
|
|
406
|
+
children: i(H) ?? "—"
|
|
406
407
|
})] }),
|
|
407
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
408
409
|
className: "text-sm text-text-secondary",
|
|
409
|
-
children: "Auth Method"
|
|
410
|
-
}), /* @__PURE__ */
|
|
410
|
+
children: z("botlit.mcpServerDetail.authMethod", "Auth Method")
|
|
411
|
+
}), /* @__PURE__ */ E(b, {
|
|
411
412
|
variant: "outline",
|
|
412
413
|
className: "capitalize mt-1",
|
|
413
|
-
children: (
|
|
414
|
+
children: (L(H.config, "authMethod") ?? "NONE").toLowerCase().replace("_", " ")
|
|
414
415
|
})] }),
|
|
415
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
416
417
|
className: "text-sm text-text-secondary",
|
|
417
|
-
children: "Last Tested"
|
|
418
|
-
}), /* @__PURE__ */
|
|
418
|
+
children: z("botlit.mcpServerDetail.lastTested", "Last Tested")
|
|
419
|
+
}), /* @__PURE__ */ E("p", {
|
|
419
420
|
className: "font-medium",
|
|
420
|
-
children:
|
|
421
|
+
children: H.lastErrorAt ? S(H.lastErrorAt) : z("botlit.mcpServerDetail.never", "Never")
|
|
421
422
|
})] })
|
|
422
423
|
]
|
|
423
|
-
}),
|
|
424
|
+
}), H.errorMessage && /* @__PURE__ */ D("div", {
|
|
424
425
|
className: "mt-4 p-3 bg-status-error-bg-subtle rounded-lg text-sm text-status-error-text",
|
|
425
426
|
children: [
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ E("strong", { children: z("botlit.mcpServerDetail.error", "Error:") }),
|
|
427
428
|
" ",
|
|
428
|
-
|
|
429
|
+
H.errorMessage
|
|
429
430
|
]
|
|
430
431
|
})] })] }),
|
|
431
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ D("div", {
|
|
432
433
|
className: "grid grid-cols-12 gap-6",
|
|
433
|
-
children: [/* @__PURE__ */
|
|
434
|
+
children: [/* @__PURE__ */ E("div", {
|
|
434
435
|
className: "col-span-5",
|
|
435
|
-
children: /* @__PURE__ */
|
|
436
|
+
children: /* @__PURE__ */ D(f, {
|
|
436
437
|
className: "h-full",
|
|
437
|
-
children: [/* @__PURE__ */
|
|
438
|
+
children: [/* @__PURE__ */ D(h, { children: [/* @__PURE__ */ D(g, {
|
|
438
439
|
className: "flex items-center gap-2",
|
|
439
|
-
children: [
|
|
440
|
-
|
|
441
|
-
"Tools (",
|
|
442
|
-
G.length,
|
|
443
|
-
")"
|
|
444
|
-
]
|
|
445
|
-
}), /* @__PURE__ */ D(m, { children: "Available tools from this MCP server" })] }), /* @__PURE__ */ D(p, {
|
|
440
|
+
children: [/* @__PURE__ */ E(F, { size: 18 }), z("botlit.mcpServerDetail.toolCount", "Tools ({{count}})", { count: W.length })]
|
|
441
|
+
}), /* @__PURE__ */ E(m, { children: z("botlit.mcpServerDetail.availableToolsFromThisMcp", "Available tools from this MCP server") })] }), /* @__PURE__ */ E(p, {
|
|
446
442
|
className: "p-0",
|
|
447
|
-
children:
|
|
443
|
+
children: W.length > 0 ? /* @__PURE__ */ E("div", {
|
|
448
444
|
className: "divide-y divide-border-subtle max-h-96 overflow-auto",
|
|
449
|
-
children:
|
|
445
|
+
children: W.map((e) => /* @__PURE__ */ D("button", {
|
|
450
446
|
type: "button",
|
|
451
447
|
className: `w-full text-left p-4 hover:bg-accent transition-colors ${Q?.id === e.id ? "bg-accent" : ""}`,
|
|
452
|
-
onClick: () =>
|
|
453
|
-
children: [/* @__PURE__ */
|
|
448
|
+
onClick: () => Pe(e.name),
|
|
449
|
+
children: [/* @__PURE__ */ D("div", {
|
|
454
450
|
className: "flex items-center justify-between gap-2",
|
|
455
|
-
children: [/* @__PURE__ */
|
|
451
|
+
children: [/* @__PURE__ */ E("p", {
|
|
456
452
|
className: "font-medium truncate",
|
|
457
453
|
children: e.name
|
|
458
|
-
}), /* @__PURE__ */
|
|
454
|
+
}), /* @__PURE__ */ E(b, {
|
|
459
455
|
variant: $(e.riskLevel),
|
|
460
456
|
className: "shrink-0",
|
|
461
457
|
children: e.riskLevel
|
|
462
458
|
})]
|
|
463
|
-
}), /* @__PURE__ */
|
|
459
|
+
}), /* @__PURE__ */ E("p", {
|
|
464
460
|
className: "text-sm text-text-secondary line-clamp-1",
|
|
465
461
|
children: e.description
|
|
466
462
|
})]
|
|
467
463
|
}, e.id))
|
|
468
|
-
}) : /* @__PURE__ */
|
|
464
|
+
}) : /* @__PURE__ */ D("div", {
|
|
469
465
|
className: "p-8 text-center text-text-secondary",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
466
|
+
children: [/* @__PURE__ */ E(F, { className: "h-8 w-8 mx-auto mb-2 opacity-50" }), /* @__PURE__ */ E("p", { children: z("botlit.mcpServerDetail.noToolsAvailable", "No tools available") })]
|
|
471
467
|
})
|
|
472
468
|
})]
|
|
473
469
|
})
|
|
474
|
-
}), /* @__PURE__ */
|
|
470
|
+
}), /* @__PURE__ */ E("div", {
|
|
475
471
|
className: "col-span-7",
|
|
476
|
-
children: Q ? /* @__PURE__ */
|
|
472
|
+
children: Q ? /* @__PURE__ */ D(f, {
|
|
477
473
|
className: "h-full",
|
|
478
|
-
children: [/* @__PURE__ */
|
|
474
|
+
children: [/* @__PURE__ */ E(h, { children: /* @__PURE__ */ D("div", {
|
|
479
475
|
className: "flex items-start justify-between gap-4",
|
|
480
|
-
children: [/* @__PURE__ */
|
|
476
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E(g, { children: Q.name }), /* @__PURE__ */ E(m, { children: Q.description })] }), /* @__PURE__ */ E(b, {
|
|
481
477
|
variant: $(Q.riskLevel),
|
|
482
478
|
children: Q.riskLevel
|
|
483
479
|
})]
|
|
484
|
-
}) }), /* @__PURE__ */
|
|
480
|
+
}) }), /* @__PURE__ */ D(p, {
|
|
485
481
|
className: "space-y-4",
|
|
486
|
-
children: [/* @__PURE__ */
|
|
487
|
-
/* @__PURE__ */
|
|
482
|
+
children: [/* @__PURE__ */ D("div", { children: [
|
|
483
|
+
/* @__PURE__ */ E("p", {
|
|
488
484
|
className: "text-sm font-medium mb-2",
|
|
489
|
-
children: "Risk Level"
|
|
485
|
+
children: z("botlit.mcpServerDetail.riskLevel", "Risk Level")
|
|
490
486
|
}),
|
|
491
|
-
/* @__PURE__ */
|
|
487
|
+
/* @__PURE__ */ D(w, {
|
|
492
488
|
className: "flex h-10 w-full rounded-md border border-border-default bg-bg-surface px-3 py-2 text-sm",
|
|
493
489
|
value: Q.riskLevel,
|
|
494
|
-
disabled:
|
|
495
|
-
onChange: (e) => void
|
|
490
|
+
disabled: Me.loading || !xe(l.MCP_UPDATE),
|
|
491
|
+
onChange: (e) => void Be(Q.id, e.target.value),
|
|
496
492
|
children: [
|
|
497
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ E("option", {
|
|
498
494
|
value: "LOW",
|
|
499
|
-
children: "Low — safe read/notify actions"
|
|
495
|
+
children: z("botlit.mcpServerDetail.lowSafeReadNotifyActions", "Low — safe read/notify actions")
|
|
500
496
|
}),
|
|
501
|
-
/* @__PURE__ */
|
|
497
|
+
/* @__PURE__ */ E("option", {
|
|
502
498
|
value: "MEDIUM",
|
|
503
|
-
children: "Medium — state-changing actions"
|
|
499
|
+
children: z("botlit.mcpServerDetail.mediumStateChangingActions", "Medium — state-changing actions")
|
|
504
500
|
}),
|
|
505
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ E("option", {
|
|
506
502
|
value: "HIGH",
|
|
507
|
-
children: "High — destructive or sensitive actions"
|
|
503
|
+
children: z("botlit.mcpServerDetail.highDestructiveOrSensitiveActions", "High — destructive or sensitive actions")
|
|
508
504
|
})
|
|
509
505
|
]
|
|
510
506
|
}),
|
|
511
|
-
/* @__PURE__ */
|
|
507
|
+
/* @__PURE__ */ E("p", {
|
|
512
508
|
className: "text-xs text-text-secondary mt-1",
|
|
513
|
-
children: "Agents can only invoke tools up to the maximum risk level allowed by your workspace tool policies."
|
|
509
|
+
children: z("botlit.mcpServerDetail.agentsCanOnlyInvokeTools", "Agents can only invoke tools up to the maximum risk level allowed by your workspace tool policies.")
|
|
514
510
|
})
|
|
515
|
-
] }), /* @__PURE__ */
|
|
511
|
+
] }), /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
516
512
|
className: "text-sm font-medium mb-2",
|
|
517
|
-
children: "Input Schema"
|
|
518
|
-
}), /* @__PURE__ */
|
|
513
|
+
children: z("botlit.mcpServerDetail.inputSchema", "Input Schema")
|
|
514
|
+
}), /* @__PURE__ */ E("div", {
|
|
519
515
|
className: "p-3 bg-bg-sunken rounded-lg font-mono text-xs overflow-auto max-h-96",
|
|
520
|
-
children: /* @__PURE__ */
|
|
516
|
+
children: /* @__PURE__ */ E("pre", { children: JSON.stringify(Q.inputSchema, null, 2) })
|
|
521
517
|
})] })]
|
|
522
518
|
})]
|
|
523
|
-
}) : /* @__PURE__ */
|
|
519
|
+
}) : /* @__PURE__ */ E(f, {
|
|
524
520
|
className: "h-full",
|
|
525
|
-
children: /* @__PURE__ */
|
|
521
|
+
children: /* @__PURE__ */ E(p, {
|
|
526
522
|
className: "h-full flex items-center justify-center",
|
|
527
|
-
children: /* @__PURE__ */
|
|
523
|
+
children: /* @__PURE__ */ E(x, {
|
|
528
524
|
illustration: "onboarding",
|
|
529
|
-
title: "Select a tool",
|
|
530
|
-
description: "Choose a tool from the list to view its details"
|
|
525
|
+
title: z("botlit.mcpServerDetail.selectATool", "Select a tool"),
|
|
526
|
+
description: z("botlit.mcpServerDetail.chooseAToolFromThe", "Choose a tool from the list to view its details")
|
|
531
527
|
})
|
|
532
528
|
})
|
|
533
529
|
})
|
|
534
530
|
})]
|
|
535
531
|
}),
|
|
536
|
-
|
|
532
|
+
G.length > 0 && /* @__PURE__ */ D(f, { children: [/* @__PURE__ */ D(h, { children: [/* @__PURE__ */ E(g, { children: z("botlit.mcpServerDetail.resources", "Resources") }), /* @__PURE__ */ E(m, { children: z("botlit.mcpServerDetail.availableResourcesExposedByThis", "Available resources exposed by this server") })] }), /* @__PURE__ */ E(p, { children: /* @__PURE__ */ E("div", {
|
|
537
533
|
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",
|
|
538
|
-
children:
|
|
534
|
+
children: G.map((e) => /* @__PURE__ */ D("div", {
|
|
539
535
|
className: "p-4 border border-border-subtle rounded-lg hover:bg-accent/50 transition-colors",
|
|
540
|
-
children: [/* @__PURE__ */
|
|
536
|
+
children: [/* @__PURE__ */ D("div", {
|
|
541
537
|
className: "flex items-start justify-between",
|
|
542
|
-
children: [/* @__PURE__ */
|
|
538
|
+
children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
543
539
|
className: "font-medium",
|
|
544
540
|
children: e.name
|
|
545
|
-
}), /* @__PURE__ */
|
|
541
|
+
}), /* @__PURE__ */ E("p", {
|
|
546
542
|
className: "text-sm text-text-secondary",
|
|
547
543
|
children: e.description
|
|
548
|
-
})] }), /* @__PURE__ */
|
|
544
|
+
})] }), /* @__PURE__ */ E(ye, {
|
|
549
545
|
size: 14,
|
|
550
546
|
className: "text-text-secondary"
|
|
551
547
|
})]
|
|
552
|
-
}), /* @__PURE__ */
|
|
548
|
+
}), /* @__PURE__ */ D("div", {
|
|
553
549
|
className: "mt-2 flex items-center gap-2",
|
|
554
|
-
children: [/* @__PURE__ */
|
|
550
|
+
children: [/* @__PURE__ */ E(b, {
|
|
555
551
|
variant: "outline",
|
|
556
552
|
className: "text-xs font-mono",
|
|
557
553
|
children: e.mimeType || "unknown"
|
|
558
|
-
}), /* @__PURE__ */
|
|
554
|
+
}), /* @__PURE__ */ E("span", {
|
|
559
555
|
className: "text-xs text-text-secondary truncate",
|
|
560
556
|
children: e.uri
|
|
561
557
|
})]
|
|
562
558
|
})]
|
|
563
559
|
}, e.uri))
|
|
564
560
|
}) })] }),
|
|
565
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(h, { children: /* @__PURE__ */ D(g, {
|
|
566
562
|
className: "flex items-center gap-2",
|
|
567
|
-
children: [/* @__PURE__ */
|
|
568
|
-
}) }), /* @__PURE__ */
|
|
563
|
+
children: [/* @__PURE__ */ E(N, { size: 18 }), z("botlit.mcpServerDetail.metadata", "Metadata")]
|
|
564
|
+
}) }), /* @__PURE__ */ E(p, { children: /* @__PURE__ */ D("div", {
|
|
569
565
|
className: "grid grid-cols-2 md:grid-cols-4 gap-6 text-sm",
|
|
570
566
|
children: [
|
|
571
|
-
/* @__PURE__ */
|
|
567
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
572
568
|
className: "text-text-secondary",
|
|
573
|
-
children: "Created"
|
|
574
|
-
}), /* @__PURE__ */
|
|
569
|
+
children: z("botlit.mcpServerDetail.created", "Created")
|
|
570
|
+
}), /* @__PURE__ */ E("p", {
|
|
575
571
|
className: "font-medium",
|
|
576
|
-
children:
|
|
572
|
+
children: S(H.createdAt)
|
|
577
573
|
})] }),
|
|
578
|
-
/* @__PURE__ */
|
|
574
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
579
575
|
className: "text-text-secondary",
|
|
580
|
-
children: "Updated"
|
|
581
|
-
}), /* @__PURE__ */
|
|
576
|
+
children: z("botlit.mcpServerDetail.updated", "Updated")
|
|
577
|
+
}), /* @__PURE__ */ E("p", {
|
|
582
578
|
className: "font-medium",
|
|
583
|
-
children:
|
|
579
|
+
children: S(H.updatedAt)
|
|
584
580
|
})] }),
|
|
585
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
586
582
|
className: "text-text-secondary",
|
|
587
|
-
children: "Last Connected"
|
|
588
|
-
}), /* @__PURE__ */
|
|
583
|
+
children: z("botlit.mcpServerDetail.lastConnected", "Last Connected")
|
|
584
|
+
}), /* @__PURE__ */ E("p", {
|
|
589
585
|
className: "font-medium",
|
|
590
|
-
children:
|
|
586
|
+
children: H.lastConnectedAt ? S(H.lastConnectedAt) : z("botlit.mcpServerDetail.never", "Never")
|
|
591
587
|
})] }),
|
|
592
|
-
/* @__PURE__ */
|
|
588
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("p", {
|
|
593
589
|
className: "text-text-secondary",
|
|
594
|
-
children: "Stored credentials"
|
|
595
|
-
}), /* @__PURE__ */
|
|
596
|
-
variant:
|
|
597
|
-
children:
|
|
590
|
+
children: z("botlit.mcpServerDetail.storedCredentials", "Stored credentials")
|
|
591
|
+
}), /* @__PURE__ */ E(b, {
|
|
592
|
+
variant: H.hasCredentials ? "success" : "secondary",
|
|
593
|
+
children: H.hasCredentials ? z("botlit.mcpServerDetail.configured", "Configured") : z("botlit.mcpServerDetail.none", "None")
|
|
598
594
|
})] })
|
|
599
595
|
]
|
|
600
596
|
}) })] })
|
|
601
597
|
]
|
|
602
598
|
})
|
|
603
|
-
}) : /* @__PURE__ */
|
|
604
|
-
title: "Server Not Found",
|
|
605
|
-
children: /* @__PURE__ */
|
|
599
|
+
}) : /* @__PURE__ */ E(d, {
|
|
600
|
+
title: z("botlit.mcpServerDetail.serverNotFound", "Server Not Found"),
|
|
601
|
+
children: /* @__PURE__ */ E(x, {
|
|
606
602
|
kind: "not-found",
|
|
607
603
|
illustration: "empty-generic",
|
|
608
|
-
title: "Server Not Found",
|
|
609
|
-
description: "This MCP server doesn't exist.",
|
|
610
|
-
action: /* @__PURE__ */
|
|
611
|
-
onClick: () =>
|
|
612
|
-
children: "Back to MCP Servers"
|
|
604
|
+
title: z("botlit.mcpServerDetail.serverNotFound", "Server Not Found"),
|
|
605
|
+
description: z("botlit.mcpServerDetail.thisMcpServerDoesnT", "This MCP server doesn't exist."),
|
|
606
|
+
action: /* @__PURE__ */ E(_, {
|
|
607
|
+
onClick: () => V("mcp"),
|
|
608
|
+
children: z("botlit.mcpServerDetail.backToMcpServers", "Back to MCP Servers")
|
|
613
609
|
})
|
|
614
610
|
})
|
|
615
611
|
});
|
|
616
612
|
};
|
|
617
|
-
export {
|
|
613
|
+
export { R as MCPServerDetailPage };
|
|
618
614
|
|
|
619
615
|
//# sourceMappingURL=MCPServerDetailPage.js.map
|