Client-exposed secrets
confirmedFlags privileged credentials under NEXT_PUBLIC_ names (e.g. SERVICE_ROLE, API keys) that ship in the browser bundle.
client_exposed_secret
local MCP security
Catches the mistakes AI agents make in-loop via MCP — free, local, no signup. Your code never leaves your machine.
repo
$ waiting for agent…
MCP ready: scan_diff, scan_file, scan_project
Risk
AI agents optimize for “it works” — not for what must never leave the server. These are the failure modes halyx was validated to catch.
Flags privileged credentials under NEXT_PUBLIC_ names (e.g. SERVICE_ROLE, API keys) that ship in the browser bundle.
client_exposed_secret
Detects Supabase migrations that create tables without enabling Row Level Security.
rls_disabled
Finds exported Server Action mutators with no auth() / session gate in the function body.
unauth_server_action
auth() gate missing → actionable
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)
Method
Not another scanner you open later — an MCP tool the agent calls while it still has the change in context.
Your coding agent changes Next.js / Supabase files in the loop — the same path that ships secrets and missing gates.
The agent calls halyx over MCP. Static detectors return structured findings with confidence.
confirmed findings are safe to auto-fix. possible findings stay surface-only — never auto-fixed.
Evidence
Day 0 corpus: 63 deeply annotated repositories. Numbers below are detector precision on the labeled set — not how often bugs appear in the wild.
| check | conf | precision | recall | tp_repos |
|---|---|---|---|---|
| Client-exposed secrets | confirmed | 98.0% | 77.4% | 20 |
| RLS disabled / missing | confirmed | 66.7% | 100% | 6 |
| Unauthenticated server actions | confirmed | 100% | 100% | 4 |
| Verbose error leaks | possible | 100% | 58.8% | 4 |
Install
Free, local, no signup. Wire it into your agent once — scans never leave the machine.
$ npx halyxMIT licensed · works with Cursor, VS Code, Claude Code
Works inside
Detects issues in
Trust
Straight answers for people installing something that reads their code.