get_version
Retrieve the current version of your Coolify instance to verify deployment status and ensure compatibility with your DevOps workflows.
Instructions
Get Coolify version information. Returns the current version of the Coolify instance.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1212-1216 (handler)Handler implementation for the 'get_version' tool. Fetches the Coolify server version from the '/version' API endpoint and returns the JSON response as text content.case 'get_version': const versionResponse = await this.axiosInstance.get('/version'); return { content: [{ type: 'text', text: JSON.stringify(versionResponse.data, null, 2) }] };
- src/index.ts:126-135 (registration)Tool registration and schema definition for 'get_version' in the ListTools response. Defines the tool name, description, and empty input schema (no parameters required).{ name: 'get_version', description: 'Get Coolify version information. Returns the current version of the Coolify instance.', inputSchema: { type: 'object', properties: {}, required: [], examples: [{}] } },
- src/index.ts:75-87 (helper)Helper method that detects and parses the Coolify version at startup by calling the same '/version' endpoint used by the get_version tool. Stores parsed version info for feature compatibility checks.private async detectCoolifyVersion(): Promise<void> { if (!this.axiosInstance) return; try { const response = await this.axiosInstance.get('/version'); const versionString = response.data?.version || response.data?.coolify || 'unknown'; this.coolifyVersion = this.parseVersion(versionString); } catch (error) { console.error('Could not detect Coolify version:', error); // Set a default compatible version this.coolifyVersion = { version: '4.0.0-beta.420', major: 4, minor: 0, patch: 0, beta: 420 }; } }
- src/index.ts:89-102 (helper)Helper function to parse Coolify version strings into structured version objects, used by detectCoolifyVersion.private parseVersion(versionString: string): CoolifyVersion { const match = versionString.match(/^v?(\d+)\.(\d+)\.(\d+)(?:-beta\.(\d+))?/); if (match) { return { version: versionString, major: parseInt(match[1]), minor: parseInt(match[2]), patch: parseInt(match[3]), beta: match[4] ? parseInt(match[4]) : undefined }; } // Fallback for unknown version format return { version: versionString, major: 4, minor: 0, patch: 0, beta: 420 }; }