@mcp-abap-adt/configurator 0.0.4 → 0.0.5

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/bin/mcp-conf.js CHANGED
@@ -229,13 +229,13 @@ const serverArgs = serverArgsRaw.filter(Boolean);
229
229
  if (options.transport === "sse") {
230
230
  fail("Codex does not support SSE transport.");
231
231
  }
232
- requireScope("Codex", ["global"], scope);
232
+ requireScope("Codex", ["global", "local"], scope);
233
233
  if (options.list) {
234
- listCodexConfig(getCodexPath(platform, home, userProfile));
234
+ listCodexConfig(getCodexPath(platform, home, userProfile, scope));
235
235
  } else if (options.where) {
236
- whereCodexConfig(getCodexPath(platform, home, userProfile), options.name);
236
+ whereCodexConfig(getCodexPath(platform, home, userProfile, scope), options.name);
237
237
  } else {
238
- writeCodexConfig(getCodexPath(platform, home, userProfile), options.name, serverArgs);
238
+ writeCodexConfig(getCodexPath(platform, home, userProfile, scope), options.name, serverArgs);
239
239
  }
240
240
  break;
241
241
  case "claude":
@@ -387,7 +387,10 @@ function getClinePath(platformValue, homeDir, appDataDir) {
387
387
  );
388
388
  }
389
389
 
390
- function getCodexPath(platformValue, homeDir, userProfileDir) {
390
+ function getCodexPath(platformValue, homeDir, userProfileDir, scopeValue) {
391
+ if (scopeValue === "local") {
392
+ return path.join(process.cwd(), ".codex", "config.toml");
393
+ }
391
394
  if (platformValue === "win32") {
392
395
  return path.join(userProfileDir, ".codex", "config.toml");
393
396
  }
@@ -1229,6 +1232,7 @@ Run:
1229
1232
  Notes:
1230
1233
  Scope defaults to --global (Copilot uses --local only).
1231
1234
  For Claude, --local maps to the project scope file ./.mcp.json.
1235
+ For Codex, --local writes to ./.codex/config.toml.
1232
1236
  `);
1233
1237
  return;
1234
1238
  }
@@ -82,7 +82,7 @@ Options:
82
82
  - `--transport <type>`: `stdio`, `sse`, or `http` (`http` maps to `streamableHttp`)
83
83
  - `--command <bin>`: command to run (default: `mcp-abap-adt`)
84
84
  - `--global`: write to the global user config (default)
85
- - `--local`: write to the project config (supported by `cursor`, `opencode`, `copilot`, `claude`)
85
+ - `--local`: write to the project config (supported by `cursor`, `opencode`, `copilot`, `claude`, `codex`)
86
86
  - `--all-projects`: for Claude (global scope), apply `rm/enable/disable/ls/where` across all projects
87
87
  - `--project <path>`: for Claude (global scope), target a specific project path
88
88
  - `--url <http(s)://...>`: required for `sse` and `http`
@@ -102,7 +102,7 @@ Notes:
102
102
  - Windsurf follows `disabled` like Cline. The configurator sets `disabled = true` for default-disabled entries.
103
103
  - `enable`/`disable` only work if the server entry already exists. Use add commands with `--env` or `--mcp` first.
104
104
  - Non-stdio transports are supported for Cline/Cursor/Windsurf/Claude/Goose. Codex supports `http` (streamable HTTP) but not `sse`.
105
- - Codex writes custom headers under `http_headers` in `~/.codex/config.toml`.
105
+ - Codex writes custom headers under `http_headers` in `~/.codex/config.toml` (or `./.codex/config.toml` for `--local`).
106
106
  - Codex HTTP entries include `startup_timeout_sec` (default: 60).
107
107
  - `--dry-run`: print changes without writing files
108
108
  - `--force`: overwrite existing server entry if it exists
@@ -120,6 +120,7 @@ Global (default) locations:
120
120
  - **Codex**:
121
121
  - Linux/macOS: `~/.codex/config.toml`
122
122
  - Windows: `%USERPROFILE%\.codex\config.toml`
123
+ - Local (project): `./.codex/config.toml`
123
124
  - **Claude Code (CLI)**:
124
125
  - Linux default: `~/.claude.json` (per-project entries under `projects.<cwd>.mcpServers`)
125
126
  - **Claude Desktop**:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/configurator",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "MCP client configurator for mcp-abap-adt and mcp-abap-adt-proxy",
5
5
  "license": "MIT",
6
6
  "repository": {