Cursor setup
One command scaffolds config, local MCP, and an agent rule:
npx prodverdict init --stack nextjs-stripe --mcp --cursor-rule
Creates:
| File | Purpose |
|---|---|
prodverdict.yml | Contracts |
.cursor/mcp.json | Local MCP server |
.cursor/rules/prodverdict-agent.mdc | Agent guidance |
Remote MCP (no billing secrets in cloud)
npx prodverdict init --remote-mcp --project-id your-project-uuid
Merges remote server entry into .cursor/mcp.json.
Agent workflow
doctor --format agent— verify credentialscheck all --format agent— run contracts before PR- Fix findings from
nextStepsin agent JSON - Re-run until
verdict: pass
Prompts (MCP)
Ask the agent to use MCP prompts:
- setup_prodverdict — init workflow
- verify_before_pr — pre-merge checklist
Fixture mode for development
No API keys while building billing features:
npx prodverdict check access --fixtures \
--fixtures-dir examples/nextjs-stripe/scenarios/fail-revenue-leak
See Fixture demos.