Skip to main content
Glama
nwnusun-cool

MCP SSH Tools Server

by nwnusun-cool

list_servers

List all configured SSH servers for remote management. View available connections to execute commands, transfer files, or manage systems through the MCP SSH Tools Server.

Instructions

列出所有配置的服务器

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:464-489 (handler)
    The handler function for the list_servers tool. It iterates over configured servers, checks connection status using mcp_manager, and returns a list of servers with details including name, IP, user, port, and connected status.
    @mcp.tool() def list_servers() -> Dict[str, Any]: """列出所有配置的服务器""" servers = [] for name, config in mcp_manager.server_configs.items(): # 检查连接状态 is_connected = False if name in mcp_manager.active_connections: try: transport = mcp_manager.active_connections[name].get_transport() is_connected = transport and transport.is_active() except: is_connected = False servers.append({ "name": name, "ip": config.ssh_ip, "user": config.ssh_user, "port": config.ssh_port, "connected": is_connected }) return { "servers": servers, "total_servers": len(servers) }

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/nwnusun-cool/mcp-server-ssh-tools'

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