Skip to main content
Glama
mcp-docker-compose

mcp-docker-compose

by Ricrdoss

Restart Docker Compose Service

compose_restart_service
Idempotent

Restart a single Docker Compose service with a configurable graceful shutdown timeout, allowing AI coding agents to recover one service without shell execution.

Instructions

Restart a single Docker Compose service with a configurable graceful shutdown timeout.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "service": "<service>"
    },
    "name": "compose_restart_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory where the Docker Compose project lives.
serviceYesName of the Docker Compose service to restart.
composeFileNoOptional path to a specific compose file (passed via -f).
timeoutSecondsNoShutdown timeout in seconds before killing the container (1-120, default 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

Score is being calculated.