Stops secrets, cross-tenant queries and unsafe migrations before they merge.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Five checks that stop the expensive mistakes before they merge, whether a person or an agent wrote the code.
Hardcoded secrets. Database queries that leak one customer's data to another. Float maths on money. Migrations that break the running app. Docs that link to files which no longer exist.
Agents write most new code now, and they make exactly these mistakes: a key pasted in to make a test pass, a query with no tenant filter because the prompt never mentioned tenants. bouncer-gates runs inside Claude Code and Cursor, so the agent hears about it in the same turn it wrote it, and again in CI so nothing gets through.
Try it on any repository in ten seconds:
Or paste some code into the playground and watch the same checks run on it.
Add it to GitHub Actions:
That is the whole setup. Everything below is detail.
--init-agents commits two things into the repository: an MCP server the agent
can call, and a hook that scans every file the agent writes. When a file has a
blocking finding, the agent sees the file, the line, what is wrong and what to
do instead, in the same turn:
Any other MCP client can run npx -y bouncer-gates --mcp, and any post-edit
hook can pipe its event to npx -y bouncer-gates --hook.
How it works, and what it will not do.
| Check | Catches | Example of what it stops |
|---|---|---|
| secrets | Passwords, API keys and private keys committed to the repo, plus a few risky shapes like curl ... | sh | const apiKey = "sk_live_...", a committed .env with a real password |
| scope | Queries on multi-tenant tables that are not limited to one tenant | prisma.order.findMany({ where: { status: "paid" } }) with no tenantId |
| money | Currency handled as floats, or * 100 assuming every currency has two decimals | Math.round(parseFloat(price) * 100) |
| migration-safety | SQL migrations that break the version of the app still running during a deploy | ALTER TABLE orders DROP COLUMN total while old code still reads it |
| doc-links | Markdown links to files that do not exist | [setup](docs/setup.md) after the file moved |
Each check exists because of a real, expensive bug. None is a style opinion. The gate reference explains every rule with a bad example and a fixed one.
Every finding names the file, the line, what is wrong and what to do instead:
You have three options, in this order:
bouncer-gates --init writes this for you. Edit it by hand any time.
--init fills these from any model in your Prisma schema that has a
tenantId field.prisma, whose queries should be
checked for the tenant column. Use this when you do not have a scoped wrapper.db.raw. Reaching for it gets flagged.Without a scope section, the scope check reports skipped, not passed.
Exit code 0 means clean, 1 means something blocked, 2 means the tool
itself could not run (bad flag, broken config, not a git repository). CI treats
1 and 2 differently on purpose: a broken tool should not look like a
codebase full of problems.
Honest limits, so nobody trusts it further than it deserves:
.sql files. Migrations written in JavaScript
or TypeScript are not checked.prisma.$transaction(async (tx) => ...) uses a client the
check cannot follow.Every rule's blind spots are listed in the gate reference.
1. Warnings do not.bouncer-gates-ok comment that says a specific
line is fine, and why.One anonymous ping a day: a random id, the version, the runtime, the OS and the
Node major. Nothing about your code, ever. BOUNCER_TELEMETRY=0 turns it off.
Everything it sends.
MIT. Take any of it.
Built by Ajeer Mohammed. The rules come from running checks like these across eight production repositories, on a multi-tenant platform where missing one meant a merchant seeing another merchant's orders.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/bouncer-gates)<a href="https://allmcps.com/mcp/bouncer-gates"><img src="https://allmcps.com/api/badge/bouncer-gates?style=directory" alt="Bouncer Gates on AllMCPs" /></a>