add-mcp 0.7.2 → 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.
- package/README.md +1 -1
- package/dist/index.js +33 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -147,7 +147,7 @@ MCP servers can be installed to any of these agents:
|
|
|
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
|
|
|
150
|
-
**Aliases:** `github-copilot` → `vscode`
|
|
150
|
+
**Aliases:** `gemini` → `gemini-cli`, `github-copilot` → `vscode`
|
|
151
151
|
|
|
152
152
|
The CLI uses smart detection to find agents in your project directory and globally installed agents. See [Smart Detection](#smart-detection) for details.
|
|
153
153
|
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import { homedir as homedir3 } from "os";
|
|
|
8
8
|
|
|
9
9
|
// src/types.ts
|
|
10
10
|
var agentAliases = {
|
|
11
|
+
gemini: "gemini-cli",
|
|
11
12
|
"github-copilot": "vscode"
|
|
12
13
|
};
|
|
13
14
|
|
|
@@ -854,7 +855,7 @@ function installServer(serverName, serverConfig, agentTypes, options = {}) {
|
|
|
854
855
|
// package.json
|
|
855
856
|
var package_default = {
|
|
856
857
|
name: "add-mcp",
|
|
857
|
-
version: "0.
|
|
858
|
+
version: "1.0.0",
|
|
858
859
|
description: "Add MCP servers to your favorite coding agents with a single command.",
|
|
859
860
|
author: "Andre Landgraf <andre@neon.tech>",
|
|
860
861
|
license: "Apache-2.0",
|
|
@@ -1015,12 +1016,40 @@ function listAgents() {
|
|
|
1015
1016
|
console.log(`${DIM}Supported agents:${RESET}`);
|
|
1016
1017
|
console.log();
|
|
1017
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}`);
|
|
1018
1045
|
for (const agentType of allAgentTypes) {
|
|
1019
1046
|
const agent = agents[agentType];
|
|
1020
|
-
const
|
|
1021
|
-
const
|
|
1047
|
+
const hasLocal = supportsProjectConfig(agentType);
|
|
1048
|
+
const localMark = hasLocal ? " \u2713 " : " - ";
|
|
1049
|
+
const globalMark = " \u2713 ";
|
|
1050
|
+
const aliasStr = aliasesByAgent[agentType] ? aliasesByAgent[agentType].join(", ") : "";
|
|
1022
1051
|
console.log(
|
|
1023
|
-
` ${TEXT}${agent.displayName}${RESET}
|
|
1052
|
+
` ${TEXT}${pad(agentType, nameColWidth)}${RESET} ${DIM}${pad(agent.displayName, clientColWidth)}${RESET} ${DIM}${pad(aliasStr, aliasColWidth)}${RESET} ${TEXT}${localMark}${RESET} ${TEXT}${globalMark}${RESET}`
|
|
1024
1053
|
);
|
|
1025
1054
|
}
|
|
1026
1055
|
console.log();
|