add-mcp 1.13.1 → 1.13.2
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 +36 -8
- package/dist/index.js +8 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,15 +34,15 @@ console.log(result);
|
|
|
34
34
|
|
|
35
35
|
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).
|
|
36
36
|
|
|
37
|
-
## Find
|
|
37
|
+
## Find MCP Servers
|
|
38
38
|
|
|
39
|
-
Find and install MCP servers from the integrations.sh MCP registry
|
|
39
|
+
Find and install MCP servers from the integrations.sh MCP registry:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
42
|
npx add-mcp find vercel
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
The first `find`/`search` run automatically saves the integrations.sh registry to `~/.config/add-mcp/config.json` (or `$XDG_CONFIG_HOME/add-mcp/config.json`). You can edit that file to replace the default registry, add the official Anthropic registry, or point at any registry-compatible server.
|
|
46
46
|
|
|
47
47
|
## Supported Agents
|
|
48
48
|
|
|
@@ -284,9 +284,7 @@ If a selected remote server defines URL variables or header inputs:
|
|
|
284
284
|
|
|
285
285
|
### Configuring Registries for Find / Search
|
|
286
286
|
|
|
287
|
-
The first time you run `find` or `search`, the CLI
|
|
288
|
-
|
|
289
|
-
If you run with `-y` before this one-time registry setup is completed, the CLI exits with guidance to rerun without `--yes`.
|
|
287
|
+
The first time you run `find` or `search`, the CLI automatically saves the integrations.sh MCP registry to `~/.config/add-mcp/config.json` (respects `XDG_CONFIG_HOME`) and reuses that registry on every subsequent search.
|
|
290
288
|
|
|
291
289
|
### Built-in Registries
|
|
292
290
|
|
|
@@ -308,7 +306,37 @@ bun run registry:verify
|
|
|
308
306
|
|
|
309
307
|
### Editing or Removing Registries
|
|
310
308
|
|
|
311
|
-
Registry selections are stored in `~/.config/add-mcp/config.json` under the `findRegistries` key. You can edit this file directly to add, remove, or reorder registries
|
|
309
|
+
Registry selections are stored in `~/.config/add-mcp/config.json` under the `findRegistries` key. You can edit this file directly to replace, add, remove, or reorder registries.
|
|
310
|
+
|
|
311
|
+
Default integrations.sh registry:
|
|
312
|
+
|
|
313
|
+
```json
|
|
314
|
+
{
|
|
315
|
+
"version": 1,
|
|
316
|
+
"findRegistries": [
|
|
317
|
+
{
|
|
318
|
+
"url": "https://mcp.agent-tooling.dev/api/v1/servers",
|
|
319
|
+
"label": "integrations.sh MCP registry"
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
Replace the default with the official Anthropic registry:
|
|
326
|
+
|
|
327
|
+
```json
|
|
328
|
+
{
|
|
329
|
+
"version": 1,
|
|
330
|
+
"findRegistries": [
|
|
331
|
+
{
|
|
332
|
+
"url": "https://registry.modelcontextprotocol.io/v0.1/servers",
|
|
333
|
+
"label": "Official Anthropic registry"
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Search both integrations.sh and the official Anthropic registry:
|
|
312
340
|
|
|
313
341
|
```json
|
|
314
342
|
{
|
|
@@ -326,7 +354,7 @@ Registry selections are stored in `~/.config/add-mcp/config.json` under the `fin
|
|
|
326
354
|
}
|
|
327
355
|
```
|
|
328
356
|
|
|
329
|
-
To reset
|
|
357
|
+
To reset to the default integrations.sh registry, remove the `findRegistries` key or delete the config file.
|
|
330
358
|
|
|
331
359
|
### Adding a Custom Registry
|
|
332
360
|
|
package/dist/index.js
CHANGED
|
@@ -784,7 +784,7 @@ async function runFind(query, options) {
|
|
|
784
784
|
// package.json
|
|
785
785
|
var package_default = {
|
|
786
786
|
name: "add-mcp",
|
|
787
|
-
version: "1.13.
|
|
787
|
+
version: "1.13.2",
|
|
788
788
|
description: "Add MCP servers to your favorite coding agents with a single command.",
|
|
789
789
|
author: "Andre Landgraf <andre@neon.tech>",
|
|
790
790
|
license: "Apache-2.0",
|
|
@@ -914,34 +914,19 @@ function resolveAgentType(input) {
|
|
|
914
914
|
}
|
|
915
915
|
return null;
|
|
916
916
|
}
|
|
917
|
-
async function ensureFindRegistriesConfigured(
|
|
917
|
+
async function ensureFindRegistriesConfigured() {
|
|
918
918
|
const configured = await getFindRegistries();
|
|
919
919
|
if (configured.length > 0) {
|
|
920
920
|
return configured;
|
|
921
921
|
}
|
|
922
|
-
|
|
923
|
-
if (
|
|
924
|
-
|
|
925
|
-
return null;
|
|
926
|
-
}
|
|
927
|
-
const defaults = getDefaultFindRegistries();
|
|
928
|
-
const selected = await p2.multiselect({
|
|
929
|
-
message: "[One time] Please select what MCP registries you would like to configure globally for search",
|
|
930
|
-
options: defaults.map((registry) => ({
|
|
931
|
-
value: registry.url,
|
|
932
|
-
label: registry.label ?? registry.url
|
|
933
|
-
})),
|
|
934
|
-
required: true
|
|
935
|
-
});
|
|
936
|
-
if (p2.isCancel(selected)) {
|
|
937
|
-
return null;
|
|
922
|
+
const defaultRegistry = getDefaultFindRegistries()[0];
|
|
923
|
+
if (!defaultRegistry) {
|
|
924
|
+
throw new Error("No default find registry is configured");
|
|
938
925
|
}
|
|
939
|
-
const selectedRegistries =
|
|
940
|
-
(registry) => selected.includes(registry.url)
|
|
941
|
-
);
|
|
926
|
+
const selectedRegistries = [defaultRegistry];
|
|
942
927
|
await saveFindRegistries(selectedRegistries);
|
|
943
928
|
p2.log.info(
|
|
944
|
-
`
|
|
929
|
+
`Using ${defaultRegistry.label ?? defaultRegistry.url}. Saved to ${shortenPath(getConfigPath())} - you can remove or update it any time.`
|
|
945
930
|
);
|
|
946
931
|
return selectedRegistries;
|
|
947
932
|
}
|
|
@@ -1167,7 +1152,7 @@ async function runFindCommand(keyword, rawOptions) {
|
|
|
1167
1152
|
...extractSubcommandOptionsFromArgv()
|
|
1168
1153
|
};
|
|
1169
1154
|
const query = (keyword ?? "").trim();
|
|
1170
|
-
const registries = await ensureFindRegistriesConfigured(
|
|
1155
|
+
const registries = await ensureFindRegistriesConfigured();
|
|
1171
1156
|
if (!registries) {
|
|
1172
1157
|
p2.cancel("Find cancelled");
|
|
1173
1158
|
process.exit(0);
|