ls-mcp 1.8.1 → 1.9.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
@@ -78,8 +78,12 @@ var MCPConfigLinterService = class {
78
78
  }
79
79
  }
80
80
  async countMCPServers() {
81
- const mcpServers = await this.getMCPServers();
82
- return Object.keys(mcpServers).length;
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();
@@ -92,6 +96,9 @@ var MCPConfigLinterService = class {
92
96
  if (this.fileContentsData?.mcpServers) {
93
97
  return this.fileContentsData.mcpServers;
94
98
  }
99
+ if (this.fileContentsData?.context_servers) {
100
+ return this.fileContentsData.context_servers;
101
+ }
95
102
  return {};
96
103
  }
97
104
  async getFileContent() {
@@ -134,8 +141,10 @@ var MCPServerManagerService = class {
134
141
  }
135
142
  if (serverConfig.url) {
136
143
  this.source = serverConfig.url;
144
+ this.transport = "http";
137
145
  } else {
138
- this.source = this.getBaseCommand(serverConfig.command);
146
+ const fullCommand = [serverConfig.command, ...serverConfig.args || []].join(" ");
147
+ this.source = fullCommand;
139
148
  }
140
149
  this.env = serverConfig.env || {};
141
150
  }
@@ -504,7 +513,8 @@ var osSpecificPaths = {
504
513
  cline: [],
505
514
  windsurf: [],
506
515
  roo: [],
507
- "intellij-github-copilot": []
516
+ "intellij-github-copilot": [],
517
+ junie: []
508
518
  };
509
519
  if ((0, import_node_os2.platform)() === "win32") {
510
520
  osSpecificPaths["claude"] = [
@@ -514,13 +524,15 @@ if ((0, import_node_os2.platform)() === "win32") {
514
524
  { filePath: ".mcp.json", type: "local" }
515
525
  ];
516
526
  osSpecificPaths["cursor"] = [
517
- { filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
527
+ { filePath: "~\\.cursor\\mcp.json", type: "global" },
518
528
  { filePath: ".cursor\\mcp.json", type: "local" }
519
529
  ];
520
530
  osSpecificPaths["vscode"] = [
521
531
  { filePath: ".vscode\\mcp.json", type: "local" },
522
532
  { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
523
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\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" }
524
536
  ];
525
537
  osSpecificPaths["cline"] = [
526
538
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
@@ -536,6 +548,13 @@ if ((0, import_node_os2.platform)() === "win32") {
536
548
  osSpecificPaths["intellij-github-copilot"] = [
537
549
  { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
538
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
+ ];
539
558
  } else {
540
559
  osSpecificPaths["claude"] = [
541
560
  { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
@@ -550,7 +569,9 @@ if ((0, import_node_os2.platform)() === "win32") {
550
569
  osSpecificPaths["vscode"] = [
551
570
  { filePath: ".vscode/mcp.json", type: "local" },
552
571
  { filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
553
- { filePath: "~/Library/Application Support/Code - Insiders/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" }
554
575
  ];
555
576
  osSpecificPaths["cline"] = [
556
577
  { filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
@@ -566,6 +587,14 @@ if ((0, import_node_os2.platform)() === "win32") {
566
587
  osSpecificPaths["intellij-github-copilot"] = [
567
588
  { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
568
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
+ ];
569
598
  }
570
599
  var MCPFiles = class {
571
600
  static {
@@ -611,6 +640,16 @@ var MCPFiles = class {
611
640
  name: "intellij-github-copilot",
612
641
  friendlyName: "IntelliJ GitHub Copilot",
613
642
  paths: osSpecificPaths["intellij-github-copilot"]
643
+ },
644
+ junie: {
645
+ name: "junie",
646
+ friendlyName: "IntelliJ Junie",
647
+ paths: osSpecificPaths["junie"]
648
+ },
649
+ zed: {
650
+ name: "zed",
651
+ friendlyName: "Zed",
652
+ paths: osSpecificPaths["zed"]
614
653
  }
615
654
  };
616
655
  constructor(mcpFilePathGroups) {
package/dist/bin/cli.mjs CHANGED
@@ -56,8 +56,12 @@ var MCPConfigLinterService = class {
56
56
  }
57
57
  }
58
58
  async countMCPServers() {
59
- const mcpServers = await this.getMCPServers();
60
- return Object.keys(mcpServers).length;
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();
@@ -70,6 +74,9 @@ var MCPConfigLinterService = class {
70
74
  if (this.fileContentsData?.mcpServers) {
71
75
  return this.fileContentsData.mcpServers;
72
76
  }
77
+ if (this.fileContentsData?.context_servers) {
78
+ return this.fileContentsData.context_servers;
79
+ }
73
80
  return {};
74
81
  }
75
82
  async getFileContent() {
@@ -112,8 +119,10 @@ var MCPServerManagerService = class {
112
119
  }
113
120
  if (serverConfig.url) {
114
121
  this.source = serverConfig.url;
122
+ this.transport = "http";
115
123
  } else {
116
- this.source = this.getBaseCommand(serverConfig.command);
124
+ const fullCommand = [serverConfig.command, ...serverConfig.args || []].join(" ");
125
+ this.source = fullCommand;
117
126
  }
118
127
  this.env = serverConfig.env || {};
119
128
  }
@@ -482,7 +491,8 @@ var osSpecificPaths = {
482
491
  cline: [],
483
492
  windsurf: [],
484
493
  roo: [],
485
- "intellij-github-copilot": []
494
+ "intellij-github-copilot": [],
495
+ junie: []
486
496
  };
487
497
  if (platform2() === "win32") {
488
498
  osSpecificPaths["claude"] = [
@@ -492,13 +502,15 @@ if (platform2() === "win32") {
492
502
  { filePath: ".mcp.json", type: "local" }
493
503
  ];
494
504
  osSpecificPaths["cursor"] = [
495
- { filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
505
+ { filePath: "~\\.cursor\\mcp.json", type: "global" },
496
506
  { filePath: ".cursor\\mcp.json", type: "local" }
497
507
  ];
498
508
  osSpecificPaths["vscode"] = [
499
509
  { filePath: ".vscode\\mcp.json", type: "local" },
500
510
  { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
501
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\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" }
502
514
  ];
503
515
  osSpecificPaths["cline"] = [
504
516
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
@@ -514,6 +526,13 @@ if (platform2() === "win32") {
514
526
  osSpecificPaths["intellij-github-copilot"] = [
515
527
  { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
516
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
+ ];
517
536
  } else {
518
537
  osSpecificPaths["claude"] = [
519
538
  { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
@@ -528,7 +547,9 @@ if (platform2() === "win32") {
528
547
  osSpecificPaths["vscode"] = [
529
548
  { filePath: ".vscode/mcp.json", type: "local" },
530
549
  { filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
531
- { filePath: "~/Library/Application Support/Code - Insiders/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" }
532
553
  ];
533
554
  osSpecificPaths["cline"] = [
534
555
  { filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
@@ -544,6 +565,14 @@ if (platform2() === "win32") {
544
565
  osSpecificPaths["intellij-github-copilot"] = [
545
566
  { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
546
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
+ ];
547
576
  }
548
577
  var MCPFiles = class {
549
578
  static {
@@ -589,6 +618,16 @@ var MCPFiles = class {
589
618
  name: "intellij-github-copilot",
590
619
  friendlyName: "IntelliJ GitHub Copilot",
591
620
  paths: osSpecificPaths["intellij-github-copilot"]
621
+ },
622
+ junie: {
623
+ name: "junie",
624
+ friendlyName: "IntelliJ Junie",
625
+ paths: osSpecificPaths["junie"]
626
+ },
627
+ zed: {
628
+ name: "zed",
629
+ friendlyName: "Zed",
630
+ paths: osSpecificPaths["zed"]
592
631
  }
593
632
  };
594
633
  constructor(mcpFilePathGroups) {
package/dist/main.cjs CHANGED
@@ -84,8 +84,12 @@ var MCPConfigLinterService = class {
84
84
  }
85
85
  }
86
86
  async countMCPServers() {
87
- const mcpServers = await this.getMCPServers();
88
- return Object.keys(mcpServers).length;
87
+ try {
88
+ const mcpServers = await this.getMCPServers();
89
+ return Object.keys(mcpServers).length;
90
+ } catch (error) {
91
+ return 0;
92
+ }
89
93
  }
90
94
  async getMCPServers() {
91
95
  await this.parseFile();
@@ -98,6 +102,9 @@ var MCPConfigLinterService = class {
98
102
  if (this.fileContentsData?.mcpServers) {
99
103
  return this.fileContentsData.mcpServers;
100
104
  }
105
+ if (this.fileContentsData?.context_servers) {
106
+ return this.fileContentsData.context_servers;
107
+ }
101
108
  return {};
102
109
  }
103
110
  async getFileContent() {
@@ -140,8 +147,10 @@ var MCPServerManagerService = class {
140
147
  }
141
148
  if (serverConfig.url) {
142
149
  this.source = serverConfig.url;
150
+ this.transport = "http";
143
151
  } else {
144
- this.source = this.getBaseCommand(serverConfig.command);
152
+ const fullCommand = [serverConfig.command, ...serverConfig.args || []].join(" ");
153
+ this.source = fullCommand;
145
154
  }
146
155
  this.env = serverConfig.env || {};
147
156
  }
@@ -510,7 +519,8 @@ var osSpecificPaths = {
510
519
  cline: [],
511
520
  windsurf: [],
512
521
  roo: [],
513
- "intellij-github-copilot": []
522
+ "intellij-github-copilot": [],
523
+ junie: []
514
524
  };
515
525
  if ((0, import_node_os2.platform)() === "win32") {
516
526
  osSpecificPaths["claude"] = [
@@ -520,13 +530,15 @@ if ((0, import_node_os2.platform)() === "win32") {
520
530
  { filePath: ".mcp.json", type: "local" }
521
531
  ];
522
532
  osSpecificPaths["cursor"] = [
523
- { filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
533
+ { filePath: "~\\.cursor\\mcp.json", type: "global" },
524
534
  { filePath: ".cursor\\mcp.json", type: "local" }
525
535
  ];
526
536
  osSpecificPaths["vscode"] = [
527
537
  { filePath: ".vscode\\mcp.json", type: "local" },
528
538
  { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
529
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\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" }
530
542
  ];
531
543
  osSpecificPaths["cline"] = [
532
544
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
@@ -542,6 +554,13 @@ if ((0, import_node_os2.platform)() === "win32") {
542
554
  osSpecificPaths["intellij-github-copilot"] = [
543
555
  { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
544
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
+ ];
545
564
  } else {
546
565
  osSpecificPaths["claude"] = [
547
566
  { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
@@ -556,7 +575,9 @@ if ((0, import_node_os2.platform)() === "win32") {
556
575
  osSpecificPaths["vscode"] = [
557
576
  { filePath: ".vscode/mcp.json", type: "local" },
558
577
  { filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
559
- { filePath: "~/Library/Application Support/Code - Insiders/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" }
560
581
  ];
561
582
  osSpecificPaths["cline"] = [
562
583
  { filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
@@ -572,6 +593,14 @@ if ((0, import_node_os2.platform)() === "win32") {
572
593
  osSpecificPaths["intellij-github-copilot"] = [
573
594
  { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
574
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
+ ];
575
604
  }
576
605
  var MCPFiles = class {
577
606
  static {
@@ -617,6 +646,16 @@ var MCPFiles = class {
617
646
  name: "intellij-github-copilot",
618
647
  friendlyName: "IntelliJ GitHub Copilot",
619
648
  paths: osSpecificPaths["intellij-github-copilot"]
649
+ },
650
+ junie: {
651
+ name: "junie",
652
+ friendlyName: "IntelliJ Junie",
653
+ paths: osSpecificPaths["junie"]
654
+ },
655
+ zed: {
656
+ name: "zed",
657
+ friendlyName: "Zed",
658
+ paths: osSpecificPaths["zed"]
620
659
  }
621
660
  };
622
661
  constructor(mcpFilePathGroups) {
package/dist/main.mjs CHANGED
@@ -52,8 +52,12 @@ var MCPConfigLinterService = class {
52
52
  }
53
53
  }
54
54
  async countMCPServers() {
55
- const mcpServers = await this.getMCPServers();
56
- return Object.keys(mcpServers).length;
55
+ try {
56
+ const mcpServers = await this.getMCPServers();
57
+ return Object.keys(mcpServers).length;
58
+ } catch (error) {
59
+ return 0;
60
+ }
57
61
  }
58
62
  async getMCPServers() {
59
63
  await this.parseFile();
@@ -66,6 +70,9 @@ var MCPConfigLinterService = class {
66
70
  if (this.fileContentsData?.mcpServers) {
67
71
  return this.fileContentsData.mcpServers;
68
72
  }
73
+ if (this.fileContentsData?.context_servers) {
74
+ return this.fileContentsData.context_servers;
75
+ }
69
76
  return {};
70
77
  }
71
78
  async getFileContent() {
@@ -108,8 +115,10 @@ var MCPServerManagerService = class {
108
115
  }
109
116
  if (serverConfig.url) {
110
117
  this.source = serverConfig.url;
118
+ this.transport = "http";
111
119
  } else {
112
- this.source = this.getBaseCommand(serverConfig.command);
120
+ const fullCommand = [serverConfig.command, ...serverConfig.args || []].join(" ");
121
+ this.source = fullCommand;
113
122
  }
114
123
  this.env = serverConfig.env || {};
115
124
  }
@@ -478,7 +487,8 @@ var osSpecificPaths = {
478
487
  cline: [],
479
488
  windsurf: [],
480
489
  roo: [],
481
- "intellij-github-copilot": []
490
+ "intellij-github-copilot": [],
491
+ junie: []
482
492
  };
483
493
  if (platform2() === "win32") {
484
494
  osSpecificPaths["claude"] = [
@@ -488,13 +498,15 @@ if (platform2() === "win32") {
488
498
  { filePath: ".mcp.json", type: "local" }
489
499
  ];
490
500
  osSpecificPaths["cursor"] = [
491
- { filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: "global" },
501
+ { filePath: "~\\.cursor\\mcp.json", type: "global" },
492
502
  { filePath: ".cursor\\mcp.json", type: "local" }
493
503
  ];
494
504
  osSpecificPaths["vscode"] = [
495
505
  { filePath: ".vscode\\mcp.json", type: "local" },
496
506
  { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: "global" },
497
- { filePath: `${process.env.APPDATA}\\Code - Insiders\\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" }
498
510
  ];
499
511
  osSpecificPaths["cline"] = [
500
512
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: "global" },
@@ -510,6 +522,13 @@ if (platform2() === "win32") {
510
522
  osSpecificPaths["intellij-github-copilot"] = [
511
523
  { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: "global" }
512
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
+ ];
513
532
  } else {
514
533
  osSpecificPaths["claude"] = [
515
534
  { filePath: "~/Library/Application Support/Claude/claude_desktop_config.json", type: "global" }
@@ -524,7 +543,9 @@ if (platform2() === "win32") {
524
543
  osSpecificPaths["vscode"] = [
525
544
  { filePath: ".vscode/mcp.json", type: "local" },
526
545
  { filePath: "~/Library/Application Support/Code/User/settings.json", type: "global" },
527
- { filePath: "~/Library/Application Support/Code - Insiders/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" }
528
549
  ];
529
550
  osSpecificPaths["cline"] = [
530
551
  { filePath: "~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json", type: "global" },
@@ -540,6 +561,14 @@ if (platform2() === "win32") {
540
561
  osSpecificPaths["intellij-github-copilot"] = [
541
562
  { filePath: "~/.config/github-copilot/intellij/mcp.json", type: "global" }
542
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
+ ];
543
572
  }
544
573
  var MCPFiles = class {
545
574
  static {
@@ -585,6 +614,16 @@ var MCPFiles = class {
585
614
  name: "intellij-github-copilot",
586
615
  friendlyName: "IntelliJ GitHub Copilot",
587
616
  paths: osSpecificPaths["intellij-github-copilot"]
617
+ },
618
+ junie: {
619
+ name: "junie",
620
+ friendlyName: "IntelliJ Junie",
621
+ paths: osSpecificPaths["junie"]
622
+ },
623
+ zed: {
624
+ name: "zed",
625
+ friendlyName: "Zed",
626
+ paths: osSpecificPaths["zed"]
588
627
  }
589
628
  };
590
629
  constructor(mcpFilePathGroups) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ls-mcp",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "description": "list and detect MCP servers and configurations",
5
5
  "types": "dist/main.d.ts",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "engines": {
29
- "node": ">=22.0.0"
29
+ "node": ">=20.13.0"
30
30
  },
31
31
  "packageManager": "npm@8.4.0",
32
32
  "files": [
@@ -96,5 +96,22 @@
96
96
  "**/*.{js,json}": [
97
97
  "npm run lint:fix"
98
98
  ]
99
+ },
100
+ "c8": {
101
+ "exclude": [
102
+ "dist/**",
103
+ "coverage/**",
104
+ "__tests__/**",
105
+ "**/*.test.ts",
106
+ "**/*.test.js"
107
+ ],
108
+ "include": [
109
+ "src/**"
110
+ ],
111
+ "reporter": [
112
+ "text",
113
+ "lcov",
114
+ "html"
115
+ ]
99
116
  }
100
117
  }
package/src/main.ts CHANGED
@@ -51,7 +51,8 @@ const osSpecificPaths: { [key: string]: MCPFilePath[] } = {
51
51
  cline: [],
52
52
  windsurf: [],
53
53
  roo: [],
54
- 'intellij-github-copilot': []
54
+ 'intellij-github-copilot': [],
55
+ junie: []
55
56
  }
56
57
 
57
58
  if (platform() === 'win32') {
@@ -62,13 +63,15 @@ if (platform() === 'win32') {
62
63
  { filePath: '.mcp.json', type: 'local' }
63
64
  ]
64
65
  osSpecificPaths['cursor'] = [
65
- { filePath: `${process.env.HOME}\\.cursor\\mcp.json`, type: 'global' },
66
+ { filePath: '~\\.cursor\\mcp.json', type: 'global' },
66
67
  { filePath: '.cursor\\mcp.json', type: 'local' }
67
68
  ]
68
69
  osSpecificPaths['vscode'] = [
69
70
  { filePath: '.vscode\\mcp.json', type: 'local' },
70
71
  { filePath: `${process.env.APPDATA}\\Code\\User\\settings.json`, type: 'global' },
71
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' }
72
75
  ]
73
76
  osSpecificPaths['cline'] = [
74
77
  { filePath: `${process.env.APPDATA}\\Code\\User\\globalStorage\\saoudrizwan.claude-dev\\settings\\cline_mcp_settings.json`, type: 'global' },
@@ -84,6 +87,13 @@ if (platform() === 'win32') {
84
87
  osSpecificPaths['intellij-github-copilot'] = [
85
88
  { filePath: `${process.env.LOCALAPPDATA}\\github-copilot\\intellij\\mcp.json`, type: 'global' },
86
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
+ ]
87
97
  } else {
88
98
  osSpecificPaths['claude'] = [
89
99
  { filePath: '~/Library/Application Support/Claude/claude_desktop_config.json', type: 'global' }
@@ -98,7 +108,9 @@ if (platform() === 'win32') {
98
108
  osSpecificPaths['vscode'] = [
99
109
  { filePath: '.vscode/mcp.json', type: 'local' },
100
110
  { filePath: '~/Library/Application Support/Code/User/settings.json', type: 'global' },
111
+ { filePath: '~/Library/Application Support/Code/User/mcp.json', type: 'global' },
101
112
  { filePath: '~/Library/Application Support/Code - Insiders/User/settings.json', type: 'global' },
113
+ { filePath: '~/Library/Application Support/Code - Insiders/User/mcp.json', type: 'global' }
102
114
  ]
103
115
  osSpecificPaths['cline'] = [
104
116
  { filePath: '~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json', type: 'global' },
@@ -114,6 +126,15 @@ if (platform() === 'win32') {
114
126
  osSpecificPaths['intellij-github-copilot'] = [
115
127
  { filePath: '~/.config/github-copilot/intellij/mcp.json', type: 'global' },
116
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
+ ]
117
138
  }
118
139
 
119
140
  export class MCPFiles {
@@ -157,6 +178,16 @@ export class MCPFiles {
157
178
  name: 'intellij-github-copilot',
158
179
  friendlyName: 'IntelliJ GitHub Copilot',
159
180
  paths: osSpecificPaths['intellij-github-copilot']
181
+ },
182
+ junie: {
183
+ name: 'junie',
184
+ friendlyName: 'IntelliJ Junie',
185
+ paths: osSpecificPaths['junie']
186
+ },
187
+ zed: {
188
+ name: 'zed',
189
+ friendlyName: 'Zed',
190
+ paths: osSpecificPaths['zed']
160
191
  }
161
192
  }
162
193
 
@@ -51,8 +51,12 @@ export class MCPConfigLinterService {
51
51
  }
52
52
 
53
53
  async countMCPServers (): Promise<number> {
54
- const mcpServers = await this.getMCPServers()
55
- return Object.keys(mcpServers).length
54
+ try {
55
+ const mcpServers = await this.getMCPServers()
56
+ return Object.keys(mcpServers).length
57
+ } catch (error) {
58
+ return 0
59
+ }
56
60
  }
57
61
 
58
62
  async getMCPServers (): Promise<Record<string, object>> {
@@ -73,6 +77,11 @@ export class MCPConfigLinterService {
73
77
  return this.fileContentsData.mcpServers
74
78
  }
75
79
 
80
+ // Zed uses `context_servers` key
81
+ if (this.fileContentsData?.context_servers) {
82
+ return this.fileContentsData.context_servers
83
+ }
84
+
76
85
  return {}
77
86
  }
78
87
 
@@ -47,8 +47,11 @@ export class MCPServerManagerService {
47
47
 
48
48
  if (serverConfig.url) {
49
49
  this.source = serverConfig.url
50
+ this.transport = 'http' // URLs always use http transport
50
51
  } else {
51
- this.source = this.getBaseCommand(serverConfig.command)
52
+ // Build the full command with arguments
53
+ const fullCommand = [serverConfig.command, ...(serverConfig.args || [])].join(' ')
54
+ this.source = fullCommand
52
55
  }
53
56
  this.env = serverConfig.env || {}
54
57
  }