add-mcp 1.3.0 → 1.5.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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Add MCP servers to your favorite coding agents with a single command.
4
4
 
5
- Supports **Claude Code**, **Codex**, **Cursor**, **OpenCode**, **VSCode** and [7 more](#supported-agents).
5
+ Supports **Claude Code**, **Codex**, **Cursor**, **OpenCode**, **VSCode** and [9 more](#supported-agents).
6
6
 
7
7
  ## Install an MCP Server
8
8
 
@@ -138,6 +138,7 @@ MCP servers can be installed to any of these agents:
138
138
 
139
139
  | Agent | `--agent` | Project Path | Global Path |
140
140
  | ---------------------- | -------------------- | ----------------------- | --------------------------------------------------------------------------------------------------------------- |
141
+ | Antigravity | `antigravity` | - | `~/.gemini/antigravity/mcp_config.json` |
141
142
  | Cline VSCode Extension | `cline` | - | `~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json` |
142
143
  | Cline CLI | `cline-cli` | - | `~/.cline/data/settings/cline_mcp_settings.json` |
143
144
  | Claude Code | `claude-code` | `.mcp.json` | `~/.claude.json` |
@@ -147,6 +148,7 @@ MCP servers can be installed to any of these agents:
147
148
  | Gemini CLI | `gemini-cli` | `.gemini/settings.json` | `~/.gemini/settings.json` |
148
149
  | Goose | `goose` | `.goose/config.yaml` | `~/.config/goose/config.yaml` |
149
150
  | GitHub Copilot CLI | `github-copilot-cli` | `.vscode/mcp.json` | `~/.copilot/mcp-config.json` |
151
+ | MCPorter | `mcporter` | `config/mcporter.json` | `~/.mcporter/mcporter.json` (or existing `~/.mcporter/mcporter.jsonc`) |
150
152
  | OpenCode | `opencode` | `opencode.json` | `~/.config/opencode/opencode.json` |
151
153
  | VS Code | `vscode` | `.vscode/mcp.json` | `~/Library/Application Support/Code/User/mcp.json` |
152
154
  | Zed | `zed` | `.zed/settings.json` | `~/Library/Application Support/Zed/settings.json` |
package/dist/index.js CHANGED
@@ -99,6 +99,12 @@ function getPlatformPaths() {
99
99
  }
100
100
  }
101
101
  var { appSupport, vscodePath, gooseConfigPath } = getPlatformPaths();
102
+ var antigravityConfigPath = join2(
103
+ home,
104
+ ".gemini",
105
+ "antigravity",
106
+ "mcp_config.json"
107
+ );
102
108
  var clineCliConfigPath = join2(
103
109
  process.env.CLINE_DIR || join2(home, ".cline"),
104
110
  "data",
@@ -249,7 +255,35 @@ function transformGitHubCopilotCliConfig(_serverName, config, context) {
249
255
  }
250
256
  return localConfig;
251
257
  }
258
+ function resolveMcporterConfigPath(agent, options) {
259
+ if (options.local && agent.localConfigPath) {
260
+ return join2(options.cwd, agent.localConfigPath);
261
+ }
262
+ const globalJsonPath = agent.configPath;
263
+ const globalJsoncPath = join2(dirname2(globalJsonPath), "mcporter.jsonc");
264
+ if (existsSync(globalJsonPath)) {
265
+ return globalJsonPath;
266
+ }
267
+ if (existsSync(globalJsoncPath)) {
268
+ return globalJsoncPath;
269
+ }
270
+ return globalJsonPath;
271
+ }
252
272
  var agents = {
273
+ antigravity: {
274
+ name: "antigravity",
275
+ displayName: "Antigravity",
276
+ configPath: antigravityConfigPath,
277
+ projectDetectPaths: [],
278
+ // Global only - no project support
279
+ configKey: "mcpServers",
280
+ format: "json",
281
+ supportedTransports: ["stdio"],
282
+ unsupportedTransportMessage: "Antigravity only supports local (stdio) servers via its config file. Use mcp-remote to connect to remote servers.",
283
+ detectGlobalInstall: async () => {
284
+ return existsSync(join2(home, ".gemini"));
285
+ }
286
+ },
253
287
  cline: {
254
288
  name: "cline",
255
289
  displayName: "Cline VSCode Extension",
@@ -378,6 +412,20 @@ var agents = {
378
412
  },
379
413
  transformConfig: transformGitHubCopilotCliConfig
380
414
  },
415
+ mcporter: {
416
+ name: "mcporter",
417
+ displayName: "MCPorter",
418
+ configPath: join2(home, ".mcporter", "mcporter.json"),
419
+ localConfigPath: "config/mcporter.json",
420
+ projectDetectPaths: ["config/mcporter.json"],
421
+ configKey: "mcpServers",
422
+ format: "json",
423
+ supportedTransports: ["stdio", "http", "sse"],
424
+ detectGlobalInstall: async () => {
425
+ return existsSync(join2(home, ".mcporter"));
426
+ },
427
+ resolveConfigPath: resolveMcporterConfigPath
428
+ },
381
429
  opencode: {
382
430
  name: "opencode",
383
431
  displayName: "OpenCode",
@@ -938,8 +986,12 @@ function updateGitignoreWithPaths(paths, options = {}) {
938
986
  };
939
987
  }
940
988
  function getConfigPath(agent, options = {}) {
941
- if (options.local && agent.localConfigPath) {
942
- const cwd = options.cwd || process.cwd();
989
+ const local = Boolean(options.local);
990
+ const cwd = options.cwd || process.cwd();
991
+ if (agent.resolveConfigPath) {
992
+ return agent.resolveConfigPath(agent, { local, cwd });
993
+ }
994
+ if (local && agent.localConfigPath) {
943
995
  return join3(cwd, agent.localConfigPath);
944
996
  }
945
997
  return agent.configPath;
@@ -998,7 +1050,7 @@ function installServer(serverName, serverConfig, agentTypes, options = {}) {
998
1050
  // package.json
999
1051
  var package_default = {
1000
1052
  name: "add-mcp",
1001
- version: "1.3.0",
1053
+ version: "1.5.0",
1002
1054
  description: "Add MCP servers to your favorite coding agents with a single command.",
1003
1055
  author: "Andre Landgraf <andre@neon.tech>",
1004
1056
  license: "Apache-2.0",
@@ -1025,6 +1077,7 @@ var package_default = {
1025
1077
  "mcp",
1026
1078
  "model-context-protocol",
1027
1079
  "ai-agents",
1080
+ "antigravity",
1028
1081
  "cline",
1029
1082
  "claude-code",
1030
1083
  "claude-desktop",
@@ -1033,6 +1086,7 @@ var package_default = {
1033
1086
  "github-copilot-cli",
1034
1087
  "gemini-cli",
1035
1088
  "goose",
1089
+ "mcporter",
1036
1090
  "opencode",
1037
1091
  "vscode",
1038
1092
  "zed"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-mcp",
3
- "version": "1.3.0",
3
+ "version": "1.5.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",
@@ -27,6 +27,7 @@
27
27
  "mcp",
28
28
  "model-context-protocol",
29
29
  "ai-agents",
30
+ "antigravity",
30
31
  "cline",
31
32
  "claude-code",
32
33
  "claude-desktop",
@@ -35,6 +36,7 @@
35
36
  "github-copilot-cli",
36
37
  "gemini-cli",
37
38
  "goose",
39
+ "mcporter",
38
40
  "opencode",
39
41
  "vscode",
40
42
  "zed"