viberaven
v1.10.0Runs your Supabase SQL with two users at once to find double bookings; checks RLS, keys, webhooks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
viberaven_check_readiness
Useful before an AI-built app on Vercel and Supabase launches or is handed off. Runs the local `viberaven check` (no login, no API key, no telemetry), which reads the repository for launch gaps (missing RLS in migrations, leaked secrets, unbounded queries, unsigned webhooks) and writes a prioritized task list to .viberaven/agent-tasklist.md plus a verdict to .viberaven/gate-result.json. This is advice, not a gate: the user decides when to ship. It reads repo files and does not query the live database.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project root. Defaults to the MCP server cwd. |
viberaven_rls_test
After reviewing a Supabase migration or ownership policy, optionally execute already reviewed local permissions scenarios for owner, other_user and anon. Returns Pass, Fail or Unknown per cell with the original scoped evidence. This is an experimental PGlite imitation, not live Supabase proof. The optional PGlite dependency must already be installed next to the matching CLI used by this local MCP host; missing setup returns the CLI setup guidance as a tool error. No SQL, credentials, provider calls or dependency installation are accepted.
| Parameter | Type | Description |
|---|---|---|
matrix * | string | Path to an already reviewed permissions JSON file, relative to cwd or absolute. Expectations must describe intended access. |
cwd | string | Project root. Defaults to the MCP server working directory. |
migrations | string | Local migrations directory. Defaults to supabase/migrations under cwd. |
viberaven_verify
Re-run the local VibeRaven check after you apply fixes. Call this once per batch of fixes (not after every edit) to update .viberaven/gate-result.json and confirm whether the gate moved toward clear.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project root. Defaults to the MCP server cwd. |
viberaven_audit
Run local Vercel + Supabase production checks: table RLS presence, policy quality, view/function boundaries, service-role boundaries, and Vercel pooler usage. Call this when the project uses Supabase or Vercel and you need a focused infra audit beyond the general readiness check. Pass json: true for machine-readable output.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project root. Defaults to current working directory. |
json | boolean | Return JSON output. |
viberaven_init_rules
Install bounded VibeRaven agent-instruction rules into native AI instruction files (CLAUDE.md / AGENTS.md / .cursor/rules), so coding agents know when a VibeRaven pass applies. Use dryRun: true to preview first.
| Parameter | Type | Description |
|---|---|---|
agents | string | Comma-separated agent targets, or all. |
cwd | string | Project root. Defaults to current working directory. |
dryRun | boolean | Preview changes without writing files. |
viberaven_clean_plan
Write a non-destructive cleanup plan for generated .viberaven artifacts and logs. Call this when the .viberaven directory has grown stale. Does not delete anything; it only produces a reviewable plan.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project root. Defaults to current working directory. |
viberaven_strict_gate
Run `viberaven --strict --json` and return the verdict from .viberaven/gate-result.json (gate.status is clear, warning or not_clear). Useful before a deploy or CI run when the user wants the verdict as JSON. The user decides whether to ship.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project root. Defaults to the MCP server cwd. |
viberaven_gate_result
Run a fresh local scan (`viberaven --json`) and return the verdict it writes to .viberaven/gate-result.json (gate.status is clear, warning or not_clear). It rewrites the .viberaven artifacts; it does not read an older result without scanning.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project root. Defaults to the MCP server cwd. |
viberaven_context_map
Refresh and return .viberaven/context-map.json, a compact summary of the last scan for the next agent step. Use this to load minimal context before acting on a gap.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project root. Defaults to the MCP server cwd. |
viberaven_actions
Read the current chat-native action surface from .viberaven/actions.json. Use this to list stable, referenceable action IDs the user can verify or refer to by name.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project root. Defaults to current working directory. |
viberaven_verify_action
Verify or explain the lifecycle state of a stable VibeRaven action ID (format VR-A<number>). Use this when the user references a specific action and you need its current state.
| Parameter | Type | Description |
|---|---|---|
actionId * | string | Action ID like VR-A1. |
cwd | string |
viberaven_heal_plan
Write a non-destructive heal plan (.viberaven/heal-plan.md) for a specific gap or target file, to review before viberaven_heal_apply. The plan names the target and the verify command. For rls_disabled it also shows the new migration it would write and its SQL, or why it will not write one; other gaps get no patch preview. Does not modify source files.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
gap | string | Gap ID from .viberaven/agent-tasklist.md. |
target | string | Target file path for the heal. |
yes | boolean | Skip confirmation for apply. |
viberaven_heal_prompt
Return an agent-ready prompt that fixes a specific gap. Use this when you want a coding agent to apply the fix itself rather than using the guarded recipe.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
gap | string | Gap ID from .viberaven/agent-tasklist.md. |
target | string | Target file path for the heal. |
yes | boolean | Skip confirmation for apply. |
viberaven_heal_apply
Apply a guarded repo-code heal recipe for a supported gap. Only call this after viberaven_heal_plan. Pass yes: true to skip confirmation. The rls_disabled recipe writes a migration that enables row level security with no policies, so browser reads of those tables return no rows until policies exist: call it only after the user agrees. Its task leaves out yes: true; pass yes: true only once the user agrees. Returns the applied change summary, with any warnings.
| Parameter | Type | Description |
|---|---|---|
cwd | string | |
gap | string | Gap ID from .viberaven/agent-tasklist.md. |
target | string | Target file path for the heal. |
yes | boolean | Skip confirmation for apply. |
viberaven_validate_npm_package
Look up npm package names on the public registry (registry.npmjs.org). Returns not_found when the registry has no such package or cannot be reached, suspicious when the registry answers with an error other than 404, and suspicious when the package was first published less than 14 days ago and its name is within 2 character edits of a popular package (a typosquat signal), or when it has an empty description, no listed maintainers and 3 or fewer published versions. Anything else is ok, which only means none of these signals fired; it is not a security review of the package. Useful when an agent…
| Parameter | Type | Description |
|---|---|---|
packageName | string | Single npm package name to validate. |
packageNames | array | Multiple package names to validate in one call. |
viberaven_work_start
Save a versioned Task contract and run a free local check without login, network, edits or payment. Prefer contract; request alone saves a draft with unknown acceptance. No credentials or shell command fields. Review the returned contract before approving resume. Resume shares its short request and redacted results with the account; the full definition stays local. Provider and non-local contracts are planning only.
| Parameter | Type | Description |
|---|---|---|
access * | string | |
cli * | string | |
contract | object | Declarative task definition, not executable commands or evidence. Runtime also enforces a 4800-byte UTF-8 limit and condition IDs unique across both lists. |
cwd | string | |
request | string |
viberaven_work_resume
Resume the SAME saved task through account sign-in, quota or payment. Set approvedContract=true only after explicit human approval of its exact acceptance, must-not-break conditions and declared scope. A draft can be upgraded with contract before any job exists; its request must stay identical. Never authorize sign-in or payment for the person. Execution state is separate from independent verification observations; agent success is not condition proof. Scope declarations are not an enforced sandbox.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | |
approvedContract | boolean | |
contract | object | Declarative task definition, not executable commands or evidence. Runtime also enforces a 4800-byte UTF-8 limit and condition IDs unique across both lists. |
cwd | string |
viberaven_work_status
Read the saved Task contract, execution state and independent verification receipts locally without account, network, edits or payment. Current worktree changes invalidate checked proof; missing observations stay not_checked. Checked conditions separately report passed/failed outcomes. Historical agent results do not verify conditions.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | |
cwd | string |
viberaven_work_prepare
Before implementing a local Node feature, freeze reviewed expected behavior and actual dirty/untracked baseline. Supports module comparisons, sequential HTTP requests to an isolated local server factory, and frozen Node preservation tests. No login or network; no commands or imported proof. MCP plans are limited to 4800 UTF-8 bytes; larger plans use the CLI JSON file (65536 bytes). No browser, database or live provider proof. Changed plans require a new task.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | |
verification * | object | Reviewed local observations, not commands or imported proof. Runtime also bounds JSON depth/UTF-8 bytes, including HTTP request/expected bodies to 8192 bytes, rejects unknown condition IDs, and restri… |
cwd | string |
viberaven_work_verify
Run or resume the SAME frozen plan using the locally available pinned Docker image only. Set approvedVerification=true only after human review/approval. Network is disabled and no dependencies are installed. No login or billing. Missing conditions, dependencies or Docker remain not_checked; completed receipts are reused for the identical candidate. Coding-agent success is not proof.
| Parameter | Type | Description |
|---|---|---|
approvedVerification * | boolean | |
taskId * | string | |
cwd | string |
viberaven_work_report
Export a bounded local draft proof report with Markdown from current integrity-checked verification receipts. Read-only: no login, network, Docker, agent or GitHub execution. Failed and unknown evidence remain explicit; agent success is not proof. Not authoritative CI or a completed live PR pilot. Review redacted text before sharing; redaction is not a complete secret scanner.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | |
cwd | string |
provider_playbook Get a provider playbook
provider_playbook({"provider":"supabase","topic":"grants"}) Use before implementing a feature that touches a provider, when setup or integration rules are needed. Returns versioned setup guidance, gotchas, dated changes, integration seams, existing repo checks and planned live checks with official sources. Available packs: supabase. Pass topic to return matching items; for a specific error use search_guides, for dated changes use recent_provider_changes. Limits: guidance only; does not connect to providers, read your project, run checks or verify that a feature works.
| Parameter | Type | Description |
|---|---|---|
provider * | string | Provider id, for example supabase. Unsupported ids return the available packs. |
topic | string | Optional words for the part you need, for example "grants" or "auth redirect". Only matching items are returned; with no match, the whole pack. |
recent_provider_changes Check recent provider changes
recent_provider_changes({"provider":"supabase","query":"42501","limit":5}) Use when a provider update may explain changed behavior, or a deployment needs review against dated provider changes. Returns candidate changes, documented errors or symptoms, fixes, date meanings and official supporting sources. Filter by provider or redacted error keywords. For general troubleshooting use search_guides; for setup use provider_playbook. Available providers: anthropic, clerk, lovable, nextjs, openai, railway, stripe, supabase, vercel. Limits: guidance only; does not read your repo, connect to providers,…
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum entries, 1 to 8; default 5. |
provider | string | Optional lowercase provider id. Unsupported ids return the bounded available list. |
query | string | Optional redacted error text or public keywords. Remove credentials, private paths and personal data before calling. |
viberaven_live_start
Preview feature: save a scoped metadata-verification request without provider reads or payment. Supabase catalog reads require a VibeRaven account and explicit human consent on resume. Vercel is deliberately blocked before network access. Local repository checks stay free without an account. Never pass credentials as tool arguments.
| Parameter | Type | Description |
|---|---|---|
projectRef * | string | Exact provider project ID: 20 lowercase letters for Supabase, or prj_ followed by 8–80 alphanumeric characters for Vercel. |
provider * | string | |
cwd | string | Local project directory. Defaults to the MCP working directory. |
schemas | array | 1–8 lowercase application schemas; defaults to public. Excludes pg_, auth, storage, vault and information_schema. No application-row reads. |
teamId | string | Optional Vercel team_ ID with 8–80 alphanumeric characters. Vercel transport is currently blocked. |
viberaven_live_resume
Preview feature: resume the SAME saved live step through account connection, allowance and metadata verification. Set approvedRead=true only after the person explicitly approves the named Supabase project/schema catalog read. Show any returned action URL and wait for the person; never approve sign-in or payment for them. Credentials stay local and are never tool arguments. Vercel stays blocked; local checks stay free.
| Parameter | Type | Description |
|---|---|---|
stepId * | string | The stepId returned by live_start; preserve it through sign-in, payment and retries. |
approvedRead | boolean | True only after explicit human approval of this saved provider/project/schema read. |
cwd | string | Local project directory. Defaults to the MCP working directory. |
viberaven_live_status
Preview feature: read the saved live-step receipt without provider reads, payment or another live-step charge. Evidence is historical and scoped, not proof of application security. Local checks stay free.
| Parameter | Type | Description |
|---|---|---|
stepId * | string | The stepId returned by live_start; preserve it through sign-in, payment and retries. |
cwd | string | Local project directory. Defaults to the MCP working directory. |
viberaven_live_disconnect
Preview feature: disconnect the saved live step and remove its locally retained provider credential and evidence. Does not alter provider settings or unrelated MCP credentials. Unfinished account reservations expire. Local checks stay free.
| Parameter | Type | Description |
|---|---|---|
stepId * | string | The stepId returned by live_start; preserve it through sign-in, payment and retries. |
cwd | string | Local project directory. Defaults to the MCP working directory. |
viberaven_account
Read the signed-in VibeRaven plan, live-step allowance and upgrade URL, or check progress after browser approval. This does not start sign-in, create an account, read a provider or pay. Local repository checks need no account.
viberaven_login
When the person asks to connect their VibeRaven account, set userRequestedSignIn to true. Returns the public browser approval link promptly; the person must approve it themselves. Then call viberaven_account to read progress and the plan. Never approve a link for the person, request credentials or use sign-in for a free local check.
| Parameter | Type | Description |
|---|---|---|
userRequestedSignIn | boolean | True only after the person asks to sign in. False or absent starts no flow. |
viberaven_race
Use this when a PostgreSQL rule can break with two users at once, after a migration or transaction change. Runs the local VibeRaven race preview on real PostgreSQL 18.6 through @viberaven/sessions, without Docker. Use example:true for the bundled test, or a reviewed viberaven.race.json in the app. Returns bounded statement orders, the first broken order and report paths. Fix, rerun, then use from and replay to replay exactly what broke. Requires Node 24+ with JSPI and an already installed matching CLI with the sessions runtime. Writes local .viberaven artifacts and executes trusted repository…
| Parameter | Type | Description |
|---|---|---|
cwd | string | Local app root. Defaults to the MCP server cwd. |
example | boolean | Run the bundled two-user example without changing app migrations. |
from | string | Complete original report path, required with replay. Use the exact path returned by race. |
replay | integer | Zero-based broken record index returned as firstBroken, required with from. |
spec | string | Reviewed local JSON spec path; defaults to viberaven.race.json. |