/vivreal-knowledge:vivreal-outreach-mcp-knowledgefrom vivreal-knowledge
Use when working in VR-Outreach-MCP-Server, the internal-only remote MCP server (Cognito OAuth 2.1 + PKCE on Lambda) exposing the Vivreal Outreach pipeline (companies, contacts, sequences, enrollments, suppressions, segments, senders, outbound queue) as 50 tools for Claude Desktop. Covers the two-credential model (Cognito Bearer + per-request HMAC x-active-ctx, x-user-ctx for admin gates), the per-target token table, the CMS-fanout tools vs native stop/resume enrollment routes, hookless company seeding, the ADMIN_EMAILS connect gate, and the JWT-authorizer-audience deploy prerequisite. NOT the CMS MCP server, that is VR-MCP-Server (see vivreal-mcp-server-knowledge). Triggers on: VR-Outreach-MCP-Server, outreach MCP, x-active-ctx, x-user-ctx, cms-fanout, stop-enrollment, import-contacts, import-companies, set-active-group, outreach-mcp.vivreal.io. Source of truth: `VR-Outreach-MCP-Server` `CLAUDE.md` (and the docs it links) at `origin/main`.
Trending skills
7-day visitors to each skill page
Ships in vivreal-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Cross-repo flows, decisions and maps: the vivreal-hq dev docs under ${VIVREAL_REPOS}/vivreal-hq/docs/dev-docs/, starting at 03-use-cases/U26-outreach-and-campaigns.md, 03-use-cases/U7-mcp-servers.md; npm run docs:route -- "outreach" from vivreal-hq names the rest. This skill and the repo's CLAUDE.md own the repo's internals.
Source of truth: VR-Outreach-MCP-Server CLAUDE.md (and the docs it links) at origin/main.
Last synced: 2026-10-20 against origin/main at 066d0b2 (#11, live since 2026-10-19; Node 22 since 2026-10-02)
Internal-only remote MCP server exposing the Vivreal Outreach pipeline to Claude Desktop so team members can seed and manage leads. Architecturally a clone of VR-MCP-Server (Cognito OAuth 2.1 + PKCE, DynamoDB sessions, JSON-RPC dispatch, SAM/Lambda + API Gateway, GitHub Actions), but VR-MCP-Server is the CMS MCP server (69 CMS-admin tools; vivreal-mcp-server-knowledge); this one fronts VR_Outreach_API (+ CMS fanout). DEPLOYED to prod 2026-06-25 at https://outreach-mcp.vivreal.io. TypeScript; design/audit artifacts live in VR-MCP-Server/docs/projects/outreach-mcp-server/. Read ${VIVREAL_REPOS}/VR-Outreach-MCP-Server/CLAUDE.md for depth; re-read its header and src/tools/ at origin/main for the current tool count before quoting one.
src/tools/)session(3: get/refresh-session-context, set-active-group) · companies(10, 2 admin gmail-history) · contacts(10, 2 admin gmail-history; update-contact is CMS-fanout) · sequences(8, 3 CMS-fanout + admin bulk-enroll-contacts) · enrollments(7, 3 CMS-fanout + 2 native stop/resume) · segments(4, 3 admin) · senders(4, 3 CMS-fanout) · suppressions(3) · queue(1: get-outbound-queue). 8 tools carry admin: true (x-user-ctx minted): companies 2, contacts 2, segments 3, sequences 1. Guards/validation in src/tools/guards.ts + validation.ts. The catalog.ts "tier" system is an explicit no-op (single "basic" tier), all 50 tools are exposed to every connected operator; the only gate is the ADMIN_EMAILS connect allow-list. 0 prompts, the seed-leads prompt was retired with the prospects module; promptRegistry in src/resource/manifests.ts is an empty array.
The prospects module is GONE (2026-07-27): src/tools/prospects.ts and its 8 tools were deleted when VR_Outreach_API retired /prospects (leads now live in vivreal-hq/packages/leadgen/Data/prospects.jsonl, gitignored). What survived: hookless seeding lives on in create-company/import-companies, hooks are not required, name + website/domain is the seed bar, and companies.ts + contacts.ts keep full pipeline-field pass-through (reachEmail, phone, address, socials, …).
GET /suppressions answers a top-level bare array (unlike /tags, /sequences, /segments, which wrap). The handler passed result.data straight through, but MCP requires structuredContent to be an object, so every real call failed client-side schema validation ("expected record, received array") and the tool was unusable. Now wrapped {suppressions:[...]}. Deliberate: a non-array is NOT coerced to an empty list (an empty suppression list reads as "nothing is proven bad" and would hand the seed gate a false all-clear), it fails loudly with UPSTREAM_ERROR. Tests stayed green throughout because they stubbed okResponse({}). This was the only remaining authenticated read path to proven-bad addresses after the OUTREACH_BEARER browser login was retired 2026-07-16.
Every VR_Outreach_API call needs the Cognito Bearer AND a minted HMAC-SHA256 x-active-ctx (VR-MCP-Server needs only the Bearer). Minting in src/api/ctx.ts, client in src/api/outreach-client.ts:
x-active-ctx payload { groupID, dbKey, email, exp }, exp = now + 600s, signed with CTX_SECRET from <secret-prefix>/core, minted per request. set-active-group must run first (session tools), the ctx carries the tenant routing; no key/groupID query params are sent.x-user-ctx ({ email, exp }) minted only for admin-gated tools (gmail-history, segment writes, bulk-enroll).Per-target token selection (do not get this wrong): VR_Outreach_API → access token + ctx headers (JWT authorizer checks aud); VR_CMS_API fanout → ID token (createCollectionObject.js stamps author from ID-token claims absent on access tokens); VR_Secure_API bootstrap → id-or-access + x-app-source: vivreal (without the header the tenant query is {type: undefined} → empty).
≈1/3 of tools do NOT hit VR_Outreach_API, sequence CRUD, enrollment list/delete, get-sequence-enrollees, sender CRUD, and update-contact fan out to VR_CMS_API generic collectionObjects endpoints via src/api/cms-fanout.ts (domains: sequences, enrollments, senders, contacts; getGroupRefId fetches the system collection-group _id from /<domain>/group-info and caches per ${dbKey}:${domain}). Exception: enrollment stop/resume are native VR_Outreach_API routes (POST /enrollments/stop|resume, body {enrollmentId}), server-side field-path $set that preserves cron-managed fields and avoids the BSON-Date→String corruption the old CMS read-modify-write caused.
$set:{objectValue} REPLACE, not a patch, update-sequence/update-sender/update-contact read-modify-write the complete object.senderUserId. Editing a sender changes in-flight sends immediately; deleting an in-use sender strands enrollments in a silent no-sender backoff. Sender signature free-text is RETIRED (composed from fromName+role+signatureImageUrl); fromAddress must end @vivreal.io (client-enforced only).import-contacts is insert-net-new / skip-existing, NOT upsert; body must be {contacts:[...]} (bare array 400s). Company must exist first, unresolved companyId soft-skips the row (droppedInvalid[], unresolved-companyId); always surface skips. HITL flow: create-company → import-contacts with the _id.bulk-enroll-contacts fails the WHOLE batch (502) on a suppression-lookup failure, deliberate fail-closed for deliverability.enroll-contacts, import-sequence-csv and bulk-enroll-contacts say "nobody was enrolled" ONLY on Outreach's exact suppression-failure 502 (SUPPRESSION_LOOKUP_FAILED_ERROR in src/tools/sequences.ts, a hand copy of Outreach's message that vivreal-hq contract-drift enrol-suppression-502 pins); any other 502, and any 504, is an UNKNOWN outcome. Skips carry Outreach's reasons, including company-excluded.update-contact refuses _system and companyId (v7). _system holds server-written values (the exclude mark, the CMS web address) that the CMS would discard anyway, so the edit is refused rather than reported as landed; companyId links a person to a company and is not edited here (src/tools/contacts.ts).log-call sends advance as an explicit boolean, the API defaults it to true (and 409s with no active call step); omitted means "just log a note." It now also accepts an optional disposition (no-answer | left-voicemail | reached), reached COMPLETES the enrollment rather than advancing it; the other two advance.{messages:[], reason:'not-configured'} when GMAIL_SA_KEY_JSON is absent, a normal result, not an error.{}, validate in the tool handlers.ADMIN_EMAILS (deny-by-default, getOrCreateSession() in src/server.ts): secret reachable → enforce (empty list → NO ONE connects, fail-closed); secret unreachable (local dev) → allow. Consequence: every connected user is an admin, split later via OUTREACH_ALLOWED_EMAILS.401 + WWW-Authenticate challenge must reach clients.7efagcmhehkdlnkth5g7vhsd48 must be in VR_Outreach_API's JWT authorizer audience list (the HttpApi default authorizer in VR_Outreach_API/template.yaml) or every Outreach call 401s. If the client ID ever changes, re-add + redeploy VR_Outreach_API. VR_CMS_API/VR_Secure_API need no change.aud: 'outreach' since 2026-09-27 (e019eb0, matching VR_Outreach_API H6006); a token minted with the raw CTX_SECRET is refused. CTX_SECRET and ADMIN_EMAILS default to <secret-prefix>/core, not hb-api-secrets (9df37e7).VR-Outreach-MCP-Server (prod, main); the dogfood DEV path is retired fleet-wide, check the workflow before assuming one; Sentry project vivreal-outreach-mcp. Secrets (secrets-audit Phase 2, config-only): CTX_SECRET + ADMIN_EMAILS read from <secret-prefix>/core (cloudformation/template.yaml); Sentry DSN from SSM <ssm-prefix>/outreach-mcp/sentry-dsn, environment from SSM <ssm-prefix>/shared/sentry-environment. hb-api-secrets is retired here.vivreal-outreach-api-knowledge (the backend it fronts), vivreal-mcp-server-knowledge (the CMS sibling this clones), vivreal-iam-secrets (CTX_SECRET rotation).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
27 skills in this plugin
/sentry-tracerUse when investigating what happened during a Vivreal user action across the stack, tracing an error end-to-end, validating a deploy, or doing tenant-scoped triage with Sentry. Teaches WHEN to trace cross-stack (frontend spans ↔ backend logs ↔ WebSocket events) and HOW (trace-ID propagation, the standard tag set, request_id fallback, service.* breadcrumbs). Triggers on: "what happened when I did X", "why did this error", trace this request, Sentry issue, deploy validation, "everything's broken for this group", crash, error timeline. For the full investigation agent with Sentry MCP tools wired in, dispatch the `sentry` agent / `/sentry-trace` (both in the `vivreal-sentry` plugin); this skill is the passively-loaded knowledge layer. Also covers the step from a Sentry error to the AWS and Atlas metric that confirms an infrastructure cause (502 with no backend event, Lambda timeout, Mongo connect-hang, throttling, OOM, stalled deploy)./vivreal-accounts-and-writesUse before filming, walking or capturing anything in the Vivreal portal or on vivreal.io, and before any write a capture or walk makes. Carries which login to use for which business (the demo account, the QA scratch owner, the owner session), the eight-step owner-approved write protocol (named approval, snapshot, write through the UI, fresh-process read-back, restore, manifest entry), the never-list (Post, Publish, Schedule, Connect and the rest), and the rules for stills that fill vivreal.io marketing slots (pair by what the slot says, no demo site has its own web address, mask comped plan figures). Shared by footage-recorder, tutorial-maker, help-page-producer, qa-walker and marketing-auditor. Triggers on: which login, demo account, QA scratch-2, test account, switch business, owner-approved write, write protocol, snapshot and restore, mutations, marketing still, screenshot swap, vivreal.io slot, walk harness, write guard, POST allow list, PRO badge.npx claudepluginhub hillbombcreations/vivreal-skills --plugin vivreal-knowledge