@mcp-abap-adt/configurator 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. package/bin/mcp-conf.js +18 -1
  2. package/package.json +1 -1
package/bin/mcp-conf.js CHANGED
@@ -434,7 +434,7 @@ for (const client of options.clients) {
434
434
  case "gemini":
435
435
  requireScope("Gemini", ["local"], scope);
436
436
  if (options.list) {
437
- listJsonConfig(getGeminiPath(), "gemini");
437
+ listGeminiConfig(getGeminiPath(), getGeminiEnablementPath(home));
438
438
  } else if (options.show) {
439
439
  showJsonConfig(getGeminiPath(), "gemini", options.name);
440
440
  } else if (options.where) {
@@ -1268,6 +1268,23 @@ function listJsonConfig(filePath, clientType) {
1268
1268
  outputList(filePath, Object.keys(store));
1269
1269
  }
1270
1270
 
1271
+ function listGeminiConfig(filePath, enablementPath) {
1272
+ const data = readJson(filePath);
1273
+ const store = data.mcpServers || {};
1274
+ const enablement = readJson(enablementPath);
1275
+ const keys = Object.keys(store);
1276
+ const header = `# ${filePath}`;
1277
+ process.stdout.write(`${header}\n`);
1278
+ if (!keys.length) {
1279
+ process.stdout.write("- (none)\n");
1280
+ return;
1281
+ }
1282
+ for (const name of keys.sort()) {
1283
+ const status = enablement[name]?.enabled === false ? " (disabled)" : "";
1284
+ process.stdout.write(`- ${name}${status}\n`);
1285
+ }
1286
+ }
1287
+
1271
1288
  function listCodexConfig(filePath) {
1272
1289
  if (!toml) {
1273
1290
  fail("TOML dependency not available. Install dependencies and retry.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-abap-adt/configurator",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "MCP client configurator for mcp-abap-adt and mcp-abap-adt-proxy",
5
5
  "license": "MIT",
6
6
  "repository": {