get_application_logs
Retrieve application logs from Coolify self-hosted PaaS to monitor deployments, troubleshoot issues, and analyze performance by specifying the application UUID and desired line count.
Instructions
Get application logs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Application UUID | |
| lines | No | Number of lines (default: 100) |
Implementation Reference
- src/tools/handlers.ts:253-258 (handler)Handler implementation for the get_application_logs tool. Validates input, checks feature availability, and fetches logs from the Coolify API endpoint /applications/{uuid}/logs.case 'get_application_logs': requireParam(args, 'uuid'); if (!client.isFeatureAvailable('application_logs')) { return { error: 'Application logs not available in this Coolify version (requires beta.380+)' }; } return client.get(`/applications/${args.uuid}/logs`, { lines: args.lines || 100 });
- src/tools/definitions.ts:488-498 (schema)Schema definition for the get_application_logs tool, defining input parameters: required uuid (string) and optional lines (number, default 100).{ name: 'get_application_logs', description: 'Get application logs', inputSchema: { type: 'object', properties: { uuid: { type: 'string', description: 'Application UUID' }, lines: { type: 'number', description: 'Number of lines (default: 100)', default: 100 } }, required: ['uuid'] }
- src/index.ts:36-38 (registration)Registration of all tools including get_application_logs via getToolDefinitions() in the MCP server's ListToolsRequestHandler.this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: getToolDefinitions() }));
- src/index.ts:57-67 (registration)Tool execution handler in MCP server that dispatches to handleTool based on tool name, executing get_application_logs when requested.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/tools/definitions.ts:22-22 (helper)Inclusion of get_application_logs in READ_ONLY_TOOLS array, making it available in read-only mode.'get_application_logs',