ssh_list_servers
List all configured SSH servers in the mcpHydroSSH environment to view available remote connections for management.
Instructions
List all configured SSH servers
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:258-273 (handler)The handler implementation for the `ssh_list_servers` tool, which maps configured servers to a simplified list and returns them as a JSON string.
case 'ssh_list_servers': { const servers: ServerListItem[] = config.servers.map(s => ({ id: s.id, name: s.name, host: s.host, port: s.port, })); return { content: [ { type: 'text', text: JSON.stringify(servers, null, 2), }, ], }; } - src/index.ts:44-52 (registration)The definition and registration of the `ssh_list_servers` tool, including its description and empty input schema.
{ name: 'ssh_list_servers', description: 'List all configured SSH servers', inputSchema: { type: 'object', properties: {}, required: [], }, },