add-mcp 0.7.3 → 1.0.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.
Files changed (2) hide show
  1. package/dist/index.js +32 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -855,7 +855,7 @@ function installServer(serverName, serverConfig, agentTypes, options = {}) {
855
855
  // package.json
856
856
  var package_default = {
857
857
  name: "add-mcp",
858
- version: "0.7.3",
858
+ version: "1.0.0",
859
859
  description: "Add MCP servers to your favorite coding agents with a single command.",
860
860
  author: "Andre Landgraf <andre@neon.tech>",
861
861
  license: "Apache-2.0",
@@ -1016,12 +1016,40 @@ function listAgents() {
1016
1016
  console.log(`${DIM}Supported agents:${RESET}`);
1017
1017
  console.log();
1018
1018
  const allAgentTypes = getAgentTypes();
1019
+ const aliasesByAgent = {};
1020
+ for (const [alias, target] of Object.entries(agentAliases)) {
1021
+ if (!aliasesByAgent[target]) {
1022
+ aliasesByAgent[target] = [];
1023
+ }
1024
+ aliasesByAgent[target].push(alias);
1025
+ }
1026
+ const nameColWidth = Math.max(
1027
+ "Argument".length,
1028
+ ...allAgentTypes.map((t) => t.length)
1029
+ );
1030
+ const clientColWidth = Math.max(
1031
+ "MCP Client".length,
1032
+ ...allAgentTypes.map((t) => agents[t].displayName.length)
1033
+ );
1034
+ const aliasColWidth = Math.max(
1035
+ "Aliases".length,
1036
+ ...allAgentTypes.map(
1037
+ (t) => (aliasesByAgent[t] ? aliasesByAgent[t].join(", ") : "").length
1038
+ )
1039
+ );
1040
+ const pad = (str, width) => str + " ".repeat(Math.max(0, width - str.length));
1041
+ const header = ` ${pad("Argument", nameColWidth)} ${pad("MCP Client", clientColWidth)} ${pad("Aliases", aliasColWidth)} Local Global`;
1042
+ const separator = ` ${"-".repeat(nameColWidth)} ${"-".repeat(clientColWidth)} ${"-".repeat(aliasColWidth)} ----- ------`;
1043
+ console.log(`${DIM}${header}${RESET}`);
1044
+ console.log(`${DIM}${separator}${RESET}`);
1019
1045
  for (const agentType of allAgentTypes) {
1020
1046
  const agent = agents[agentType];
1021
- const hasProjectSupport = supportsProjectConfig(agentType);
1022
- const scope = hasProjectSupport ? "project, global" : "global";
1047
+ const hasLocal = supportsProjectConfig(agentType);
1048
+ const localMark = hasLocal ? " \u2713 " : " - ";
1049
+ const globalMark = " \u2713 ";
1050
+ const aliasStr = aliasesByAgent[agentType] ? aliasesByAgent[agentType].join(", ") : "";
1023
1051
  console.log(
1024
- ` ${TEXT}${agent.displayName}${RESET} ${DIM}(${scope})${RESET}`
1052
+ ` ${TEXT}${pad(agentType, nameColWidth)}${RESET} ${DIM}${pad(agent.displayName, clientColWidth)}${RESET} ${DIM}${pad(aliasStr, aliasColWidth)}${RESET} ${TEXT}${localMark}${RESET} ${TEXT}${globalMark}${RESET}`
1025
1053
  );
1026
1054
  }
1027
1055
  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.0",
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",