Skip to main content
Glama

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 --example

The 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 once
  1. check reads migrations, client code and env files, and names the file and line for each gap.

  2. race runs the rule in your viberaven.race.json: setup, two requests and the SQL that must stay true. Spec template.

  3. Fix, run race again, 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

Method and limitations

How it works

  1. Your supabase/migrations load verbatim into a fresh, pinned PostgreSQL 18.6.

  2. Two independent sessions run in one PGlite WebAssembly instance, with real locks.

  3. Bounded statement orders are enumerated and checked against your rule.

  4. 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

npx -y viberaven init --agents claude

Codex

npx -y viberaven init --agents codex

Cursor

npx -y viberaven init --agents 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.

VibeRaven local Studio

Packages

Package

Purpose

License

viberaven

The npx entry

MIT

@viberaven/cli

Studio, check and race

MIT

@viberaven/mcp

Local repository tools over MCP stdio

MIT

@viberaven/sessions

Several PostgreSQL sessions in one process

Apache-2.0

Limitations

  • check reads the repository. It does not show which policies are live in Supabase or Vercel, and a clear result is not a security audit.

  • race covers the SQL, inputs and bounded statement orders you supply. Rules beyond a simple count limit need an explicit spec. Omitted roles run as postgres.

  • 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…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP 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.
      5
      8 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Audits PostgreSQL/Supabase schemas for security issues like missing RLS, permissive policies, and sensitive data exposure during AI conversations.
      3
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Lets 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 npm
      MIT