@danainnovations/cortex-mcp 1.0.78 → 1.0.80
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 +83 -29
- 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/index.js
CHANGED
|
@@ -1352,10 +1352,19 @@ function configureClaudeDesktop(_serverUrl, apiKey, _mcps) {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
continue;
|
|
1354
1354
|
}
|
|
1355
|
+
try {
|
|
1356
|
+
const verify = JSON.parse(readFileSync5(configPath, "utf-8"));
|
|
1357
|
+
if (!verify.mcpServers || !("cortex" in verify.mcpServers)) {
|
|
1358
|
+
throw new Error(`Wrote to ${configPath} but mcpServers.cortex not found after write`);
|
|
1359
|
+
}
|
|
1360
|
+
} catch (e) {
|
|
1361
|
+
if (e instanceof Error && e.message.includes("mcpServers.cortex not found")) throw e;
|
|
1362
|
+
throw new Error(`Failed to verify config at ${configPath}: ${e}`);
|
|
1363
|
+
}
|
|
1355
1364
|
return configPath;
|
|
1356
1365
|
}
|
|
1357
1366
|
throw new Error(
|
|
1358
|
-
|
|
1367
|
+
`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.`
|
|
1359
1368
|
);
|
|
1360
1369
|
}
|
|
1361
1370
|
function configureClaudeCode(serverUrl, apiKey, mcps) {
|