add-mcp 1.7.0 → 1.9.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 +72 -2
- package/dist/index.js +1048 -23
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Example installing the Context7 remote MCP server:
|
|
|
18
18
|
npx add-mcp https://mcp.context7.com/mcp
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
You can add env variables and arguments (stdio) and headers (remote) to the server config using the `--env`, `--args` and `--header` options.
|
|
21
|
+
You can add env variables and arguments (stdio) and headers (remote) to the server config using the `--env`, `--args` and `--header` options. With `${VAR}` placeholders, interactive installs prompt for each variable (omit skipped optional keys so empty strings are not written to config).
|
|
22
22
|
|
|
23
23
|
## Find an MCP Servers
|
|
24
24
|
|
|
@@ -89,6 +89,10 @@ Besides the implicit add command, `add-mcp` also supports the following commands
|
|
|
89
89
|
| ------------- | ------------------------------------------------------------ |
|
|
90
90
|
| `find` | Search MCP registry servers and install a selected match |
|
|
91
91
|
| `search` | Alias for `find` |
|
|
92
|
+
| `list` | List installed MCP servers across detected agents |
|
|
93
|
+
| `remove` | Remove an MCP server from agent configurations |
|
|
94
|
+
| `sync` | Synchronize server names and installations across agents |
|
|
95
|
+
| `unify` | Alias for `sync` |
|
|
92
96
|
| `list-agents` | List all supported coding agents with scope (project/global) |
|
|
93
97
|
|
|
94
98
|
## Add Command
|
|
@@ -219,7 +223,7 @@ If you run with `-y` before this one-time registry setup is completed, the CLI e
|
|
|
219
223
|
|
|
220
224
|
| Registry | Base URL | Description |
|
|
221
225
|
| ------------------------------- | ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
222
|
-
| **add-mcp curated registry** | `https://mcp.agent-tooling.dev/api/v1/servers`
|
|
226
|
+
| **add-mcp curated registry** | `https://mcp.agent-tooling.dev/api/v1/servers` | A curated list of first-party, verified MCP servers from popular developer tools and SaaS services. Designed to surface high-quality, officially maintained servers instead of a long tail of unmaintained or third-party entries. |
|
|
223
227
|
| **Official Anthropic registry** | `https://registry.modelcontextprotocol.io/v0.1/servers` | The community-driven MCP server registry maintained by Anthropic. Contains the broadest catalog of MCP servers. |
|
|
224
228
|
|
|
225
229
|
### Missing A Server in add-mcp Curated Registry?
|
|
@@ -289,6 +293,72 @@ To add your own registry, append an entry to `findRegistries` in `~/.config/add-
|
|
|
289
293
|
}
|
|
290
294
|
```
|
|
291
295
|
|
|
296
|
+
## List Command
|
|
297
|
+
|
|
298
|
+
List installed MCP servers across detected agents:
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
# List servers for all detected agents in the project
|
|
302
|
+
npx add-mcp list
|
|
303
|
+
|
|
304
|
+
# List global server configs
|
|
305
|
+
npx add-mcp list -g
|
|
306
|
+
|
|
307
|
+
# List servers for a specific agent (shown even if not detected)
|
|
308
|
+
npx add-mcp list -a cursor
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
| Option | Description |
|
|
312
|
+
| --------------------- | -------------------------------------- |
|
|
313
|
+
| `-g, --global` | List global configs instead of project |
|
|
314
|
+
| `-a, --agent <agent>` | Filter to specific agent(s) |
|
|
315
|
+
|
|
316
|
+
## Remove Command
|
|
317
|
+
|
|
318
|
+
Remove an MCP server from agent configurations by server name, URL, or package name:
|
|
319
|
+
|
|
320
|
+
```bash
|
|
321
|
+
# Remove by server name (interactive selection by default)
|
|
322
|
+
npx add-mcp remove neon
|
|
323
|
+
|
|
324
|
+
# Remove all matches without prompting
|
|
325
|
+
npx add-mcp remove neon -y
|
|
326
|
+
|
|
327
|
+
# Remove by URL
|
|
328
|
+
npx add-mcp remove https://mcp.neon.tech/mcp -y
|
|
329
|
+
|
|
330
|
+
# Remove from global configs for a specific agent
|
|
331
|
+
npx add-mcp remove neon -g -a cursor -y
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
| Option | Description |
|
|
335
|
+
| --------------------- | ------------------------------------ |
|
|
336
|
+
| `-g, --global` | Remove from global configs |
|
|
337
|
+
| `-a, --agent <agent>` | Filter to specific agent(s) |
|
|
338
|
+
| `-y, --yes` | Remove all matches without prompting |
|
|
339
|
+
|
|
340
|
+
## Sync Command
|
|
341
|
+
|
|
342
|
+
Synchronize server names and installations across all detected agents. Servers are grouped by URL or package name, and each group is unified to the shortest server name. Servers with conflicting headers, env, or args across agents are skipped with a warning.
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
# Sync project-level configs (interactive confirmation)
|
|
346
|
+
npx add-mcp sync
|
|
347
|
+
|
|
348
|
+
# Sync without prompting
|
|
349
|
+
npx add-mcp sync -y
|
|
350
|
+
|
|
351
|
+
# Sync global configs
|
|
352
|
+
npx add-mcp sync -g -y
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
| Option | Description |
|
|
356
|
+
| -------------- | -------------------------------------- |
|
|
357
|
+
| `-g, --global` | Sync global configs instead of project |
|
|
358
|
+
| `-y, --yes` | Skip confirmation prompts |
|
|
359
|
+
|
|
360
|
+
`unify` is an alias for `sync`.
|
|
361
|
+
|
|
292
362
|
## Troubleshooting
|
|
293
363
|
|
|
294
364
|
### Server not loading
|