@danainnovations/cortex-mcp 1.0.59 → 1.0.61
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/browser-47IR2CMB.js +8 -0
- package/dist/{chunk-DIHPZXVU.js → chunk-45BHTWCV.js} +12 -1
- package/dist/{chunk-DIHPZXVU.js.map → chunk-45BHTWCV.js.map} +1 -1
- package/dist/{chunk-WDD2YERC.js → chunk-JJURHODD.js} +13 -13
- package/dist/chunk-JJURHODD.js.map +1 -0
- package/dist/cli.js +2497 -1018
- package/dist/cli.js.map +1 -1
- package/dist/{constants-YJ6WYI46.js → constants-2D6W3HYY.js} +2 -2
- package/dist/index.d.ts +12 -12
- package/dist/index.js +142 -51
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/browser-6BYJNEZN.js +0 -8
- package/dist/chunk-WDD2YERC.js.map +0 -1
- /package/dist/{browser-6BYJNEZN.js.map → browser-47IR2CMB.js.map} +0 -0
- /package/dist/{constants-YJ6WYI46.js.map → constants-2D6W3HYY.js.map} +0 -0
|
@@ -41,6 +41,14 @@ function getCursorConfigPath() {
|
|
|
41
41
|
const home = getHomeDir();
|
|
42
42
|
return join(home, ".cursor", "mcp.json");
|
|
43
43
|
}
|
|
44
|
+
function getVSCodeMcpConfigPath() {
|
|
45
|
+
const home = getHomeDir();
|
|
46
|
+
return join(home, ".vscode", "mcp.json");
|
|
47
|
+
}
|
|
48
|
+
function getAntigravityConfigPath() {
|
|
49
|
+
const home = getHomeDir();
|
|
50
|
+
return join(home, ".gemini", "antigravity", "mcp_config.json");
|
|
51
|
+
}
|
|
44
52
|
function getCodexConfigPath() {
|
|
45
53
|
const home = getHomeDir();
|
|
46
54
|
return join(home, ".codex", "config.toml");
|
|
@@ -57,9 +65,12 @@ function openBrowser(url) {
|
|
|
57
65
|
|
|
58
66
|
export {
|
|
59
67
|
getHomeDir,
|
|
68
|
+
getPlatform,
|
|
60
69
|
getClaudeDesktopConfigPath,
|
|
61
70
|
getCursorConfigPath,
|
|
71
|
+
getVSCodeMcpConfigPath,
|
|
72
|
+
getAntigravityConfigPath,
|
|
62
73
|
getCodexConfigPath,
|
|
63
74
|
openBrowser
|
|
64
75
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-45BHTWCV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/browser.ts","../src/utils/platform.ts"],"sourcesContent":["import { exec } from \"node:child_process\";\nimport { getPlatform } from \"./platform.js\";\n\nexport function openBrowser(url: string): Promise<void> {\n return new Promise((resolve) => {\n const platform = getPlatform();\n const cmd =\n platform === \"macos\" ? \"open\" :\n platform === \"windows\" ? \"start\" :\n \"xdg-open\";\n exec(`${cmd} \"${url}\"`, () => resolve());\n });\n}\n","import { homedir, platform } from \"node:os\";\nimport { join } from \"node:path\";\n\n/** Get the user's home directory */\nexport function getHomeDir(): string {\n return homedir();\n}\n\n/** Get the current platform */\nexport function getPlatform(): \"macos\" | \"windows\" | \"linux\" {\n const p = platform();\n if (p === \"darwin\") return \"macos\";\n if (p === \"win32\") return \"windows\";\n return \"linux\";\n}\n\n/**\n * Get the Claude Desktop config file path for the current platform.\n */\nexport function getClaudeDesktopConfigPath(): string {\n const home = getHomeDir();\n const p = getPlatform();\n\n switch (p) {\n case \"macos\":\n return join(\n home,\n \"Library\",\n \"Application Support\",\n \"Claude\",\n \"claude_desktop_config.json\"\n );\n case \"windows\":\n return join(\n process.env.APPDATA || join(home, \"AppData\", \"Roaming\"),\n \"Claude\",\n \"claude_desktop_config.json\"\n );\n case \"linux\":\n return join(home, \".config\", \"Claude\", \"claude_desktop_config.json\");\n }\n}\n\n/**\n * Get the Cursor MCP config file path for the current platform.\n */\nexport function getCursorConfigPath(): string {\n const home = getHomeDir();\n return join(home, \".cursor\", \"mcp.json\");\n}\n\n/**\n * Get the
|
|
1
|
+
{"version":3,"sources":["../src/utils/browser.ts","../src/utils/platform.ts"],"sourcesContent":["import { exec } from \"node:child_process\";\nimport { getPlatform } from \"./platform.js\";\n\nexport function openBrowser(url: string): Promise<void> {\n return new Promise((resolve) => {\n const platform = getPlatform();\n const cmd =\n platform === \"macos\" ? \"open\" :\n platform === \"windows\" ? \"start\" :\n \"xdg-open\";\n exec(`${cmd} \"${url}\"`, () => resolve());\n });\n}\n","import { homedir, platform } from \"node:os\";\nimport { join } from \"node:path\";\n\n/** Get the user's home directory */\nexport function getHomeDir(): string {\n return homedir();\n}\n\n/** Get the current platform */\nexport function getPlatform(): \"macos\" | \"windows\" | \"linux\" {\n const p = platform();\n if (p === \"darwin\") return \"macos\";\n if (p === \"win32\") return \"windows\";\n return \"linux\";\n}\n\n/**\n * Get the Claude Desktop config file path for the current platform.\n */\nexport function getClaudeDesktopConfigPath(): string {\n const home = getHomeDir();\n const p = getPlatform();\n\n switch (p) {\n case \"macos\":\n return join(\n home,\n \"Library\",\n \"Application Support\",\n \"Claude\",\n \"claude_desktop_config.json\"\n );\n case \"windows\":\n return join(\n process.env.APPDATA || join(home, \"AppData\", \"Roaming\"),\n \"Claude\",\n \"claude_desktop_config.json\"\n );\n case \"linux\":\n return join(home, \".config\", \"Claude\", \"claude_desktop_config.json\");\n }\n}\n\n/**\n * Get the Cursor MCP config file path for the current platform.\n */\nexport function getCursorConfigPath(): string {\n const home = getHomeDir();\n return join(home, \".cursor\", \"mcp.json\");\n}\n\n/**\n * Get the VS Code MCP config file path for the current platform.\n */\nexport function getVSCodeMcpConfigPath(): string {\n const home = getHomeDir();\n return join(home, \".vscode\", \"mcp.json\");\n}\n\n/**\n * Get the Antigravity MCP config file path for the current platform.\n */\nexport function getAntigravityConfigPath(): string {\n const home = getHomeDir();\n return join(home, \".gemini\", \"antigravity\", \"mcp_config.json\");\n}\n\n/**\n * Get the Codex (OpenAI) config file path.\n * Shared by both Codex CLI and Codex IDE extension.\n */\nexport function getCodexConfigPath(): string {\n const home = getHomeDir();\n return join(home, \".codex\", \"config.toml\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|
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
var DEFAULT_SERVER_URL = "https://cortex-bice.vercel.app";
|
|
5
5
|
var PROTOCOL_VERSION = "2025-03-26";
|
|
6
6
|
var AVAILABLE_MCPS = [
|
|
7
|
+
{
|
|
8
|
+
name: "m365",
|
|
9
|
+
displayName: "Microsoft 365",
|
|
10
|
+
description: "Email, calendar, OneDrive, Teams, meetings, contacts, tasks, notes (33 tools)",
|
|
11
|
+
serverName: "cortex-m365",
|
|
12
|
+
authMode: "personal"
|
|
13
|
+
},
|
|
7
14
|
{
|
|
8
15
|
name: "asana",
|
|
9
16
|
displayName: "Asana",
|
|
@@ -33,11 +40,11 @@ var AVAILABLE_MCPS = [
|
|
|
33
40
|
authMode: "company"
|
|
34
41
|
},
|
|
35
42
|
{
|
|
36
|
-
name: "
|
|
37
|
-
displayName: "
|
|
38
|
-
description: "
|
|
39
|
-
serverName: "cortex-
|
|
40
|
-
authMode: "
|
|
43
|
+
name: "bestbuy",
|
|
44
|
+
displayName: "Best Buy",
|
|
45
|
+
description: "Product search, pricing, reviews, store locations (7 tools)",
|
|
46
|
+
serverName: "cortex-bestbuy",
|
|
47
|
+
authMode: "company"
|
|
41
48
|
},
|
|
42
49
|
{
|
|
43
50
|
name: "mailchimp",
|
|
@@ -74,13 +81,6 @@ var AVAILABLE_MCPS = [
|
|
|
74
81
|
description: "Workspaces, datasets, push data, DAX queries, reports, dashboards (14 tools)",
|
|
75
82
|
serverName: "cortex-powerbi",
|
|
76
83
|
authMode: "personal"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: "bestbuy",
|
|
80
|
-
displayName: "Best Buy",
|
|
81
|
-
description: "Product search, pricing, reviews, store locations (7 tools)",
|
|
82
|
-
serverName: "cortex-bestbuy",
|
|
83
|
-
authMode: "company"
|
|
84
84
|
}
|
|
85
85
|
];
|
|
86
86
|
var MCP_NAMES = AVAILABLE_MCPS.map((m) => m.name);
|
|
@@ -101,4 +101,4 @@ export {
|
|
|
101
101
|
CONFIG_FILE_NAME,
|
|
102
102
|
CREDENTIALS_FILE_NAME
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-JJURHODD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/constants.ts"],"sourcesContent":["/** Default Cortex server URL */\nexport const DEFAULT_SERVER_URL = \"https://cortex-bice.vercel.app\";\n\n/** MCP protocol version supported by Cortex (Streamable HTTP) */\nexport const PROTOCOL_VERSION = \"2025-03-26\";\n\n/** Available MCPs with their metadata */\nexport const AVAILABLE_MCPS = [\n {\n name: \"m365\",\n displayName: \"Microsoft 365\",\n description: \"Email, calendar, OneDrive, Teams, meetings, contacts, tasks, notes (33 tools)\",\n serverName: \"cortex-m365\",\n authMode: \"personal\" as const,\n },\n {\n name: \"asana\",\n displayName: \"Asana\",\n description: \"Projects, tasks, teams, workspaces (17 tools)\",\n serverName: \"cortex-asana\",\n authMode: \"personal\" as const,\n },\n {\n name: \"github\",\n displayName: \"GitHub\",\n description: \"Repos, PRs, issues, branches, code review (30 tools)\",\n serverName: \"cortex-github\",\n authMode: \"company\" as const,\n },\n {\n name: \"vercel\",\n displayName: \"Vercel\",\n description: \"Deployments, projects, env vars (15 tools)\",\n serverName: \"cortex-vercel\",\n authMode: \"company\" as const,\n },\n {\n name: \"supabase\",\n displayName: \"Supabase\",\n description: \"Database, migrations, edge functions (20+ tools)\",\n serverName: \"cortex-supabase\",\n authMode: \"company\" as const,\n },\n {\n name: \"bestbuy\",\n displayName: \"Best Buy\",\n description: \"Product search, pricing, reviews, store locations (7 tools)\",\n serverName: \"cortex-bestbuy\",\n authMode: \"company\" as const,\n },\n {\n name: \"mailchimp\",\n displayName: \"Mailchimp\",\n description: \"Audiences, contacts, campaigns, templates, analytics (28 tools)\",\n serverName: \"cortex-mailchimp\",\n authMode: \"personal\" as const,\n },\n {\n name: \"salesforce\",\n displayName: \"Salesforce\",\n description: \"CRM queries, records, reports, and org data (14 tools)\",\n serverName: \"cortex-salesforce\",\n authMode: \"personal\" as const,\n },\n {\n name: \"monday\",\n displayName: \"Monday.com\",\n description: \"Boards, items, groups, updates, workspaces (18 tools)\",\n serverName: \"cortex-monday\",\n authMode: \"personal\" as const,\n installUrl: \"https://auth.monday.com/oauth2/authorize?client_id=c8d2c70bd792a4c36c6f023c0b707517&response_type=install\",\n },\n {\n name: \"slack\",\n displayName: \"Slack\",\n description: \"Messaging, channels, search, reactions, bookmarks (22 tools)\",\n serverName: \"cortex-slack\",\n authMode: \"personal\" as const,\n },\n {\n name: \"powerbi\",\n displayName: \"Power BI\",\n description: \"Workspaces, datasets, push data, DAX queries, reports, dashboards (14 tools)\",\n serverName: \"cortex-powerbi\",\n authMode: \"personal\" as const,\n },\n] as const;\n\n/** All available MCP names */\nexport const MCP_NAMES: string[] = AVAILABLE_MCPS.map((m) => m.name);\n\n/** Default MCPs enabled on fresh setup */\nexport const DEFAULT_MCPS: string[] = [...MCP_NAMES];\n\n/** Shared API key embedded in the package (no user prompt needed) */\nexport const DEFAULT_API_KEY =\n \"ctx_07d37a81_9f7be06af38d04753090a4034f907a65ec06cd675ed26f65653898388e2d1709\";\n\n/** Config directory name */\nexport const CONFIG_DIR_NAME = \".cortex-mcp\";\n\n/** Config file name */\nexport const CONFIG_FILE_NAME = \"config.json\";\n\n/** Credentials file name (stores personal API key from login) */\nexport const CREDENTIALS_FILE_NAME = \"credentials.json\";\n"],"mappings":";;;AACO,IAAM,qBAAqB;AAG3B,IAAM,mBAAmB;AAGzB,IAAM,iBAAiB;AAAA,EAC5B;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,IACb,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,aAAa;AAAA,IACb,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,UAAU;AAAA,EACZ;AAAA,EACA;AAAA,IACE,M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