@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 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`/`show`/`update`/`rm`/`enable`/`disable`).
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.
@@ -36,8 +36,8 @@ async function main() {
36
36
 
37
37
  result.tuiAction = await askSelect("Operation", [
38
38
  "ls",
39
- "add",
40
39
  "show",
40
+ "add",
41
41
  "update",
42
42
  "rm",
43
43
  "enable",
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", "enable", "disable", "where", "show", "update", "tui", "help"].includes(
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", "enable", "disable", "where", "show", "update", "tui"].includes(
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", "enable", "disable", "where", "show", "update", "tui"].includes(action)
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 | show | update | tui.");
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 (const arg of args) {
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|show|update> --client <name> [options]
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/show/update/rm/enable/disable.
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`, `show`, `update`, `tui` (first argument)
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`/`show`/`update`/`rm`/`enable`/`disable`.
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`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/configurator",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "MCP client configurator for mcp-abap-adt and mcp-abap-adt-proxy",
5
5
  "license": "MIT",
6
6
  "repository": {