@danainnovations/cortex-mcp 1.0.60 → 1.0.62

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.
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ openBrowser
4
+ } from "./chunk-AUMRZ53L.js";
5
+ export {
6
+ openBrowser
7
+ };
8
+ //# sourceMappingURL=browser-WFTDXNKP.js.map
@@ -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");
@@ -50,16 +58,19 @@ function getCodexConfigPath() {
50
58
  function openBrowser(url) {
51
59
  return new Promise((resolve) => {
52
60
  const platform2 = getPlatform();
53
- const cmd = platform2 === "macos" ? "open" : platform2 === "windows" ? "start" : "xdg-open";
54
- exec(`${cmd} "${url}"`, () => resolve());
61
+ const cmd = platform2 === "macos" ? `open "${url}"` : platform2 === "windows" ? `start "" "${url}"` : `xdg-open "${url}"`;
62
+ exec(cmd, () => resolve());
55
63
  });
56
64
  }
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-DIHPZXVU.js.map
76
+ //# sourceMappingURL=chunk-AUMRZ53L.js.map
@@ -0,0 +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 \"${url}\"` :\n platform === \"windows\" ? `start \"\" \"${url}\"` :\n `xdg-open \"${url}\"`;\n exec(cmd, () => 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\");\n}\n"],"mappings":";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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: "m365",
37
- displayName: "Microsoft 365",
38
- description: "Email, calendar, OneDrive, Teams, meetings, contacts, tasks, notes (33 tools)",
39
- serverName: "cortex-m365",
40
- authMode: "personal"
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-WDD2YERC.js.map
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,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,MAAM;AAAA,IACN,aAAa;AAAA,IACb,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,UAAU;AAAA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