@danainnovations/cortex-mcp 1.0.91 → 1.0.93
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 +72 -17
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ interface StdioServerOptions {
|
|
|
45
45
|
declare function startStdioServer(options: StdioServerOptions): Promise<void>;
|
|
46
46
|
|
|
47
47
|
/** Supported AI client types */
|
|
48
|
-
type ClientType = "claude-desktop" | "claude-code" | "cursor" | "vscode" | "antigravity" | "codex" | "perplexity" | "stdio";
|
|
48
|
+
type ClientType = "claude-desktop" | "claude-code" | "cursor" | "vscode" | "antigravity" | "codex" | "perplexity" | "stdio" | "claude-ai";
|
|
49
49
|
/** Stored configuration */
|
|
50
50
|
interface CortexMcpConfig {
|
|
51
51
|
version: number;
|
package/dist/index.js
CHANGED
|
@@ -1320,6 +1320,12 @@ function detectClients() {
|
|
|
1320
1320
|
configPath: null,
|
|
1321
1321
|
detected: getPlatform() === "macos" && existsSync3(perplexityDir)
|
|
1322
1322
|
});
|
|
1323
|
+
clients.push({
|
|
1324
|
+
type: "claude-ai",
|
|
1325
|
+
name: "Claude.ai & Mobile",
|
|
1326
|
+
configPath: null,
|
|
1327
|
+
detected: true
|
|
1328
|
+
});
|
|
1323
1329
|
clients.push({
|
|
1324
1330
|
type: "stdio",
|
|
1325
1331
|
name: "OpenClaw",
|
|
@@ -1580,6 +1586,10 @@ function configurePerplexity(serverUrl, _apiKey, mcps) {
|
|
|
1580
1586
|
}
|
|
1581
1587
|
return lines.join("\n");
|
|
1582
1588
|
}
|
|
1589
|
+
function configureClaudeAi(serverUrl, _apiKey, _mcps) {
|
|
1590
|
+
const url = `${serverUrl}/mcp/cortex`;
|
|
1591
|
+
return 'Add Cortex to Claude.ai & Mobile:\n\n1. Open claude.ai/settings/integrations\n2. Click "Add custom integration"\n3. Paste this URL: ' + url + "\n4. Click Add \u2014 Claude handles SSO authentication automatically\n\nOnce added, Cortex tools are available on claude.ai, Claude Desktop (web), and the Claude mobile app.";
|
|
1592
|
+
}
|
|
1583
1593
|
function generateStdioSnippet(_apiKey) {
|
|
1584
1594
|
const isWindowsTarget = getPlatform() === "windows" || isWSL();
|
|
1585
1595
|
const config = {
|
|
@@ -1602,8 +1612,12 @@ function configureClient(clientType, serverUrl, apiKey, mcps) {
|
|
|
1602
1612
|
return `Claude Desktop configured (${path})`;
|
|
1603
1613
|
}
|
|
1604
1614
|
case "claude-code":
|
|
1605
|
-
|
|
1606
|
-
|
|
1615
|
+
try {
|
|
1616
|
+
configureClaudeCode(serverUrl, apiKey, mcps);
|
|
1617
|
+
return "Claude Code configured";
|
|
1618
|
+
} catch {
|
|
1619
|
+
return "Claude Code \u2014 skipped (Cortex is already available via Claude Desktop config)";
|
|
1620
|
+
}
|
|
1607
1621
|
case "cursor":
|
|
1608
1622
|
configureCursor(serverUrl, apiKey, mcps);
|
|
1609
1623
|
return "Cursor configured";
|
|
@@ -1618,6 +1632,8 @@ function configureClient(clientType, serverUrl, apiKey, mcps) {
|
|
|
1618
1632
|
return "Codex configured";
|
|
1619
1633
|
case "perplexity":
|
|
1620
1634
|
return configurePerplexity(serverUrl, apiKey, mcps);
|
|
1635
|
+
case "claude-ai":
|
|
1636
|
+
return configureClaudeAi(serverUrl, apiKey, mcps);
|
|
1621
1637
|
case "stdio":
|
|
1622
1638
|
return "Add this to your client config:\n\n" + generateStdioSnippet(apiKey);
|
|
1623
1639
|
}
|