Skip to content
halyx

local MCP security

A security reviewer for AI coding agents.

Catches the mistakes AI agents make in-loop via MCP — free, local, no signup. Your code never leaves your machine.

agent observatoryidle

repo

  • app/actions.ts
  • lib/supabase.ts
  • supabase/migrations/001.sql

$ waiting for agent…

MCP ready: scan_diff, scan_file, scan_project

Illustrative workflow — not a live recording

Why vibe-coded apps ship holes

AI agents optimize for “it works” — not for what must never leave the server. These are the failure modes halyx was validated to catch.

Client-exposed secrets

confirmed

Flags privileged credentials under NEXT_PUBLIC_ names (e.g. SERVICE_ROLE, API keys) that ship in the browser bundle.

client_exposed_secret

NEXT_PUBLIC_*REDACTED

RLS disabled / missing

confirmed

Detects Supabase migrations that create tables without enabling Row Level Security.

rls_disabled

RLS required

Unauthenticated server actions

confirmed

Finds exported Server Action mutators with no auth() / session gate in the function body.

unauth_server_action

exportasync function mutate()

auth() gate missing → actionable

Verbose error leaks

possible

Surfaces likely stack traces or raw DB errors in HTTP responses. Lower confidence — report only, never auto-fix.

verbose_error_leak

Error: relation "users" does not exist

at Handler (/app/api/route.ts:42)

possible

How the review loop works

Not another scanner you open later — an MCP tool the agent calls while it still has the change in context.

  1. 01

    Agent writes

    Your coding agent changes Next.js / Supabase files in the loop — the same path that ships secrets and missing gates.

  2. 02

    scan_diff

    The agent calls halyx over MCP. Static detectors return structured findings with confidence.

  3. 03

    Fix or surface

    confirmed findings are safe to auto-fix. possible findings stay surface-only — never auto-fixed.

Validated on real AI-built repos

Day 0 corpus: 63 deeply annotated repositories. Numbers below are detector precision on the labeled set — not how often bugs appear in the wild.

annotated repos
63
v1 checks
4
lib/supabase.tsclient_exposed_secret
4export const supabase = createClient(
5 process.env.NEXT_PUBLIC_SUPABASE_URL!,
6 process.env.NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY!,
7)
findings · corpus/63
Per-check corpus precision and recall
checkconfprecisionrecalltp_repos
Client-exposed secretsconfirmed98.0%77.4%20
RLS disabled / missingconfirmed66.7%100%6
Unauthenticated server actionsconfirmed100%100%4
Verbose error leakspossible100%58.8%4

Run it where the code
already is

Free, local, no signup. Wire it into your agent once — scans never leave the machine.

$ npx halyx

MIT licensed · works with Cursor, VS Code, Claude Code

Works inside

Detects issues in

FAQ

Straight answers for people installing something that reads their code.