docker-compose.yml•1.16 kB
services:
# The gateway server runs in stdio mode and launches backend processes
# It should be configured directly in your MCP client (e.g., Claude Desktop)
#
# Example Claude Desktop configuration:
# {
# "mcpServers": {
# "mcpware": {
# "command": "docker",
# "args": ["compose", "run", "--rm", "mcpware"],
# "env": {
# "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
# }
# }
# }
# }
mcpware:
build: .
image: mcpware
volumes:
- ./config.json:/app/config.json:ro
# Mount Docker socket to allow Docker commands inside the container
# Linux/macOS/WSL2: /var/run/docker.sock:/var/run/docker.sock
# Windows (native): //./pipe/docker_engine://./pipe/docker_engine
- /var/run/docker.sock:/var/run/docker.sock
# Optional: Load environment variables from .env file if it exists
# Create a .env file in the project root and uncomment the line below
# env_file:
# - .env
environment:
- GITHUB_PERSONAL_ACCESS_TOKEN
stdin_open: true
tty: true
# For backends that need network access
network_mode: host