ls-mcp 1.9.0 → 1.9.1

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/bin/cli.cjs CHANGED
@@ -30,7 +30,7 @@ var import_node_util9 = require("util");
30
30
  // src/main.ts
31
31
  var import_promises2 = __toESM(require("fs/promises"), 1);
32
32
  var import_node_os2 = require("os");
33
- var import_node_path2 = __toESM(require("path"), 1);
33
+ var import_node_path3 = __toESM(require("path"), 1);
34
34
 
35
35
  // src/services/mcp-config-linter-service.ts
36
36
  var import_promises = __toESM(require("fs/promises"), 1);
@@ -504,97 +504,113 @@ var MCPServerManagerService = class {
504
504
  }
505
505
  };
506
506
 
507
+ // src/utils/os-paths.ts
508
+ var import_node_path2 = __toESM(require("path"), 1);
509
+ var appData = process.env.APPDATA || "";
510
+ var localAppData = process.env.LOCALAPPDATA || "";
511
+ var homeDir = process.env.HOME || "";
512
+ function getWindowsPaths() {
513
+ return {
514
+ claude: [
515
+ { filePath: import_node_path2.default.join(appData, "Claude", "claude_desktop_config.json"), type: "global" }
516
+ ],
517
+ claude_code: [
518
+ { filePath: ".mcp.json", type: "local" }
519
+ ],
520
+ cursor: [
521
+ { filePath: import_node_path2.default.join(homeDir, ".cursor", "mcp.json"), type: "global" },
522
+ { filePath: import_node_path2.default.join(".cursor", "mcp.json"), type: "local" }
523
+ ],
524
+ vscode: [
525
+ { filePath: import_node_path2.default.join(".vscode", "mcp.json"), type: "local" },
526
+ { filePath: import_node_path2.default.join(appData, "Code", "User", "settings.json"), type: "global" },
527
+ { filePath: import_node_path2.default.join(appData, "Code - Insiders", "User", "settings.json"), type: "global" },
528
+ { filePath: import_node_path2.default.join(appData, "Code", "User", "mcp.json"), type: "global" },
529
+ { filePath: import_node_path2.default.join(appData, "Code - Insiders", "User", "mcp.json"), type: "global" }
530
+ ],
531
+ cline: [
532
+ { filePath: import_node_path2.default.join(appData, "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" },
533
+ { filePath: import_node_path2.default.join(appData, "Code - Insiders", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" }
534
+ ],
535
+ windsurf: [
536
+ { filePath: import_node_path2.default.join(".codeium", "windsurf", "mcp_config.json"), type: "local" }
537
+ ],
538
+ roo: [
539
+ { filePath: import_node_path2.default.join(appData, "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" },
540
+ { filePath: import_node_path2.default.join(appData, "Code - Insiders", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" }
541
+ ],
542
+ "intellij-github-copilot": [
543
+ { filePath: import_node_path2.default.join(localAppData, "github-copilot", "intellij", "mcp.json"), type: "global" }
544
+ ],
545
+ junie: [
546
+ { filePath: import_node_path2.default.join(homeDir, ".junie", "mcp", "mcp.json"), type: "global" }
547
+ ],
548
+ zed: [
549
+ { filePath: import_node_path2.default.join(localAppData, "zed", "settings.json"), type: "global" },
550
+ { filePath: import_node_path2.default.join(".zed", "settings.json"), type: "local" }
551
+ ],
552
+ gemini: [
553
+ { filePath: import_node_path2.default.join(homeDir, ".gemini", "settings.json"), type: "global" },
554
+ { filePath: import_node_path2.default.join(".gemini", "settings.json"), type: "local" }
555
+ ]
556
+ };
557
+ }
558
+ __name(getWindowsPaths, "getWindowsPaths");
559
+ function getDarwinPaths() {
560
+ return {
561
+ claude: [
562
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Claude", "claude_desktop_config.json"), type: "global" }
563
+ ],
564
+ claude_code: [
565
+ { filePath: ".mcp.json", type: "local" }
566
+ ],
567
+ cursor: [
568
+ { filePath: import_node_path2.default.join(homeDir, ".cursor", "mcp.json"), type: "global" },
569
+ { filePath: import_node_path2.default.join(".cursor", "mcp.json"), type: "local" }
570
+ ],
571
+ vscode: [
572
+ { filePath: import_node_path2.default.join(".vscode", "mcp.json"), type: "local" },
573
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code", "User", "settings.json"), type: "global" },
574
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code", "User", "mcp.json"), type: "global" },
575
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "settings.json"), type: "global" },
576
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "mcp.json"), type: "global" }
577
+ ],
578
+ cline: [
579
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" },
580
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" }
581
+ ],
582
+ windsurf: [
583
+ { filePath: import_node_path2.default.join(".codeium", "windsurf", "mcp_config.json"), type: "local" }
584
+ ],
585
+ roo: [
586
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" },
587
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" }
588
+ ],
589
+ "intellij-github-copilot": [
590
+ { filePath: import_node_path2.default.join(homeDir, ".config", "github-copilot", "intellij", "mcp.json"), type: "global" }
591
+ ],
592
+ junie: [
593
+ { filePath: import_node_path2.default.join(homeDir, ".junie", "mcp", "mcp.json"), type: "global" },
594
+ { filePath: import_node_path2.default.join(".junie", "mcp", "mcp.json"), type: "local" }
595
+ ],
596
+ zed: [
597
+ { filePath: import_node_path2.default.join(homeDir, ".config", "zed", "settings.json"), type: "global" },
598
+ { filePath: import_node_path2.default.join(".zed", "settings.json"), type: "local" }
599
+ ],
600
+ gemini: [
601
+ { filePath: import_node_path2.default.join(homeDir, ".gemini", "settings.json"), type: "global" },
602
+ { filePath: import_node_path2.default.join(".gemini", "settings.json"), type: "local" }
603
+ ]
604
+ };
605
+ }
606
+ __name(getDarwinPaths, "getDarwinPaths");
607
+
507
608
  // src/main.ts
508
- var osSpecificPaths = {
509
- claude: [],
510
- claude_code: [],
511
- cursor: [],
512
- vscode: [],
513
- cline: [],
514
- windsurf: [],
515
- roo: [],
516
- "intellij-github-copilot": [],
517
- junie: []
518
- };
609
+ var osSpecificPaths = {};
519
610
  if ((0, import_node_os2.platform)() === "win32") {
520
- osSpecificPaths["claude"] = [
521
- { filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
522
- ];
523
- osSpecificPaths["claude_code"] = [
524
- { filePath: ".mcp.json", type: "local" }
525
- ];
526
- osSpecificPaths["cursor"] = [
527
- { filePath: "~\\.cursor\\mcp.json", type: "global" },
528
- { filePath: ".cursor\\mcp.json", type: "local" }
529
- ];
530
- osSpecificPaths["vscode"] = [
531
- { filePath: ".vscode\\mcp.json", type: "local" },
532
- { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
533
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\settings.json`, type: "global" },
534
- { filePath: `${process.env.APPDATA}\\Code\\User\\mcp.json`, type: "global" },
535
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\mcp.json`, type: "global" }
536
- ];
537
- osSpecificPaths["cline"] = [
538
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
539
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" }
540
- ];
541
- osSpecificPaths["windsurf"] = [
542
- { filePath: ".codeium\\windsurf\\mcp_config.json", type: "local" }
543
- ];
544
- osSpecificPaths["roo"] = [
545
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
546
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
547
- ];
548
- osSpecificPaths["intellij-github-copilot"] = [
549
- { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
550
- ];
551
- osSpecificPaths["junie"] = [
552
- { filePath: "~\\.junie\\mcp\\mcp.json", type: "global" }
553
- ];
554
- osSpecificPaths["zed"] = [
555
- { filePath: `${process.env.LOCALAPPDATA}\\zed\\settings.json`, type: "global" },
556
- { filePath: ".zed\\settings.json", type: "local" }
557
- ];
611
+ osSpecificPaths = getWindowsPaths();
558
612
  } else {
559
- osSpecificPaths["claude"] = [
560
- { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
561
- ];
562
- osSpecificPaths["claude_code"] = [
563
- { filePath: ".mcp.json", type: "local" }
564
- ];
565
- osSpecificPaths["cursor"] = [
566
- { filePath: "~/.cursor/mcp.json", type: "global" },
567
- { filePath: ".cursor/mcp.json", type: "local" }
568
- ];
569
- osSpecificPaths["vscode"] = [
570
- { filePath: ".vscode/mcp.json", type: "local" },
571
- { filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
572
- { filePath: "~/Library/Application Support/Code/User/mcp.json", type: "global" },
573
- { filePath: "~/Library/Application Support/Code - Insiders/User/settings.json", type: "global" },
574
- { filePath: "~/Library/Application Support/Code - Insiders/User/mcp.json", type: "global" }
575
- ];
576
- osSpecificPaths["cline"] = [
577
- { filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
578
- { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" }
579
- ];
580
- osSpecificPaths["windsurf"] = [
581
- { filePath: ".codeium/windsurf/mcp_config.json", type: "local" }
582
- ];
583
- osSpecificPaths["roo"] = [
584
- { filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
585
- { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
586
- ];
587
- osSpecificPaths["intellij-github-copilot"] = [
588
- { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
589
- ];
590
- osSpecificPaths["junie"] = [
591
- { filePath: "~/.junie/mcp/mcp.json", type: "global" },
592
- { filePath: ".junie/mcp/mcp.json", type: "local" }
593
- ];
594
- osSpecificPaths["zed"] = [
595
- { filePath: "~/.config/zed/settings.json", type: "global" },
596
- { filePath: ".zed/settings.json", type: "local" }
597
- ];
613
+ osSpecificPaths = getDarwinPaths();
598
614
  }
599
615
  var MCPFiles = class {
600
616
  static {
@@ -650,6 +666,11 @@ var MCPFiles = class {
650
666
  name: "zed",
651
667
  friendlyName: "Zed",
652
668
  paths: osSpecificPaths["zed"]
669
+ },
670
+ gemini: {
671
+ name: "gemini-cli",
672
+ friendlyName: "Gemini CLI",
673
+ paths: osSpecificPaths.gemini
653
674
  }
654
675
  };
655
676
  constructor(mcpFilePathGroups) {
@@ -668,7 +689,7 @@ var MCPFiles = class {
668
689
  const uniqueFilePaths = /* @__PURE__ */ new Set();
669
690
  for (const filePathData of clientsGroup.paths) {
670
691
  const resolvedPath = filePathData.filePath.replace("~", process.env.HOME || "");
671
- const absolutePath = import_node_path2.default.resolve(resolvedPath);
692
+ const absolutePath = import_node_path3.default.resolve(resolvedPath);
672
693
  if (uniqueFilePaths.has(absolutePath)) {
673
694
  continue;
674
695
  }
package/dist/bin/cli.mjs CHANGED
@@ -8,7 +8,7 @@ import { styleText as styleText9 } from "util";
8
8
  // src/main.ts
9
9
  import fs2 from "fs/promises";
10
10
  import { platform as platform2 } from "os";
11
- import path2 from "path";
11
+ import path3 from "path";
12
12
 
13
13
  // src/services/mcp-config-linter-service.ts
14
14
  import fs from "fs/promises";
@@ -482,97 +482,113 @@ var MCPServerManagerService = class {
482
482
  }
483
483
  };
484
484
 
485
+ // src/utils/os-paths.ts
486
+ import path2 from "path";
487
+ var appData = process.env.APPDATA || "";
488
+ var localAppData = process.env.LOCALAPPDATA || "";
489
+ var homeDir = process.env.HOME || "";
490
+ function getWindowsPaths() {
491
+ return {
492
+ claude: [
493
+ { filePath: path2.join(appData, "Claude", "claude_desktop_config.json"), type: "global" }
494
+ ],
495
+ claude_code: [
496
+ { filePath: ".mcp.json", type: "local" }
497
+ ],
498
+ cursor: [
499
+ { filePath: path2.join(homeDir, ".cursor", "mcp.json"), type: "global" },
500
+ { filePath: path2.join(".cursor", "mcp.json"), type: "local" }
501
+ ],
502
+ vscode: [
503
+ { filePath: path2.join(".vscode", "mcp.json"), type: "local" },
504
+ { filePath: path2.join(appData, "Code", "User", "settings.json"), type: "global" },
505
+ { filePath: path2.join(appData, "Code - Insiders", "User", "settings.json"), type: "global" },
506
+ { filePath: path2.join(appData, "Code", "User", "mcp.json"), type: "global" },
507
+ { filePath: path2.join(appData, "Code - Insiders", "User", "mcp.json"), type: "global" }
508
+ ],
509
+ cline: [
510
+ { filePath: path2.join(appData, "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" },
511
+ { filePath: path2.join(appData, "Code - Insiders", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" }
512
+ ],
513
+ windsurf: [
514
+ { filePath: path2.join(".codeium", "windsurf", "mcp_config.json"), type: "local" }
515
+ ],
516
+ roo: [
517
+ { filePath: path2.join(appData, "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" },
518
+ { filePath: path2.join(appData, "Code - Insiders", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" }
519
+ ],
520
+ "intellij-github-copilot": [
521
+ { filePath: path2.join(localAppData, "github-copilot", "intellij", "mcp.json"), type: "global" }
522
+ ],
523
+ junie: [
524
+ { filePath: path2.join(homeDir, ".junie", "mcp", "mcp.json"), type: "global" }
525
+ ],
526
+ zed: [
527
+ { filePath: path2.join(localAppData, "zed", "settings.json"), type: "global" },
528
+ { filePath: path2.join(".zed", "settings.json"), type: "local" }
529
+ ],
530
+ gemini: [
531
+ { filePath: path2.join(homeDir, ".gemini", "settings.json"), type: "global" },
532
+ { filePath: path2.join(".gemini", "settings.json"), type: "local" }
533
+ ]
534
+ };
535
+ }
536
+ __name(getWindowsPaths, "getWindowsPaths");
537
+ function getDarwinPaths() {
538
+ return {
539
+ claude: [
540
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Claude", "claude_desktop_config.json"), type: "global" }
541
+ ],
542
+ claude_code: [
543
+ { filePath: ".mcp.json", type: "local" }
544
+ ],
545
+ cursor: [
546
+ { filePath: path2.join(homeDir, ".cursor", "mcp.json"), type: "global" },
547
+ { filePath: path2.join(".cursor", "mcp.json"), type: "local" }
548
+ ],
549
+ vscode: [
550
+ { filePath: path2.join(".vscode", "mcp.json"), type: "local" },
551
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code", "User", "settings.json"), type: "global" },
552
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code", "User", "mcp.json"), type: "global" },
553
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "settings.json"), type: "global" },
554
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "mcp.json"), type: "global" }
555
+ ],
556
+ cline: [
557
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" },
558
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" }
559
+ ],
560
+ windsurf: [
561
+ { filePath: path2.join(".codeium", "windsurf", "mcp_config.json"), type: "local" }
562
+ ],
563
+ roo: [
564
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" },
565
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" }
566
+ ],
567
+ "intellij-github-copilot": [
568
+ { filePath: path2.join(homeDir, ".config", "github-copilot", "intellij", "mcp.json"), type: "global" }
569
+ ],
570
+ junie: [
571
+ { filePath: path2.join(homeDir, ".junie", "mcp", "mcp.json"), type: "global" },
572
+ { filePath: path2.join(".junie", "mcp", "mcp.json"), type: "local" }
573
+ ],
574
+ zed: [
575
+ { filePath: path2.join(homeDir, ".config", "zed", "settings.json"), type: "global" },
576
+ { filePath: path2.join(".zed", "settings.json"), type: "local" }
577
+ ],
578
+ gemini: [
579
+ { filePath: path2.join(homeDir, ".gemini", "settings.json"), type: "global" },
580
+ { filePath: path2.join(".gemini", "settings.json"), type: "local" }
581
+ ]
582
+ };
583
+ }
584
+ __name(getDarwinPaths, "getDarwinPaths");
585
+
485
586
  // src/main.ts
486
- var osSpecificPaths = {
487
- claude: [],
488
- claude_code: [],
489
- cursor: [],
490
- vscode: [],
491
- cline: [],
492
- windsurf: [],
493
- roo: [],
494
- "intellij-github-copilot": [],
495
- junie: []
496
- };
587
+ var osSpecificPaths = {};
497
588
  if (platform2() === "win32") {
498
- osSpecificPaths["claude"] = [
499
- { filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
500
- ];
501
- osSpecificPaths["claude_code"] = [
502
- { filePath: ".mcp.json", type: "local" }
503
- ];
504
- osSpecificPaths["cursor"] = [
505
- { filePath: "~\\.cursor\\mcp.json", type: "global" },
506
- { filePath: ".cursor\\mcp.json", type: "local" }
507
- ];
508
- osSpecificPaths["vscode"] = [
509
- { filePath: ".vscode\\mcp.json", type: "local" },
510
- { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
511
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\settings.json`, type: "global" },
512
- { filePath: `${process.env.APPDATA}\\Code\\User\\mcp.json`, type: "global" },
513
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\mcp.json`, type: "global" }
514
- ];
515
- osSpecificPaths["cline"] = [
516
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
517
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" }
518
- ];
519
- osSpecificPaths["windsurf"] = [
520
- { filePath: ".codeium\\windsurf\\mcp_config.json", type: "local" }
521
- ];
522
- osSpecificPaths["roo"] = [
523
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
524
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
525
- ];
526
- osSpecificPaths["intellij-github-copilot"] = [
527
- { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
528
- ];
529
- osSpecificPaths["junie"] = [
530
- { filePath: "~\\.junie\\mcp\\mcp.json", type: "global" }
531
- ];
532
- osSpecificPaths["zed"] = [
533
- { filePath: `${process.env.LOCALAPPDATA}\\zed\\settings.json`, type: "global" },
534
- { filePath: ".zed\\settings.json", type: "local" }
535
- ];
589
+ osSpecificPaths = getWindowsPaths();
536
590
  } else {
537
- osSpecificPaths["claude"] = [
538
- { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
539
- ];
540
- osSpecificPaths["claude_code"] = [
541
- { filePath: ".mcp.json", type: "local" }
542
- ];
543
- osSpecificPaths["cursor"] = [
544
- { filePath: "~/.cursor/mcp.json", type: "global" },
545
- { filePath: ".cursor/mcp.json", type: "local" }
546
- ];
547
- osSpecificPaths["vscode"] = [
548
- { filePath: ".vscode/mcp.json", type: "local" },
549
- { filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
550
- { filePath: "~/Library/Application Support/Code/User/mcp.json", type: "global" },
551
- { filePath: "~/Library/Application Support/Code - Insiders/User/settings.json", type: "global" },
552
- { filePath: "~/Library/Application Support/Code - Insiders/User/mcp.json", type: "global" }
553
- ];
554
- osSpecificPaths["cline"] = [
555
- { filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
556
- { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" }
557
- ];
558
- osSpecificPaths["windsurf"] = [
559
- { filePath: ".codeium/windsurf/mcp_config.json", type: "local" }
560
- ];
561
- osSpecificPaths["roo"] = [
562
- { filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
563
- { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
564
- ];
565
- osSpecificPaths["intellij-github-copilot"] = [
566
- { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
567
- ];
568
- osSpecificPaths["junie"] = [
569
- { filePath: "~/.junie/mcp/mcp.json", type: "global" },
570
- { filePath: ".junie/mcp/mcp.json", type: "local" }
571
- ];
572
- osSpecificPaths["zed"] = [
573
- { filePath: "~/.config/zed/settings.json", type: "global" },
574
- { filePath: ".zed/settings.json", type: "local" }
575
- ];
591
+ osSpecificPaths = getDarwinPaths();
576
592
  }
577
593
  var MCPFiles = class {
578
594
  static {
@@ -628,6 +644,11 @@ var MCPFiles = class {
628
644
  name: "zed",
629
645
  friendlyName: "Zed",
630
646
  paths: osSpecificPaths["zed"]
647
+ },
648
+ gemini: {
649
+ name: "gemini-cli",
650
+ friendlyName: "Gemini CLI",
651
+ paths: osSpecificPaths.gemini
631
652
  }
632
653
  };
633
654
  constructor(mcpFilePathGroups) {
@@ -646,7 +667,7 @@ var MCPFiles = class {
646
667
  const uniqueFilePaths = /* @__PURE__ */ new Set();
647
668
  for (const filePathData of clientsGroup.paths) {
648
669
  const resolvedPath = filePathData.filePath.replace("~", process.env.HOME || "");
649
- const absolutePath = path2.resolve(resolvedPath);
670
+ const absolutePath = path3.resolve(resolvedPath);
650
671
  if (uniqueFilePaths.has(absolutePath)) {
651
672
  continue;
652
673
  }
package/dist/main.cjs CHANGED
@@ -36,7 +36,7 @@ __export(main_exports, {
36
36
  module.exports = __toCommonJS(main_exports);
37
37
  var import_promises2 = __toESM(require("fs/promises"), 1);
38
38
  var import_node_os2 = require("os");
39
- var import_node_path2 = __toESM(require("path"), 1);
39
+ var import_node_path3 = __toESM(require("path"), 1);
40
40
 
41
41
  // src/services/mcp-config-linter-service.ts
42
42
  var import_promises = __toESM(require("fs/promises"), 1);
@@ -510,97 +510,113 @@ var MCPServerManagerService = class {
510
510
  }
511
511
  };
512
512
 
513
+ // src/utils/os-paths.ts
514
+ var import_node_path2 = __toESM(require("path"), 1);
515
+ var appData = process.env.APPDATA || "";
516
+ var localAppData = process.env.LOCALAPPDATA || "";
517
+ var homeDir = process.env.HOME || "";
518
+ function getWindowsPaths() {
519
+ return {
520
+ claude: [
521
+ { filePath: import_node_path2.default.join(appData, "Claude", "claude_desktop_config.json"), type: "global" }
522
+ ],
523
+ claude_code: [
524
+ { filePath: ".mcp.json", type: "local" }
525
+ ],
526
+ cursor: [
527
+ { filePath: import_node_path2.default.join(homeDir, ".cursor", "mcp.json"), type: "global" },
528
+ { filePath: import_node_path2.default.join(".cursor", "mcp.json"), type: "local" }
529
+ ],
530
+ vscode: [
531
+ { filePath: import_node_path2.default.join(".vscode", "mcp.json"), type: "local" },
532
+ { filePath: import_node_path2.default.join(appData, "Code", "User", "settings.json"), type: "global" },
533
+ { filePath: import_node_path2.default.join(appData, "Code - Insiders", "User", "settings.json"), type: "global" },
534
+ { filePath: import_node_path2.default.join(appData, "Code", "User", "mcp.json"), type: "global" },
535
+ { filePath: import_node_path2.default.join(appData, "Code - Insiders", "User", "mcp.json"), type: "global" }
536
+ ],
537
+ cline: [
538
+ { filePath: import_node_path2.default.join(appData, "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" },
539
+ { filePath: import_node_path2.default.join(appData, "Code - Insiders", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" }
540
+ ],
541
+ windsurf: [
542
+ { filePath: import_node_path2.default.join(".codeium", "windsurf", "mcp_config.json"), type: "local" }
543
+ ],
544
+ roo: [
545
+ { filePath: import_node_path2.default.join(appData, "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" },
546
+ { filePath: import_node_path2.default.join(appData, "Code - Insiders", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" }
547
+ ],
548
+ "intellij-github-copilot": [
549
+ { filePath: import_node_path2.default.join(localAppData, "github-copilot", "intellij", "mcp.json"), type: "global" }
550
+ ],
551
+ junie: [
552
+ { filePath: import_node_path2.default.join(homeDir, ".junie", "mcp", "mcp.json"), type: "global" }
553
+ ],
554
+ zed: [
555
+ { filePath: import_node_path2.default.join(localAppData, "zed", "settings.json"), type: "global" },
556
+ { filePath: import_node_path2.default.join(".zed", "settings.json"), type: "local" }
557
+ ],
558
+ gemini: [
559
+ { filePath: import_node_path2.default.join(homeDir, ".gemini", "settings.json"), type: "global" },
560
+ { filePath: import_node_path2.default.join(".gemini", "settings.json"), type: "local" }
561
+ ]
562
+ };
563
+ }
564
+ __name(getWindowsPaths, "getWindowsPaths");
565
+ function getDarwinPaths() {
566
+ return {
567
+ claude: [
568
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Claude", "claude_desktop_config.json"), type: "global" }
569
+ ],
570
+ claude_code: [
571
+ { filePath: ".mcp.json", type: "local" }
572
+ ],
573
+ cursor: [
574
+ { filePath: import_node_path2.default.join(homeDir, ".cursor", "mcp.json"), type: "global" },
575
+ { filePath: import_node_path2.default.join(".cursor", "mcp.json"), type: "local" }
576
+ ],
577
+ vscode: [
578
+ { filePath: import_node_path2.default.join(".vscode", "mcp.json"), type: "local" },
579
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code", "User", "settings.json"), type: "global" },
580
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code", "User", "mcp.json"), type: "global" },
581
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "settings.json"), type: "global" },
582
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "mcp.json"), type: "global" }
583
+ ],
584
+ cline: [
585
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" },
586
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" }
587
+ ],
588
+ windsurf: [
589
+ { filePath: import_node_path2.default.join(".codeium", "windsurf", "mcp_config.json"), type: "local" }
590
+ ],
591
+ roo: [
592
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" },
593
+ { filePath: import_node_path2.default.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" }
594
+ ],
595
+ "intellij-github-copilot": [
596
+ { filePath: import_node_path2.default.join(homeDir, ".config", "github-copilot", "intellij", "mcp.json"), type: "global" }
597
+ ],
598
+ junie: [
599
+ { filePath: import_node_path2.default.join(homeDir, ".junie", "mcp", "mcp.json"), type: "global" },
600
+ { filePath: import_node_path2.default.join(".junie", "mcp", "mcp.json"), type: "local" }
601
+ ],
602
+ zed: [
603
+ { filePath: import_node_path2.default.join(homeDir, ".config", "zed", "settings.json"), type: "global" },
604
+ { filePath: import_node_path2.default.join(".zed", "settings.json"), type: "local" }
605
+ ],
606
+ gemini: [
607
+ { filePath: import_node_path2.default.join(homeDir, ".gemini", "settings.json"), type: "global" },
608
+ { filePath: import_node_path2.default.join(".gemini", "settings.json"), type: "local" }
609
+ ]
610
+ };
611
+ }
612
+ __name(getDarwinPaths, "getDarwinPaths");
613
+
513
614
  // src/main.ts
514
- var osSpecificPaths = {
515
- claude: [],
516
- claude_code: [],
517
- cursor: [],
518
- vscode: [],
519
- cline: [],
520
- windsurf: [],
521
- roo: [],
522
- "intellij-github-copilot": [],
523
- junie: []
524
- };
615
+ var osSpecificPaths = {};
525
616
  if ((0, import_node_os2.platform)() === "win32") {
526
- osSpecificPaths["claude"] = [
527
- { filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
528
- ];
529
- osSpecificPaths["claude_code"] = [
530
- { filePath: ".mcp.json", type: "local" }
531
- ];
532
- osSpecificPaths["cursor"] = [
533
- { filePath: "~\\.cursor\\mcp.json", type: "global" },
534
- { filePath: ".cursor\\mcp.json", type: "local" }
535
- ];
536
- osSpecificPaths["vscode"] = [
537
- { filePath: ".vscode\\mcp.json", type: "local" },
538
- { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
539
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\settings.json`, type: "global" },
540
- { filePath: `${process.env.APPDATA}\\Code\\User\\mcp.json`, type: "global" },
541
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\mcp.json`, type: "global" }
542
- ];
543
- osSpecificPaths["cline"] = [
544
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
545
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" }
546
- ];
547
- osSpecificPaths["windsurf"] = [
548
- { filePath: ".codeium\\windsurf\\mcp_config.json", type: "local" }
549
- ];
550
- osSpecificPaths["roo"] = [
551
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
552
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
553
- ];
554
- osSpecificPaths["intellij-github-copilot"] = [
555
- { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
556
- ];
557
- osSpecificPaths["junie"] = [
558
- { filePath: "~\\.junie\\mcp\\mcp.json", type: "global" }
559
- ];
560
- osSpecificPaths["zed"] = [
561
- { filePath: `${process.env.LOCALAPPDATA}\\zed\\settings.json`, type: "global" },
562
- { filePath: ".zed\\settings.json", type: "local" }
563
- ];
617
+ osSpecificPaths = getWindowsPaths();
564
618
  } else {
565
- osSpecificPaths["claude"] = [
566
- { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
567
- ];
568
- osSpecificPaths["claude_code"] = [
569
- { filePath: ".mcp.json", type: "local" }
570
- ];
571
- osSpecificPaths["cursor"] = [
572
- { filePath: "~/.cursor/mcp.json", type: "global" },
573
- { filePath: ".cursor/mcp.json", type: "local" }
574
- ];
575
- osSpecificPaths["vscode"] = [
576
- { filePath: ".vscode/mcp.json", type: "local" },
577
- { filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
578
- { filePath: "~/Library/Application Support/Code/User/mcp.json", type: "global" },
579
- { filePath: "~/Library/Application Support/Code - Insiders/User/settings.json", type: "global" },
580
- { filePath: "~/Library/Application Support/Code - Insiders/User/mcp.json", type: "global" }
581
- ];
582
- osSpecificPaths["cline"] = [
583
- { filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
584
- { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" }
585
- ];
586
- osSpecificPaths["windsurf"] = [
587
- { filePath: ".codeium/windsurf/mcp_config.json", type: "local" }
588
- ];
589
- osSpecificPaths["roo"] = [
590
- { filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
591
- { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
592
- ];
593
- osSpecificPaths["intellij-github-copilot"] = [
594
- { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
595
- ];
596
- osSpecificPaths["junie"] = [
597
- { filePath: "~/.junie/mcp/mcp.json", type: "global" },
598
- { filePath: ".junie/mcp/mcp.json", type: "local" }
599
- ];
600
- osSpecificPaths["zed"] = [
601
- { filePath: "~/.config/zed/settings.json", type: "global" },
602
- { filePath: ".zed/settings.json", type: "local" }
603
- ];
619
+ osSpecificPaths = getDarwinPaths();
604
620
  }
605
621
  var MCPFiles = class {
606
622
  static {
@@ -656,6 +672,11 @@ var MCPFiles = class {
656
672
  name: "zed",
657
673
  friendlyName: "Zed",
658
674
  paths: osSpecificPaths["zed"]
675
+ },
676
+ gemini: {
677
+ name: "gemini-cli",
678
+ friendlyName: "Gemini CLI",
679
+ paths: osSpecificPaths.gemini
659
680
  }
660
681
  };
661
682
  constructor(mcpFilePathGroups) {
@@ -674,7 +695,7 @@ var MCPFiles = class {
674
695
  const uniqueFilePaths = /* @__PURE__ */ new Set();
675
696
  for (const filePathData of clientsGroup.paths) {
676
697
  const resolvedPath = filePathData.filePath.replace("~", process.env.HOME || "");
677
- const absolutePath = import_node_path2.default.resolve(resolvedPath);
698
+ const absolutePath = import_node_path3.default.resolve(resolvedPath);
678
699
  if (uniqueFilePaths.has(absolutePath)) {
679
700
  continue;
680
701
  }
package/dist/main.d.cts CHANGED
@@ -32,6 +32,7 @@ interface MCPFileGroupsResult {
32
32
  }
33
33
  type MCPFilePathGroupsRecord = Record<string, MCPFileGroups>;
34
34
  type MCPFileGroupsResultRecord = Record<string, MCPFileGroupsResult>;
35
+
35
36
  declare class MCPFiles {
36
37
  private mcpFilePathGroups;
37
38
  constructor(mcpFilePathGroups?: MCPFilePathGroupsRecord);
package/dist/main.d.ts CHANGED
@@ -32,6 +32,7 @@ interface MCPFileGroupsResult {
32
32
  }
33
33
  type MCPFilePathGroupsRecord = Record<string, MCPFileGroups>;
34
34
  type MCPFileGroupsResultRecord = Record<string, MCPFileGroupsResult>;
35
+
35
36
  declare class MCPFiles {
36
37
  private mcpFilePathGroups;
37
38
  constructor(mcpFilePathGroups?: MCPFilePathGroupsRecord);
package/dist/main.mjs CHANGED
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
4
4
  // src/main.ts
5
5
  import fs2 from "fs/promises";
6
6
  import { platform as platform2 } from "os";
7
- import path2 from "path";
7
+ import path3 from "path";
8
8
 
9
9
  // src/services/mcp-config-linter-service.ts
10
10
  import fs from "fs/promises";
@@ -478,97 +478,113 @@ var MCPServerManagerService = class {
478
478
  }
479
479
  };
480
480
 
481
+ // src/utils/os-paths.ts
482
+ import path2 from "path";
483
+ var appData = process.env.APPDATA || "";
484
+ var localAppData = process.env.LOCALAPPDATA || "";
485
+ var homeDir = process.env.HOME || "";
486
+ function getWindowsPaths() {
487
+ return {
488
+ claude: [
489
+ { filePath: path2.join(appData, "Claude", "claude_desktop_config.json"), type: "global" }
490
+ ],
491
+ claude_code: [
492
+ { filePath: ".mcp.json", type: "local" }
493
+ ],
494
+ cursor: [
495
+ { filePath: path2.join(homeDir, ".cursor", "mcp.json"), type: "global" },
496
+ { filePath: path2.join(".cursor", "mcp.json"), type: "local" }
497
+ ],
498
+ vscode: [
499
+ { filePath: path2.join(".vscode", "mcp.json"), type: "local" },
500
+ { filePath: path2.join(appData, "Code", "User", "settings.json"), type: "global" },
501
+ { filePath: path2.join(appData, "Code - Insiders", "User", "settings.json"), type: "global" },
502
+ { filePath: path2.join(appData, "Code", "User", "mcp.json"), type: "global" },
503
+ { filePath: path2.join(appData, "Code - Insiders", "User", "mcp.json"), type: "global" }
504
+ ],
505
+ cline: [
506
+ { filePath: path2.join(appData, "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" },
507
+ { filePath: path2.join(appData, "Code - Insiders", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" }
508
+ ],
509
+ windsurf: [
510
+ { filePath: path2.join(".codeium", "windsurf", "mcp_config.json"), type: "local" }
511
+ ],
512
+ roo: [
513
+ { filePath: path2.join(appData, "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" },
514
+ { filePath: path2.join(appData, "Code - Insiders", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" }
515
+ ],
516
+ "intellij-github-copilot": [
517
+ { filePath: path2.join(localAppData, "github-copilot", "intellij", "mcp.json"), type: "global" }
518
+ ],
519
+ junie: [
520
+ { filePath: path2.join(homeDir, ".junie", "mcp", "mcp.json"), type: "global" }
521
+ ],
522
+ zed: [
523
+ { filePath: path2.join(localAppData, "zed", "settings.json"), type: "global" },
524
+ { filePath: path2.join(".zed", "settings.json"), type: "local" }
525
+ ],
526
+ gemini: [
527
+ { filePath: path2.join(homeDir, ".gemini", "settings.json"), type: "global" },
528
+ { filePath: path2.join(".gemini", "settings.json"), type: "local" }
529
+ ]
530
+ };
531
+ }
532
+ __name(getWindowsPaths, "getWindowsPaths");
533
+ function getDarwinPaths() {
534
+ return {
535
+ claude: [
536
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Claude", "claude_desktop_config.json"), type: "global" }
537
+ ],
538
+ claude_code: [
539
+ { filePath: ".mcp.json", type: "local" }
540
+ ],
541
+ cursor: [
542
+ { filePath: path2.join(homeDir, ".cursor", "mcp.json"), type: "global" },
543
+ { filePath: path2.join(".cursor", "mcp.json"), type: "local" }
544
+ ],
545
+ vscode: [
546
+ { filePath: path2.join(".vscode", "mcp.json"), type: "local" },
547
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code", "User", "settings.json"), type: "global" },
548
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code", "User", "mcp.json"), type: "global" },
549
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "settings.json"), type: "global" },
550
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "mcp.json"), type: "global" }
551
+ ],
552
+ cline: [
553
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" },
554
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "globalStorage", "saoudrizwan.claude-dev", "settings", "cline_mcp_settings.json"), type: "global" }
555
+ ],
556
+ windsurf: [
557
+ { filePath: path2.join(".codeium", "windsurf", "mcp_config.json"), type: "local" }
558
+ ],
559
+ roo: [
560
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" },
561
+ { filePath: path2.join(homeDir, "Library", "Application Support", "Code - Insiders", "User", "globalStorage", "rooveterinaryinc.roo-cline", "settings", "cline_mcp_settings.json"), type: "global" }
562
+ ],
563
+ "intellij-github-copilot": [
564
+ { filePath: path2.join(homeDir, ".config", "github-copilot", "intellij", "mcp.json"), type: "global" }
565
+ ],
566
+ junie: [
567
+ { filePath: path2.join(homeDir, ".junie", "mcp", "mcp.json"), type: "global" },
568
+ { filePath: path2.join(".junie", "mcp", "mcp.json"), type: "local" }
569
+ ],
570
+ zed: [
571
+ { filePath: path2.join(homeDir, ".config", "zed", "settings.json"), type: "global" },
572
+ { filePath: path2.join(".zed", "settings.json"), type: "local" }
573
+ ],
574
+ gemini: [
575
+ { filePath: path2.join(homeDir, ".gemini", "settings.json"), type: "global" },
576
+ { filePath: path2.join(".gemini", "settings.json"), type: "local" }
577
+ ]
578
+ };
579
+ }
580
+ __name(getDarwinPaths, "getDarwinPaths");
581
+
481
582
  // src/main.ts
482
- var osSpecificPaths = {
483
- claude: [],
484
- claude_code: [],
485
- cursor: [],
486
- vscode: [],
487
- cline: [],
488
- windsurf: [],
489
- roo: [],
490
- "intellij-github-copilot": [],
491
- junie: []
492
- };
583
+ var osSpecificPaths = {};
493
584
  if (platform2() === "win32") {
494
- osSpecificPaths["claude"] = [
495
- { filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
496
- ];
497
- osSpecificPaths["claude_code"] = [
498
- { filePath: ".mcp.json", type: "local" }
499
- ];
500
- osSpecificPaths["cursor"] = [
501
- { filePath: "~\\.cursor\\mcp.json", type: "global" },
502
- { filePath: ".cursor\\mcp.json", type: "local" }
503
- ];
504
- osSpecificPaths["vscode"] = [
505
- { filePath: ".vscode\\mcp.json", type: "local" },
506
- { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
507
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\settings.json`, type: "global" },
508
- { filePath: `${process.env.APPDATA}\\Code\\User\\mcp.json`, type: "global" },
509
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\mcp.json`, type: "global" }
510
- ];
511
- osSpecificPaths["cline"] = [
512
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
513
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" }
514
- ];
515
- osSpecificPaths["windsurf"] = [
516
- { filePath: ".codeium\\windsurf\\mcp_config.json", type: "local" }
517
- ];
518
- osSpecificPaths["roo"] = [
519
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
520
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
521
- ];
522
- osSpecificPaths["intellij-github-copilot"] = [
523
- { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
524
- ];
525
- osSpecificPaths["junie"] = [
526
- { filePath: "~\\.junie\\mcp\\mcp.json", type: "global" }
527
- ];
528
- osSpecificPaths["zed"] = [
529
- { filePath: `${process.env.LOCALAPPDATA}\\zed\\settings.json`, type: "global" },
530
- { filePath: ".zed\\settings.json", type: "local" }
531
- ];
585
+ osSpecificPaths = getWindowsPaths();
532
586
  } else {
533
- osSpecificPaths["claude"] = [
534
- { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
535
- ];
536
- osSpecificPaths["claude_code"] = [
537
- { filePath: ".mcp.json", type: "local" }
538
- ];
539
- osSpecificPaths["cursor"] = [
540
- { filePath: "~/.cursor/mcp.json", type: "global" },
541
- { filePath: ".cursor/mcp.json", type: "local" }
542
- ];
543
- osSpecificPaths["vscode"] = [
544
- { filePath: ".vscode/mcp.json", type: "local" },
545
- { filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
546
- { filePath: "~/Library/Application Support/Code/User/mcp.json", type: "global" },
547
- { filePath: "~/Library/Application Support/Code - Insiders/User/settings.json", type: "global" },
548
- { filePath: "~/Library/Application Support/Code - Insiders/User/mcp.json", type: "global" }
549
- ];
550
- osSpecificPaths["cline"] = [
551
- { filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
552
- { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" }
553
- ];
554
- osSpecificPaths["windsurf"] = [
555
- { filePath: ".codeium/windsurf/mcp_config.json", type: "local" }
556
- ];
557
- osSpecificPaths["roo"] = [
558
- { filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
559
- { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
560
- ];
561
- osSpecificPaths["intellij-github-copilot"] = [
562
- { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
563
- ];
564
- osSpecificPaths["junie"] = [
565
- { filePath: "~/.junie/mcp/mcp.json", type: "global" },
566
- { filePath: ".junie/mcp/mcp.json", type: "local" }
567
- ];
568
- osSpecificPaths["zed"] = [
569
- { filePath: "~/.config/zed/settings.json", type: "global" },
570
- { filePath: ".zed/settings.json", type: "local" }
571
- ];
587
+ osSpecificPaths = getDarwinPaths();
572
588
  }
573
589
  var MCPFiles = class {
574
590
  static {
@@ -624,6 +640,11 @@ var MCPFiles = class {
624
640
  name: "zed",
625
641
  friendlyName: "Zed",
626
642
  paths: osSpecificPaths["zed"]
643
+ },
644
+ gemini: {
645
+ name: "gemini-cli",
646
+ friendlyName: "Gemini CLI",
647
+ paths: osSpecificPaths.gemini
627
648
  }
628
649
  };
629
650
  constructor(mcpFilePathGroups) {
@@ -642,7 +663,7 @@ var MCPFiles = class {
642
663
  const uniqueFilePaths = /* @__PURE__ */ new Set();
643
664
  for (const filePathData of clientsGroup.paths) {
644
665
  const resolvedPath = filePathData.filePath.replace("~", process.env.HOME || "");
645
- const absolutePath = path2.resolve(resolvedPath);
666
+ const absolutePath = path3.resolve(resolvedPath);
646
667
  if (uniqueFilePaths.has(absolutePath)) {
647
668
  continue;
648
669
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ls-mcp",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "list and detect MCP servers and configurations",
5
5
  "types": "dist/main.d.ts",
6
6
  "type": "module",
package/src/main.ts CHANGED
@@ -3,138 +3,15 @@ import { platform } from 'node:os'
3
3
  import path from 'node:path'
4
4
  import { MCPConfigLinterService } from './services/mcp-config-linter-service.ts'
5
5
  import { MCPServerManagerService } from './services/mcp-server-manager-service.ts'
6
+ import { getWindowsPaths, getDarwinPaths } from './utils/os-paths.ts'
7
+ import { type MCPServerInfo, type MCPFilePath, type MCPFilePathGroupsRecord, type MCPFileGroupsResultRecord } from './types.ts'
6
8
 
7
- interface MCPServerInfo {
8
- name: string
9
- command: string
10
- args?: string[]
11
- transport?: 'stdio' | 'sse' | 'http',
12
- type?: 'sse' | 'http' | 'stdio'
13
- source?: string
14
- env?: Record<string, string>
15
- status?: 'running' | 'stopped'
16
- }
17
-
18
- interface MCPFilePath {
19
- filePath: string
20
- type: 'local' | 'global'
21
- parsable?: boolean
22
- servers?: MCPServerInfo[]
23
- }
24
-
25
- interface MCPFileGroups {
26
- name: string
27
- friendlyName: string
28
- paths: MCPFilePath[]
29
- stats?: {
30
- serversCount?: number
31
- }
32
- }
33
-
34
- interface MCPFileGroupsResult {
35
- name: string
36
- friendlyName: string
37
- paths: MCPFilePath[]
38
- stats: {
39
- serversCount?: number
40
- }
41
- }
42
-
43
- type MCPFilePathGroupsRecord = Record<string, MCPFileGroups>
44
- type MCPFileGroupsResultRecord = Record<string, MCPFileGroupsResult>
45
-
46
- const osSpecificPaths: { [key: string]: MCPFilePath[] } = {
47
- claude: [],
48
- claude_code: [],
49
- cursor: [],
50
- vscode: [],
51
- cline: [],
52
- windsurf: [],
53
- roo: [],
54
- 'intellij-github-copilot': [],
55
- junie: []
56
- }
9
+ let osSpecificPaths: { [key: string]: MCPFilePath[] } = {}
57
10
 
58
11
  if (platform() === 'win32') {
59
- osSpecificPaths['claude'] = [
60
- { filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: 'global' }
61
- ]
62
- osSpecificPaths['claude_code'] = [
63
- { filePath: '.mcp.json', type: 'local' }
64
- ]
65
- osSpecificPaths['cursor'] = [
66
- { filePath: '~\\.cursor\\mcp.json', type: 'global' },
67
- { filePath: '.cursor\\mcp.json', type: 'local' }
68
- ]
69
- osSpecificPaths['vscode'] = [
70
- { filePath: '.vscode\\mcp.json', type: 'local' },
71
- { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: 'global' },
72
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\settings.json`, type: 'global' },
73
- { filePath: `${process.env.APPDATA}\\Code\\User\\mcp.json`, type: 'global' },
74
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\mcp.json`, type: 'global' }
75
- ]
76
- osSpecificPaths['cline'] = [
77
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: 'global' },
78
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: 'global' }
79
- ]
80
- osSpecificPaths['windsurf'] = [
81
- { filePath: '.codeium\\windsurf\\mcp_config.json', type: 'local' },
82
- ]
83
- osSpecificPaths['roo'] = [
84
- { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: 'global' },
85
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: 'global' },
86
- ]
87
- osSpecificPaths['intellij-github-copilot'] = [
88
- { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: 'global' },
89
- ]
90
- osSpecificPaths['junie'] = [
91
- { filePath: '~\\.junie\\mcp\\mcp.json', type: 'global' },
92
- ]
93
- osSpecificPaths['zed'] = [
94
- { filePath: `${process.env.LOCALAPPDATA}\\zed\\settings.json`, type: 'global' },
95
- { filePath: '.zed\\settings.json', type: 'local' }
96
- ]
12
+ osSpecificPaths = getWindowsPaths()
97
13
  } else {
98
- osSpecificPaths['claude'] = [
99
- { filePath: '~/Library/Application Support/Claude/claude_desktop_config.json', type: 'global' }
100
- ]
101
- osSpecificPaths['claude_code'] = [
102
- { filePath: '.mcp.json', type: 'local' }
103
- ]
104
- osSpecificPaths['cursor'] = [
105
- { filePath: '~/.cursor/mcp.json', type: 'global' },
106
- { filePath: '.cursor/mcp.json', type: 'local' }
107
- ]
108
- osSpecificPaths['vscode'] = [
109
- { filePath: '.vscode/mcp.json', type: 'local' },
110
- { filePath: '~/Library/Application Support/Code/User/settings.json', type: 'global' },
111
- { filePath: '~/Library/Application Support/Code/User/mcp.json', type: 'global' },
112
- { filePath: '~/Library/Application Support/Code - Insiders/User/settings.json', type: 'global' },
113
- { filePath: '~/Library/Application Support/Code - Insiders/User/mcp.json', type: 'global' }
114
- ]
115
- osSpecificPaths['cline'] = [
116
- { filePath: '~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json', type: 'global' },
117
- { filePath: '~/Library/Application Support/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json', type: 'global' }
118
- ]
119
- osSpecificPaths['windsurf'] = [
120
- { filePath: '.codeium/windsurf/mcp_config.json', type: 'local' },
121
- ]
122
- osSpecificPaths['roo'] = [
123
- { filePath: '~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json', type: 'global' },
124
- { filePath: '~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json', type: 'global' },
125
- ]
126
- osSpecificPaths['intellij-github-copilot'] = [
127
- { filePath: '~/.config/github-copilot/intellij/mcp.json', type: 'global' },
128
- ]
129
- osSpecificPaths['junie'] = [
130
- { filePath: '~/.junie/mcp/mcp.json', type: 'global' },
131
- { filePath: '.junie/mcp/mcp.json', type: 'local' }
132
- ]
133
-
134
- osSpecificPaths['zed'] = [
135
- { filePath: '~/.config/zed/settings.json', type: 'global' },
136
- { filePath: '.zed/settings.json', type: 'local' }
137
- ]
14
+ osSpecificPaths = getDarwinPaths()
138
15
  }
139
16
 
140
17
  export class MCPFiles {
@@ -188,6 +65,11 @@ export class MCPFiles {
188
65
  name: 'zed',
189
66
  friendlyName: 'Zed',
190
67
  paths: osSpecificPaths['zed']
68
+ },
69
+ gemini: {
70
+ name: 'gemini-cli',
71
+ friendlyName: 'Gemini CLI',
72
+ paths: osSpecificPaths.gemini
191
73
  }
192
74
  }
193
75
 
package/src/types.ts ADDED
@@ -0,0 +1,38 @@
1
+ export interface MCPServerInfo {
2
+ name: string
3
+ command: string
4
+ args?: string[]
5
+ transport?: 'stdio' | 'sse' | 'http',
6
+ type?: 'sse' | 'http' | 'stdio'
7
+ source?: string
8
+ env?: Record<string, string>
9
+ status?: 'running' | 'stopped'
10
+ }
11
+
12
+ export interface MCPFilePath {
13
+ filePath: string
14
+ type: 'local' | 'global'
15
+ parsable?: boolean
16
+ servers?: MCPServerInfo[]
17
+ }
18
+
19
+ export interface MCPFileGroups {
20
+ name: string
21
+ friendlyName: string
22
+ paths: MCPFilePath[]
23
+ stats?: {
24
+ serversCount?: number
25
+ }
26
+ }
27
+
28
+ export interface MCPFileGroupsResult {
29
+ name: string
30
+ friendlyName: string
31
+ paths: MCPFilePath[]
32
+ stats: {
33
+ serversCount?: number
34
+ }
35
+ }
36
+
37
+ export type MCPFilePathGroupsRecord = Record<string, MCPFileGroups>
38
+ export type MCPFileGroupsResultRecord = Record<string, MCPFileGroupsResult>
@@ -0,0 +1,102 @@
1
+ import path from 'node:path'
2
+ import { type MCPFilePath } from '../types.ts'
3
+
4
+ const appData = process.env.APPDATA || ''
5
+ const localAppData = process.env.LOCALAPPDATA || ''
6
+ const homeDir = process.env.HOME || ''
7
+
8
+ export function getWindowsPaths (): Record<string, MCPFilePath[]> {
9
+ return {
10
+ claude: [
11
+ { filePath: path.join(appData, 'Claude', 'claude_desktop_config.json'), type: 'global' }
12
+ ],
13
+ claude_code: [
14
+ { filePath: '.mcp.json', type: 'local' }
15
+ ],
16
+ cursor: [
17
+ { filePath: path.join(homeDir, '.cursor', 'mcp.json'), type: 'global' },
18
+ { filePath: path.join('.cursor', 'mcp.json'), type: 'local' }
19
+ ],
20
+ vscode: [
21
+ { filePath: path.join('.vscode', 'mcp.json'), type: 'local' },
22
+ { filePath: path.join(appData, 'Code', 'User', 'settings.json'), type: 'global' },
23
+ { filePath: path.join(appData, 'Code - Insiders', 'User', 'settings.json'), type: 'global' },
24
+ { filePath: path.join(appData, 'Code', 'User', 'mcp.json'), type: 'global' },
25
+ { filePath: path.join(appData, 'Code - Insiders', 'User', 'mcp.json'), type: 'global' }
26
+ ],
27
+ cline: [
28
+ { filePath: path.join(appData, 'Code', 'User', 'globalStorage', 'saoudrizwan.claude-dev', 'settings', 'cline_mcp_settings.json'), type: 'global' },
29
+ { filePath: path.join(appData, 'Code - Insiders', 'User', 'globalStorage', 'saoudrizwan.claude-dev', 'settings', 'cline_mcp_settings.json'), type: 'global' }
30
+ ],
31
+ windsurf: [
32
+ { filePath: path.join('.codeium', 'windsurf', 'mcp_config.json'), type: 'local' },
33
+ ],
34
+ roo: [
35
+ { filePath: path.join(appData, 'Code', 'User', 'globalStorage', 'rooveterinaryinc.roo-cline', 'settings', 'cline_mcp_settings.json'), type: 'global' },
36
+ { filePath: path.join(appData, 'Code - Insiders', 'User', 'globalStorage', 'rooveterinaryinc.roo-cline', 'settings', 'cline_mcp_settings.json'), type: 'global' },
37
+ ],
38
+ 'intellij-github-copilot': [
39
+ { filePath: path.join(localAppData, 'github-copilot', 'intellij', 'mcp.json'), type: 'global' },
40
+ ],
41
+ junie: [
42
+ { filePath: path.join(homeDir, '.junie', 'mcp', 'mcp.json'), type: 'global' },
43
+ ],
44
+ zed: [
45
+ { filePath: path.join(localAppData, 'zed', 'settings.json'), type: 'global' },
46
+ { filePath: path.join('.zed', 'settings.json'), type: 'local' }
47
+ ],
48
+ gemini: [
49
+ { filePath: path.join(homeDir, '.gemini', 'settings.json'), type: 'global' },
50
+ { filePath: path.join('.gemini', 'settings.json'), type: 'local' }
51
+ ]
52
+ }
53
+ }
54
+
55
+ export function getDarwinPaths (): Record<string, MCPFilePath[]> {
56
+ return {
57
+ claude: [
58
+ { filePath: path.join(homeDir, 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json'), type: 'global' }
59
+ ],
60
+ claude_code: [
61
+ { filePath: '.mcp.json', type: 'local' }
62
+ ],
63
+ cursor: [
64
+ { filePath: path.join(homeDir, '.cursor', 'mcp.json'), type: 'global' },
65
+ { filePath: path.join('.cursor', 'mcp.json'), type: 'local' }
66
+ ],
67
+ vscode: [
68
+ { filePath: path.join('.vscode', 'mcp.json'), type: 'local' },
69
+ { filePath: path.join(homeDir, 'Library', 'Application Support', 'Code', 'User', 'settings.json'), type: 'global' },
70
+ { filePath: path.join(homeDir, 'Library', 'Application Support', 'Code', 'User', 'mcp.json'), type: 'global' },
71
+ { filePath: path.join(homeDir, 'Library', 'Application Support', 'Code - Insiders', 'User', 'settings.json'), type: 'global' },
72
+ { filePath: path.join(homeDir, 'Library', 'Application Support', 'Code - Insiders', 'User', 'mcp.json'), type: 'global' }
73
+ ],
74
+ cline: [
75
+ { filePath: path.join(homeDir, 'Library', 'Application Support', 'Code', 'User', 'globalStorage', 'saoudrizwan.claude-dev', 'settings', 'cline_mcp_settings.json'), type: 'global' },
76
+ { filePath: path.join(homeDir, 'Library', 'Application Support', 'Code - Insiders', 'User', 'globalStorage', 'saoudrizwan.claude-dev', 'settings', 'cline_mcp_settings.json'), type: 'global' }
77
+ ],
78
+ windsurf: [
79
+ { filePath: path.join('.codeium', 'windsurf', 'mcp_config.json'), type: 'local' },
80
+ ],
81
+ roo: [
82
+ { filePath: path.join(homeDir, 'Library', 'Application Support', 'Code', 'User', 'globalStorage', 'rooveterinaryinc.roo-cline', 'settings', 'cline_mcp_settings.json'), type: 'global' },
83
+ { filePath: path.join(homeDir, 'Library', 'Application Support', 'Code - Insiders', 'User', 'globalStorage', 'rooveterinaryinc.roo-cline', 'settings', 'cline_mcp_settings.json'), type: 'global' },
84
+ ],
85
+ 'intellij-github-copilot': [
86
+ { filePath: path.join(homeDir, '.config', 'github-copilot', 'intellij', 'mcp.json'), type: 'global' },
87
+ ],
88
+ junie: [
89
+ { filePath: path.join(homeDir, '.junie', 'mcp', 'mcp.json'), type: 'global' },
90
+ { filePath: path.join('.junie', 'mcp', 'mcp.json'), type: 'local' }
91
+ ],
92
+
93
+ zed: [
94
+ { filePath: path.join(homeDir, '.config', 'zed', 'settings.json'), type: 'global' },
95
+ { filePath: path.join('.zed', 'settings.json'), type: 'local' }
96
+ ],
97
+ gemini: [
98
+ { filePath: path.join(homeDir, '.gemini', 'settings.json'), type: 'global' },
99
+ { filePath: path.join('.gemini', 'settings.json'), type: 'local' }
100
+ ]
101
+ }
102
+ }