a6163abc85617ceab3d4f6ac8de0d6bf5b1a0886source_git · krelborn/docker-compose-mcp · current release
Observed 2026-08-25T16:36:13.464Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.
{
"tools": {
"listChanged": true
}
}| Tool | Category | Annotations | Risk |
|---|---|---|---|
docker_compose_commandExecute any docker compose command for a specific compose file.
This tool allows running arbitrary docker compose commands like:
- ps: List containers
- logs: View container logs
- restart: Restart services
- stop/start: Stop or start services
- exec: Execute commands in running containers
Args:
- compose_file (string): Absolute path to the docker-compose.yml file
- command (string): Docker compose command to run (everything after 'docker compose -f file.yml')
Returns:
The stdout and stderr output from the docker compose command
Examples:
- Use when: "Show me the logs for my docker containers"
- Use when: "List running docker compose services"
- Use when: "Restart the web service"Input schema{
"type": "object",
"properties": {
"compose_file": {
"type": "string",
"description": "Absolute path to the docker-compose.yml file"
},
"command": {
"type": "string",
"description": "Docker compose command to run (e.g., 'ps', 'logs', 'restart')"
}
},
"required": [
"compose_file",
"command"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Annotations{
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": false,
"openWorldHint": false
} | — | Writes · Non-destructive | — |
docker_compose_updateUpdate Docker Compose containers by stopping them, pulling latest images, and restarting.
This tool executes the standard update workflow:
1. Stop running containers (docker compose down)
2. Pull latest images (docker compose pull)
3. Start containers with new images (docker compose up -d)
Args:
- compose_file (string): Absolute path to the docker-compose.yml file
- detached (boolean): Run containers in detached mode (default: true)
Returns:
A summary of each step's output, including:
- Which containers were stopped
- Which images were pulled/updated
- Which containers are now running
- Any errors encountered during the process
Examples:
- Use when: "Update my chemdraw containers"
- Use when: "Pull latest images and restart docker compose"
Error Handling:
- If 'down' fails, continues to 'pull' (containers may not be running)
- If 'pull' fails, does not proceed to 'up'
- If 'up' fails, reports error detailsInput schema{
"type": "object",
"properties": {
"compose_file": {
"type": "string",
"description": "Absolute path to the docker-compose.yml file"
},
"detached": {
"type": "boolean",
"default": true,
"description": "Run containers in detached mode (default: true)"
}
},
"required": [
"compose_file"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}Annotations{
"readOnlyHint": false,
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": false
} | — | Writes · Destructive | — |