ssh_list_servers
View all configured SSH servers in the MCP SSH Manager to manage connections, execute remote commands, and transfer files across multiple systems.
Instructions
List all configured SSH servers
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tool-registry.js:14-20 (registration)Registration of the 'ssh_list_servers' tool as part of the core essential SSH operations group in the centralized tool registry.core: [ 'ssh_list_servers', 'ssh_execute', 'ssh_upload', 'ssh_download', 'ssh_sync' ],
- src/config-loader.js:159-162 (helper)The getAllServers() method returns the list of all configured SSH servers from loaded config sources (.env, TOML), which implements the core logic for listing servers used by the ssh_list_servers tool.getAllServers() { return Array.from(this.servers.values()); }
- src/server-groups.js:114-126 (helper)Alternative getAllServers() method that parses environment variables to list server names, supporting dynamic 'all' group which may be used by ssh_list_servers.getAllServers() { // This will be populated from the main server config const servers = []; for (const [key, value] of Object.entries(process.env)) { if (key.startsWith('SSH_SERVER_') && key.endsWith('_HOST')) { const serverName = key.replace('SSH_SERVER_', '').replace('_HOST', '').toLowerCase(); servers.push(serverName); } } return servers; }
- tests/test-tool-registry.js:114-116 (registration)Test validation confirming 'ssh_list_servers' is in the expected core tools list.const expectedCore = ['ssh_list_servers', 'ssh_execute', 'ssh_upload', 'ssh_download', 'ssh_sync']; for (const tool of expectedCore) {