mcp-viberaven
Reviews Supabase migration files for missing row-level security policies and Data API grants, naming the file and line of each gap, and loads your supabase/migrations verbatim into a fresh pinned PostgreSQL to run bounded two-user race tests against a rule that must stay true.
VibeRaven
Test what happens when two users book the last seat. VibeRaven runs bounded PostgreSQL race tests and lets you replay a failing statement order. It also reviews Supabase migration files for missing row-level security (RLS) and Data API grants.
Run the synthetic booking example in an empty folder with Node 24 or later:
npx -y viberaven race --exampleThe unguarded example oversold the last seat in 24 of 60 tested statement orders and exits with code 1. The booking fixture shows the guard-row fix and how to rerun the assertion.
Use with Claude Code, Codex or Cursor · Check your Supabase migrations · Connect an MCP client
In your repo
npx -y viberaven check # what is risky before launch
npx -y viberaven race # what breaks when two users act at oncecheckreads migrations, client code and env files, and names the file and line for each gap.raceruns the rule in yourviberaven.race.json: setup, two requests and the SQL that must stay true. Spec template.Fix, run
raceagain, and replay the reported order. Exit 0: no order broke. Exit 1: broken. Exit 2: incomplete.
race needs Node 24+ (the CLI enables JSPI). check runs on Node 20+.
Related MCP server: schema-guard-mcp
Proof
Frozen-engine check | Result |
PostgreSQL isolation specs | 122/124 |
Hidden new statement orders | 199/200, native PostgreSQL 200/200 |
Hidden real-app interleavings | 1,500/1,500, native PostgreSQL 1,500/1,500 |
Byte-equal replays | 80/80 |
Leaks between sessions | 0 in 60 isolation cases |
How it works
Your
supabase/migrationsload verbatim into a fresh, pinned PostgreSQL 18.6.Two independent sessions run in one PGlite WebAssembly instance, with real locks.
Bounded statement orders are enumerated and checked against your rule.
A broken order replays byte for byte, so a fix can be confirmed.
The engine is @viberaven/sessions.
Use with Claude Code, Codex or Cursor
From the root of your app, run the row for your agent to add project instructions. Append --dry-run to preview the changes.
Agent | Setup |
Claude Code |
|
Codex |
|
Cursor |
|
Then ask: “Review my Supabase migration files for missing RLS and Data API grants. Show the relevant file and line, and tell me what I should verify against my deployed project.”
For ChatGPT, Claude or another remote MCP client, add https://viberaven.dev/mcp. The hosted server can review supplied migration SQL or migrations in a supported public GitHub repo. Local MCP tools are available via npx -y @viberaven/mcp. See the agent hub for setup and scope.
Building an agent that answers provider errors? The AI SDK provider-context example adds search_guides and recent_provider_changes from the hosted MCP endpoint.
Local Studio
npx -y viberaven opens the local Studio: chat with your coding agent, the provider board, versions and diffs, and a Race test tab that runs race and replays a broken order.

Packages
Package | Purpose | License |
The | MIT | |
Studio, | MIT | |
Local repository tools over MCP stdio | MIT | |
Several PostgreSQL sessions in one process | Apache-2.0 |
Limitations
checkreads the repository. It does not show which policies are live in Supabase or Vercel, and a clear result is not a security audit.racecovers the SQL, inputs and bounded statement orders you supply. Rules beyond a simple count limit need an explicit spec. Omitted roles run aspostgres.An incomplete run is not a pass. Replay needs the same migrations, spec, options and runtime.
Cloud Auth, HTTP and external I/O are outside the test. Run only SQL you trust; the engine is not a security sandbox.
No universal PostgreSQL compatibility, and no advantage over a plain coding agent in bug finding, is claimed.
License
CLI and MCP: MIT. @viberaven/sessions: Apache-2.0, with PostgreSQL and third-party notices. Contributing · Security · Changelog
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Finds personal-data leaks in Supabase/Lovable apps: free RLS and headers checks, proven fixes.
Supabase RLS simulator, app key-leak check, email sender check, DMARC and payment-fraud checks.
Security scans for AI-built apps: leaked keys, open Supabase RLS, vulnerable packages, live sites.
Security checks for Next.js + Supabase apps: code scan, read-only live DB check, fix confirmation.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that lets AI coding agents (Claude Code, Cursor, Cline) audit Supabase projects for security misconfigurations AND apply the fixes — without leaving the agent. Tools: audit_project, list_findings, preview_fix (BEGIN/ROLLBACK safety), apply_fix (with confirmation), apply_all_fixes (transactional bulk). Closes the audit-fix loop entirely in the agent — other Supabase scanners only report.58 npm1MIT
- AlicenseAqualityDmaintenanceAudits PostgreSQL/Supabase schemas for security issues like missing RLS, permissive policies, and sensitive data exposure during AI conversations.3MIT
- AlicenseNot gradedqualityBmaintenanceLets coding agents ask whether a Supabase migration is safe to merge: it replays the base branch and working tree into throwaway databases, reports only the findings the change introduces, and proves RLS leaks by querying as anon. Tools are read-only and take profile names instead of connection strings.12 npmMIT
- AlicenseAqualityBmaintenanceScan a deployed site for an exposed Supabase service_role key and audit Row Level Security from your AI coding agent.10106 npmMIT