docker_compose
MCP tools › Containers and Kubernetes
Docker Compose of the project folder (compose.yaml, compose.yml, docker-compose.yaml, docker-compose.yml plus override): services returns the files, project name and each service with the state of its containers; logs the last output lines of a service's containers; up (up --detach), down (whole project: containers and networks removed, volumes and images kept; with service: rm --stop --force of that service) and scale (service, replicas 0–20: up --detach --no-recreate --scale; a preview names the containers a scale-down removes) run the Compose CLI (docker compose or docker-compose) against the engine. up/down default to dry_run=true and return the command; dry_run=false needs the user-granted run right and is logged in .ferris-idea/agent-log.jsonl.
Its results carry text from process: the client is told to treat that as data, never as instructions.
| Capability | containers.docker_compose |
|---|---|
| Area | Containers and Kubernetes |
| Access | changes processes |
| Reaches | process, network |
| Rights | run |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
actionrequired | string | services, logs, up, down or scale. |
service | string | One service (required for logs and scale; optional for up/down). |
replicas | integer | For scale: the number of containers, 0 to 20.minimum 0 |
tail | integer | Lines for logs (default 200, at most 5000).minimum 0 |
dry_run | boolean | For up/down: only report the command (default true). |
engine | string | Engine by name or address. |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project docker_compose '{"action":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "action" ], "properties": { "action": { "description": "`services`, `logs`, `up`, `down` or `scale`.", "type": "string" }, "service": { "description": "One service (required for `logs` and `scale`; optional for `up`/`down`).", "type": [ "string", "null" ] }, "replicas": { "description": "For `scale`: the number of containers, 0 to 20.", "type": [ "integer", "null" ], "minimum": 0 }, "tail": { "description": "Lines for `logs` (default 200, at most 5000).", "type": [ "integer", "null" ], "minimum": 0 }, "dry_run": { "description": "For `up`/`down`: only report the command (default true).", "type": [ "boolean", "null" ] }, "engine": { "description": "Engine by name or address.", "type": [ "string", "null" ] } }}