# Deploy the latest MCP worker image. # Copy to /etc/ops-agent/flows/update_mcp_worker.yml on the host. # # Steps: # 1. Show current git status (informational) # 2. Fetch remote refs # 3. Fast-forward pull (aborts if working tree is dirty) # 4. Rebuild the Docker image # 5. Recreate the container in detached mode (force-recreate picks up new image) # 6. Wait for worker pre-flight to pass (checks /var/log/agent/current) name: Update MCP Worker description: Pull latest code, rebuild Docker image, and restart the MCP worker service steps: - command_key: git_status args: ["/srv/scrum4me/repos/scrum4me-docker"] on_failure: continue - command_key: git_fetch args: ["/srv/scrum4me/repos/scrum4me-docker"] on_failure: abort - command_key: git_pull args: ["/srv/scrum4me/repos/scrum4me-docker"] on_failure: abort - command_key: docker_compose_build args: ["worker-idea"] on_failure: abort - command_key: docker_compose_up_recreate args: ["worker-idea"] on_failure: abort - command_key: wait_for_health_worker on_failure: continue