add-mcp 0.7.0 → 0.7.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
@@ -96,7 +96,8 @@ The CLI automatically detects agents based on your environment:
96
96
  **Default (project mode):**
97
97
 
98
98
  - Detects project-level config files (`.cursor/`, `.vscode/`, `.mcp.json`, etc.)
99
- - Only shows agents that have project config in the current directory
99
+ - Selects detected agents (have project config in the current directory) by default
100
+ - Shows detected agents plus all other supported agents for selection
100
101
  - Installs to project-level config files
101
102
 
102
103
  **With `-g` (global mode):**
@@ -106,7 +107,7 @@ The CLI automatically detects agents based on your environment:
106
107
 
107
108
  **No agents detected:**
108
109
 
109
- - Interactive mode: Shows an agent selector (all available, last selection, or pick specific)
110
+ - Interactive mode: Defaults to the last selection and shows all agents for selection
110
111
  - With `--yes`: Installs to all project-capable agents (project mode) or all global-capable agents (global mode)
111
112
 
112
113
  ## Transport Types
@@ -120,6 +121,8 @@ The CLI automatically detects agents based on your environment:
120
121
 
121
122
  Local servers (npm packages, commands) always use **stdio** transport.
122
123
 
124
+ Note that some agents like Cursor and opencode do not require the `type` information to be set.
125
+
123
126
  ## HTTP Headers
124
127
 
125
128
  Use `--header` to pass custom headers for remote servers. The flag can be repeated.
package/dist/index.js CHANGED
@@ -168,6 +168,18 @@ function transformCodexConfig(_serverName, config) {
168
168
  env: config.env
169
169
  };
170
170
  }
171
+ function transformCursorConfig(_serverName, config) {
172
+ if (config.url) {
173
+ const remoteConfig = {
174
+ url: config.url
175
+ };
176
+ if (config.headers && Object.keys(config.headers).length > 0) {
177
+ remoteConfig.headers = config.headers;
178
+ }
179
+ return remoteConfig;
180
+ }
181
+ return config;
182
+ }
171
183
  var agents = {
172
184
  "claude-code": {
173
185
  name: "claude-code",
@@ -227,7 +239,8 @@ var agents = {
227
239
  supportsHeaders: true,
228
240
  detectGlobalInstall: async () => {
229
241
  return existsSync(join2(home, ".cursor"));
230
- }
242
+ },
243
+ transformConfig: transformCursorConfig
231
244
  },
232
245
  "gemini-cli": {
233
246
  name: "gemini-cli",
@@ -841,7 +854,7 @@ function installServer(serverName, serverConfig, agentTypes, options = {}) {
841
854
  // package.json
842
855
  var package_default = {
843
856
  name: "add-mcp",
844
- version: "0.7.0",
857
+ version: "0.7.1",
845
858
  description: "Add MCP servers to your favorite coding agents with a single command.",
846
859
  author: "Andre Landgraf <andre@neon.tech>",
847
860
  license: "Apache-2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-mcp",
3
- "version": "0.7.0",
3
+ "version": "0.7.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",