@mcp-abap-adt/configurator 0.0.11 → 0.0.12
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 +1 -1
- package/bin/mcp-conf-tui.js +1 -1
- package/bin/mcp-conf.js +32 -9
- package/docs/CLIENT_INSTALLERS.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ mcp-conf tui
|
|
|
27
27
|
|
|
28
28
|
## TUI
|
|
29
29
|
|
|
30
|
-
`mcp-conf tui` starts an interactive wizard (`ls`/`add`/`
|
|
30
|
+
`mcp-conf tui` starts an interactive wizard (`ls`/`show`/`add`/`update`/`rm`/`enable`/`disable`).
|
|
31
31
|
- Step order: `operation` -> `client` -> `scope` (auto-skipped if only one scope is supported).
|
|
32
32
|
- For `add` + `sse/http`: prompts for URL, timeout, and repeatable headers.
|
|
33
33
|
- For `rm`/`enable`/`disable`: server name is selected from existing servers in chosen client/scope.
|
package/bin/mcp-conf-tui.js
CHANGED
package/bin/mcp-conf.js
CHANGED
|
@@ -26,7 +26,7 @@ const args = process.argv.slice(2);
|
|
|
26
26
|
const action = args[0] && !args[0].startsWith("-") ? args[0] : null;
|
|
27
27
|
if (
|
|
28
28
|
action &&
|
|
29
|
-
["add", "rm", "ls", "
|
|
29
|
+
["add", "rm", "ls", "show", "enable", "disable", "where", "update", "tui", "help"].includes(
|
|
30
30
|
action,
|
|
31
31
|
)
|
|
32
32
|
) {
|
|
@@ -62,7 +62,7 @@ if (args.includes("--help") || args.includes("-h") || action === "help") {
|
|
|
62
62
|
action === "help"
|
|
63
63
|
? args[0]
|
|
64
64
|
: action &&
|
|
65
|
-
["add", "rm", "ls", "
|
|
65
|
+
["add", "rm", "ls", "show", "enable", "disable", "where", "update", "tui"].includes(
|
|
66
66
|
action,
|
|
67
67
|
)
|
|
68
68
|
? action
|
|
@@ -159,9 +159,9 @@ for (let i = 0; i < args.length; i += 1) {
|
|
|
159
159
|
|
|
160
160
|
if (
|
|
161
161
|
!action ||
|
|
162
|
-
!["add", "rm", "ls", "
|
|
162
|
+
!["add", "rm", "ls", "show", "enable", "disable", "where", "update", "tui"].includes(action)
|
|
163
163
|
) {
|
|
164
|
-
fail("Provide a command: add | rm | ls | enable | disable | where |
|
|
164
|
+
fail("Provide a command: add | rm | ls | show | enable | disable | where | update | tui.");
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
let effectiveAction = action;
|
|
@@ -1446,19 +1446,42 @@ function parseServerArgs(args) {
|
|
|
1446
1446
|
mcpDestination: null,
|
|
1447
1447
|
useSessionEnv: false,
|
|
1448
1448
|
};
|
|
1449
|
-
for (
|
|
1449
|
+
for (let i = 0; i < args.length; i += 1) {
|
|
1450
|
+
const arg = args[i];
|
|
1450
1451
|
if (typeof arg !== "string") {
|
|
1451
1452
|
continue;
|
|
1452
1453
|
}
|
|
1453
1454
|
if (arg.startsWith("--transport=")) {
|
|
1454
1455
|
const value = arg.slice("--transport=".length);
|
|
1455
1456
|
parsed.transport = value === "streamableHttp" ? "http" : value;
|
|
1456
|
-
} else if (arg === "--env") {
|
|
1457
|
+
} else if (arg === "--session-env") {
|
|
1457
1458
|
parsed.useSessionEnv = true;
|
|
1459
|
+
} else if (arg === "--env") {
|
|
1460
|
+
const next = args[i + 1];
|
|
1461
|
+
if (typeof next === "string" && next && !next.startsWith("-")) {
|
|
1462
|
+
// Backward-compatible form: --env /path/to/.env
|
|
1463
|
+
parsed.envPath = next;
|
|
1464
|
+
parsed.useSessionEnv = false;
|
|
1465
|
+
i += 1;
|
|
1466
|
+
} else {
|
|
1467
|
+
parsed.useSessionEnv = true;
|
|
1468
|
+
}
|
|
1458
1469
|
} else if (arg.startsWith("--env-path=") || arg.startsWith("--env=")) {
|
|
1459
1470
|
parsed.envPath = arg.slice(arg.indexOf("=") + 1);
|
|
1471
|
+
} else if (arg === "--env-path") {
|
|
1472
|
+
const next = args[i + 1];
|
|
1473
|
+
if (typeof next === "string" && next && !next.startsWith("-")) {
|
|
1474
|
+
parsed.envPath = next;
|
|
1475
|
+
i += 1;
|
|
1476
|
+
}
|
|
1460
1477
|
} else if (arg.startsWith("--mcp=")) {
|
|
1461
1478
|
parsed.mcpDestination = arg.slice("--mcp=".length);
|
|
1479
|
+
} else if (arg === "--mcp") {
|
|
1480
|
+
const next = args[i + 1];
|
|
1481
|
+
if (typeof next === "string" && next && !next.startsWith("-")) {
|
|
1482
|
+
parsed.mcpDestination = next;
|
|
1483
|
+
i += 1;
|
|
1484
|
+
}
|
|
1462
1485
|
}
|
|
1463
1486
|
}
|
|
1464
1487
|
return parsed;
|
|
@@ -1643,7 +1666,7 @@ function printHelp(command) {
|
|
|
1643
1666
|
process.stdout.write(`${header}
|
|
1644
1667
|
|
|
1645
1668
|
Usage:
|
|
1646
|
-
mcp-conf <add|rm|ls|enable|disable|where|
|
|
1669
|
+
mcp-conf <add|rm|ls|show|enable|disable|where|update> --client <name> [options]
|
|
1647
1670
|
mcp-conf tui
|
|
1648
1671
|
mcp-conf help <command>
|
|
1649
1672
|
|
|
@@ -1651,10 +1674,10 @@ Commands:
|
|
|
1651
1674
|
add add or update an MCP server entry
|
|
1652
1675
|
rm remove an MCP server entry
|
|
1653
1676
|
ls list MCP server entries
|
|
1677
|
+
show show server configuration details
|
|
1654
1678
|
enable enable an existing entry
|
|
1655
1679
|
disable disable an existing entry
|
|
1656
1680
|
where show where a server name is defined
|
|
1657
|
-
show show server configuration details
|
|
1658
1681
|
update update an existing server entry
|
|
1659
1682
|
tui interactive setup wizard
|
|
1660
1683
|
|
|
@@ -1840,7 +1863,7 @@ Usage:
|
|
|
1840
1863
|
mcp-conf tui
|
|
1841
1864
|
|
|
1842
1865
|
Description:
|
|
1843
|
-
Start interactive setup wizard for ls/add/
|
|
1866
|
+
Start interactive setup wizard for ls/show/add/update/rm/enable/disable.
|
|
1844
1867
|
Flow: operation -> client -> scope (skips scope when only one is supported).
|
|
1845
1868
|
For add/update + sse/http, wizard also asks timeout and repeatable headers.
|
|
1846
1869
|
For rm/enable/disable/show/update, wizard selects server from existing entries.
|
|
@@ -92,7 +92,7 @@ mcp-conf tui
|
|
|
92
92
|
- Controls: arrow keys + Enter, Ctrl+C to cancel.
|
|
93
93
|
|
|
94
94
|
Options:
|
|
95
|
-
- Commands: `add`, `rm`, `ls`, `enable`, `disable`, `where`, `
|
|
95
|
+
- Commands: `add`, `rm`, `ls`, `show`, `enable`, `disable`, `where`, `update`, `tui` (first argument)
|
|
96
96
|
- `--client <name>` (repeatable): `cline`, `codex`, `claude`, `goose`, `cursor`, `windsurf`, `opencode` (`kilo` alias), `copilot`, `antigravity`, `crush`
|
|
97
97
|
- `--env`: use shell/session environment variables (stdio only)
|
|
98
98
|
- `--env-path <path>`: use a specific `.env` file (stdio only)
|
|
@@ -112,7 +112,7 @@ Options:
|
|
|
112
112
|
Notes:
|
|
113
113
|
- `disable` and `rm` do not require `--env`, `--env-path`, or `--mcp`.
|
|
114
114
|
- `--env`/`--env-path`/`--mcp` are only valid for `stdio` transport. For `sse/http`, use `--url` and optional `--header`.
|
|
115
|
-
- `mcp-conf tui` starts an interactive wizard for `ls`/`add`/`
|
|
115
|
+
- `mcp-conf tui` starts an interactive wizard for `ls`/`show`/`add`/`update`/`rm`/`enable`/`disable`.
|
|
116
116
|
- Cursor/Copilot enable/disable are not implemented yet.
|
|
117
117
|
- Antigravity enable/disable uses `disabled: true|false` on the entry.
|
|
118
118
|
- Antigravity local scope is not supported yet; use `--global`.
|