@activecollab/components 2.0.596 → 2.0.598
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/cjs/components/Accordion/AccordionItemBody.js +31 -3
- package/dist/cjs/components/Accordion/AccordionItemBody.js.map +1 -1
- package/dist/cjs/components/Icons/collection/Plug.js +61 -0
- package/dist/cjs/components/Icons/collection/Plug.js.map +1 -0
- package/dist/cjs/components/Icons/collection/PlugDisconnect.js +100 -0
- package/dist/cjs/components/Icons/collection/PlugDisconnect.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +14 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/presentation/appsAndIntegrations/McpIntegration.js +308 -68
- package/dist/cjs/presentation/appsAndIntegrations/McpIntegration.js.map +1 -1
- package/dist/cjs/presentation/appsAndIntegrations/layout.js +89 -0
- package/dist/cjs/presentation/appsAndIntegrations/layout.js.map +1 -0
- package/dist/cjs/presentation/appsAndIntegrations/mcpData.js +36 -2
- package/dist/cjs/presentation/appsAndIntegrations/mcpData.js.map +1 -1
- package/dist/cjs/presentation/shared/index.js +7 -0
- package/dist/cjs/presentation/shared/index.js.map +1 -1
- package/dist/cjs/presentation/shared/selfHostedUpgrade.js +2 -2
- package/dist/cjs/presentation/shared/selfHostedUpgrade.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/keyboardShortcuts.js +212 -0
- package/dist/cjs/presentation/whiteboard/keyboardShortcuts.js.map +1 -0
- package/dist/cjs/presentation/whiteboard/outline.js +10 -4
- package/dist/cjs/presentation/whiteboard/outline.js.map +1 -1
- package/dist/cjs/presentation/whiteboardModern/toolDock.js +37 -16
- package/dist/cjs/presentation/whiteboardModern/toolDock.js.map +1 -1
- package/dist/esm/components/Accordion/AccordionItemBody.d.ts.map +1 -1
- package/dist/esm/components/Accordion/AccordionItemBody.js +21 -4
- package/dist/esm/components/Accordion/AccordionItemBody.js.map +1 -1
- package/dist/esm/components/Icons/collection/Plug.d.ts +21 -0
- package/dist/esm/components/Icons/collection/Plug.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Plug.js +54 -0
- package/dist/esm/components/Icons/collection/Plug.js.map +1 -0
- package/dist/esm/components/Icons/collection/PlugDisconnect.d.ts +22 -0
- package/dist/esm/components/Icons/collection/PlugDisconnect.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/PlugDisconnect.js +83 -0
- package/dist/esm/components/Icons/collection/PlugDisconnect.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +2 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +2 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/McpIntegration.d.ts +5 -4
- package/dist/esm/presentation/appsAndIntegrations/McpIntegration.d.ts.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/McpIntegration.js +290 -67
- package/dist/esm/presentation/appsAndIntegrations/McpIntegration.js.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/layout.d.ts +32 -0
- package/dist/esm/presentation/appsAndIntegrations/layout.d.ts.map +1 -0
- package/dist/esm/presentation/appsAndIntegrations/layout.js +83 -0
- package/dist/esm/presentation/appsAndIntegrations/layout.js.map +1 -0
- package/dist/esm/presentation/appsAndIntegrations/mcpData.d.ts +15 -0
- package/dist/esm/presentation/appsAndIntegrations/mcpData.d.ts.map +1 -1
- package/dist/esm/presentation/appsAndIntegrations/mcpData.js +35 -1
- package/dist/esm/presentation/appsAndIntegrations/mcpData.js.map +1 -1
- package/dist/esm/presentation/shared/index.d.ts +1 -1
- package/dist/esm/presentation/shared/index.d.ts.map +1 -1
- package/dist/esm/presentation/shared/index.js +1 -1
- package/dist/esm/presentation/shared/index.js.map +1 -1
- package/dist/esm/presentation/shared/selfHostedUpgrade.d.ts +2 -0
- package/dist/esm/presentation/shared/selfHostedUpgrade.d.ts.map +1 -1
- package/dist/esm/presentation/shared/selfHostedUpgrade.js +1 -1
- package/dist/esm/presentation/shared/selfHostedUpgrade.js.map +1 -1
- package/dist/esm/presentation/whiteboard/keyboardShortcuts.d.ts +16 -0
- package/dist/esm/presentation/whiteboard/keyboardShortcuts.d.ts.map +1 -0
- package/dist/esm/presentation/whiteboard/keyboardShortcuts.js +198 -0
- package/dist/esm/presentation/whiteboard/keyboardShortcuts.js.map +1 -0
- package/dist/esm/presentation/whiteboard/outline.d.ts +5 -2
- package/dist/esm/presentation/whiteboard/outline.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/outline.js +10 -4
- package/dist/esm/presentation/whiteboard/outline.js.map +1 -1
- package/dist/esm/presentation/whiteboardModern/toolDock.d.ts +4 -0
- package/dist/esm/presentation/whiteboardModern/toolDock.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboardModern/toolDock.js +34 -15
- package/dist/esm/presentation/whiteboardModern/toolDock.js.map +1 -1
- package/dist/index.js +578 -422
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -17,16 +17,16 @@ var _Dialog = require("../../components/Dialog");
|
|
|
17
17
|
var _Dot = require("../../components/Dot");
|
|
18
18
|
var _IconButton = require("../../components/IconButton");
|
|
19
19
|
var _Icons = require("../../components/Icons");
|
|
20
|
+
var _InfoBox = require("../../components/InfoBox");
|
|
20
21
|
var _Input = require("../../components/Input");
|
|
21
22
|
var _Label = require("../../components/Label");
|
|
22
23
|
var _Links = require("../../components/Links");
|
|
23
24
|
var _Select = require("../../components/Select");
|
|
24
25
|
var _SelectTrigger = require("../../components/SelectTrigger");
|
|
25
26
|
var _Tooltip = require("../../components/Tooltip");
|
|
26
|
-
var _Trigger = require("../../components/Trigger");
|
|
27
27
|
var _Typography = require("../../components/Typography");
|
|
28
28
|
var _shared = require("../shared");
|
|
29
|
-
var _excluded = ["tokens", "
|
|
29
|
+
var _excluded = ["tokens", "onDisconnectAll", "connection", "onAddToken"];
|
|
30
30
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
31
31
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
32
32
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -121,7 +121,7 @@ var ClientLabel = function ClientLabel(_ref) {
|
|
|
121
121
|
var StyledTable = _styledComponents.default.div.withConfig({
|
|
122
122
|
displayName: "McpIntegration__StyledTable",
|
|
123
123
|
componentId: "sc-x8hck0-0"
|
|
124
|
-
})(["border:1px solid var(--color-theme-400);border-radius:8px;.mt-scroll{overflow-x:auto;}.mt-inner{min-width:974px;}.mt-row{box-sizing:border-box;display:flex;align-items:center;gap:24px;min-height:48px;padding:0 16px 0 20px;}.mt-row.grouped .col-client{padding-left:20px;}.mt-head{background-color:var(--color-theme-200);border-radius:8px 8px 0 0;}.mt-bordered{border-top:1px solid var(--color-theme-400);}.col-client{box-sizing:border-box;display:flex;flex:1;flex-direction:column;justify-content:center;min-width:250px;width:100%;overflow:hidden;padding:4px 0;}.col-date{width:100px;flex-shrink:0;}.col-token{display:flex;align-items:center;width:140px;flex-shrink:0;overflow:hidden;user-select:none;}.col-token .c-dot{margin:2px 0 0 4px;flex-shrink:0;}.col-icon{width:32px;flex-shrink:0;}.col-access{width:140px;flex-shrink:0;}.col-access .access-trigger{box-sizing:border-box;width:100%;padding:0;}.identity-line{display:flex;align-items:center;gap:8px;overflow:hidden;}.hostname{word-break:break-all;font-family:", ";}.expired-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;}.group-head{box-sizing:border-box;display:flex;align-items:center;gap:16px;min-height:48px;padding:4px 16px 4px 20px;}.group-head .identity{display:flex;flex:1;flex-direction:column;justify-content:center;min-width:0;overflow:hidden;}
|
|
124
|
+
})(["border:1px solid var(--color-theme-400);border-radius:8px;.mt-scroll{overflow-x:auto;}.mt-inner{min-width:974px;}.mt-row{box-sizing:border-box;display:flex;align-items:center;gap:24px;min-height:48px;padding:0 16px 0 20px;}.mt-row.grouped .col-client{padding-left:20px;}.mt-head{background-color:var(--color-theme-200);border-radius:8px 8px 0 0;}.mt-bordered{border-top:1px solid var(--color-theme-400);}.mt-shortcuts{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:48px;padding:8px 12px;}.col-client{box-sizing:border-box;display:flex;flex:1;flex-direction:column;justify-content:center;min-width:250px;width:100%;overflow:hidden;padding:4px 0;}.col-date{width:100px;flex-shrink:0;}.col-token{display:flex;align-items:center;width:140px;flex-shrink:0;overflow:hidden;user-select:none;}.col-token .c-dot{margin:2px 0 0 4px;flex-shrink:0;}.col-icon{width:32px;flex-shrink:0;}.col-access{width:140px;flex-shrink:0;}.col-access .access-trigger{box-sizing:border-box;width:100%;padding:0;}.identity-line{display:flex;align-items:center;gap:8px;overflow:hidden;}.hostname{word-break:break-all;font-family:", ";}.expired-line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;}.group-head{box-sizing:border-box;display:flex;align-items:center;gap:16px;min-height:48px;padding:4px 16px 4px 20px;}.group-head .identity{display:flex;flex:1;flex-direction:column;justify-content:center;min-width:0;overflow:hidden;}"], _shared.MONO);
|
|
125
125
|
var StatusChip = function StatusChip(_ref2) {
|
|
126
126
|
var label = _ref2.label;
|
|
127
127
|
return /*#__PURE__*/_react.default.createElement(_Chip.Chip, {
|
|
@@ -282,11 +282,38 @@ var TokenItem = function TokenItem(_ref6) {
|
|
|
282
282
|
}
|
|
283
283
|
}, /*#__PURE__*/_react.default.createElement(_Icons.TrashIcon, null))))));
|
|
284
284
|
};
|
|
285
|
-
var
|
|
286
|
-
var
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
285
|
+
var TableShortcuts = function TableShortcuts(_ref7) {
|
|
286
|
+
var connection = _ref7.connection,
|
|
287
|
+
onAddToken = _ref7.onAddToken;
|
|
288
|
+
var isOAuth = connection.is_oauth_enabled;
|
|
289
|
+
var pluginUrl = isOAuth ? connection.plugin_download_url : null;
|
|
290
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, pluginUrl ? /*#__PURE__*/_react.default.createElement(_Tooltip.Tooltip, {
|
|
291
|
+
title: "Download the ActiveCollab AI Plugin for agents that support plugins"
|
|
292
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
293
|
+
variant: "text colored",
|
|
294
|
+
onClick: function onClick() {
|
|
295
|
+
return window.open(pluginUrl, "_blank");
|
|
296
|
+
}
|
|
297
|
+
}, /*#__PURE__*/_react.default.createElement(_Icons.DownloadIcon, null), "Download Plugin")) : null, isOAuth ? /*#__PURE__*/_react.default.createElement(_Tooltip.Tooltip, {
|
|
298
|
+
title: "Copy the MCP server URL to connect an agent that supports sign-in (OAuth)"
|
|
299
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
300
|
+
variant: "text colored",
|
|
301
|
+
onClick: function onClick() {
|
|
302
|
+
return (0, _shared.copyText)(connection.api_url);
|
|
303
|
+
}
|
|
304
|
+
}, /*#__PURE__*/_react.default.createElement(_Icons.CopyIcon, null), "Copy MCP URL")) : null, /*#__PURE__*/_react.default.createElement(_Tooltip.Tooltip, {
|
|
305
|
+
title: isOAuth ? "Create a token for agents that do not support sign-in (OAuth) yet" : "Create a token to connect an AI agent"
|
|
306
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
307
|
+
variant: "text colored",
|
|
308
|
+
onClick: onAddToken
|
|
309
|
+
}, /*#__PURE__*/_react.default.createElement(_Icons.KeyIcon, null), "Add Token")));
|
|
310
|
+
};
|
|
311
|
+
var TokensTable = function TokensTable(_ref8) {
|
|
312
|
+
var tokens = _ref8.tokens,
|
|
313
|
+
onDisconnectAll = _ref8.onDisconnectAll,
|
|
314
|
+
connection = _ref8.connection,
|
|
315
|
+
onAddToken = _ref8.onAddToken,
|
|
316
|
+
itemProps = _objectWithoutProperties(_ref8, _excluded);
|
|
290
317
|
var rows = (0, _react.useMemo)(function () {
|
|
291
318
|
return groupRows(tokens);
|
|
292
319
|
}, [tokens]);
|
|
@@ -342,15 +369,11 @@ var TokensTable = function TokensTable(_ref7) {
|
|
|
342
369
|
item: row.item
|
|
343
370
|
}, itemProps));
|
|
344
371
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
345
|
-
className: "mt-bordered"
|
|
346
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
className: "add-row"
|
|
351
|
-
}, /*#__PURE__*/_react.default.createElement(_Typography.Body2, {
|
|
352
|
-
color: "theme-primary"
|
|
353
|
-
}, "+ Add Token")))));
|
|
372
|
+
className: "mt-bordered mt-shortcuts"
|
|
373
|
+
}, /*#__PURE__*/_react.default.createElement(TableShortcuts, {
|
|
374
|
+
connection: connection,
|
|
375
|
+
onAddToken: onAddToken
|
|
376
|
+
})));
|
|
354
377
|
};
|
|
355
378
|
|
|
356
379
|
/* ------------------------------------------------------------------ */
|
|
@@ -393,7 +416,7 @@ var TipsAndExamples = function TipsAndExamples() {
|
|
|
393
416
|
}, tip);
|
|
394
417
|
}))), /*#__PURE__*/_react.default.createElement(_Typography.Body2, {
|
|
395
418
|
italic: true
|
|
396
|
-
}, "Copy these prompts,
|
|
419
|
+
}, "Copy these prompts, change the project names and people, and start to manage your work through conversation.")));
|
|
397
420
|
};
|
|
398
421
|
|
|
399
422
|
/* ------------------------------------------------------------------ */
|
|
@@ -405,6 +428,11 @@ var CLIENT_OPTIONS = [{
|
|
|
405
428
|
name: "Claude",
|
|
406
429
|
client_name: "Claude",
|
|
407
430
|
vendor: "Anthropic"
|
|
431
|
+
}, {
|
|
432
|
+
id: "chatgpt",
|
|
433
|
+
name: "ChatGPT",
|
|
434
|
+
client_name: "ChatGPT",
|
|
435
|
+
vendor: "OpenAI"
|
|
408
436
|
}, {
|
|
409
437
|
id: "langdock",
|
|
410
438
|
name: "Langdock",
|
|
@@ -424,10 +452,10 @@ var DialogBody = _styledComponents.default.div.withConfig({
|
|
|
424
452
|
displayName: "McpIntegration__DialogBody",
|
|
425
453
|
componentId: "sc-x8hck0-3"
|
|
426
454
|
})(["display:flex;flex-direction:column;gap:16px;.field{display:flex;flex-direction:column;gap:4px;}.field .c-input-wrapper{width:100%;max-width:360px;}.chooser-label{margin-bottom:8px;}.checkbox-row{display:flex;align-items:center;gap:8px;}.checkbox-row label{margin-bottom:0;cursor:pointer;}"]);
|
|
427
|
-
var AddClientDialog = function AddClientDialog(
|
|
428
|
-
var open =
|
|
429
|
-
onClose =
|
|
430
|
-
onAdd =
|
|
455
|
+
var AddClientDialog = function AddClientDialog(_ref9) {
|
|
456
|
+
var open = _ref9.open,
|
|
457
|
+
onClose = _ref9.onClose,
|
|
458
|
+
onAdd = _ref9.onAdd;
|
|
431
459
|
var _useState = (0, _react.useState)(""),
|
|
432
460
|
_useState2 = _slicedToArray(_useState, 2),
|
|
433
461
|
password = _useState2[0],
|
|
@@ -511,9 +539,9 @@ var AddClientDialog = function AddClientDialog(_ref8) {
|
|
|
511
539
|
weight: "bold"
|
|
512
540
|
}, "Chat Client"), /*#__PURE__*/_react.default.createElement(_ChooseV.ChooseV2, {
|
|
513
541
|
required: true,
|
|
514
|
-
options: CLIENT_OPTIONS.map(function (
|
|
515
|
-
var id =
|
|
516
|
-
label =
|
|
542
|
+
options: CLIENT_OPTIONS.map(function (_ref0) {
|
|
543
|
+
var id = _ref0.id,
|
|
544
|
+
label = _ref0.name;
|
|
517
545
|
return {
|
|
518
546
|
id,
|
|
519
547
|
name: label
|
|
@@ -584,9 +612,9 @@ var StyledCopyField = _styledComponents.default.div.withConfig({
|
|
|
584
612
|
})(["display:flex;flex-direction:column;gap:4px;.cf-row{display:flex;align-items:center;gap:16px;}.cf-box{box-sizing:border-box;display:flex;align-items:center;width:100%;max-width:360px;height:32px;border:1px solid var(--color-theme-500);border-radius:6px;overflow:hidden;}.cf-value{display:flex;align-items:center;min-width:0;margin:0 8px;user-select:none;}.cf-value .c-dot{margin:2px 0 0 4px;flex-shrink:0;}"]);
|
|
585
613
|
|
|
586
614
|
/** Mirrors CopyToClipboard/CopyField.jsx. */
|
|
587
|
-
var CopyField = function CopyField(
|
|
588
|
-
var label =
|
|
589
|
-
children =
|
|
615
|
+
var CopyField = function CopyField(_ref1) {
|
|
616
|
+
var label = _ref1.label,
|
|
617
|
+
children = _ref1.children;
|
|
590
618
|
return /*#__PURE__*/_react.default.createElement(StyledCopyField, null, /*#__PURE__*/_react.default.createElement(_Typography.Caption1, {
|
|
591
619
|
weight: "bold"
|
|
592
620
|
}, label), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -610,21 +638,24 @@ var UseTokenBody = _styledComponents.default.div.withConfig({
|
|
|
610
638
|
componentId: "sc-x8hck0-5"
|
|
611
639
|
})(["display:flex;flex-direction:column;gap:16px;.instructions{display:flex;flex-direction:column;gap:12px;margin-top:8px;}.instructions p{margin:0 0 14px;}"]);
|
|
612
640
|
var configSnippet = function configSnippet(url, token) {
|
|
613
|
-
return "{\n \u2026\n \"mcpServers\": {\n \"ActiveCollab Project Management\": {\n \"
|
|
641
|
+
return "{\n \u2026\n \"mcpServers\": {\n \"ActiveCollab Project Management\": {\n \"type\": \"http\",\n \"url\": \"".concat(url, "\",\n \"headers\": {\n \"Authorization\": \"Bearer ").concat(token, "\"\n }\n }\n }\n \u2026\n}");
|
|
642
|
+
};
|
|
643
|
+
var claudeCommand = function claudeCommand(url, token) {
|
|
644
|
+
return "claude mcp add --transport http activecollab ".concat(url, " --header \"Authorization: Bearer ").concat(token, "\"");
|
|
614
645
|
};
|
|
615
|
-
var ClientInstructions = function ClientInstructions(
|
|
616
|
-
var clientName =
|
|
646
|
+
var ClientInstructions = function ClientInstructions(_ref10) {
|
|
647
|
+
var clientName = _ref10.clientName;
|
|
617
648
|
if (clientName === "Langdock") {
|
|
618
649
|
return /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, /*#__PURE__*/_react.default.createElement("p", null, "Open Langdock and select ", /*#__PURE__*/_react.default.createElement("b", null, "Integrations"), " from the main menu."), /*#__PURE__*/_react.default.createElement("p", null, "In the upper-right corner, click ", /*#__PURE__*/_react.default.createElement("b", null, "Add Integration"), ", then choose", " ", /*#__PURE__*/_react.default.createElement("b", null, "From Scratch"), "."), /*#__PURE__*/_react.default.createElement("p", null, "A dialog will open. Select ", /*#__PURE__*/_react.default.createElement("b", null, "Connect remote MCP"), ". Paste the", " ", /*#__PURE__*/_react.default.createElement("b", null, "ActiveCollab MCP server URL"), " and select ", /*#__PURE__*/_react.default.createElement("b", null, "API key"), " as the authorization method."), /*#__PURE__*/_react.default.createElement("p", null, "A new integration will be created. Click ", /*#__PURE__*/_react.default.createElement("b", null, "Test Connect"), " to verify the connection. If the test succeeds, Langdock will display a list of actions available from ActiveCollab."), /*#__PURE__*/_react.default.createElement("p", null, "Select the actions you want Langdock to be able to access and use."));
|
|
619
650
|
}
|
|
620
651
|
if (clientName === "Claude") {
|
|
621
|
-
return /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "
|
|
652
|
+
return /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "Claude connects best with sign-in (OAuth). Use the ActiveCollab AI Plugin, or Connect Without a Plugin, on the MCP page. If you need a token, for example in Claude Code, run this command:");
|
|
622
653
|
}
|
|
623
654
|
return /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, /*#__PURE__*/_react.default.createElement("p", null, "Refer to your client or tool documentation for specific instructions on connecting to an MCP server."), /*#__PURE__*/_react.default.createElement("p", null, "The credentials provided above are intended for use with the streamable HTTP transport protocol."), "If your client requires a JSON configuration to define MCP servers, use the appropriate fields (such as server URL, transport type, and authentication token) based on the example below. Ensure the configuration matches your client's expected schema and supports streamable HTTP transport.");
|
|
624
655
|
};
|
|
625
|
-
var UseTokenDialog = function UseTokenDialog(
|
|
626
|
-
var token =
|
|
627
|
-
onClose =
|
|
656
|
+
var UseTokenDialog = function UseTokenDialog(_ref11) {
|
|
657
|
+
var token = _ref11.token,
|
|
658
|
+
onClose = _ref11.onClose;
|
|
628
659
|
var details = _mcpData.MCP_TOKEN_DETAILS;
|
|
629
660
|
var isLangdock = (token === null || token === void 0 ? void 0 : token.client_name) === "Langdock";
|
|
630
661
|
return /*#__PURE__*/_react.default.createElement(_Dialog.Dialog, {
|
|
@@ -651,7 +682,7 @@ var UseTokenDialog = function UseTokenDialog(_ref10) {
|
|
|
651
682
|
}, /*#__PURE__*/_react.default.createElement(ClientInstructions, {
|
|
652
683
|
clientName: token === null || token === void 0 ? void 0 : token.client_name
|
|
653
684
|
}), isLangdock ? null : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_shared.CopySnippet, {
|
|
654
|
-
code: configSnippet(details.api_url, details.token)
|
|
685
|
+
code: (token === null || token === void 0 ? void 0 : token.client_name) === "Claude" ? claudeCommand(details.api_url, details.token) : configSnippet(details.api_url, details.token)
|
|
655
686
|
}), /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, /*#__PURE__*/_react.default.createElement(_Links.Link, {
|
|
656
687
|
variant: "text link-primary",
|
|
657
688
|
as: "a",
|
|
@@ -660,50 +691,250 @@ var UseTokenDialog = function UseTokenDialog(_ref10) {
|
|
|
660
691
|
};
|
|
661
692
|
|
|
662
693
|
/* ------------------------------------------------------------------ */
|
|
663
|
-
/*
|
|
694
|
+
/* Connect your AI agent (plugin, OAuth without a plugin, token) */
|
|
664
695
|
/* ------------------------------------------------------------------ */
|
|
665
696
|
|
|
666
|
-
var
|
|
667
|
-
|
|
697
|
+
var vsCodeInstallUrl = function vsCodeInstallUrl(url) {
|
|
698
|
+
return "https://vscode.dev/redirect/mcp/install?name=activecollab&config=".concat(encodeURIComponent(JSON.stringify({
|
|
699
|
+
type: "http",
|
|
700
|
+
url
|
|
701
|
+
})));
|
|
702
|
+
};
|
|
703
|
+
var StyledConnectAgent = _styledComponents.default.div.withConfig({
|
|
704
|
+
displayName: "McpIntegration__StyledConnectAgent",
|
|
668
705
|
componentId: "sc-x8hck0-6"
|
|
669
|
-
})(["display:flex;flex-direction:column;align-items:flex-start;gap:16px;"]);
|
|
706
|
+
})(["display:flex;flex-direction:column;gap:16px;width:100%;max-width:720px;.connect-intro{display:flex;flex-direction:column;gap:4px;}.connect-accordion{width:100%;}.ca-head{display:flex;align-items:flex-start;gap:12px;padding:4px 0;}.ca-head-icon{display:flex;flex-shrink:0;padding-top:2px;}.ca-head-text{display:flex;flex-direction:column;gap:2px;min-width:0;}.ca-head-title{display:flex;align-items:center;gap:8px;}.ca-body{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:4px 0 16px 32px;}.ca-body ul{display:flex;flex-direction:column;gap:4px;margin:0;padding-left:20px;}.ca-list{display:flex;flex-direction:column;gap:4px;}.ca-actions{display:flex;align-items:center;gap:16px;}.ca-client{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;padding:16px;border:1px solid var(--border-primary);border-radius:8px;}.ca-client > div{width:100%;}"]);
|
|
707
|
+
var OAuthInfoBox = (0, _styledComponents.default)(_InfoBox.InfoBox).withConfig({
|
|
708
|
+
displayName: "McpIntegration__OAuthInfoBox",
|
|
709
|
+
componentId: "sc-x8hck0-7"
|
|
710
|
+
})(["box-sizing:border-box;.oauth-body{display:flex;flex-direction:column;align-items:flex-start;gap:12px;}"]);
|
|
711
|
+
var HEAD_ICON_STYLE = {
|
|
712
|
+
width: 20,
|
|
713
|
+
height: 20,
|
|
714
|
+
fill: "var(--color-theme-700)"
|
|
715
|
+
};
|
|
716
|
+
var ConnectItemHead = function ConnectItemHead(_ref12) {
|
|
717
|
+
var icon = _ref12.icon,
|
|
718
|
+
title = _ref12.title,
|
|
719
|
+
description = _ref12.description,
|
|
720
|
+
chip = _ref12.chip;
|
|
721
|
+
return /*#__PURE__*/_react.default.createElement(_Accordion.AccordionItemHead, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
722
|
+
className: "ca-head"
|
|
723
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
724
|
+
className: "ca-head-icon"
|
|
725
|
+
}, icon), /*#__PURE__*/_react.default.createElement("div", {
|
|
726
|
+
className: "ca-head-text"
|
|
727
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
728
|
+
className: "ca-head-title"
|
|
729
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.Body2, {
|
|
730
|
+
weight: "bold"
|
|
731
|
+
}, title), chip), /*#__PURE__*/_react.default.createElement(_Typography.Body2, {
|
|
732
|
+
color: "secondary"
|
|
733
|
+
}, description))));
|
|
734
|
+
};
|
|
735
|
+
var StepByStepLink = function StepByStepLink() {
|
|
736
|
+
return /*#__PURE__*/_react.default.createElement(_Links.Link, {
|
|
737
|
+
variant: "text link-gray",
|
|
738
|
+
as: "a",
|
|
739
|
+
href: "#"
|
|
740
|
+
}, "Step-by-Step Instructions");
|
|
741
|
+
};
|
|
742
|
+
var AGENT_OPTIONS = [{
|
|
743
|
+
id: "claude",
|
|
744
|
+
name: "Claude"
|
|
745
|
+
}, {
|
|
746
|
+
id: "chatgpt",
|
|
747
|
+
name: "ChatGPT"
|
|
748
|
+
}, {
|
|
749
|
+
id: "vscode",
|
|
750
|
+
name: "VS Code"
|
|
751
|
+
}, {
|
|
752
|
+
id: "codex",
|
|
753
|
+
name: "Codex"
|
|
754
|
+
}, {
|
|
755
|
+
id: "other",
|
|
756
|
+
name: "Other"
|
|
757
|
+
}];
|
|
758
|
+
var AgentInstructions = function AgentInstructions(_ref13) {
|
|
759
|
+
var agent = _ref13.agent,
|
|
760
|
+
url = _ref13.url;
|
|
761
|
+
switch (agent) {
|
|
762
|
+
case "claude":
|
|
763
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "In Claude, add a custom connector and paste the MCP server URL. Claude asks you to sign in to ActiveCollab."), /*#__PURE__*/_react.default.createElement(CopyField, {
|
|
764
|
+
label: "MCP Server URL"
|
|
765
|
+
}, url), /*#__PURE__*/_react.default.createElement(StepByStepLink, null));
|
|
766
|
+
case "chatgpt":
|
|
767
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "In ChatGPT, add a custom MCP server and paste the MCP server URL. Select OAuth as the authentication method."), /*#__PURE__*/_react.default.createElement(CopyField, {
|
|
768
|
+
label: "MCP Server URL"
|
|
769
|
+
}, url), /*#__PURE__*/_react.default.createElement(StepByStepLink, null));
|
|
770
|
+
case "vscode":
|
|
771
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "Add the server to VS Code with one click. VS Code asks you to sign in to ActiveCollab the first time it uses the server."), /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
772
|
+
variant: "text gray",
|
|
773
|
+
onClick: function onClick() {
|
|
774
|
+
return window.open(vsCodeInstallUrl(url), "_blank");
|
|
775
|
+
}
|
|
776
|
+
}, "Add to VS Code"), /*#__PURE__*/_react.default.createElement(StepByStepLink, null));
|
|
777
|
+
case "codex":
|
|
778
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "Run this command, then sign in to ActiveCollab when Codex asks."), /*#__PURE__*/_react.default.createElement(_shared.CopySnippet, {
|
|
779
|
+
code: "codex mcp add activecollab --url ".concat(url)
|
|
780
|
+
}), /*#__PURE__*/_react.default.createElement(StepByStepLink, null));
|
|
781
|
+
case "other":
|
|
782
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "Check the documentation of your AI agent to see how it connects to remote MCP servers. Then use this URL. If your agent supports OAuth, it asks you to sign in to ActiveCollab."), /*#__PURE__*/_react.default.createElement(CopyField, {
|
|
783
|
+
label: "MCP Server URL"
|
|
784
|
+
}, url));
|
|
785
|
+
default:
|
|
786
|
+
return null;
|
|
787
|
+
}
|
|
788
|
+
};
|
|
789
|
+
var ConnectWithoutPlugin = function ConnectWithoutPlugin(_ref14) {
|
|
790
|
+
var url = _ref14.url;
|
|
791
|
+
var _useState11 = (0, _react.useState)([]),
|
|
792
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
793
|
+
selected = _useState12[0],
|
|
794
|
+
setSelected = _useState12[1];
|
|
795
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "Select your AI agent to see how to connect it."), /*#__PURE__*/_react.default.createElement(_ChooseV.ChooseV2, {
|
|
796
|
+
options: AGENT_OPTIONS,
|
|
797
|
+
selected: selected,
|
|
798
|
+
onChange: setSelected
|
|
799
|
+
}), selected.length ? /*#__PURE__*/_react.default.createElement("div", {
|
|
800
|
+
className: "ca-client"
|
|
801
|
+
}, /*#__PURE__*/_react.default.createElement(AgentInstructions, {
|
|
802
|
+
agent: selected[0],
|
|
803
|
+
url: url
|
|
804
|
+
})) : null);
|
|
805
|
+
};
|
|
806
|
+
/**
|
|
807
|
+
* Connect block of the MCP page: plugin (OAuth on and a plugin to download),
|
|
808
|
+
* connect without a plugin (OAuth on), and connect with a token (always).
|
|
809
|
+
*/
|
|
810
|
+
var ConnectAgent = function ConnectAgent(_ref15) {
|
|
811
|
+
var connection = _ref15.connection,
|
|
812
|
+
heading = _ref15.heading,
|
|
813
|
+
collapsed = _ref15.collapsed,
|
|
814
|
+
onAddToken = _ref15.onAddToken;
|
|
815
|
+
var isOAuth = connection.is_oauth_enabled;
|
|
816
|
+
var pluginUrl = isOAuth ? connection.plugin_download_url : null;
|
|
817
|
+
var showOwnerBox = !isOAuth && connection.can_manage_oauth;
|
|
818
|
+
var showMemberHint = !isOAuth && !connection.can_manage_oauth;
|
|
819
|
+
var tokenButtonVariant = pluginUrl || showOwnerBox ? "text gray" : "text colored";
|
|
820
|
+
var defaultOpen = isOAuth ? pluginUrl ? "plugin" : "oauth" : "token";
|
|
821
|
+
var preExpanded = collapsed ? [] : [defaultOpen];
|
|
822
|
+
return /*#__PURE__*/_react.default.createElement(StyledConnectAgent, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
823
|
+
className: "connect-intro"
|
|
824
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.Header3, null, heading), /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "Let an AI agent work with your projects, tasks, notes, and time records. ActiveCollab works with any AI agent that supports MCP. Choose the way to connect that your agent supports."), showMemberHint ? /*#__PURE__*/_react.default.createElement(_Typography.Body2, {
|
|
825
|
+
color: "secondary"
|
|
826
|
+
}, "To connect AI agents by signing in, ask an Owner to turn on OAuth in Security settings.") : null), showOwnerBox ? /*#__PURE__*/_react.default.createElement(OAuthInfoBox, {
|
|
827
|
+
title: "Turn On OAuth for AI Agents"
|
|
828
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
829
|
+
className: "oauth-body"
|
|
830
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "With OAuth, people connect AI agents by signing in to ActiveCollab. Nobody has to copy or keep tokens, and each person can see and disconnect their own agents. OAuth also makes the ActiveCollab AI Plugin available."), /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
831
|
+
variant: "text colored"
|
|
832
|
+
}, "Set Up OAuth"))) : null, /*#__PURE__*/_react.default.createElement(_Accordion.Accordion, {
|
|
833
|
+
className: "connect-accordion",
|
|
834
|
+
allowZeroExpanded: true,
|
|
835
|
+
preExpanded: preExpanded
|
|
836
|
+
}, pluginUrl ? /*#__PURE__*/_react.default.createElement(_Accordion.AccordionItem, {
|
|
837
|
+
id: "plugin"
|
|
838
|
+
}, /*#__PURE__*/_react.default.createElement(ConnectItemHead, {
|
|
839
|
+
icon: /*#__PURE__*/_react.default.createElement(_Icons.PuzzleIcon, {
|
|
840
|
+
style: HEAD_ICON_STYLE
|
|
841
|
+
}),
|
|
842
|
+
title: "ActiveCollab AI Plugin",
|
|
843
|
+
chip: /*#__PURE__*/_react.default.createElement(_Chip.Chip, {
|
|
844
|
+
label: "Recommended",
|
|
845
|
+
size: "tiny",
|
|
846
|
+
shape: "soft",
|
|
847
|
+
tone: "primary"
|
|
848
|
+
}),
|
|
849
|
+
description: "Use this when your AI agent supports plugins. You get the connection, plus skills that teach the agent how ActiveCollab works."
|
|
850
|
+
}), /*#__PURE__*/_react.default.createElement(_Accordion.AccordionItemBody, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
851
|
+
className: "ca-body"
|
|
852
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "The plugin is a package that you add to your AI agent. It connects the agent to this account and teaches it how to work in ActiveCollab, so it makes fewer mistakes and needs fewer instructions from you."), /*#__PURE__*/_react.default.createElement("div", {
|
|
853
|
+
className: "ca-list"
|
|
854
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.Body2, {
|
|
855
|
+
weight: "bold"
|
|
856
|
+
}, "The plugin includes:"), /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, /*#__PURE__*/_react.default.createElement("ul", null, /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("b", null, "Connection to this account."), " You sign in once, with no token to copy."), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("b", null, "Use ActiveCollab skill."), " How to find projects, tasks, and people, and how to link to them."), /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("b", null, "ActiveCollab HTML Formatting skill."), " How to write task descriptions, comments, and notes that display correctly in ActiveCollab.")))), /*#__PURE__*/_react.default.createElement("div", {
|
|
857
|
+
className: "ca-list"
|
|
858
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.Body2, {
|
|
859
|
+
weight: "bold"
|
|
860
|
+
}, "Ask your agent to:"), /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, /*#__PURE__*/_react.default.createElement("ul", null, /*#__PURE__*/_react.default.createElement("li", null, "Tell you what changed since your last visit."), /*#__PURE__*/_react.default.createElement("li", null, "Prepare a weekly report for a project or for your team."), /*#__PURE__*/_react.default.createElement("li", null, "Turn meeting notes into tasks, and log the time you spent."), /*#__PURE__*/_react.default.createElement("li", null, "Implement a task, from the task description to a pull request that is ready for review.")))), /*#__PURE__*/_react.default.createElement(_Typography.Body2, {
|
|
861
|
+
color: "secondary"
|
|
862
|
+
}, "The plugin works in AI agents that support plugins, such as Claude, Codex, and GitHub Copilot. Agents without plugin support can connect without it."), /*#__PURE__*/_react.default.createElement("div", {
|
|
863
|
+
className: "ca-actions"
|
|
864
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
865
|
+
variant: "text colored",
|
|
866
|
+
onClick: function onClick() {
|
|
867
|
+
return window.open(pluginUrl, "_blank");
|
|
868
|
+
}
|
|
869
|
+
}, /*#__PURE__*/_react.default.createElement(_Icons.DownloadIcon, null), "Download Plugin"), /*#__PURE__*/_react.default.createElement(_Links.Link, {
|
|
870
|
+
variant: "text link-gray",
|
|
871
|
+
as: "a",
|
|
872
|
+
href: "#"
|
|
873
|
+
}, "How to Install the Plugin"))))) : null, isOAuth ? /*#__PURE__*/_react.default.createElement(_Accordion.AccordionItem, {
|
|
874
|
+
id: "oauth"
|
|
875
|
+
}, /*#__PURE__*/_react.default.createElement(ConnectItemHead, {
|
|
876
|
+
icon: /*#__PURE__*/_react.default.createElement(_Icons.InsertLinkIcon, {
|
|
877
|
+
style: HEAD_ICON_STYLE
|
|
878
|
+
}),
|
|
879
|
+
title: "Connect Without a Plugin",
|
|
880
|
+
description: "Use this when your AI agent supports MCP with sign-in (OAuth), but not plugins. You get the connection, without the skills."
|
|
881
|
+
}), /*#__PURE__*/_react.default.createElement(_Accordion.AccordionItemBody, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
882
|
+
className: "ca-body"
|
|
883
|
+
}, /*#__PURE__*/_react.default.createElement(ConnectWithoutPlugin, {
|
|
884
|
+
url: connection.api_url
|
|
885
|
+
})))) : null, /*#__PURE__*/_react.default.createElement(_Accordion.AccordionItem, {
|
|
886
|
+
id: "token"
|
|
887
|
+
}, /*#__PURE__*/_react.default.createElement(ConnectItemHead, {
|
|
888
|
+
icon: /*#__PURE__*/_react.default.createElement(_Icons.KeyIcon, {
|
|
889
|
+
style: HEAD_ICON_STYLE
|
|
890
|
+
}),
|
|
891
|
+
title: "Connect With a Token",
|
|
892
|
+
description: isOAuth ? "Use this when your AI agent does not support sign-in (OAuth) yet." : "Use this to connect any AI agent that supports MCP."
|
|
893
|
+
}), /*#__PURE__*/_react.default.createElement(_Accordion.AccordionItemBody, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
894
|
+
className: "ca-body"
|
|
895
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.Body2, null, "A token gives your AI agent access to ActiveCollab until you delete it. Keep it safe, and do not share it."), /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
896
|
+
variant: tokenButtonVariant,
|
|
897
|
+
onClick: onAddToken
|
|
898
|
+
}, "Add Token"))))));
|
|
899
|
+
};
|
|
670
900
|
|
|
671
901
|
/* ------------------------------------------------------------------ */
|
|
672
902
|
/* Page content with all flows */
|
|
673
903
|
/* ------------------------------------------------------------------ */
|
|
674
904
|
|
|
675
905
|
/**
|
|
676
|
-
* Everything under the MCP page header separator: the clients table
|
|
677
|
-
*
|
|
906
|
+
* Everything under the MCP page header separator: the clients table, the
|
|
907
|
+
* connect block, prompt examples, and the dialogs the page opens: Add MCP
|
|
678
908
|
* Client, Use Token, Delete Token, Disconnect Agent, Disconnect All
|
|
679
909
|
* Connections, and the OAuth access change confirmation.
|
|
680
910
|
*/
|
|
681
|
-
var McpIntegrationContent = exports.McpIntegrationContent = function McpIntegrationContent(
|
|
682
|
-
var initialTokens =
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
tokens = _useState12[0],
|
|
686
|
-
setTokens = _useState12[1];
|
|
687
|
-
var _useState13 = (0, _react.useState)(false),
|
|
911
|
+
var McpIntegrationContent = exports.McpIntegrationContent = function McpIntegrationContent(_ref16) {
|
|
912
|
+
var initialTokens = _ref16.initialTokens,
|
|
913
|
+
connection = _ref16.connection;
|
|
914
|
+
var _useState13 = (0, _react.useState)(initialTokens),
|
|
688
915
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
var _useState15 = (0, _react.useState)(
|
|
916
|
+
tokens = _useState14[0],
|
|
917
|
+
setTokens = _useState14[1];
|
|
918
|
+
var _useState15 = (0, _react.useState)(false),
|
|
692
919
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
693
|
-
|
|
694
|
-
|
|
920
|
+
addOpen = _useState16[0],
|
|
921
|
+
setAddOpen = _useState16[1];
|
|
695
922
|
var _useState17 = (0, _react.useState)(null),
|
|
696
923
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
697
|
-
|
|
698
|
-
|
|
924
|
+
useToken = _useState18[0],
|
|
925
|
+
setUseToken = _useState18[1];
|
|
699
926
|
var _useState19 = (0, _react.useState)(null),
|
|
700
927
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
701
|
-
|
|
702
|
-
|
|
928
|
+
deleteItem = _useState20[0],
|
|
929
|
+
setDeleteItem = _useState20[1];
|
|
703
930
|
var _useState21 = (0, _react.useState)(null),
|
|
704
931
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
705
|
-
|
|
706
|
-
|
|
932
|
+
disconnectAll = _useState22[0],
|
|
933
|
+
setDisconnectAll = _useState22[1];
|
|
934
|
+
var _useState23 = (0, _react.useState)(null),
|
|
935
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
936
|
+
pendingAccess = _useState24[0],
|
|
937
|
+
setPendingAccess = _useState24[1];
|
|
707
938
|
var removeTokens = function removeTokens(ids) {
|
|
708
939
|
return setTokens(function (rows) {
|
|
709
940
|
return rows.filter(function (row) {
|
|
@@ -756,19 +987,28 @@ var McpIntegrationContent = exports.McpIntegrationContent = function McpIntegrat
|
|
|
756
987
|
}).length : 0;
|
|
757
988
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, tokens.length ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(TokensTable, {
|
|
758
989
|
tokens: tokens,
|
|
759
|
-
onAddNew: function onAddNew() {
|
|
760
|
-
return setAddOpen(true);
|
|
761
|
-
},
|
|
762
990
|
onDelete: setDeleteItem,
|
|
763
991
|
onDisconnectAll: setDisconnectAll,
|
|
764
992
|
onUseToken: setUseToken,
|
|
765
|
-
onAccessChange: handleAccessChange
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
993
|
+
onAccessChange: handleAccessChange,
|
|
994
|
+
connection: connection,
|
|
995
|
+
onAddToken: function onAddToken() {
|
|
996
|
+
return setAddOpen(true);
|
|
997
|
+
}
|
|
998
|
+
}), /*#__PURE__*/_react.default.createElement(ConnectAgent, {
|
|
999
|
+
connection: connection,
|
|
1000
|
+
heading: "Connect Another AI Agent",
|
|
1001
|
+
collapsed: true,
|
|
1002
|
+
onAddToken: function onAddToken() {
|
|
1003
|
+
return setAddOpen(true);
|
|
1004
|
+
}
|
|
1005
|
+
}), /*#__PURE__*/_react.default.createElement(TipsAndExamples, null)) : /*#__PURE__*/_react.default.createElement(ConnectAgent, {
|
|
1006
|
+
connection: connection,
|
|
1007
|
+
heading: "Connect Your AI Agent",
|
|
1008
|
+
onAddToken: function onAddToken() {
|
|
769
1009
|
return setAddOpen(true);
|
|
770
1010
|
}
|
|
771
|
-
}
|
|
1011
|
+
}), addOpen ? /*#__PURE__*/_react.default.createElement(AddClientDialog, {
|
|
772
1012
|
open: addOpen,
|
|
773
1013
|
onClose: function onClose() {
|
|
774
1014
|
return setAddOpen(false);
|