StuMason/coolify-mcp
TypeScript
Issue Opened
Issue #68 opened: Add line limit option to deployment logs
Problem
The deployment tool (action: get) returns the entire deployment log including all build output. For a typical nixpacks build, this can be 200,000+ characters which:
- Exceeds token limits for AI assistants
- Is slow to transfer/process
- Usually only the last few lines are needed to check status
Current Behavior
mcp__coolify__deployment(action: "get", uuid: "xxx")
// Returns 223,113 characters of build logs
Suggested Solution
Add a lines parameter (similar to application_logs) to limit output:
// Schema addition
lines?: number // Return only last N lines of logs (default: all)
Example Usage
mcp__coolify__deployment(action: "get", uuid: "xxx", lines: 50)
// Returns deployment info + last 50 lines of logs
This would match the pattern already used in application_logs which has a lines parameter.
Workaround
Currently have to save to file and use tail to read the end, which defeats the purpose of the MCP tool.