@danainnovations/cortex-mcp 1.0.78 → 1.0.79
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 +11 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1218,7 +1218,7 @@ function getWizardHtml() {
|
|
|
1218
1218
|
resultEl.innerHTML = data.results.map(function(r) {
|
|
1219
1219
|
var html = '<div class="status ' + (r.success ? 'status-success' : 'status-error') + '">' +
|
|
1220
1220
|
'<span>' + (r.success ? '✓' : '✗') + '</span>' +
|
|
1221
|
-
'<span>' + escapeHtml(r.
|
|
1221
|
+
'<span>' + (r.success ? escapeHtml(r.message || 'Configured') : escapeHtml(r.client) + ': ' + (r.error || 'Failed')) + '</span>' +
|
|
1222
1222
|
'</div>';
|
|
1223
1223
|
// Show copyable snippet for stdio/OpenClaw and Perplexity instructions
|
|
1224
1224
|
if ((r.client === 'stdio' || r.client === 'perplexity') && r.success && r.message) {
|
|
@@ -1586,10 +1586,19 @@ function configureClaudeDesktop(_serverUrl, apiKey, _mcps) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
continue;
|
|
1588
1588
|
}
|
|
1589
|
+
try {
|
|
1590
|
+
const verify = JSON.parse(readFileSync(configPath, "utf-8"));
|
|
1591
|
+
if (!verify.mcpServers || !("cortex" in verify.mcpServers)) {
|
|
1592
|
+
throw new Error(`Wrote to ${configPath} but mcpServers.cortex not found after write`);
|
|
1593
|
+
}
|
|
1594
|
+
} catch (e) {
|
|
1595
|
+
if (e instanceof Error && e.message.includes("mcpServers.cortex not found")) throw e;
|
|
1596
|
+
throw new Error(`Failed to verify config at ${configPath}: ${e}`);
|
|
1597
|
+
}
|
|
1589
1598
|
return configPath;
|
|
1590
1599
|
}
|
|
1591
1600
|
throw new Error(
|
|
1592
|
-
|
|
1601
|
+
`Failed to write config to ${configPath}. Claude Desktop may be overwriting the file. Please close Claude Desktop completely (quit from the system tray), then re-run setup.`
|
|
1593
1602
|
);
|
|
1594
1603
|
}
|
|
1595
1604
|
function configureClaudeCode(serverUrl, apiKey, mcps) {
|