Skip to main content
Glama

Code MCP Server

by block

docker_compose

Manage and control Docker Compose services using actions like up, down, build, logs, and exec. Specify service targets, compose files, and configurable options for efficient container orchestration.

Instructions

Manage Docker Compose services

Input Schema

NameRequiredDescriptionDefault
actionYesDocker Compose action to perform
buildNoBuild images before starting (for up action)
commandNoCommand to execute (for exec action)
detachNoRun in background (for up action)
fileNoDocker Compose file path (default: docker-compose.yml)
followNoFollow log output (for logs action)
force_recreateNoForce recreate containers
project_nameNoProject name for compose stack
remove_orphansNoRemove containers for services not defined in compose file
serviceNoSpecific service to target
tailNoNumber of lines to show from end of logs

Input Schema (JSON Schema)

{ "properties": { "action": { "description": "Docker Compose action to perform", "enum": [ "up", "down", "build", "logs", "ps", "exec", "restart", "stop", "start", "pull" ], "type": "string" }, "build": { "description": "Build images before starting (for up action)", "type": "boolean" }, "command": { "description": "Command to execute (for exec action)", "type": "string" }, "detach": { "description": "Run in background (for up action)", "type": "boolean" }, "file": { "description": "Docker Compose file path (default: docker-compose.yml)", "type": "string" }, "follow": { "description": "Follow log output (for logs action)", "type": "boolean" }, "force_recreate": { "description": "Force recreate containers", "type": "boolean" }, "project_name": { "description": "Project name for compose stack", "type": "string" }, "remove_orphans": { "description": "Remove containers for services not defined in compose file", "type": "boolean" }, "service": { "description": "Specific service to target", "type": "string" }, "tail": { "description": "Number of lines to show from end of logs", "type": "number" } }, "required": [ "action" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/block/vscode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server