Self-Hosting & Deployment
Cloud Harness MCP is designed for straightforward self-hosting on any modern Linux VPS or cloud instance.
Deployment Architectures
1. 1-Click Automated Deployment (Caddy / Cloudflare Tunnel)
For a modern, zero-fuss self-hosted deployment on standard Linux (Ubuntu 24.04 LTS):
bash
# Single-command install with Let's Encrypt TLS (Caddy)
curl -fsSL https://raw.githubusercontent.com/bestagentkits/cloud-harness-mcp/main/scripts/install.sh | sudo bash- Caddy Ingress: Automatically requests and renews Let's Encrypt TLS certificates, proxying traffic to the loopback ingress
127.0.0.1:3100. - Cloudflare Tunnel: Connects
cloudflareddirectly to theingressnetwork, exposing zero host listening ports. - Management: Uses the
cloudharnessCLI (cloudharness status,cloudharness logs,cloudharness token).
2. Traditional NGINX Reverse Proxy Runbook
For custom infrastructure with existing NGINX setups:
- Bootstrap VPS: Run
deploy/scripts/bootstrap-vps.shto install Docker, systemd unit, and permissions. - Deploy Release: Run
deploy/scripts/deploy-release.sh <git-sha>to build and start production containers. - Canary Verification: Run
scripts/deploy-canary.mjsto execute an automated end-to-end workspace test against the newly deployed instance.