add-mcp 0.7.3 → 1.0.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/README.md CHANGED
@@ -143,7 +143,7 @@ MCP servers can be installed to any of these agents:
143
143
  | Cursor | `cursor` | `.cursor/mcp.json` | `~/.cursor/mcp.json` |
144
144
  | Gemini CLI | `gemini-cli` | `.gemini/settings.json` | `~/.gemini/settings.json` |
145
145
  | Goose | `goose` | `.goose/config.yaml` | `~/.config/goose/config.yaml` |
146
- | OpenCode | `opencode` | `.opencode.json` | `~/.config/opencode/opencode.json` |
146
+ | OpenCode | `opencode` | `opencode.json` | `~/.config/opencode/opencode.json` |
147
147
  | VS Code | `vscode` | `.vscode/mcp.json` | `~/Library/Application Support/Code/User/mcp.json` |
148
148
  | Zed | `zed` | `.zed/settings.json` | `~/Library/Application Support/Zed/settings.json` |
149
149
 
package/dist/index.js CHANGED
@@ -149,8 +149,7 @@ function transformOpenCodeConfig(_serverName, config) {
149
149
  }
150
150
  return {
151
151
  type: "local",
152
- command: config.command,
153
- args: config.args || [],
152
+ command: [config.command, ...config.args || []],
154
153
  enabled: true,
155
154
  environment: config.env || {}
156
155
  };
@@ -276,8 +275,8 @@ var agents = {
276
275
  name: "opencode",
277
276
  displayName: "OpenCode",
278
277
  configPath: join2(home, ".config", "opencode", "opencode.json"),
279
- localConfigPath: ".opencode.json",
280
- projectDetectPaths: [".opencode.json", ".opencode"],
278
+ localConfigPath: "opencode.json",
279
+ projectDetectPaths: ["opencode.json", ".opencode"],
281
280
  configKey: "mcp",
282
281
  format: "json",
283
282
  supportedTransports: ["stdio", "http", "sse"],
@@ -855,7 +854,7 @@ function installServer(serverName, serverConfig, agentTypes, options = {}) {
855
854
  // package.json
856
855
  var package_default = {
857
856
  name: "add-mcp",
858
- version: "0.7.3",
857
+ version: "1.0.1",
859
858
  description: "Add MCP servers to your favorite coding agents with a single command.",
860
859
  author: "Andre Landgraf <andre@neon.tech>",
861
860
  license: "Apache-2.0",
@@ -1016,12 +1015,40 @@ function listAgents() {
1016
1015
  console.log(`${DIM}Supported agents:${RESET}`);
1017
1016
  console.log();
1018
1017
  const allAgentTypes = getAgentTypes();
1018
+ const aliasesByAgent = {};
1019
+ for (const [alias, target] of Object.entries(agentAliases)) {
1020
+ if (!aliasesByAgent[target]) {
1021
+ aliasesByAgent[target] = [];
1022
+ }
1023
+ aliasesByAgent[target].push(alias);
1024
+ }
1025
+ const nameColWidth = Math.max(
1026
+ "Argument".length,
1027
+ ...allAgentTypes.map((t) => t.length)
1028
+ );
1029
+ const clientColWidth = Math.max(
1030
+ "MCP Client".length,
1031
+ ...allAgentTypes.map((t) => agents[t].displayName.length)
1032
+ );
1033
+ const aliasColWidth = Math.max(
1034
+ "Aliases".length,
1035
+ ...allAgentTypes.map(
1036
+ (t) => (aliasesByAgent[t] ? aliasesByAgent[t].join(", ") : "").length
1037
+ )
1038
+ );
1039
+ const pad = (str, width) => str + " ".repeat(Math.max(0, width - str.length));
1040
+ const header = ` ${pad("Argument", nameColWidth)} ${pad("MCP Client", clientColWidth)} ${pad("Aliases", aliasColWidth)} Local Global`;
1041
+ const separator = ` ${"-".repeat(nameColWidth)} ${"-".repeat(clientColWidth)} ${"-".repeat(aliasColWidth)} ----- ------`;
1042
+ console.log(`${DIM}${header}${RESET}`);
1043
+ console.log(`${DIM}${separator}${RESET}`);
1019
1044
  for (const agentType of allAgentTypes) {
1020
1045
  const agent = agents[agentType];
1021
- const hasProjectSupport = supportsProjectConfig(agentType);
1022
- const scope = hasProjectSupport ? "project, global" : "global";
1046
+ const hasLocal = supportsProjectConfig(agentType);
1047
+ const localMark = hasLocal ? " \u2713 " : " - ";
1048
+ const globalMark = " \u2713 ";
1049
+ const aliasStr = aliasesByAgent[agentType] ? aliasesByAgent[agentType].join(", ") : "";
1023
1050
  console.log(
1024
- ` ${TEXT}${agent.displayName}${RESET} ${DIM}(${scope})${RESET}`
1051
+ ` ${TEXT}${pad(agentType, nameColWidth)}${RESET} ${DIM}${pad(agent.displayName, clientColWidth)}${RESET} ${DIM}${pad(aliasStr, aliasColWidth)}${RESET} ${TEXT}${localMark}${RESET} ${TEXT}${globalMark}${RESET}`
1025
1052
  );
1026
1053
  }
1027
1054
  console.log();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-mcp",
3
- "version": "0.7.3",
3
+ "version": "1.0.1",
4
4
  "description": "Add MCP servers to your favorite coding agents with a single command.",
5
5
  "author": "Andre Landgraf <andre@neon.tech>",
6
6
  "license": "Apache-2.0",