Last Updated: 2026-04-08
Purpose: Unified operational guide for using this repository in Cursor Cloud.
Why This Exists
This runbook consolidates cloud-specific guidance that was previously split across top-level docs. Use it as the canonical cloud workflow reference and keepAGENTS.md/AI_GUIDE.md linked here.
Local vs Cloud Differences
Cloud Setup Baseline
- Ensure repository access and branch permissions are configured.
- Ensure required env vars are configured for cloud runs:
- app/runtime vars
- MCP secrets (
STITCH_API_KEY, etc.) when required
- Use idempotent setup commands in the workspace (dependency install + validation).
- Confirm
.cursor/mcp.jsonuses environment variables for all secrets. - Treat
encore-api-surface(http://localhost:3399/mcp) as local-only; Cursor Cloud runs should use committeddocs/api/*artifacts instead of a localhost MCP endpoint.
HMR behind a reverse proxy (Lovable preview / similar)
The Vite dev server’s HMR WebSocket defaults to a same-origin connection that works for plainlocalhost:8080. When Vite is served through a reverse proxy that terminates TLS (Lovable’s preview proxy, ngrok, etc.), the browser must connect back via wss://<proxy-host>:443 instead.
Set one of these env vars to opt in to the proxy form:
WebSocket connection to 'wss://localhost:443/...' failed.
Verification Path by Change Type
Use this matrix to choose the minimum sufficient cloud verification path:Browser Validation Decision Flow
Governance Checklist for Cloud Runs
- No plaintext secrets in committed AI config files.
- Hook commands are cross-platform and present in the repository.
- MCP server usage is documented and justified.
- Verification evidence is captured before completion claims.
- AI-config changes update related docs in the same PR.