跳到正文
FunCoding

VibeRaven (hosted)

官方 MCP Registry 已收录

Test two-user PostgreSQL races from SQL or public migrations. Review Supabase RLS and grants.

Star
65
分类
数据库
版本
v1.10.0
许可证
MIT
最近提交
2026年12月1日

VibeRaven: the raven mark and the PostgreSQL elephant. Two users at once, on real PostgreSQL.

VibeRaven

VibeRaven checks your repository for Supabase access and Stripe webhook problems before you ship. It can also replay duplicate webhook events or test what happens when two users book the last seat at the same time.

Run the synthetic booking example in an empty folder with Node 24 or later:

npx -y [email protected] 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.

npx -y viberaven@1.19.0 race --example: two users book the last seat at once. The broken statement order replays exactly.

Use with Claude Code, Codex or Cursor · Check your Supabase migrations · Connect an MCP client

npm version MIT license GitHub stars

Website · Engine · Connect your chat · Docs · Discord

In your repo

npx -y [email protected] check   # what is risky before launch
npx -y [email protected] race    # what breaks when two users act at once
  1. check reviews Supabase migrations, application code and configuration. Findings include the file and line when available. Use check --replay to test supported Stripe handlers locally with repeated or out-of-order events.
  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+.

Current release · VibeRaven 1.19.0 on npm · Changelog · GitHub Releases

Version 1.19.0 adds check --race: it runs two requests against a local PostgreSQL database and reports a race only if the failing order reproduces twice, with a replay command. It covers Prisma, Drizzle, pg, postgres.js and supabase-js, including Edge Functions and SQL functions called through RPC. viberaven init now adds the check to AGENTS.md so coding agents run it before launch.

Proof

Frozen-engine checkResult
PostgreSQL isolation specs122/124
Hidden new statement orders199/200, native PostgreSQL 200/200
Hidden real-app interleavings1,500/1,500, native PostgreSQL 1,500/1,500
Byte-equal replays80/80
Leaks between sessions0 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.

AgentSetup
Claude Codenpx -y [email protected] init --agents claude
Codexnpx -y [email protected] init --agents codex
Cursornpx -y [email protected] 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/[email protected]. 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 [email protected] 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

PackagePurposeLicense
viberavenThe npx entryMIT
@viberaven/cliStudio, check and raceMIT
@viberaven/mcpLocal repository tools over MCP stdioMIT
@viberaven/sessionsSeveral PostgreSQL sessions in one processApache-2.0

Limitations

  • By default, check uses repository evidence. With --db, it can compare live schema metadata with your migrations. A clear result covers the checks that ran.
  • 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

同类 MCP Server

dbx

Query databases from AI agents using connections configured in DBX.

T8t8y2/dbx32k近 7 天新增 726 个 star

Windmill

Run Windmill scripts and flows and manage jobs, schedules, resources and variables.

WIwindmill-labs/windmill19k近 7 天新增 82 个 star

MCP Toolbox for Databases

MCP Toolbox for Databases enables your agent to connect to your database.

GOgoogleapis/mcp-toolbox17k近 7 天新增 77 个 star

nightingale

Open-source, self-hosted alerting for metrics, logs, and databases. Includes a built-in AI agent and MCP server.

CCccfos/nightingale14k近 7 天新增 10 个 star

mcp

Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.

KUkubeshark/kubeshark12k近 7 天新增 5 个 star

Nhost

Let your users work with their own data through an AI assistant, limited to what they can see.

NHnhost/nhost9.4k近 7 天新增 1 个 star