Skip to content

Add log retrieval endpoints for deployment and container logs #14

Closed

Description

@chukfinley

Summary

The MCP server currently lacks endpoints for retrieving logs, which limits LLM agents' ability to debug and monitor applications effectively.

Problem

When using the Dokploy MCP with an LLM agent, there's no way to:

  • View deployment/build logs
  • View runtime container logs
  • Debug failed deployments or application errors

The agent can start, stop, deploy, and configure applications but cannot see what's happening inside them. This makes troubleshooting impossible without manual intervention via the web UI or SSH.

Requested Features

1. Deployment Logs

deployment-logs
  - deploymentId: string (required)
  - tail?: number (optional, limit lines)

Returns build/deployment output for a specific deployment.

2. Container Runtime Logs

application-logs
  - applicationId: string (required)
  - tail?: number (optional, limit lines)
  - since?: string (optional, e.g., "1h", "30m")

Returns live container logs (equivalent to docker logs).

3. Compose Service Logs

compose-logs
  - composeId: string (required)
  - serviceName?: string (optional, specific service)
  - tail?: number
  - since?: string

Use Case

As an LLM agent, I need to:

  1. Deploy an application
  2. Check if deployment succeeded by reading build logs
  3. Monitor runtime logs for errors
  4. Help users debug issues without them needing to leave their terminal

Additional Context

Dokploy's API already supports log retrieval - this is just about exposing those endpoints through the MCP server.

Activity

  1. Siumauricio commented on May 13, 2026

    @Siumauricio
    Contributor

    Hey in a few versions ago we introduced a new endpoints to retrieve the logs of the container logs https://docs.dokploy.com/docs/api/application#application-read-logs this is an example for application

    In the next version v0.29.5 we will release an endpoint to retrieve the build logs here Dokploy/dokploy@558d809

  2. jcw- commented on May 15, 2026

    @jcw-

    @Siumauricio amazing - deployment.readLogs is exactly what I was looking for - I'm hoping to get this running on our instance tomorrow - wondering when you were thinking of releasing v0.29.5?

  3. added a commit that references this issue on May 22, 2026
  4. added a commit that references this issue on May 30, 2026
  5. added a commit that references this issue on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions