# Product Brain MCP — Environment Variables # Copy this file to .env.mcp and fill in your values. # In Claude Desktop / Cursor, these are typically set via the MCP config's "env" block. # ── Required ───────────────────────────────────────────────────────── # # PRODUCTBRAIN_API_KEY — Your API key from Settings → API Keys. # Starts with pb_sk_. Workspace, user, and scope # are all derived server-side from this key. # PRODUCTBRAIN_API_KEY=pb_sk_your_key_here # ── Deployment URL (optional) ──────────────────────────────────────── # # CONVEX_SITE_URL — Your Convex deployment SITE URL (*.convex.site, NOT *.convex.cloud). # Defaults to Product Brain Cloud if not set. # # PRODUCTBRAIN_URL — Alias for CONVEX_SITE_URL (for backward compat). # CONVEX_SITE_URL=https://your-deployment.convex.site # PB_CONNECT_GATEWAY_URL — (CLI only) Override gateway for `pb connect` token redemption. # Takes precedence over CONVEX_SITE_URL and the production default. # PB_CONNECT_GATEWAY_URL=https://your-custom-gateway.example.com # ── Debug (optional) ────────────────────────────────────────────────── # MCP_DEBUG=1