@danainnovations/cortex-mcp 1.0.92 → 1.0.94
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 +62 -18
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -0
- 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 = {
|
|
@@ -1622,6 +1632,8 @@ function configureClient(clientType, serverUrl, apiKey, mcps) {
|
|
|
1622
1632
|
return "Codex configured";
|
|
1623
1633
|
case "perplexity":
|
|
1624
1634
|
return configurePerplexity(serverUrl, apiKey, mcps);
|
|
1635
|
+
case "claude-ai":
|
|
1636
|
+
return configureClaudeAi(serverUrl, apiKey, mcps);
|
|
1625
1637
|
case "stdio":
|
|
1626
1638
|
return "Add this to your client config:\n\n" + generateStdioSnippet(apiKey);
|
|
1627
1639
|
}
|