ls-mcp 1.8.2 → 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 +125 -81
- package/dist/bin/cli.mjs +125 -81
- package/dist/main.cjs +125 -81
- package/dist/main.d.cts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.mjs +125 -81
- package/package.json +19 -2
- package/src/main.ts +15 -115
- package/src/services/mcp-config-linter-service.ts +6 -2
- package/src/services/mcp-server-manager-service.ts +4 -1
- package/src/types.ts +38 -0
- package/src/utils/os-paths.ts +102 -0
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
|
|
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);
|
|
@@ -78,8 +78,12 @@ var MCPConfigLinterService = class {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
async countMCPServers() {
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
try {
|
|
82
|
+
const mcpServers = await this.getMCPServers();
|
|
83
|
+
return Object.keys(mcpServers).length;
|
|
84
|
+
} catch (error) {
|
|
85
|
+
return 0;
|
|
86
|
+
}
|
|
83
87
|
}
|
|
84
88
|
async getMCPServers() {
|
|
85
89
|
await this.parseFile();
|
|
@@ -137,8 +141,10 @@ var MCPServerManagerService = class {
|
|
|
137
141
|
}
|
|
138
142
|
if (serverConfig.url) {
|
|
139
143
|
this.source = serverConfig.url;
|
|
144
|
+
this.transport = "http";
|
|
140
145
|
} else {
|
|
141
|
-
|
|
146
|
+
const fullCommand = [serverConfig.command, ...serverConfig.args || []].join(" ");
|
|
147
|
+
this.source = fullCommand;
|
|
142
148
|
}
|
|
143
149
|
this.env = serverConfig.env || {};
|
|
144
150
|
}
|
|
@@ -498,85 +504,113 @@ var MCPServerManagerService = class {
|
|
|
498
504
|
}
|
|
499
505
|
};
|
|
500
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
|
+
|
|
501
608
|
// src/main.ts
|
|
502
|
-
var osSpecificPaths = {
|
|
503
|
-
claude: [],
|
|
504
|
-
claude_code: [],
|
|
505
|
-
cursor: [],
|
|
506
|
-
vscode: [],
|
|
507
|
-
cline: [],
|
|
508
|
-
windsurf: [],
|
|
509
|
-
roo: [],
|
|
510
|
-
"intellij-github-copilot": []
|
|
511
|
-
};
|
|
609
|
+
var osSpecificPaths = {};
|
|
512
610
|
if ((0, import_node_os2.platform)() === "win32") {
|
|
513
|
-
osSpecificPaths
|
|
514
|
-
{ filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
|
|
515
|
-
];
|
|
516
|
-
osSpecificPaths["claude_code"] = [
|
|
517
|
-
{ filePath: ".mcp.json", type: "local" }
|
|
518
|
-
];
|
|
519
|
-
osSpecificPaths["cursor"] = [
|
|
520
|
-
{ filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
|
|
521
|
-
{ filePath: ".cursor\\mcp.json", type: "local" }
|
|
522
|
-
];
|
|
523
|
-
osSpecificPaths["vscode"] = [
|
|
524
|
-
{ filePath: ".vscode\\mcp.json", type: "local" },
|
|
525
|
-
{ filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
|
|
526
|
-
{ filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\settings.json`, type: "global" }
|
|
527
|
-
];
|
|
528
|
-
osSpecificPaths["cline"] = [
|
|
529
|
-
{ filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
|
|
530
|
-
{ filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" }
|
|
531
|
-
];
|
|
532
|
-
osSpecificPaths["windsurf"] = [
|
|
533
|
-
{ filePath: ".codeium\\windsurf\\mcp_config.json", type: "local" }
|
|
534
|
-
];
|
|
535
|
-
osSpecificPaths["roo"] = [
|
|
536
|
-
{ filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
|
|
537
|
-
{ filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
|
|
538
|
-
];
|
|
539
|
-
osSpecificPaths["intellij-github-copilot"] = [
|
|
540
|
-
{ filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
|
|
541
|
-
];
|
|
542
|
-
osSpecificPaths["zed"] = [
|
|
543
|
-
{ filePath: `${process.env.LOCALAPPDATA}\\zed\\settings.json`, type: "global" },
|
|
544
|
-
{ filePath: ".zed\\settings.json", type: "local" }
|
|
545
|
-
];
|
|
611
|
+
osSpecificPaths = getWindowsPaths();
|
|
546
612
|
} else {
|
|
547
|
-
osSpecificPaths
|
|
548
|
-
{ filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
|
|
549
|
-
];
|
|
550
|
-
osSpecificPaths["claude_code"] = [
|
|
551
|
-
{ filePath: ".mcp.json", type: "local" }
|
|
552
|
-
];
|
|
553
|
-
osSpecificPaths["cursor"] = [
|
|
554
|
-
{ filePath: "~/.cursor/mcp.json", type: "global" },
|
|
555
|
-
{ filePath: ".cursor/mcp.json", type: "local" }
|
|
556
|
-
];
|
|
557
|
-
osSpecificPaths["vscode"] = [
|
|
558
|
-
{ filePath: ".vscode/mcp.json", type: "local" },
|
|
559
|
-
{ filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
|
|
560
|
-
{ filePath: "~/Library/Application Support/Code - Insiders/User/settings.json", type: "global" }
|
|
561
|
-
];
|
|
562
|
-
osSpecificPaths["cline"] = [
|
|
563
|
-
{ filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
|
|
564
|
-
{ filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" }
|
|
565
|
-
];
|
|
566
|
-
osSpecificPaths["windsurf"] = [
|
|
567
|
-
{ filePath: ".codeium/windsurf/mcp_config.json", type: "local" }
|
|
568
|
-
];
|
|
569
|
-
osSpecificPaths["roo"] = [
|
|
570
|
-
{ filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
|
|
571
|
-
{ filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
|
|
572
|
-
];
|
|
573
|
-
osSpecificPaths["intellij-github-copilot"] = [
|
|
574
|
-
{ filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
|
|
575
|
-
];
|
|
576
|
-
osSpecificPaths["zed"] = [
|
|
577
|
-
{ filePath: "~/.config/zed/settings.json", type: "global" },
|
|
578
|
-
{ filePath: ".zed/settings.json", type: "local" }
|
|
579
|
-
];
|
|
613
|
+
osSpecificPaths = getDarwinPaths();
|
|
580
614
|
}
|
|
581
615
|
var MCPFiles = class {
|
|
582
616
|
static {
|
|
@@ -623,10 +657,20 @@ var MCPFiles = class {
|
|
|
623
657
|
friendlyName: "IntelliJ GitHub Copilot",
|
|
624
658
|
paths: osSpecificPaths["intellij-github-copilot"]
|
|
625
659
|
},
|
|
660
|
+
junie: {
|
|
661
|
+
name: "junie",
|
|
662
|
+
friendlyName: "IntelliJ Junie",
|
|
663
|
+
paths: osSpecificPaths["junie"]
|
|
664
|
+
},
|
|
626
665
|
zed: {
|
|
627
666
|
name: "zed",
|
|
628
667
|
friendlyName: "Zed",
|
|
629
668
|
paths: osSpecificPaths["zed"]
|
|
669
|
+
},
|
|
670
|
+
gemini: {
|
|
671
|
+
name: "gemini-cli",
|
|
672
|
+
friendlyName: "Gemini CLI",
|
|
673
|
+
paths: osSpecificPaths.gemini
|
|
630
674
|
}
|
|
631
675
|
};
|
|
632
676
|
constructor(mcpFilePathGroups) {
|
|
@@ -645,7 +689,7 @@ var MCPFiles = class {
|
|
|
645
689
|
const uniqueFilePaths = /* @__PURE__ */ new Set();
|
|
646
690
|
for (const filePathData of clientsGroup.paths) {
|
|
647
691
|
const resolvedPath = filePathData.filePath.replace("~", process.env.HOME || "");
|
|
648
|
-
const absolutePath =
|
|
692
|
+
const absolutePath = import_node_path3.default.resolve(resolvedPath);
|
|
649
693
|
if (uniqueFilePaths.has(absolutePath)) {
|
|
650
694
|
continue;
|
|
651
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
|
|
11
|
+
import path3 from "path";
|
|
12
12
|
|
|
13
13
|
// src/services/mcp-config-linter-service.ts
|
|
14
14
|
import fs from "fs/promises";
|
|
@@ -56,8 +56,12 @@ var MCPConfigLinterService = class {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
async countMCPServers() {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
try {
|
|
60
|
+
const mcpServers = await this.getMCPServers();
|
|
61
|
+
return Object.keys(mcpServers).length;
|
|
62
|
+
} catch (error) {
|
|
63
|
+
return 0;
|
|
64
|
+
}
|
|
61
65
|
}
|
|
62
66
|
async getMCPServers() {
|
|
63
67
|
await this.parseFile();
|
|
@@ -115,8 +119,10 @@ var MCPServerManagerService = class {
|
|
|
115
119
|
}
|
|
116
120
|
if (serverConfig.url) {
|
|
117
121
|
this.source = serverConfig.url;
|
|
122
|
+
this.transport = "http";
|
|
118
123
|
} else {
|
|
119
|
-
|
|
124
|
+
const fullCommand = [serverConfig.command, ...serverConfig.args || []].join(" ");
|
|
125
|
+
this.source = fullCommand;
|
|
120
126
|
}
|
|
121
127
|
this.env = serverConfig.env || {};
|
|
122
128
|
}
|
|
@@ -476,85 +482,113 @@ var MCPServerManagerService = class {
|
|
|
476
482
|
}
|
|
477
483
|
};
|
|
478
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
|
+
|
|
479
586
|
// src/main.ts
|
|
480
|
-
var osSpecificPaths = {
|
|
481
|
-
claude: [],
|
|
482
|
-
claude_code: [],
|
|
483
|
-
cursor: [],
|
|
484
|
-
vscode: [],
|
|
485
|
-
cline: [],
|
|
486
|
-
windsurf: [],
|
|
487
|
-
roo: [],
|
|
488
|
-
"intellij-github-copilot": []
|
|
489
|
-
};
|
|
587
|
+
var osSpecificPaths = {};
|
|
490
588
|
if (platform2() === "win32") {
|
|
491
|
-
osSpecificPaths
|
|
492
|
-
{ filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
|
|
493
|
-
];
|
|
494
|
-
osSpecificPaths["claude_code"] = [
|
|
495
|
-
{ filePath: ".mcp.json", type: "local" }
|
|
496
|
-
];
|
|
497
|
-
osSpecificPaths["cursor"] = [
|
|
498
|
-
{ filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
|
|
499
|
-
{ filePath: ".cursor\\mcp.json", type: "local" }
|
|
500
|
-
];
|
|
501
|
-
osSpecificPaths["vscode"] = [
|
|
502
|
-
{ filePath: ".vscode\\mcp.json", type: "local" },
|
|
503
|
-
{ filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
|
|
504
|
-
{ filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\settings.json`, type: "global" }
|
|
505
|
-
];
|
|
506
|
-
osSpecificPaths["cline"] = [
|
|
507
|
-
{ filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
|
|
508
|
-
{ filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" }
|
|
509
|
-
];
|
|
510
|
-
osSpecificPaths["windsurf"] = [
|
|
511
|
-
{ filePath: ".codeium\\windsurf\\mcp_config.json", type: "local" }
|
|
512
|
-
];
|
|
513
|
-
osSpecificPaths["roo"] = [
|
|
514
|
-
{ filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
|
|
515
|
-
{ filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
|
|
516
|
-
];
|
|
517
|
-
osSpecificPaths["intellij-github-copilot"] = [
|
|
518
|
-
{ filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
|
|
519
|
-
];
|
|
520
|
-
osSpecificPaths["zed"] = [
|
|
521
|
-
{ filePath: `${process.env.LOCALAPPDATA}\\zed\\settings.json`, type: "global" },
|
|
522
|
-
{ filePath: ".zed\\settings.json", type: "local" }
|
|
523
|
-
];
|
|
589
|
+
osSpecificPaths = getWindowsPaths();
|
|
524
590
|
} else {
|
|
525
|
-
osSpecificPaths
|
|
526
|
-
{ filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
|
|
527
|
-
];
|
|
528
|
-
osSpecificPaths["claude_code"] = [
|
|
529
|
-
{ filePath: ".mcp.json", type: "local" }
|
|
530
|
-
];
|
|
531
|
-
osSpecificPaths["cursor"] = [
|
|
532
|
-
{ filePath: "~/.cursor/mcp.json", type: "global" },
|
|
533
|
-
{ filePath: ".cursor/mcp.json", type: "local" }
|
|
534
|
-
];
|
|
535
|
-
osSpecificPaths["vscode"] = [
|
|
536
|
-
{ filePath: ".vscode/mcp.json", type: "local" },
|
|
537
|
-
{ filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
|
|
538
|
-
{ filePath: "~/Library/Application Support/Code - Insiders/User/settings.json", type: "global" }
|
|
539
|
-
];
|
|
540
|
-
osSpecificPaths["cline"] = [
|
|
541
|
-
{ filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
|
|
542
|
-
{ filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" }
|
|
543
|
-
];
|
|
544
|
-
osSpecificPaths["windsurf"] = [
|
|
545
|
-
{ filePath: ".codeium/windsurf/mcp_config.json", type: "local" }
|
|
546
|
-
];
|
|
547
|
-
osSpecificPaths["roo"] = [
|
|
548
|
-
{ filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
|
|
549
|
-
{ filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
|
|
550
|
-
];
|
|
551
|
-
osSpecificPaths["intellij-github-copilot"] = [
|
|
552
|
-
{ filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
|
|
553
|
-
];
|
|
554
|
-
osSpecificPaths["zed"] = [
|
|
555
|
-
{ filePath: "~/.config/zed/settings.json", type: "global" },
|
|
556
|
-
{ filePath: ".zed/settings.json", type: "local" }
|
|
557
|
-
];
|
|
591
|
+
osSpecificPaths = getDarwinPaths();
|
|
558
592
|
}
|
|
559
593
|
var MCPFiles = class {
|
|
560
594
|
static {
|
|
@@ -601,10 +635,20 @@ var MCPFiles = class {
|
|
|
601
635
|
friendlyName: "IntelliJ GitHub Copilot",
|
|
602
636
|
paths: osSpecificPaths["intellij-github-copilot"]
|
|
603
637
|
},
|
|
638
|
+
junie: {
|
|
639
|
+
name: "junie",
|
|
640
|
+
friendlyName: "IntelliJ Junie",
|
|
641
|
+
paths: osSpecificPaths["junie"]
|
|
642
|
+
},
|
|
604
643
|
zed: {
|
|
605
644
|
name: "zed",
|
|
606
645
|
friendlyName: "Zed",
|
|
607
646
|
paths: osSpecificPaths["zed"]
|
|
647
|
+
},
|
|
648
|
+
gemini: {
|
|
649
|
+
name: "gemini-cli",
|
|
650
|
+
friendlyName: "Gemini CLI",
|
|
651
|
+
paths: osSpecificPaths.gemini
|
|
608
652
|
}
|
|
609
653
|
};
|
|
610
654
|
constructor(mcpFilePathGroups) {
|
|
@@ -623,7 +667,7 @@ var MCPFiles = class {
|
|
|
623
667
|
const uniqueFilePaths = /* @__PURE__ */ new Set();
|
|
624
668
|
for (const filePathData of clientsGroup.paths) {
|
|
625
669
|
const resolvedPath = filePathData.filePath.replace("~", process.env.HOME || "");
|
|
626
|
-
const absolutePath =
|
|
670
|
+
const absolutePath = path3.resolve(resolvedPath);
|
|
627
671
|
if (uniqueFilePaths.has(absolutePath)) {
|
|
628
672
|
continue;
|
|
629
673
|
}
|