ls-mcp 1.7.0 → 1.8.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 +33 -8
- package/dist/bin/cli.mjs +33 -8
- package/dist/main.cjs +26 -1
- package/dist/main.mjs +26 -1
- package/package.json +2 -2
- package/src/main.ts +14 -1
- package/src/services/mcp-server-manager-service.ts +14 -0
- package/src/services/render-service.ts +6 -6
package/dist/bin/cli.cjs
CHANGED
|
@@ -255,6 +255,18 @@ var MCPServerManagerService = class {
|
|
|
255
255
|
estimatedProduct: "claude-desktop"
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
|
+
if (commandString.includes("cursor")) {
|
|
259
|
+
return {
|
|
260
|
+
estimatedVendor: "cursor",
|
|
261
|
+
estimatedProduct: "cursor"
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
if (commandString.includes("visual studio code") || commandString.includes("vscode")) {
|
|
265
|
+
return {
|
|
266
|
+
estimatedVendor: "vscode",
|
|
267
|
+
estimatedProduct: "vscode"
|
|
268
|
+
};
|
|
269
|
+
}
|
|
258
270
|
}
|
|
259
271
|
isCommandMatch(commandTokens, pid, ppid) {
|
|
260
272
|
if (commandTokens.length === 0) return false;
|
|
@@ -486,16 +498,21 @@ var MCPServerManagerService = class {
|
|
|
486
498
|
// src/main.ts
|
|
487
499
|
var osSpecificPaths = {
|
|
488
500
|
claude: [],
|
|
501
|
+
claude_code: [],
|
|
489
502
|
cursor: [],
|
|
490
503
|
vscode: [],
|
|
491
504
|
cline: [],
|
|
492
505
|
windsurf: [],
|
|
493
|
-
roo: []
|
|
506
|
+
roo: [],
|
|
507
|
+
"intellij-github-copilot": []
|
|
494
508
|
};
|
|
495
509
|
if ((0, import_node_os2.platform)() === "win32") {
|
|
496
510
|
osSpecificPaths["claude"] = [
|
|
497
511
|
{ filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
|
|
498
512
|
];
|
|
513
|
+
osSpecificPaths["claude_code"] = [
|
|
514
|
+
{ filePath: ".mcp.json", type: "local" }
|
|
515
|
+
];
|
|
499
516
|
osSpecificPaths["cursor"] = [
|
|
500
517
|
{ filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
|
|
501
518
|
{ filePath: ".cursor\\mcp.json", type: "local" }
|
|
@@ -523,6 +540,9 @@ if ((0, import_node_os2.platform)() === "win32") {
|
|
|
523
540
|
osSpecificPaths["claude"] = [
|
|
524
541
|
{ filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
|
|
525
542
|
];
|
|
543
|
+
osSpecificPaths["claude_code"] = [
|
|
544
|
+
{ filePath: ".mcp.json", type: "local" }
|
|
545
|
+
];
|
|
526
546
|
osSpecificPaths["cursor"] = [
|
|
527
547
|
{ filePath: "~/.cursor/mcp.json", type: "global" },
|
|
528
548
|
{ filePath: ".cursor/mcp.json", type: "local" }
|
|
@@ -557,6 +577,11 @@ var MCPFiles = class {
|
|
|
557
577
|
friendlyName: "Claude Desktop",
|
|
558
578
|
paths: osSpecificPaths["claude"]
|
|
559
579
|
},
|
|
580
|
+
claude_code: {
|
|
581
|
+
name: "claude-code",
|
|
582
|
+
friendlyName: "Claude Code",
|
|
583
|
+
paths: osSpecificPaths["claude_code"]
|
|
584
|
+
},
|
|
560
585
|
cursor: {
|
|
561
586
|
name: "cursor",
|
|
562
587
|
friendlyName: "Cursor",
|
|
@@ -741,7 +766,7 @@ function render7(text) {
|
|
|
741
766
|
__name(render7, "render");
|
|
742
767
|
|
|
743
768
|
// src/services/render-service.ts
|
|
744
|
-
var RenderService = class {
|
|
769
|
+
var RenderService = class _RenderService {
|
|
745
770
|
static {
|
|
746
771
|
__name(this, "RenderService");
|
|
747
772
|
}
|
|
@@ -761,7 +786,7 @@ var RenderService = class {
|
|
|
761
786
|
const centerColumns = [0, 2, 3];
|
|
762
787
|
const leftPadding = " ";
|
|
763
788
|
const columnWidths = headers.map((header, index) => {
|
|
764
|
-
const headerWidth =
|
|
789
|
+
const headerWidth = _RenderService.getVisibleLength(render2(header));
|
|
765
790
|
const dataWidth = Math.max(...data.map((row) => {
|
|
766
791
|
let text = String(row[keys[index]]);
|
|
767
792
|
if (keys[index] === "transport") {
|
|
@@ -776,19 +801,19 @@ var RenderService = class {
|
|
|
776
801
|
if (keys[index] === "name") {
|
|
777
802
|
text = render4(text);
|
|
778
803
|
}
|
|
779
|
-
return
|
|
804
|
+
return _RenderService.getVisibleLength(text);
|
|
780
805
|
}));
|
|
781
806
|
return Math.max(headerWidth, dataWidth);
|
|
782
807
|
});
|
|
783
808
|
const centerText = /* @__PURE__ */ __name((text, width) => {
|
|
784
|
-
const visibleLength =
|
|
809
|
+
const visibleLength = _RenderService.getVisibleLength(text);
|
|
785
810
|
const padding = width - visibleLength;
|
|
786
811
|
const leftPad = Math.floor(padding / 2);
|
|
787
812
|
const rightPad = padding - leftPad;
|
|
788
813
|
return " ".repeat(leftPad) + text + " ".repeat(rightPad);
|
|
789
814
|
}, "centerText");
|
|
790
815
|
const padRight = /* @__PURE__ */ __name((text, width) => {
|
|
791
|
-
const visibleLength =
|
|
816
|
+
const visibleLength = _RenderService.getVisibleLength(text);
|
|
792
817
|
const padding = Math.max(0, width - visibleLength);
|
|
793
818
|
return text + " ".repeat(padding);
|
|
794
819
|
}, "padRight");
|
|
@@ -846,13 +871,13 @@ var RenderService = class {
|
|
|
846
871
|
if (Object.keys(groupMetadata).length > 0) {
|
|
847
872
|
const runningCount = groupMetadata.mcpServersRunning || 0;
|
|
848
873
|
const totalCount = groupMetadata.mcpServersTotal || 0;
|
|
849
|
-
const metadataRow =
|
|
874
|
+
const metadataRow = _RenderService.renderProgressBar(runningCount, totalCount, "Running");
|
|
850
875
|
data.push({ key: "MCP SERVERS", value: metadataRow });
|
|
851
876
|
}
|
|
852
877
|
const columnWidths = headers.map((header, index) => {
|
|
853
878
|
const dataWidth = Math.max(...data.map((row) => {
|
|
854
879
|
const columnText = render2(row[keys[index]]);
|
|
855
|
-
const columnTextLength =
|
|
880
|
+
const columnTextLength = _RenderService.getVisibleLength(columnText);
|
|
856
881
|
return columnTextLength;
|
|
857
882
|
}));
|
|
858
883
|
return Math.max(header.length, dataWidth);
|
package/dist/bin/cli.mjs
CHANGED
|
@@ -233,6 +233,18 @@ var MCPServerManagerService = class {
|
|
|
233
233
|
estimatedProduct: "claude-desktop"
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
+
if (commandString.includes("cursor")) {
|
|
237
|
+
return {
|
|
238
|
+
estimatedVendor: "cursor",
|
|
239
|
+
estimatedProduct: "cursor"
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
if (commandString.includes("visual studio code") || commandString.includes("vscode")) {
|
|
243
|
+
return {
|
|
244
|
+
estimatedVendor: "vscode",
|
|
245
|
+
estimatedProduct: "vscode"
|
|
246
|
+
};
|
|
247
|
+
}
|
|
236
248
|
}
|
|
237
249
|
isCommandMatch(commandTokens, pid, ppid) {
|
|
238
250
|
if (commandTokens.length === 0) return false;
|
|
@@ -464,16 +476,21 @@ var MCPServerManagerService = class {
|
|
|
464
476
|
// src/main.ts
|
|
465
477
|
var osSpecificPaths = {
|
|
466
478
|
claude: [],
|
|
479
|
+
claude_code: [],
|
|
467
480
|
cursor: [],
|
|
468
481
|
vscode: [],
|
|
469
482
|
cline: [],
|
|
470
483
|
windsurf: [],
|
|
471
|
-
roo: []
|
|
484
|
+
roo: [],
|
|
485
|
+
"intellij-github-copilot": []
|
|
472
486
|
};
|
|
473
487
|
if (platform2() === "win32") {
|
|
474
488
|
osSpecificPaths["claude"] = [
|
|
475
489
|
{ filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
|
|
476
490
|
];
|
|
491
|
+
osSpecificPaths["claude_code"] = [
|
|
492
|
+
{ filePath: ".mcp.json", type: "local" }
|
|
493
|
+
];
|
|
477
494
|
osSpecificPaths["cursor"] = [
|
|
478
495
|
{ filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
|
|
479
496
|
{ filePath: ".cursor\\mcp.json", type: "local" }
|
|
@@ -501,6 +518,9 @@ if (platform2() === "win32") {
|
|
|
501
518
|
osSpecificPaths["claude"] = [
|
|
502
519
|
{ filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
|
|
503
520
|
];
|
|
521
|
+
osSpecificPaths["claude_code"] = [
|
|
522
|
+
{ filePath: ".mcp.json", type: "local" }
|
|
523
|
+
];
|
|
504
524
|
osSpecificPaths["cursor"] = [
|
|
505
525
|
{ filePath: "~/.cursor/mcp.json", type: "global" },
|
|
506
526
|
{ filePath: ".cursor/mcp.json", type: "local" }
|
|
@@ -535,6 +555,11 @@ var MCPFiles = class {
|
|
|
535
555
|
friendlyName: "Claude Desktop",
|
|
536
556
|
paths: osSpecificPaths["claude"]
|
|
537
557
|
},
|
|
558
|
+
claude_code: {
|
|
559
|
+
name: "claude-code",
|
|
560
|
+
friendlyName: "Claude Code",
|
|
561
|
+
paths: osSpecificPaths["claude_code"]
|
|
562
|
+
},
|
|
538
563
|
cursor: {
|
|
539
564
|
name: "cursor",
|
|
540
565
|
friendlyName: "Cursor",
|
|
@@ -719,7 +744,7 @@ function render7(text) {
|
|
|
719
744
|
__name(render7, "render");
|
|
720
745
|
|
|
721
746
|
// src/services/render-service.ts
|
|
722
|
-
var RenderService = class {
|
|
747
|
+
var RenderService = class _RenderService {
|
|
723
748
|
static {
|
|
724
749
|
__name(this, "RenderService");
|
|
725
750
|
}
|
|
@@ -739,7 +764,7 @@ var RenderService = class {
|
|
|
739
764
|
const centerColumns = [0, 2, 3];
|
|
740
765
|
const leftPadding = " ";
|
|
741
766
|
const columnWidths = headers.map((header, index) => {
|
|
742
|
-
const headerWidth =
|
|
767
|
+
const headerWidth = _RenderService.getVisibleLength(render2(header));
|
|
743
768
|
const dataWidth = Math.max(...data.map((row) => {
|
|
744
769
|
let text = String(row[keys[index]]);
|
|
745
770
|
if (keys[index] === "transport") {
|
|
@@ -754,19 +779,19 @@ var RenderService = class {
|
|
|
754
779
|
if (keys[index] === "name") {
|
|
755
780
|
text = render4(text);
|
|
756
781
|
}
|
|
757
|
-
return
|
|
782
|
+
return _RenderService.getVisibleLength(text);
|
|
758
783
|
}));
|
|
759
784
|
return Math.max(headerWidth, dataWidth);
|
|
760
785
|
});
|
|
761
786
|
const centerText = /* @__PURE__ */ __name((text, width) => {
|
|
762
|
-
const visibleLength =
|
|
787
|
+
const visibleLength = _RenderService.getVisibleLength(text);
|
|
763
788
|
const padding = width - visibleLength;
|
|
764
789
|
const leftPad = Math.floor(padding / 2);
|
|
765
790
|
const rightPad = padding - leftPad;
|
|
766
791
|
return " ".repeat(leftPad) + text + " ".repeat(rightPad);
|
|
767
792
|
}, "centerText");
|
|
768
793
|
const padRight = /* @__PURE__ */ __name((text, width) => {
|
|
769
|
-
const visibleLength =
|
|
794
|
+
const visibleLength = _RenderService.getVisibleLength(text);
|
|
770
795
|
const padding = Math.max(0, width - visibleLength);
|
|
771
796
|
return text + " ".repeat(padding);
|
|
772
797
|
}, "padRight");
|
|
@@ -824,13 +849,13 @@ var RenderService = class {
|
|
|
824
849
|
if (Object.keys(groupMetadata).length > 0) {
|
|
825
850
|
const runningCount = groupMetadata.mcpServersRunning || 0;
|
|
826
851
|
const totalCount = groupMetadata.mcpServersTotal || 0;
|
|
827
|
-
const metadataRow =
|
|
852
|
+
const metadataRow = _RenderService.renderProgressBar(runningCount, totalCount, "Running");
|
|
828
853
|
data.push({ key: "MCP SERVERS", value: metadataRow });
|
|
829
854
|
}
|
|
830
855
|
const columnWidths = headers.map((header, index) => {
|
|
831
856
|
const dataWidth = Math.max(...data.map((row) => {
|
|
832
857
|
const columnText = render2(row[keys[index]]);
|
|
833
|
-
const columnTextLength =
|
|
858
|
+
const columnTextLength = _RenderService.getVisibleLength(columnText);
|
|
834
859
|
return columnTextLength;
|
|
835
860
|
}));
|
|
836
861
|
return Math.max(header.length, dataWidth);
|
package/dist/main.cjs
CHANGED
|
@@ -261,6 +261,18 @@ var MCPServerManagerService = class {
|
|
|
261
261
|
estimatedProduct: "claude-desktop"
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
|
+
if (commandString.includes("cursor")) {
|
|
265
|
+
return {
|
|
266
|
+
estimatedVendor: "cursor",
|
|
267
|
+
estimatedProduct: "cursor"
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
if (commandString.includes("visual studio code") || commandString.includes("vscode")) {
|
|
271
|
+
return {
|
|
272
|
+
estimatedVendor: "vscode",
|
|
273
|
+
estimatedProduct: "vscode"
|
|
274
|
+
};
|
|
275
|
+
}
|
|
264
276
|
}
|
|
265
277
|
isCommandMatch(commandTokens, pid, ppid) {
|
|
266
278
|
if (commandTokens.length === 0) return false;
|
|
@@ -492,16 +504,21 @@ var MCPServerManagerService = class {
|
|
|
492
504
|
// src/main.ts
|
|
493
505
|
var osSpecificPaths = {
|
|
494
506
|
claude: [],
|
|
507
|
+
claude_code: [],
|
|
495
508
|
cursor: [],
|
|
496
509
|
vscode: [],
|
|
497
510
|
cline: [],
|
|
498
511
|
windsurf: [],
|
|
499
|
-
roo: []
|
|
512
|
+
roo: [],
|
|
513
|
+
"intellij-github-copilot": []
|
|
500
514
|
};
|
|
501
515
|
if ((0, import_node_os2.platform)() === "win32") {
|
|
502
516
|
osSpecificPaths["claude"] = [
|
|
503
517
|
{ filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
|
|
504
518
|
];
|
|
519
|
+
osSpecificPaths["claude_code"] = [
|
|
520
|
+
{ filePath: ".mcp.json", type: "local" }
|
|
521
|
+
];
|
|
505
522
|
osSpecificPaths["cursor"] = [
|
|
506
523
|
{ filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
|
|
507
524
|
{ filePath: ".cursor\\mcp.json", type: "local" }
|
|
@@ -529,6 +546,9 @@ if ((0, import_node_os2.platform)() === "win32") {
|
|
|
529
546
|
osSpecificPaths["claude"] = [
|
|
530
547
|
{ filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
|
|
531
548
|
];
|
|
549
|
+
osSpecificPaths["claude_code"] = [
|
|
550
|
+
{ filePath: ".mcp.json", type: "local" }
|
|
551
|
+
];
|
|
532
552
|
osSpecificPaths["cursor"] = [
|
|
533
553
|
{ filePath: "~/.cursor/mcp.json", type: "global" },
|
|
534
554
|
{ filePath: ".cursor/mcp.json", type: "local" }
|
|
@@ -563,6 +583,11 @@ var MCPFiles = class {
|
|
|
563
583
|
friendlyName: "Claude Desktop",
|
|
564
584
|
paths: osSpecificPaths["claude"]
|
|
565
585
|
},
|
|
586
|
+
claude_code: {
|
|
587
|
+
name: "claude-code",
|
|
588
|
+
friendlyName: "Claude Code",
|
|
589
|
+
paths: osSpecificPaths["claude_code"]
|
|
590
|
+
},
|
|
566
591
|
cursor: {
|
|
567
592
|
name: "cursor",
|
|
568
593
|
friendlyName: "Cursor",
|
package/dist/main.mjs
CHANGED
|
@@ -229,6 +229,18 @@ var MCPServerManagerService = class {
|
|
|
229
229
|
estimatedProduct: "claude-desktop"
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
+
if (commandString.includes("cursor")) {
|
|
233
|
+
return {
|
|
234
|
+
estimatedVendor: "cursor",
|
|
235
|
+
estimatedProduct: "cursor"
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
if (commandString.includes("visual studio code") || commandString.includes("vscode")) {
|
|
239
|
+
return {
|
|
240
|
+
estimatedVendor: "vscode",
|
|
241
|
+
estimatedProduct: "vscode"
|
|
242
|
+
};
|
|
243
|
+
}
|
|
232
244
|
}
|
|
233
245
|
isCommandMatch(commandTokens, pid, ppid) {
|
|
234
246
|
if (commandTokens.length === 0) return false;
|
|
@@ -460,16 +472,21 @@ var MCPServerManagerService = class {
|
|
|
460
472
|
// src/main.ts
|
|
461
473
|
var osSpecificPaths = {
|
|
462
474
|
claude: [],
|
|
475
|
+
claude_code: [],
|
|
463
476
|
cursor: [],
|
|
464
477
|
vscode: [],
|
|
465
478
|
cline: [],
|
|
466
479
|
windsurf: [],
|
|
467
|
-
roo: []
|
|
480
|
+
roo: [],
|
|
481
|
+
"intellij-github-copilot": []
|
|
468
482
|
};
|
|
469
483
|
if (platform2() === "win32") {
|
|
470
484
|
osSpecificPaths["claude"] = [
|
|
471
485
|
{ filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: "global" }
|
|
472
486
|
];
|
|
487
|
+
osSpecificPaths["claude_code"] = [
|
|
488
|
+
{ filePath: ".mcp.json", type: "local" }
|
|
489
|
+
];
|
|
473
490
|
osSpecificPaths["cursor"] = [
|
|
474
491
|
{ filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
|
|
475
492
|
{ filePath: ".cursor\\mcp.json", type: "local" }
|
|
@@ -497,6 +514,9 @@ if (platform2() === "win32") {
|
|
|
497
514
|
osSpecificPaths["claude"] = [
|
|
498
515
|
{ filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
|
|
499
516
|
];
|
|
517
|
+
osSpecificPaths["claude_code"] = [
|
|
518
|
+
{ filePath: ".mcp.json", type: "local" }
|
|
519
|
+
];
|
|
500
520
|
osSpecificPaths["cursor"] = [
|
|
501
521
|
{ filePath: "~/.cursor/mcp.json", type: "global" },
|
|
502
522
|
{ filePath: ".cursor/mcp.json", type: "local" }
|
|
@@ -531,6 +551,11 @@ var MCPFiles = class {
|
|
|
531
551
|
friendlyName: "Claude Desktop",
|
|
532
552
|
paths: osSpecificPaths["claude"]
|
|
533
553
|
},
|
|
554
|
+
claude_code: {
|
|
555
|
+
name: "claude-code",
|
|
556
|
+
friendlyName: "Claude Code",
|
|
557
|
+
paths: osSpecificPaths["claude_code"]
|
|
558
|
+
},
|
|
534
559
|
cursor: {
|
|
535
560
|
name: "cursor",
|
|
536
561
|
friendlyName: "Cursor",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ls-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "list and detect MCP servers and configurations",
|
|
5
5
|
"types": "dist/main.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@changesets/changelog-github": "^0.5.0",
|
|
81
81
|
"@changesets/cli": "^2.27.7",
|
|
82
|
-
"@types/node": "^
|
|
82
|
+
"@types/node": "^24.0.3",
|
|
83
83
|
"c8": "^10.1.2",
|
|
84
84
|
"eslint": "^9.6.0",
|
|
85
85
|
"eslint-plugin-security": "^3.0.1",
|
package/src/main.ts
CHANGED
|
@@ -45,17 +45,22 @@ type MCPFileGroupsResultRecord = Record<string, MCPFileGroupsResult>
|
|
|
45
45
|
|
|
46
46
|
const osSpecificPaths: { [key: string]: MCPFilePath[] } = {
|
|
47
47
|
claude: [],
|
|
48
|
+
claude_code: [],
|
|
48
49
|
cursor: [],
|
|
49
50
|
vscode: [],
|
|
50
51
|
cline: [],
|
|
51
52
|
windsurf: [],
|
|
52
|
-
roo: []
|
|
53
|
+
roo: [],
|
|
54
|
+
'intellij-github-copilot': []
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
if (platform() === 'win32') {
|
|
56
58
|
osSpecificPaths['claude'] = [
|
|
57
59
|
{ filePath: `${process.env.APPDATA}\\Claude\\claude_desktop_config.json`, type: 'global' }
|
|
58
60
|
]
|
|
61
|
+
osSpecificPaths['claude_code'] = [
|
|
62
|
+
{ filePath: '.mcp.json', type: 'local' }
|
|
63
|
+
]
|
|
59
64
|
osSpecificPaths['cursor'] = [
|
|
60
65
|
{ filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: 'global' },
|
|
61
66
|
{ filePath: '.cursor\\mcp.json', type: 'local' }
|
|
@@ -83,6 +88,9 @@ if (platform() === 'win32') {
|
|
|
83
88
|
osSpecificPaths['claude'] = [
|
|
84
89
|
{ filePath: '~/Library/Application Support/Claude/claude_desktop_config.json', type: 'global' }
|
|
85
90
|
]
|
|
91
|
+
osSpecificPaths['claude_code'] = [
|
|
92
|
+
{ filePath: '.mcp.json', type: 'local' }
|
|
93
|
+
]
|
|
86
94
|
osSpecificPaths['cursor'] = [
|
|
87
95
|
{ filePath: '~/.cursor/mcp.json', type: 'global' },
|
|
88
96
|
{ filePath: '.cursor/mcp.json', type: 'local' }
|
|
@@ -115,6 +123,11 @@ export class MCPFiles {
|
|
|
115
123
|
friendlyName: 'Claude Desktop',
|
|
116
124
|
paths: osSpecificPaths['claude']
|
|
117
125
|
},
|
|
126
|
+
claude_code: {
|
|
127
|
+
name: 'claude-code',
|
|
128
|
+
friendlyName: 'Claude Code',
|
|
129
|
+
paths: osSpecificPaths['claude_code']
|
|
130
|
+
},
|
|
118
131
|
cursor: {
|
|
119
132
|
name: 'cursor',
|
|
120
133
|
friendlyName: 'Cursor',
|
|
@@ -213,6 +213,20 @@ export class MCPServerManagerService {
|
|
|
213
213
|
estimatedProduct: 'claude-desktop'
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
+
|
|
217
|
+
if (commandString.includes('cursor')) {
|
|
218
|
+
return {
|
|
219
|
+
estimatedVendor: 'cursor',
|
|
220
|
+
estimatedProduct: 'cursor'
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (commandString.includes('visual studio code') || commandString.includes('vscode')) {
|
|
225
|
+
return {
|
|
226
|
+
estimatedVendor: 'vscode',
|
|
227
|
+
estimatedProduct: 'vscode'
|
|
228
|
+
}
|
|
229
|
+
}
|
|
216
230
|
}
|
|
217
231
|
|
|
218
232
|
private isCommandMatch (commandTokens: string[], pid: string, ppid: string): boolean {
|
|
@@ -35,7 +35,7 @@ export class RenderService {
|
|
|
35
35
|
|
|
36
36
|
// Calculate column widths accounting for styled text
|
|
37
37
|
const columnWidths = headers.map((header, index) => {
|
|
38
|
-
const headerWidth =
|
|
38
|
+
const headerWidth = RenderService.getVisibleLength(ColumnNameComponent(header))
|
|
39
39
|
const dataWidth = Math.max(...data.map(row => {
|
|
40
40
|
let text = String(row[keys[index]])
|
|
41
41
|
|
|
@@ -56,14 +56,14 @@ export class RenderService {
|
|
|
56
56
|
text = MCPServerNameComponent(text)
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
return
|
|
59
|
+
return RenderService.getVisibleLength(text)
|
|
60
60
|
}))
|
|
61
61
|
return Math.max(headerWidth, dataWidth)
|
|
62
62
|
})
|
|
63
63
|
|
|
64
64
|
// Helper function to center text in a given width
|
|
65
65
|
const centerText = (text: string, width: number): string => {
|
|
66
|
-
const visibleLength =
|
|
66
|
+
const visibleLength = RenderService.getVisibleLength(text)
|
|
67
67
|
const padding = width - visibleLength
|
|
68
68
|
const leftPad = Math.floor(padding / 2)
|
|
69
69
|
const rightPad = padding - leftPad
|
|
@@ -72,7 +72,7 @@ export class RenderService {
|
|
|
72
72
|
|
|
73
73
|
// Helper function to pad text to the right
|
|
74
74
|
const padRight = (text: string, width: number): string => {
|
|
75
|
-
const visibleLength =
|
|
75
|
+
const visibleLength = RenderService.getVisibleLength(text)
|
|
76
76
|
const padding = Math.max(0, width - visibleLength)
|
|
77
77
|
return text + ' '.repeat(padding)
|
|
78
78
|
}
|
|
@@ -158,7 +158,7 @@ export class RenderService {
|
|
|
158
158
|
if (Object.keys(groupMetadata).length > 0) {
|
|
159
159
|
const runningCount = groupMetadata.mcpServersRunning || 0
|
|
160
160
|
const totalCount = groupMetadata.mcpServersTotal || 0
|
|
161
|
-
const metadataRow =
|
|
161
|
+
const metadataRow = RenderService.renderProgressBar(runningCount, totalCount, 'Running')
|
|
162
162
|
data.push({ key: 'MCP SERVERS', value: metadataRow })
|
|
163
163
|
}
|
|
164
164
|
|
|
@@ -166,7 +166,7 @@ export class RenderService {
|
|
|
166
166
|
const columnWidths = headers.map((header, index) => {
|
|
167
167
|
const dataWidth = Math.max(...data.map(row => {
|
|
168
168
|
const columnText = ColumnNameComponent(row[keys[index]])
|
|
169
|
-
const columnTextLength =
|
|
169
|
+
const columnTextLength = RenderService.getVisibleLength(columnText)
|
|
170
170
|
return columnTextLength
|
|
171
171
|
}))
|
|
172
172
|
return Math.max(header.length, dataWidth)
|