Skip to main content
Glama

get_version

Retrieve version details for the Coolify self-hosted PaaS platform to verify current deployment status and compatibility.

Instructions

Get Coolify version information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 'get_version' tool. Simply calls the CoolifyClient's GET method on the '/version' endpoint.
    case 'get_version':
      return client.get('/version');
  • Schema definition for the 'get_version' tool, including name, description, and empty input schema (no parameters required).
      name: 'get_version',
      description: 'Get Coolify version information',
      inputSchema: { type: 'object', properties: {}, required: [] }
    },
  • src/index.ts:41-67 (registration)
    MCP server registration for tool calls (CallToolRequestSchema). Dispatches to handleTool based on tool name, with read-only mode checks.
    this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
      if (!this.client) {
        throw new McpError(ErrorCode.InternalError, 'Client not initialized');
      }
    
      const { name, arguments: args } = request.params;
    
      // Block write operations in read-only mode
      if (isReadOnlyMode() && !READ_ONLY_TOOLS.includes(name)) {
        throw new McpError(
          ErrorCode.InvalidRequest,
          `Operation '${name}' is not allowed in read-only mode. Set COOLIFY_READONLY=false to enable write operations.`
        );
      }
    
      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}`);
      }
    });
  • src/index.ts:36-38 (registration)
    MCP server registration for listing tools (ListToolsRequestSchema). Returns all tool definitions including 'get_version'.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: getToolDefinitions()
    }));
  • 'get_version' is listed in READ_ONLY_TOOLS array, ensuring it's always available even in read-only mode.
    'get_version',
    'health_check',
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