Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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' ],
  • 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()); }
  • 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; }
  • 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) {

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bvisible/mcp-ssh-manager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server