@danainnovations/cortex-mcp 1.0.90 → 1.0.92
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/cli.js +35 -13
- package/dist/cli.js.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -821,7 +821,7 @@ function getWizardHtml() {
|
|
|
821
821
|
<div id="conn-list" class="conn-list"></div>
|
|
822
822
|
<div class="btn-row">
|
|
823
823
|
<button class="btn btn-secondary" onclick="goToStep('clients')">Back</button>
|
|
824
|
-
<button class="btn btn-primary" onclick="
|
|
824
|
+
<button class="btn btn-primary" onclick="finishSetup()">Finish Setup</button>
|
|
825
825
|
</div>
|
|
826
826
|
</div>
|
|
827
827
|
</div>
|
|
@@ -902,7 +902,10 @@ function getWizardHtml() {
|
|
|
902
902
|
state.credentials = data.credentials;
|
|
903
903
|
state.availableMcps = data.availableMcps || [];
|
|
904
904
|
state.enabledMcps = data.enabledMcps || ['m365'];
|
|
905
|
-
|
|
905
|
+
if (state.enabledMcps.indexOf('sonance_brand') === -1) {
|
|
906
|
+
state.enabledMcps.push('sonance_brand');
|
|
907
|
+
}
|
|
908
|
+
state.selectedMcps = state.enabledMcps.slice();
|
|
906
909
|
state.detectedClients = data.detectedClients || [];
|
|
907
910
|
state.configuredClients = (data.config && data.config.configuredClients) || [];
|
|
908
911
|
} catch (err) {
|
|
@@ -1144,6 +1147,9 @@ function getWizardHtml() {
|
|
|
1144
1147
|
|
|
1145
1148
|
if (userData.mcps && userData.mcps.length > 0) {
|
|
1146
1149
|
state.enabledMcps = userData.mcps.map(function(m) { return m.name; });
|
|
1150
|
+
if (state.enabledMcps.indexOf('sonance_brand') === -1) {
|
|
1151
|
+
state.enabledMcps.push('sonance_brand');
|
|
1152
|
+
}
|
|
1147
1153
|
state.selectedMcps = state.enabledMcps.slice();
|
|
1148
1154
|
}
|
|
1149
1155
|
state.connections = connData.connections || [];
|
|
@@ -1193,7 +1199,8 @@ function getWizardHtml() {
|
|
|
1193
1199
|
function renderClientItem(client) {
|
|
1194
1200
|
var detected = client.detected;
|
|
1195
1201
|
var icon = CLIENT_ICONS[client.type] || '';
|
|
1196
|
-
var
|
|
1202
|
+
var isManual = client.type === 'perplexity' || client.type === 'stdio';
|
|
1203
|
+
var alreadyConfigured = !isManual && state.configuredClients.indexOf(client.type) !== -1;
|
|
1197
1204
|
var statusText = alreadyConfigured ? 'Configured' : (detected ? 'Detected' : 'Not found');
|
|
1198
1205
|
return (
|
|
1199
1206
|
'<label class="client-item' + (detected ? '' : ' disabled') +
|
|
@@ -1212,8 +1219,11 @@ function getWizardHtml() {
|
|
|
1212
1219
|
document.getElementById('btn-configure').disabled = false;
|
|
1213
1220
|
document.getElementById('btn-configure').textContent = 'Configure';
|
|
1214
1221
|
|
|
1215
|
-
// Pre-select already-configured clients
|
|
1216
|
-
|
|
1222
|
+
// Pre-select already-configured clients (exclude manual/additional ones)
|
|
1223
|
+
var manualClientTypes = ['perplexity', 'stdio'];
|
|
1224
|
+
state.selectedClients = state.configuredClients.filter(function(c) {
|
|
1225
|
+
return manualClientTypes.indexOf(c) === -1;
|
|
1226
|
+
});
|
|
1217
1227
|
|
|
1218
1228
|
// Split into auto-configured and manual-setup clients
|
|
1219
1229
|
var autoClients = state.detectedClients.filter(function(c) {
|
|
@@ -1482,12 +1492,20 @@ function getWizardHtml() {
|
|
|
1482
1492
|
// Server may already be closing
|
|
1483
1493
|
}
|
|
1484
1494
|
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
'<
|
|
1490
|
-
|
|
1495
|
+
// Show completion message in whatever step is currently active
|
|
1496
|
+
var activeStep = document.querySelector('.step.active');
|
|
1497
|
+
if (activeStep) {
|
|
1498
|
+
activeStep.querySelector('.card').innerHTML =
|
|
1499
|
+
'<div class="text-center">' +
|
|
1500
|
+
'<div class="success-circle"><span class="success-check">✓</span></div>' +
|
|
1501
|
+
'<h2>Setup Complete!</h2>' +
|
|
1502
|
+
'<p class="subtitle mt-2">You can close this tab. Restart your AI clients to see the new tools.</p>' +
|
|
1503
|
+
'<p class="subtitle mt-1" style="opacity: 0.6;">This window will close automatically.</p>' +
|
|
1504
|
+
'</div>';
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
// Auto-close the tab after a short delay
|
|
1508
|
+
setTimeout(function() { window.close(); }, 3000);
|
|
1491
1509
|
}
|
|
1492
1510
|
|
|
1493
1511
|
// \u2500\u2500 Helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
@@ -1982,8 +2000,12 @@ function configureClient(clientType, serverUrl, apiKey, mcps) {
|
|
|
1982
2000
|
return `Claude Desktop configured (${path})`;
|
|
1983
2001
|
}
|
|
1984
2002
|
case "claude-code":
|
|
1985
|
-
|
|
1986
|
-
|
|
2003
|
+
try {
|
|
2004
|
+
configureClaudeCode(serverUrl, apiKey, mcps);
|
|
2005
|
+
return "Claude Code configured";
|
|
2006
|
+
} catch {
|
|
2007
|
+
return "Claude Code \u2014 skipped (Cortex is already available via Claude Desktop config)";
|
|
2008
|
+
}
|
|
1987
2009
|
case "cursor":
|
|
1988
2010
|
configureCursor(serverUrl, apiKey, mcps);
|
|
1989
2011
|
return "Cursor configured";
|