Skip to main content
Glama

list_servers

Retrieve all servers managed by the Coolify platform for monitoring and operational control.

Instructions

List all servers in Coolify

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler case for 'list_servers' tool: retrieves the list of servers by calling client.get('/servers'). This is part of the main handleTool switch statement.
    case 'list_servers': return client.get('/servers');
  • Schema definition for the 'list_servers' tool, specifying name, description, and empty input schema (no parameters required).
    { name: 'list_servers', description: 'List all servers in Coolify', inputSchema: { type: 'object', properties: {}, required: [] } },
  • src/tools/index.ts:1-2 (registration)
    Registration exports: Exports tool definitions (including list_servers schema) and handleTool function for use in MCP server setup.
    export { toolDefinitions, getToolDefinitions, isReadOnlyMode, READ_ONLY_TOOLS } from './definitions.js'; export { handleTool } from './handlers.js';
  • src/index.ts:36-38 (registration)
    MCP tool list registration: Registers handler for ListToolsRequestSchema which returns all tool definitions including list_servers.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
  • src/index.ts:56-67 (registration)
    MCP tool call registration: In CallToolRequestSchema handler, invokes handleTool which dispatches to list_servers case.
    try { const result = await handleTool(this.client, name, args || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error) { if (error instanceof McpError) throw error; const message = error instanceof Error ? error.message : 'Unknown error'; throw new McpError(ErrorCode.InternalError, `Tool execution failed: ${message}`); } });
Install Server

Other Tools

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/kof70/coolify-mcp-server'

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