Cross-product workflows
Molar's four products chain into continuous QA loops. Scenarios and run history stay in your account as work moves from discovery → CI → production → debug → fix.
Workflow 1 — Discover → test → gate PRs
The most common onboarding path:
Steps
- Connect your app at app.molar.it (URL + optional GitHub repo).
- Cartographer crawls and proposes
.molar.mdscenarios from discovered flows. - Approve scenarios you want in CI and production.
- Install GitHub App — Settings → Organization → GitHub.
- On every PR, Guard runs affected scenarios as a required status check.
- On failure, open Trace from the check details or dashboard Runs.
- Optionally enable Mender (
mender.mode: suggestivein frontmatter) to draft a fix PR.
CLI equivalent (MCP — not CLI):
# Agent / MCP path
molar_generate_scenarios_from_url → molar scenarios validate && molar scenarios compile → molar_run_scenarios
Human CLI path after scenarios exist:
molar scenarios validate && molar scenarios compile
molar run
Or from an agent: MCP molar_generate_scenarios_from_url → molar_run_scenarios.
Workflow 2 — Hermetic checkout with Clones
Test Stripe + email without real charges or inboxes:
- Add clone declarations to scenario frontmatter:
clones:
- { kind: stripe, seed: stripe-base }
- { kind: email }
- Setup steps reset clone state and drain outbox.
- Steps use clone webhooks (
Wait for webhook stripe.checkout.session.completed). - Assertions query clone state (
Assert Stripe Clone has 1 active subscription).
Local: molar clone stripe --start before molar run.
Cloud: MCP molar_clone_spawn or Guard worker auto-starts clones per scenario config.
Workflow 3 — Production guard + shadow diff
Keep production healthy after deploy:
- Add
scheduleto scenario frontmatter (cron + regions). - Guard runs on interval from edge workers.
- Failures create incidents in dashboard Inbox and Production guard.
- Optional
shadow_prod: truecompares canary vs production responses without mutating prod.
Investigate via MCP:
molar_get_incidentmolar_get_guard_status- Prompt:
investigate_incident
Workflow 4 — Debug → fix → verify
When a run fails:
- Open Trace from run detail (
app.molar.it/r/{shortId}for shares). - Replay timeline — video, DOM, network, console, agent ribbon.
- Ask Debugger AI (MCP
molar_debug_runor Trace UI) — bills debugger meter. - Mender analyzes failure + repo context → opens fix PR.
- Review via
molar mender review <id>or dashboard Auto-fix. - Merge fix; Guard re-runs on PR to verify.
Semantic diff between runs: molar trace diff <run-a> <run-b> or MCP molar_diff_runs.
Workflow 5 — Agent-driven QA (MCP)
For Cursor / Claude Code users:
- Install MCP server (
https://mcp.molar.cloud/mcp). - Agent calls
molar_generate_scenarios_from_urlon a feature branch URL. molar_validate_scenario→molar_compile_scenario→molar_run_scenarios.- On failure,
molar_replay_trace+molar_debug_run. - Prompt
fix_failing_testswith PR number.
Local/air-gapped: molar mcp serve with local Clones; add --cloud-access for cloud-only tools.
Workflow 6 — OTP / auth flows
Sign-in scenarios with real OTP delivery:
- Provision a synthetic phone or mailbox via agent comms.
- Use Clerk clone or real auth with synthetic user (
synthetic_user.pattern). - Cartographer OTP service polls agent comms
/otp/poll. - Scenario fills OTP field when code arrives.
See Agent comms.
What carries between steps
| Step | What moves forward |
|---|---|
| Cartographer → scenarios | Approved .molar.md files and flow map |
| Scenarios → Guard | Compiled Playwright spec, schedule, clone config |
| Guard → Trace | trace bundle, video, HAR on failure |
| Trace → Mender | failure context, scenario notes, repo ref |
| Mender → GitHub | fix PR |
| Any run | Usage recorded for billing (runs, MCP calls, debugger) |
Account type impact
| Setup | Workflow note |
|---|---|
| Full Molar cloud | Everything in app.molar.it — one org, one billing view |
| Cartographer only | Crawl + export; enable Guard/Trace when ready |
| Guard only | Bring your own Playwright scenarios; Cartographer optional |
| Self-hosted | Local MCP + Clones; see operator docs |
Related
- Platform overview
- Your first scenario
- Guard · Traces · Clones product docs
- MCP server setup