airlock-rls-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| scan_site_for_exposed_keyA | Scan a DEPLOYED website's HTML, JavaScript bundles and source maps for an exposed Supabase service_role key (a service_role JWT or an sb_secret_... key), and check whether /.env is downloadable (fail), /.git/ is served (fail) or source maps are public (warn). Needs only the public URL: no database, no credentials. A found service key bypasses ALL Row Level Security, giving anyone full read/write to the database. Also reports whether the public anon/publishable key is present, which means RLS is the only lock (follow up with audit_supabase_rls). Use right after deploying a Supabase app. Never prints a key or an .env value. Does not touch the database; for that, use audit_supabase_rls. |
| audit_supabase_rlsA | Audit a Supabase/Postgres database's access control and return a human-readable report (use get_findings for JSON). Covers: tables with RLS off; permissive policies (USING (true) or anything that reduces to always-true); anon/authenticated policies that do not scope rows to the caller (tenant leaks) for SELECT, INSERT, UPDATE and DELETE; policies that trust user-editable user_metadata; Storage (public buckets and storage.objects policies, reported as storage_); SECURITY DEFINER functions (callable by anon, search_path not pinned, reading user_metadata); views that run as their owner and skip RLS; exposed materialized views; Realtime publications streaming anon-readable rows; default privileges that grant future tables to the API roles; roles with BYPASSRLS; and tables owned by a client role without FORCE RLS. Reads ONLY catalog metadata, never row data, so a read-only role is enough; a check the role cannot read is reported as check_skipped. Not covered: Auth settings and Edge Functions code, which are not in the database catalog. |
| get_findingsA | Audit a Supabase/Postgres database's Row Level Security and return machine-readable structured JSON. Unlike audit_supabase_rls (which returns a human-readable summary), this tool returns findings grouped by severity with counts, suitable for programmatic consumption by an agent that needs to iterate over findings, generate fixes, or build a report. Same engine, same checks (tables, policies, Storage, SECURITY DEFINER functions, views, Realtime, default privileges, roles), different output shape. Each finding has kind, severity (fail/warn), object and detail; pass kind to explain_finding or generate_fix. |
| explain_findingA | Explain what an Airlock finding kind means, why it is dangerous, how to fix it (with example SQL), and which other findings are related. Pure lookup — no database connection needed. Use this after get_findings or audit_supabase_rls to understand a specific finding before fixing it. Supported kinds: rls_disabled, permissive_true, anon_unscoped, authenticated_unscoped, write_unchecked, write_unscoped, update_using_unscoped, delete_unscoped, or_branch_unscoped, helper_scoped, policy_trusts_user_metadata, security_definer, anon_executes_definer, definer_search_path_mutable, view_bypasses_rls, matview_exposed, public_bucket, realtime_exposure, default_privileges_to_api_roles, bypassrls_role, owner_bypasses_rls, cross_tenant_read_leak, cross_tenant_write_leak, cross_tenant_delete_leak, service_role_exposed, env_file_exposed, git_exposed, source_map_exposed, scan_truncated, plus any storage_ variant. |
| generate_fixA | Generate the exact SQL to fix a specific Airlock finding. Pure function — no database connection needed. Returns a ready-to-run SQL statement tailored to the table and policy names you provide. Use after get_findings or audit_supabase_rls to get a fix you can paste into a migration file. |
| list_monitor_projectsB | List the Supabase projects connected to your Airlock Monitor account. Returns project id, label, and last-run timestamp for each. |
| start_monitor_runA | Start an Airlock Monitor run (RLS audit + DAST) on a connected project. Returns the run id and initial status. Poll with get_monitor_run. |
| get_monitor_runB | Get the status and summary of an Airlock Monitor run. Status is one of: queued, running, completed, failed. |
| get_monitor_findingsA | Get the findings (leaks, warnings) from a completed Airlock Monitor run. Each finding has kind, severity, object, detail and a suggested SQL fix. |
| get_monitor_attestationA | Download the signed attestation (Ed25519) for a completed run. Returns the canonical JSON report, its SHA-256 hash, and the signature. Anyone can verify it at shipsealed.com/verify without an account. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools have clearly distinct purposes, and the descriptions actively cross-reference each other (audit_supabase_rls vs get_findings vs get_monitor_findings), which helps an agent pick correctly. The remaining risk is real though: get_findings (direct DB audit) and get_monitor_findings (results of an async Monitor run) are near-homonyms, and audit_supabase_rls vs get_findings are the same engine with only an output-shape difference.
Consistent snake_case verb_noun pattern throughout (get_/list_/start_/scan_/audit_/explain_/generate_), with a clear 'monitor' namespace for the async-run lifecycle tools. Minor deviation: get_findings is unnamespaced and does not signal that it is the JSON form of audit_supabase_rls, which breaks the otherwise clean pattern.
Ten tools is well within the sweet spot and every one earns its place: an audit/findings/explain/fix pipeline, a monitor-run lifecycle, and a standalone deployed-site scan. Nothing looks redundant or bolted on.
Coverage is strong across the domain: static audit, structured findings, explanation, SQL fix generation, an async monitoring lifecycle with signed attestation, and a no-credential site scan. Minor gaps: no cancel/abort for a running monitor run, no run-history or comparison tool beyond a last-run timestamp, and no tooling for the explicitly-excluded Auth settings and Edge Functions.