StuMason/coolify-mcp
TypeScript
Issue Resolved
Issue #98 closed: deployment tool returns massive responses (13k+ tokens)
Problem
The deployment tool with action: get returns extremely large responses that can quickly fill up context. A simple deployment status check returned ~13.4k tokens.
What happened
coolify - deployment (action: "get", uuid: "xxx", lines: 20)
⚠ Large MCP response (~13.4k tokens), this can fill up context quickly
Even with lines: 20 parameter, the response was massive because:
- The full deployment object is returned with all metadata
- Build logs contain verbose output (Dockerfile with all ARGs repeated 3x, full composer package lists, npm output, etc.)
- The
logsfield is a JSON-encoded string containing the entire build history
Suggested improvements
- Smarter defaults - Return a summary by default, full logs only when explicitly requested
- Better truncation -
linesparam should truncate more aggressively - Separate endpoints -
getfor status/summary,logsfor full build output - Structured summary - Return key info (status, duration, commit, last few log lines) instead of everything
Example of what would be useful
{
"status": "finished",
"application_name": "devtrends",
"commit": "c93a685...",
"commit_message": "feat: add DevTrends MCP...",
"duration_seconds": 120,
"recent_output": ["Container started", "Health check passed"]
}
Instead of 500+ lines of raw build logs.