Skip to content
All guides: Turn on the MCP worker

Turn on the MCP worker

Run the optional MCP worker beside your API for Peppy MCP and offline webhooks.

You need#

  • A local filesystem for the worker state volume.
  • A repository checkout.

Step 1 Back up first#

Back up before changing Compose files or images; see Back up and restore.

Step 2 Use the default worker image#

The MCP overlay uses hub.docker.visnovsky.us/library/peppy-mcp:latest unless you set PEPPY_MCP_IMAGE in .env. The API also uses its default latest image unless you set PEPPY_SERVER_IMAGE.

Pin matching versions

Set PEPPY_SERVER_IMAGE and PEPPY_MCP_IMAGE to matching version tags, such as 0.43.0, when you want to choose when each image changes. Version tags do not move; :latest moves with each stable release.

Step 3 Start the MCP overlays#

Run the root file with the MCP overlay. Add the Caddy overlay only when you use Caddy:

docker compose \
  -f docker-compose.yml \
  -f infra/compose/compose.caddy.yml \
  -f infra/compose/compose.mcp.yml \
  up -d

The worker has no extra public port. Webhooks also need this worker. Check /readyz at your server address after it starts.

Source development

For source development, run PEPPY_SERVER_IMAGE=peppy-server:local PEPPY_MCP_IMAGE=peppy-mcp:local docker compose -f docker-compose.yml -f infra/compose/compose.build.yml -f infra/compose/compose.mcp.yml -f infra/compose/compose.mcp-build.yml up -d --build.

Step 4 Protect worker state#

The mcp-state volume holds encrypted client state and the storage key. Keep it private and on a local filesystem. The mcp-control volume holds a control token and is not included in backups.

Step 5 Back up with the same Compose files#

List infra/compose/compose.mcp.yml in COMPOSE_FILE when you run just backup or just restore, as Back up and restore shows. A backup adds mcp-state.tar.gz. A restore recreates mcp-state, starts a fresh control volume, and leaves MCP stopped.