We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/classfang/ssh-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { SSHConnectionManager } from "../services/ssh-connection-manager.js";
/**
* Register list-servers tool
*/
export function registerListServersTool(server: McpServer): void {
server.registerTool(
"list-servers",
{
description: "List all available SSH server configurations",
},
async () => {
const sshManager = SSHConnectionManager.getInstance();
const servers = sshManager.getAllServerInfos();
return {
content: [
{
type: "text",
text: JSON.stringify(servers)
}
]
};
}
);
}