add-mcp 1.4.0 → 1.5.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
@@ -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 [8 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` |
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",
@@ -223,6 +229,25 @@ function transformClineConfig(_serverName, config) {
223
229
  }
224
230
  return localConfig;
225
231
  }
232
+ function transformAntigravityConfig(_serverName, config) {
233
+ if (config.url) {
234
+ const remoteConfig = {
235
+ serverUrl: config.url
236
+ };
237
+ if (config.headers && Object.keys(config.headers).length > 0) {
238
+ remoteConfig.headers = config.headers;
239
+ }
240
+ return remoteConfig;
241
+ }
242
+ const localConfig = {
243
+ command: config.command,
244
+ args: config.args || []
245
+ };
246
+ if (config.env && Object.keys(config.env).length > 0) {
247
+ localConfig.env = config.env;
248
+ }
249
+ return localConfig;
250
+ }
226
251
  function transformGitHubCopilotCliConfig(_serverName, config, context) {
227
252
  if (context?.local) {
228
253
  return config;
@@ -264,6 +289,20 @@ function resolveMcporterConfigPath(agent, options) {
264
289
  return globalJsonPath;
265
290
  }
266
291
  var agents = {
292
+ antigravity: {
293
+ name: "antigravity",
294
+ displayName: "Antigravity",
295
+ configPath: antigravityConfigPath,
296
+ projectDetectPaths: [],
297
+ // Global only - no project support
298
+ configKey: "mcpServers",
299
+ format: "json",
300
+ supportedTransports: ["stdio", "http", "sse"],
301
+ detectGlobalInstall: async () => {
302
+ return existsSync(join2(home, ".gemini"));
303
+ },
304
+ transformConfig: transformAntigravityConfig
305
+ },
267
306
  cline: {
268
307
  name: "cline",
269
308
  displayName: "Cline VSCode Extension",
@@ -1030,7 +1069,7 @@ function installServer(serverName, serverConfig, agentTypes, options = {}) {
1030
1069
  // package.json
1031
1070
  var package_default = {
1032
1071
  name: "add-mcp",
1033
- version: "1.4.0",
1072
+ version: "1.5.1",
1034
1073
  description: "Add MCP servers to your favorite coding agents with a single command.",
1035
1074
  author: "Andre Landgraf <andre@neon.tech>",
1036
1075
  license: "Apache-2.0",
@@ -1057,6 +1096,7 @@ var package_default = {
1057
1096
  "mcp",
1058
1097
  "model-context-protocol",
1059
1098
  "ai-agents",
1099
+ "antigravity",
1060
1100
  "cline",
1061
1101
  "claude-code",
1062
1102
  "claude-desktop",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-mcp",
3
- "version": "1.4.0",
3
+ "version": "1.5.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",
@@ -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",