Stu Mason
Stu Mason

Activity

Issue Resolved

Issue #68 closed: 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:

  1. Exceeds token limits for AI assistants
  2. Is slow to transfer/process
  3. 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.