@mcp-abap-adt/configurator 0.0.9 → 0.0.10
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 +6 -22
- package/docs/CLIENT_INSTALLERS.md +4 -4
- package/package.json +1 -1
package/bin/mcp-conf.js
CHANGED
|
@@ -320,37 +320,33 @@ for (const client of options.clients) {
|
|
|
320
320
|
fail("--project is only supported for Claude global config.");
|
|
321
321
|
}
|
|
322
322
|
if (options.toggle && scope === "local") {
|
|
323
|
-
const localPath = getClaudePath(
|
|
323
|
+
const localPath = getClaudePath(home, "local");
|
|
324
324
|
if (!claudeLocalHasServer(localPath, options.name)) {
|
|
325
325
|
fail(`Server "${options.name}" not found in ${localPath}.`);
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
if (options.list) {
|
|
329
329
|
listClaudeConfig(
|
|
330
|
-
getClaudePath(
|
|
330
|
+
getClaudePath(home, claudeToggleScope),
|
|
331
331
|
options.allProjects,
|
|
332
332
|
options.projectPath,
|
|
333
333
|
);
|
|
334
334
|
} else if (options.show) {
|
|
335
335
|
showClaudeConfig(
|
|
336
|
-
getClaudePath(
|
|
336
|
+
getClaudePath(home, claudeToggleScope),
|
|
337
337
|
options.name,
|
|
338
338
|
options.allProjects,
|
|
339
339
|
options.projectPath,
|
|
340
340
|
);
|
|
341
341
|
} else if (options.where) {
|
|
342
342
|
whereClaudeConfig(
|
|
343
|
-
getClaudePath(
|
|
343
|
+
getClaudePath(home, claudeToggleScope),
|
|
344
344
|
options.name,
|
|
345
345
|
options.allProjects,
|
|
346
346
|
options.projectPath,
|
|
347
347
|
);
|
|
348
348
|
} else {
|
|
349
|
-
writeClaudeConfig(
|
|
350
|
-
getClaudePath(platform, home, appData, claudeToggleScope),
|
|
351
|
-
options.name,
|
|
352
|
-
serverArgs,
|
|
353
|
-
);
|
|
349
|
+
writeClaudeConfig(getClaudePath(home, claudeToggleScope), options.name, serverArgs);
|
|
354
350
|
}
|
|
355
351
|
break;
|
|
356
352
|
}
|
|
@@ -534,22 +530,10 @@ function getCodexPath(platformValue, homeDir, userProfileDir, scopeValue) {
|
|
|
534
530
|
return path.join(homeDir, ".codex", "config.toml");
|
|
535
531
|
}
|
|
536
532
|
|
|
537
|
-
function getClaudePath(
|
|
533
|
+
function getClaudePath(homeDir, scopeValue) {
|
|
538
534
|
if (scopeValue === "local") {
|
|
539
535
|
return path.join(process.cwd(), ".mcp.json");
|
|
540
536
|
}
|
|
541
|
-
if (platformValue === "darwin") {
|
|
542
|
-
return path.join(
|
|
543
|
-
homeDir,
|
|
544
|
-
"Library",
|
|
545
|
-
"Application Support",
|
|
546
|
-
"Claude",
|
|
547
|
-
"claude_desktop_config.json",
|
|
548
|
-
);
|
|
549
|
-
}
|
|
550
|
-
if (platformValue === "win32") {
|
|
551
|
-
return path.join(appDataDir, "Claude", "claude_desktop_config.json");
|
|
552
|
-
}
|
|
553
537
|
return path.join(homeDir, ".claude.json");
|
|
554
538
|
}
|
|
555
539
|
|
|
@@ -138,10 +138,8 @@ Global (default) locations:
|
|
|
138
138
|
- Windows: `%USERPROFILE%\.codex\config.toml`
|
|
139
139
|
- Local (project): `./.codex/config.toml`
|
|
140
140
|
- **Claude Code (CLI)**:
|
|
141
|
-
- Linux
|
|
142
|
-
-
|
|
143
|
-
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
144
|
-
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
141
|
+
- Linux/macOS: `~/.claude.json` (per-project entries under `projects.<cwd>.mcpServers`)
|
|
142
|
+
- Windows: `%USERPROFILE%\.claude.json`
|
|
145
143
|
- **Goose**:
|
|
146
144
|
- Linux/macOS: `~/.config/goose/config.yaml`
|
|
147
145
|
- Windows: `%APPDATA%\Block\goose\config\config.yaml`
|
|
@@ -151,11 +149,13 @@ Global (default) locations:
|
|
|
151
149
|
- **Windsurf**:
|
|
152
150
|
- Linux/macOS: `~/.codeium/windsurf/mcp_config.json`
|
|
153
151
|
- Windows: `%USERPROFILE%\.codeium\windsurf\mcp_config.json`
|
|
152
|
+
- Note: some Windsurf docs/examples also mention legacy `~/.codeium/mcp_config.json`.
|
|
154
153
|
- **OpenCode**:
|
|
155
154
|
- Linux/macOS: `~/.config/opencode/opencode.json`
|
|
156
155
|
- Windows: `%APPDATA%\opencode\opencode.json`
|
|
157
156
|
- **Antigravity**:
|
|
158
157
|
- Linux/macOS: `~/.gemini/antigravity/mcp_config.json`
|
|
158
|
+
- Note: path is community-reported; verify against latest vendor docs.
|
|
159
159
|
|
|
160
160
|
Local (project) locations:
|
|
161
161
|
- **Claude Code**:
|