ls-mcp 1.5.0 → 1.6.0

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
@@ -25,7 +25,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  ));
26
26
 
27
27
  // src/bin/cli.ts
28
- var import_node_util8 = require("util");
28
+ var import_node_util9 = require("util");
29
29
 
30
30
  // src/main.ts
31
31
  var import_promises2 = __toESM(require("fs/promises"), 1);
@@ -91,6 +91,7 @@ var MCPServerManagerService = class {
91
91
  command;
92
92
  args;
93
93
  transport;
94
+ source;
94
95
  env;
95
96
  running = false;
96
97
  constructor(serverConfig) {
@@ -98,6 +99,11 @@ var MCPServerManagerService = class {
98
99
  this.command = serverConfig.command;
99
100
  this.args = serverConfig.args || [];
100
101
  this.transport = serverConfig.transport || "stdio";
102
+ if (serverConfig.url) {
103
+ this.source = "remote";
104
+ } else {
105
+ this.source = "local";
106
+ }
101
107
  this.env = serverConfig.env || {};
102
108
  }
103
109
  getName() {
@@ -112,6 +118,9 @@ var MCPServerManagerService = class {
112
118
  getTransport() {
113
119
  return this.transport;
114
120
  }
121
+ getSource() {
122
+ return this.source;
123
+ }
115
124
  getEnv() {
116
125
  return this.env;
117
126
  }
@@ -474,6 +483,9 @@ if ((0, import_node_os2.platform)() === "win32") {
474
483
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
475
484
  { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
476
485
  ];
486
+ osSpecificPaths["intellij-github-copilot"] = [
487
+ { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
488
+ ];
477
489
  } else {
478
490
  osSpecificPaths["claude"] = [
479
491
  { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
@@ -498,6 +510,9 @@ if ((0, import_node_os2.platform)() === "win32") {
498
510
  { filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
499
511
  { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
500
512
  ];
513
+ osSpecificPaths["intellij-github-copilot"] = [
514
+ { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
515
+ ];
501
516
  }
502
517
  var MCPFiles = class {
503
518
  static {
@@ -533,6 +548,11 @@ var MCPFiles = class {
533
548
  name: "roo",
534
549
  friendlyName: "Roo",
535
550
  paths: osSpecificPaths["roo"]
551
+ },
552
+ "intellij-github-copilot": {
553
+ name: "intellij-github-copilot",
554
+ friendlyName: "IntelliJ GitHub Copilot",
555
+ paths: osSpecificPaths["intellij-github-copilot"]
536
556
  }
537
557
  };
538
558
  constructor(mcpFilePathGroups) {
@@ -569,6 +589,7 @@ var MCPFiles = class {
569
589
  name: serverName,
570
590
  command: serverConfigRaw.command || "",
571
591
  args: serverConfigRaw.args,
592
+ url: serverConfigRaw.url,
572
593
  transport: serverConfigRaw.transport,
573
594
  env: serverConfigRaw.env
574
595
  };
@@ -584,6 +605,7 @@ var MCPFiles = class {
584
605
  name: MCPServerManager.getName(),
585
606
  command: MCPServerManager.getCmd(),
586
607
  args: MCPServerManager.getArgs(),
608
+ source: MCPServerManager.getSource(),
587
609
  transport: MCPServerManager.getTransport(),
588
610
  env: MCPServerManager.getEnv(),
589
611
  status: mcpServerProcess ? "running" : "stopped"
@@ -601,7 +623,7 @@ var MCPFiles = class {
601
623
  };
602
624
 
603
625
  // src/services/render-service.ts
604
- var import_node_util7 = require("util");
626
+ var import_node_util8 = require("util");
605
627
 
606
628
  // src/components/transport.ts
607
629
  var import_node_util = require("util");
@@ -650,28 +672,42 @@ function render4(text) {
650
672
  }
651
673
  __name(render4, "render");
652
674
 
653
- // src/components/file-path.ts
675
+ // src/components/mcp-server-source.ts
654
676
  var import_node_util5 = require("util");
655
677
  function render5(text) {
656
- const formattedText = text;
657
- const data = (0, import_node_util5.styleText)(["underline"], formattedText);
658
- return data;
678
+ const formattedText = text.toUpperCase();
679
+ if (formattedText === "LOCAL") {
680
+ return (0, import_node_util5.styleText)(["gray"], formattedText);
681
+ }
682
+ if (formattedText === "REMOTE") {
683
+ return (0, import_node_util5.styleText)(["blue"], formattedText);
684
+ }
685
+ return formattedText;
659
686
  }
660
687
  __name(render5, "render");
661
688
 
662
- // src/components/mcp-servers-config-parsable.ts
689
+ // src/components/file-path.ts
663
690
  var import_node_util6 = require("util");
664
691
  function render6(text) {
692
+ const formattedText = text;
693
+ const data = (0, import_node_util6.styleText)(["underline"], formattedText);
694
+ return data;
695
+ }
696
+ __name(render6, "render");
697
+
698
+ // src/components/mcp-servers-config-parsable.ts
699
+ var import_node_util7 = require("util");
700
+ function render7(text) {
665
701
  const formattedText = text.toUpperCase().replace(/_/g, " ");
666
702
  let data = formattedText;
667
703
  if (formattedText === "VALID") {
668
- data = (0, import_node_util6.styleText)(["green"], "\u25CF");
704
+ data = (0, import_node_util7.styleText)(["green"], "\u25CF");
669
705
  } else {
670
- data = (0, import_node_util6.styleText)(["red"], "\u25CF");
706
+ data = (0, import_node_util7.styleText)(["red"], "\u25CF");
671
707
  }
672
708
  return data;
673
709
  }
674
- __name(render6, "render");
710
+ __name(render7, "render");
675
711
 
676
712
  // src/services/render-service.ts
677
713
  var RenderService = class {
@@ -689,9 +725,9 @@ var RenderService = class {
689
725
  }
690
726
  static printMcpServers(data) {
691
727
  if (data.length === 0) return;
692
- const headers = ["STATUS", "NAME", "TRANSPORT"];
693
- const keys = ["status", "name", "transport"];
694
- const centerColumns = [0, 2];
728
+ const headers = ["STATUS", "NAME", "SOURCE", "TRANSPORT"];
729
+ const keys = ["status", "name", "source", "transport"];
730
+ const centerColumns = [0, 2, 3];
695
731
  const leftPadding = " ";
696
732
  const columnWidths = headers.map((header, index) => {
697
733
  const headerWidth = this.getVisibleLength(render2(header));
@@ -703,6 +739,9 @@ var RenderService = class {
703
739
  if (keys[index] === "status") {
704
740
  text = render3(text);
705
741
  }
742
+ if (keys[index] === "source") {
743
+ text = render5(text);
744
+ }
706
745
  if (keys[index] === "name") {
707
746
  text = render4(text);
708
747
  }
@@ -743,6 +782,9 @@ var RenderService = class {
743
782
  if (key === "status") {
744
783
  text = render3(text);
745
784
  }
785
+ if (keys[index] === "source") {
786
+ text = render5(text);
787
+ }
746
788
  if (key === "name") {
747
789
  text = render4(text);
748
790
  }
@@ -791,10 +833,10 @@ var RenderService = class {
791
833
  return render2(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
792
834
  }
793
835
  if (row["key"] === "FILE") {
794
- return render5(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
836
+ return render6(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
795
837
  }
796
838
  if (row["key"] === "PARSABLE") {
797
- return render6(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
839
+ return render7(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
798
840
  }
799
841
  return String(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
800
842
  }).join(" ");
@@ -815,8 +857,8 @@ var RenderService = class {
815
857
  let filled;
816
858
  let empty;
817
859
  if (count > 0) {
818
- filled = (0, import_node_util7.styleText)(["greenBright"], "\u2588".repeat(filledWidth));
819
- empty = (0, import_node_util7.styleText)(["green"], "\u2591".repeat(emptyWidth));
860
+ filled = (0, import_node_util8.styleText)(["greenBright"], "\u2588".repeat(filledWidth));
861
+ empty = (0, import_node_util8.styleText)(["green"], "\u2591".repeat(emptyWidth));
820
862
  } else {
821
863
  filled = "\u2588".repeat(filledWidth);
822
864
  empty = "\u2591".repeat(emptyWidth);
@@ -870,7 +912,7 @@ init().then(() => {
870
912
  console.log("\n");
871
913
  });
872
914
  function exitWithError(message) {
873
- console.error(`${(0, import_node_util8.styleText)(["red"], "\u25CF")} ${message}
915
+ console.error(`${(0, import_node_util9.styleText)(["red"], "\u25CF")} ${message}
874
916
  `);
875
917
  process.exit(1);
876
918
  }
package/dist/bin/cli.mjs CHANGED
@@ -3,7 +3,7 @@ var __defProp = Object.defineProperty;
3
3
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
4
 
5
5
  // src/bin/cli.ts
6
- import { styleText as styleText8 } from "util";
6
+ import { styleText as styleText9 } from "util";
7
7
 
8
8
  // src/main.ts
9
9
  import fs2 from "fs/promises";
@@ -69,6 +69,7 @@ var MCPServerManagerService = class {
69
69
  command;
70
70
  args;
71
71
  transport;
72
+ source;
72
73
  env;
73
74
  running = false;
74
75
  constructor(serverConfig) {
@@ -76,6 +77,11 @@ var MCPServerManagerService = class {
76
77
  this.command = serverConfig.command;
77
78
  this.args = serverConfig.args || [];
78
79
  this.transport = serverConfig.transport || "stdio";
80
+ if (serverConfig.url) {
81
+ this.source = "remote";
82
+ } else {
83
+ this.source = "local";
84
+ }
79
85
  this.env = serverConfig.env || {};
80
86
  }
81
87
  getName() {
@@ -90,6 +96,9 @@ var MCPServerManagerService = class {
90
96
  getTransport() {
91
97
  return this.transport;
92
98
  }
99
+ getSource() {
100
+ return this.source;
101
+ }
93
102
  getEnv() {
94
103
  return this.env;
95
104
  }
@@ -452,6 +461,9 @@ if (platform2() === "win32") {
452
461
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
453
462
  { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
454
463
  ];
464
+ osSpecificPaths["intellij-github-copilot"] = [
465
+ { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
466
+ ];
455
467
  } else {
456
468
  osSpecificPaths["claude"] = [
457
469
  { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
@@ -476,6 +488,9 @@ if (platform2() === "win32") {
476
488
  { filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
477
489
  { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
478
490
  ];
491
+ osSpecificPaths["intellij-github-copilot"] = [
492
+ { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
493
+ ];
479
494
  }
480
495
  var MCPFiles = class {
481
496
  static {
@@ -511,6 +526,11 @@ var MCPFiles = class {
511
526
  name: "roo",
512
527
  friendlyName: "Roo",
513
528
  paths: osSpecificPaths["roo"]
529
+ },
530
+ "intellij-github-copilot": {
531
+ name: "intellij-github-copilot",
532
+ friendlyName: "IntelliJ GitHub Copilot",
533
+ paths: osSpecificPaths["intellij-github-copilot"]
514
534
  }
515
535
  };
516
536
  constructor(mcpFilePathGroups) {
@@ -547,6 +567,7 @@ var MCPFiles = class {
547
567
  name: serverName,
548
568
  command: serverConfigRaw.command || "",
549
569
  args: serverConfigRaw.args,
570
+ url: serverConfigRaw.url,
550
571
  transport: serverConfigRaw.transport,
551
572
  env: serverConfigRaw.env
552
573
  };
@@ -562,6 +583,7 @@ var MCPFiles = class {
562
583
  name: MCPServerManager.getName(),
563
584
  command: MCPServerManager.getCmd(),
564
585
  args: MCPServerManager.getArgs(),
586
+ source: MCPServerManager.getSource(),
565
587
  transport: MCPServerManager.getTransport(),
566
588
  env: MCPServerManager.getEnv(),
567
589
  status: mcpServerProcess ? "running" : "stopped"
@@ -579,7 +601,7 @@ var MCPFiles = class {
579
601
  };
580
602
 
581
603
  // src/services/render-service.ts
582
- import { styleText as styleText7 } from "util";
604
+ import { styleText as styleText8 } from "util";
583
605
 
584
606
  // src/components/transport.ts
585
607
  import { styleText } from "util";
@@ -628,28 +650,42 @@ function render4(text) {
628
650
  }
629
651
  __name(render4, "render");
630
652
 
631
- // src/components/file-path.ts
653
+ // src/components/mcp-server-source.ts
632
654
  import { styleText as styleText5 } from "util";
633
655
  function render5(text) {
634
- const formattedText = text;
635
- const data = styleText5(["underline"], formattedText);
636
- return data;
656
+ const formattedText = text.toUpperCase();
657
+ if (formattedText === "LOCAL") {
658
+ return styleText5(["gray"], formattedText);
659
+ }
660
+ if (formattedText === "REMOTE") {
661
+ return styleText5(["blue"], formattedText);
662
+ }
663
+ return formattedText;
637
664
  }
638
665
  __name(render5, "render");
639
666
 
640
- // src/components/mcp-servers-config-parsable.ts
667
+ // src/components/file-path.ts
641
668
  import { styleText as styleText6 } from "util";
642
669
  function render6(text) {
670
+ const formattedText = text;
671
+ const data = styleText6(["underline"], formattedText);
672
+ return data;
673
+ }
674
+ __name(render6, "render");
675
+
676
+ // src/components/mcp-servers-config-parsable.ts
677
+ import { styleText as styleText7 } from "util";
678
+ function render7(text) {
643
679
  const formattedText = text.toUpperCase().replace(/_/g, " ");
644
680
  let data = formattedText;
645
681
  if (formattedText === "VALID") {
646
- data = styleText6(["green"], "\u25CF");
682
+ data = styleText7(["green"], "\u25CF");
647
683
  } else {
648
- data = styleText6(["red"], "\u25CF");
684
+ data = styleText7(["red"], "\u25CF");
649
685
  }
650
686
  return data;
651
687
  }
652
- __name(render6, "render");
688
+ __name(render7, "render");
653
689
 
654
690
  // src/services/render-service.ts
655
691
  var RenderService = class {
@@ -667,9 +703,9 @@ var RenderService = class {
667
703
  }
668
704
  static printMcpServers(data) {
669
705
  if (data.length === 0) return;
670
- const headers = ["STATUS", "NAME", "TRANSPORT"];
671
- const keys = ["status", "name", "transport"];
672
- const centerColumns = [0, 2];
706
+ const headers = ["STATUS", "NAME", "SOURCE", "TRANSPORT"];
707
+ const keys = ["status", "name", "source", "transport"];
708
+ const centerColumns = [0, 2, 3];
673
709
  const leftPadding = " ";
674
710
  const columnWidths = headers.map((header, index) => {
675
711
  const headerWidth = this.getVisibleLength(render2(header));
@@ -681,6 +717,9 @@ var RenderService = class {
681
717
  if (keys[index] === "status") {
682
718
  text = render3(text);
683
719
  }
720
+ if (keys[index] === "source") {
721
+ text = render5(text);
722
+ }
684
723
  if (keys[index] === "name") {
685
724
  text = render4(text);
686
725
  }
@@ -721,6 +760,9 @@ var RenderService = class {
721
760
  if (key === "status") {
722
761
  text = render3(text);
723
762
  }
763
+ if (keys[index] === "source") {
764
+ text = render5(text);
765
+ }
724
766
  if (key === "name") {
725
767
  text = render4(text);
726
768
  }
@@ -769,10 +811,10 @@ var RenderService = class {
769
811
  return render2(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
770
812
  }
771
813
  if (row["key"] === "FILE") {
772
- return render5(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
814
+ return render6(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
773
815
  }
774
816
  if (row["key"] === "PARSABLE") {
775
- return render6(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
817
+ return render7(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
776
818
  }
777
819
  return String(row[key]).padEnd(columnWidths[index2] + paddingNormalizer);
778
820
  }).join(" ");
@@ -793,8 +835,8 @@ var RenderService = class {
793
835
  let filled;
794
836
  let empty;
795
837
  if (count > 0) {
796
- filled = styleText7(["greenBright"], "\u2588".repeat(filledWidth));
797
- empty = styleText7(["green"], "\u2591".repeat(emptyWidth));
838
+ filled = styleText8(["greenBright"], "\u2588".repeat(filledWidth));
839
+ empty = styleText8(["green"], "\u2591".repeat(emptyWidth));
798
840
  } else {
799
841
  filled = "\u2588".repeat(filledWidth);
800
842
  empty = "\u2591".repeat(emptyWidth);
@@ -848,7 +890,7 @@ init().then(() => {
848
890
  console.log("\n");
849
891
  });
850
892
  function exitWithError(message) {
851
- console.error(`${styleText8(["red"], "\u25CF")} ${message}
893
+ console.error(`${styleText9(["red"], "\u25CF")} ${message}
852
894
  `);
853
895
  process.exit(1);
854
896
  }
package/dist/main.cjs CHANGED
@@ -97,6 +97,7 @@ var MCPServerManagerService = class {
97
97
  command;
98
98
  args;
99
99
  transport;
100
+ source;
100
101
  env;
101
102
  running = false;
102
103
  constructor(serverConfig) {
@@ -104,6 +105,11 @@ var MCPServerManagerService = class {
104
105
  this.command = serverConfig.command;
105
106
  this.args = serverConfig.args || [];
106
107
  this.transport = serverConfig.transport || "stdio";
108
+ if (serverConfig.url) {
109
+ this.source = "remote";
110
+ } else {
111
+ this.source = "local";
112
+ }
107
113
  this.env = serverConfig.env || {};
108
114
  }
109
115
  getName() {
@@ -118,6 +124,9 @@ var MCPServerManagerService = class {
118
124
  getTransport() {
119
125
  return this.transport;
120
126
  }
127
+ getSource() {
128
+ return this.source;
129
+ }
121
130
  getEnv() {
122
131
  return this.env;
123
132
  }
@@ -480,6 +489,9 @@ if ((0, import_node_os2.platform)() === "win32") {
480
489
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
481
490
  { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
482
491
  ];
492
+ osSpecificPaths["intellij-github-copilot"] = [
493
+ { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
494
+ ];
483
495
  } else {
484
496
  osSpecificPaths["claude"] = [
485
497
  { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
@@ -504,6 +516,9 @@ if ((0, import_node_os2.platform)() === "win32") {
504
516
  { filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
505
517
  { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
506
518
  ];
519
+ osSpecificPaths["intellij-github-copilot"] = [
520
+ { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
521
+ ];
507
522
  }
508
523
  var MCPFiles = class {
509
524
  static {
@@ -539,6 +554,11 @@ var MCPFiles = class {
539
554
  name: "roo",
540
555
  friendlyName: "Roo",
541
556
  paths: osSpecificPaths["roo"]
557
+ },
558
+ "intellij-github-copilot": {
559
+ name: "intellij-github-copilot",
560
+ friendlyName: "IntelliJ GitHub Copilot",
561
+ paths: osSpecificPaths["intellij-github-copilot"]
542
562
  }
543
563
  };
544
564
  constructor(mcpFilePathGroups) {
@@ -575,6 +595,7 @@ var MCPFiles = class {
575
595
  name: serverName,
576
596
  command: serverConfigRaw.command || "",
577
597
  args: serverConfigRaw.args,
598
+ url: serverConfigRaw.url,
578
599
  transport: serverConfigRaw.transport,
579
600
  env: serverConfigRaw.env
580
601
  };
@@ -590,6 +611,7 @@ var MCPFiles = class {
590
611
  name: MCPServerManager.getName(),
591
612
  command: MCPServerManager.getCmd(),
592
613
  args: MCPServerManager.getArgs(),
614
+ source: MCPServerManager.getSource(),
593
615
  transport: MCPServerManager.getTransport(),
594
616
  env: MCPServerManager.getEnv(),
595
617
  status: mcpServerProcess ? "running" : "stopped"
package/dist/main.d.cts CHANGED
@@ -2,7 +2,8 @@ interface MCPServerInfo {
2
2
  name: string;
3
3
  command: string;
4
4
  args?: string[];
5
- transport?: 'stdio' | 'sse';
5
+ transport?: 'stdio' | 'sse' | 'http';
6
+ source?: 'local' | 'remote';
6
7
  env?: Record<string, string>;
7
8
  status?: 'running' | 'stopped';
8
9
  }
package/dist/main.d.ts CHANGED
@@ -2,7 +2,8 @@ interface MCPServerInfo {
2
2
  name: string;
3
3
  command: string;
4
4
  args?: string[];
5
- transport?: 'stdio' | 'sse';
5
+ transport?: 'stdio' | 'sse' | 'http';
6
+ source?: 'local' | 'remote';
6
7
  env?: Record<string, string>;
7
8
  status?: 'running' | 'stopped';
8
9
  }
package/dist/main.mjs CHANGED
@@ -65,6 +65,7 @@ var MCPServerManagerService = class {
65
65
  command;
66
66
  args;
67
67
  transport;
68
+ source;
68
69
  env;
69
70
  running = false;
70
71
  constructor(serverConfig) {
@@ -72,6 +73,11 @@ var MCPServerManagerService = class {
72
73
  this.command = serverConfig.command;
73
74
  this.args = serverConfig.args || [];
74
75
  this.transport = serverConfig.transport || "stdio";
76
+ if (serverConfig.url) {
77
+ this.source = "remote";
78
+ } else {
79
+ this.source = "local";
80
+ }
75
81
  this.env = serverConfig.env || {};
76
82
  }
77
83
  getName() {
@@ -86,6 +92,9 @@ var MCPServerManagerService = class {
86
92
  getTransport() {
87
93
  return this.transport;
88
94
  }
95
+ getSource() {
96
+ return this.source;
97
+ }
89
98
  getEnv() {
90
99
  return this.env;
91
100
  }
@@ -448,6 +457,9 @@ if (platform2() === "win32") {
448
457
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" },
449
458
  { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: "global" }
450
459
  ];
460
+ osSpecificPaths["intellij-github-copilot"] = [
461
+ { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
462
+ ];
451
463
  } else {
452
464
  osSpecificPaths["claude"] = [
453
465
  { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
@@ -472,6 +484,9 @@ if (platform2() === "win32") {
472
484
  { filePath: "~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" },
473
485
  { filePath: "~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json", type: "global" }
474
486
  ];
487
+ osSpecificPaths["intellij-github-copilot"] = [
488
+ { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
489
+ ];
475
490
  }
476
491
  var MCPFiles = class {
477
492
  static {
@@ -507,6 +522,11 @@ var MCPFiles = class {
507
522
  name: "roo",
508
523
  friendlyName: "Roo",
509
524
  paths: osSpecificPaths["roo"]
525
+ },
526
+ "intellij-github-copilot": {
527
+ name: "intellij-github-copilot",
528
+ friendlyName: "IntelliJ GitHub Copilot",
529
+ paths: osSpecificPaths["intellij-github-copilot"]
510
530
  }
511
531
  };
512
532
  constructor(mcpFilePathGroups) {
@@ -543,6 +563,7 @@ var MCPFiles = class {
543
563
  name: serverName,
544
564
  command: serverConfigRaw.command || "",
545
565
  args: serverConfigRaw.args,
566
+ url: serverConfigRaw.url,
546
567
  transport: serverConfigRaw.transport,
547
568
  env: serverConfigRaw.env
548
569
  };
@@ -558,6 +579,7 @@ var MCPFiles = class {
558
579
  name: MCPServerManager.getName(),
559
580
  command: MCPServerManager.getCmd(),
560
581
  args: MCPServerManager.getArgs(),
582
+ source: MCPServerManager.getSource(),
561
583
  transport: MCPServerManager.getTransport(),
562
584
  env: MCPServerManager.getEnv(),
563
585
  status: mcpServerProcess ? "running" : "stopped"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ls-mcp",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "list and detect MCP servers and configurations",
5
5
  "types": "dist/main.d.ts",
6
6
  "type": "module",
package/src/bin/cli.ts CHANGED
@@ -9,7 +9,8 @@ interface MCPServerInfo {
9
9
  name: string
10
10
  command: string
11
11
  args?: string[]
12
- transport?: 'stdio' | 'sse'
12
+ transport?: 'stdio' | 'sse' | 'http'
13
+ source?: 'local' | 'remote'
13
14
  env?: Record<string, string>
14
15
  status?: 'running' | 'stopped'
15
16
  }
@@ -0,0 +1,15 @@
1
+ import { styleText } from 'node:util'
2
+
3
+ export default function render (text: string) {
4
+ const formattedText = text.toUpperCase()
5
+
6
+ if (formattedText === 'LOCAL') {
7
+ return styleText(['gray'], formattedText)
8
+ }
9
+
10
+ if (formattedText === 'REMOTE') {
11
+ return styleText(['blue'], formattedText)
12
+ }
13
+
14
+ return formattedText
15
+ }
package/src/main.ts CHANGED
@@ -8,7 +8,8 @@ interface MCPServerInfo {
8
8
  name: string
9
9
  command: string
10
10
  args?: string[]
11
- transport?: 'stdio' | 'sse',
11
+ transport?: 'stdio' | 'sse' | 'http',
12
+ source?: 'local' | 'remote'
12
13
  env?: Record<string, string>
13
14
  status?: 'running' | 'stopped'
14
15
  }
@@ -72,7 +73,11 @@ if (platform() === 'win32') {
72
73
  ]
73
74
  osSpecificPaths['roo'] = [
74
75
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: 'global' },
75
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: 'global' },]
76
+ { filePath: `${process.env.APPDATA}\\Code - Insiders\\User\\globalStorage\\rooveterinaryinc.roo-cline\\settings\\cline_mcp_settings.json`, type: 'global' },
77
+ ]
78
+ osSpecificPaths['intellij-github-copilot'] = [
79
+ { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: 'global' },
80
+ ]
76
81
  } else {
77
82
  osSpecificPaths['claude'] = [
78
83
  { filePath: '~/Library/Application Support/Claude/claude_desktop_config.json', type: 'global' }
@@ -97,6 +102,9 @@ if (platform() === 'win32') {
97
102
  { filePath: '~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json', type: 'global' },
98
103
  { filePath: '~/Library/Application Support/Code - Insiders/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json', type: 'global' },
99
104
  ]
105
+ osSpecificPaths['intellij-github-copilot'] = [
106
+ { filePath: '~/.config/github-copilot/intellij/mcp.json', type: 'global' },
107
+ ]
100
108
  }
101
109
 
102
110
  export class MCPFiles {
@@ -130,6 +138,11 @@ export class MCPFiles {
130
138
  name: 'roo',
131
139
  friendlyName: 'Roo',
132
140
  paths: osSpecificPaths['roo']
141
+ },
142
+ 'intellij-github-copilot': {
143
+ name: 'intellij-github-copilot',
144
+ friendlyName: 'IntelliJ GitHub Copilot',
145
+ paths: osSpecificPaths['intellij-github-copilot']
133
146
  }
134
147
  }
135
148
 
@@ -176,6 +189,7 @@ export class MCPFiles {
176
189
  name: serverName,
177
190
  command: serverConfigRaw.command || '',
178
191
  args: serverConfigRaw.args,
192
+ url: serverConfigRaw.url,
179
193
  transport: serverConfigRaw.transport,
180
194
  env: serverConfigRaw.env
181
195
  }
@@ -193,6 +207,7 @@ export class MCPFiles {
193
207
  name: MCPServerManager.getName(),
194
208
  command: MCPServerManager.getCmd(),
195
209
  args: MCPServerManager.getArgs(),
210
+ source: MCPServerManager.getSource(),
196
211
  transport: MCPServerManager.getTransport(),
197
212
  env: MCPServerManager.getEnv(),
198
213
  status: mcpServerProcess ? 'running' : 'stopped'
@@ -7,6 +7,7 @@ interface MCPServerConfig {
7
7
  command: string
8
8
  args?: string[]
9
9
  transport?: 'stdio' | 'sse'
10
+ url?: string
10
11
  env?: Record<string, string>
11
12
  }
12
13
 
@@ -24,6 +25,7 @@ export class MCPServerManagerService {
24
25
  private command: string
25
26
  private args: string[]
26
27
  private transport?: 'stdio' | 'sse'
28
+ private source?: 'local' | 'remote'
27
29
  private env?: Record<string, string>
28
30
  private running: boolean = false
29
31
 
@@ -32,6 +34,11 @@ export class MCPServerManagerService {
32
34
  this.command = serverConfig.command
33
35
  this.args = serverConfig.args || []
34
36
  this.transport = serverConfig.transport || 'stdio'
37
+ if (serverConfig.url) {
38
+ this.source = 'remote'
39
+ } else {
40
+ this.source = 'local'
41
+ }
35
42
  this.env = serverConfig.env || {}
36
43
  }
37
44
 
@@ -47,10 +54,14 @@ export class MCPServerManagerService {
47
54
  return this.args
48
55
  }
49
56
 
50
- getTransport (): 'stdio' | 'sse' | undefined {
57
+ getTransport (): 'stdio' | 'sse' | 'http' | undefined {
51
58
  return this.transport
52
59
  }
53
60
 
61
+ getSource (): 'local' | 'remote' | undefined {
62
+ return this.source
63
+ }
64
+
54
65
  getEnv (): Record<string, string> | undefined {
55
66
  return this.env
56
67
  }
@@ -3,6 +3,7 @@ import TransportComponent from '../components/transport.js'
3
3
  import ColumnNameComponent from '../components/column-name.js'
4
4
  import MCPServerStatusComponent from '../components/mcp-server-status.js'
5
5
  import MCPServerNameComponent from '../components/mcp-server-name.js'
6
+ import MCPServerSourceComponent from '../components/mcp-server-source.js'
6
7
  import FilePathComponent from '../components/file-path.js'
7
8
  import MCPServersConfigParsableComponent from '../components/mcp-servers-config-parsable.js'
8
9
 
@@ -27,9 +28,9 @@ export class RenderService {
27
28
  static printMcpServers (data: any[]) {
28
29
  if (data.length === 0) return
29
30
 
30
- const headers = ['STATUS', 'NAME', 'TRANSPORT']
31
- const keys = ['status', 'name', 'transport']
32
- const centerColumns = [0, 2] // STATUS and TRANSPORT column indices
31
+ const headers = ['STATUS', 'NAME', 'SOURCE', 'TRANSPORT']
32
+ const keys = ['status', 'name', 'source', 'transport']
33
+ const centerColumns = [0, 2, 3] // STATUS and TRANSPORT column indices
33
34
  const leftPadding = ' ' // 6 characters
34
35
 
35
36
  // Calculate column widths accounting for styled text
@@ -42,9 +43,15 @@ export class RenderService {
42
43
  if (keys[index] === 'transport') {
43
44
  text = TransportComponent(text)
44
45
  }
46
+
45
47
  if (keys[index] === 'status') {
46
48
  text = MCPServerStatusComponent(text)
47
49
  }
50
+
51
+ if (keys[index] === 'source') {
52
+ text = MCPServerSourceComponent(text)
53
+ }
54
+
48
55
  if (keys[index] === 'name') {
49
56
  text = MCPServerNameComponent(text)
50
57
  }
@@ -99,9 +106,15 @@ export class RenderService {
99
106
  if (key === 'transport') {
100
107
  text = TransportComponent(text)
101
108
  }
109
+
102
110
  if (key === 'status') {
103
111
  text = MCPServerStatusComponent(text)
104
112
  }
113
+
114
+ if (keys[index] === 'source') {
115
+ text = MCPServerSourceComponent(text)
116
+ }
117
+
105
118
  if (key === 'name') {
106
119
  text = MCPServerNameComponent(text)
107
120
  }