@aiwerk/mcp-bridge 2.8.35 → 2.8.36
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/dist/bin/mcp-bridge.js +8 -6
- package/package.json +1 -1
package/dist/bin/mcp-bridge.js
CHANGED
|
@@ -389,13 +389,15 @@ function cmdServers(logger, configPath) {
|
|
|
389
389
|
process.stdout.write("No servers configured.\n");
|
|
390
390
|
return;
|
|
391
391
|
}
|
|
392
|
-
|
|
393
|
-
process.stdout.write(
|
|
394
|
-
process.stdout.write(
|
|
392
|
+
const maxName = Math.max(8, ...entries.map(([n]) => n.length)) + 2;
|
|
393
|
+
process.stdout.write(`\nConfigured servers (${entries.length}):\n\n`);
|
|
394
|
+
process.stdout.write(` ${"Server".padEnd(maxName)}${"Transport".padEnd(14)}Description\n`);
|
|
395
|
+
process.stdout.write(" " + "─".repeat(maxName + 14 + 40) + "\n");
|
|
395
396
|
for (const [name, serverConfig] of entries) {
|
|
396
|
-
const padded = name.padEnd(
|
|
397
|
-
const transport = serverConfig.transport.padEnd(
|
|
398
|
-
|
|
397
|
+
const padded = name.padEnd(maxName);
|
|
398
|
+
const transport = serverConfig.transport.padEnd(14);
|
|
399
|
+
const desc = (serverConfig.description || "").slice(0, 60);
|
|
400
|
+
process.stdout.write(` ${padded}${transport}${desc}\n`);
|
|
399
401
|
}
|
|
400
402
|
process.stdout.write("\n");
|
|
401
403
|
}
|