TL;DR

The Command Center's "Today" strip went from 2/5 tiles live to 5/5 live, and the 41-day-old Salesforce MCP Worker auth blocker is cleared. Three production env vars installed, two code/config root causes found and fixed, one infra root cause diagnosed (My Domain vs login.salesforce.com).

What was done (in order)

  1. Vercel env vars installed — Sam added CALLRAIL_ACCOUNT_ID, SF_MCP_ENDPOINT, SF_MCP_TOKEN to the projects Vercel project (production) via Vercel CLI from his MacBook, after the dashboard route proved too fiddly. Gotcha hit and solved: vercel link must run from a linked directory — used ~/vercel-link scratch dir with npx vercel link --yes --project projects.
  2. Production redeploy triggered via Vercel REST API (using vault VERCEL_TOKEN) — no git no-op commit needed. Project id prj_HoPLce4Ib1IK5QASScp7YTOAu30H.
  3. Notion tile 404 root-caused and fixedcommand-center/lib/live/daily.ts queried api.notion.com/v1/databases/{id}/query with the internal data-source/collection id (13d5d9db-…) instead of the database id (5d558b97-…). Fixed in PR #48, merged + deployed 2026-06-12.
  4. Salesforce OAuth blocker root-caused — Worker's /oauth/start redirects to login.salesforce.com; the org's My Domain blocks OAuth approvals from there → OAUTH_APPROVAL_ERROR_GENERIC. Connected App config was verified correct via screenshots (self-authorize ON, PKCE off, secrets required, rotation on, scopes api/full/refresh). Sam completed the flow via a My Domain authorize URL and got a fresh refresh token.
  5. Worker captured the token automatically in its callback (KV) — the "paste it back / run wrangler" instructions on the success page were stale. Verified by direct soql_query (returned a User record) and newMattersToday tile flipping to live.
  6. Vault page updated — full root-cause writeup, bypass URL, and corrections appended to 🔑 API Keys & App Secrets.

Current production state (verified 2026-06-12 ~01:50 UTC)

GET <https://projects-indol-kappa.vercel.app/api/live/daily> → all five metrics state:"live" (newMatters 0, calls 0 — UTC day had just rolled over; emails 79, calendar 1, Notion 100).

Open items / bring-home list