add-mcp 1.5.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.
Files changed (2) hide show
  1. package/dist/index.js +23 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -229,6 +229,25 @@ function transformClineConfig(_serverName, config) {
229
229
  }
230
230
  return localConfig;
231
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
+ }
232
251
  function transformGitHubCopilotCliConfig(_serverName, config, context) {
233
252
  if (context?.local) {
234
253
  return config;
@@ -278,11 +297,11 @@ var agents = {
278
297
  // Global only - no project support
279
298
  configKey: "mcpServers",
280
299
  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.",
300
+ supportedTransports: ["stdio", "http", "sse"],
283
301
  detectGlobalInstall: async () => {
284
302
  return existsSync(join2(home, ".gemini"));
285
- }
303
+ },
304
+ transformConfig: transformAntigravityConfig
286
305
  },
287
306
  cline: {
288
307
  name: "cline",
@@ -1050,7 +1069,7 @@ function installServer(serverName, serverConfig, agentTypes, options = {}) {
1050
1069
  // package.json
1051
1070
  var package_default = {
1052
1071
  name: "add-mcp",
1053
- version: "1.5.0",
1072
+ version: "1.5.1",
1054
1073
  description: "Add MCP servers to your favorite coding agents with a single command.",
1055
1074
  author: "Andre Landgraf <andre@neon.tech>",
1056
1075
  license: "Apache-2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-mcp",
3
- "version": "1.5.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",