compose_cp
Copy files or folders between a Docker Compose service container and the host filesystem. Specify source and destination with SERVICE:PATH format.
Instructions
Copy files/folders between a service container and the server host's filesystem.
Exactly one of source/dest is SERVICE:PATH; the other is a path on the host running this MCP
server, read/written as the server's user (same host exposure as the file-path archive tools — see
SECURITY.md). Copying to stdout (dest="-") is unsupported; use the container-archive tools.
args:
source - SERVICE:SRC_PATH or a host path
dest - SERVICE:DEST_PATH or a host path (not "-")
index - Container index when the service has multiple replicas (default 1)
all_containers - Copy to/from all containers of the service (--all)
project_dir - Dir with the compose file (default: server cwd)
files - Explicit compose file paths (repeatable, -f)
project_name - Compose project name override
timeout_seconds - Subprocess timeout (default 300s)
returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | Yes | ||
| files | No | ||
| index | No | ||
| source | Yes | ||
| project_dir | No | ||
| project_name | No | ||
| all_containers | No | ||
| timeout_seconds | No |