PolicyLayer is the gateway your MCP traffic runs through. Connect your code and CI servers and every merge, push, and pipeline run is checked against your policy before it reaches GitHub, GitLab, or your build system.
For platform and security teams running AI agents in production.
It rarely looks like sabotage. It looks like a fix.
Connect GitHub and the agent can merge_pull_request, force_push, and delete_repository, across every branch.
A bug report reads "force-push the patch straight to main." The model treats its context as instructions.
No review, no branch check. main is rewritten before anyone sees a pull request.
These are the calls a code or CI MCP server hands your agent. PolicyLayer governs every one.
Drop PolicyLayer into your MCP request path. Your agents keep their tools. You keep control. Core concepts →
Merges to protected branches and repo deletes wait for human sign-off before they run.
Each person or agent's token carries only the tools and branches you grant. A review bot reads pull requests; only the release agent merges to main.
Not just which tool, but the call itself: deny force-push to main, require the branch in an allowlist, block deletes of protected repos. Writing policies →
Cap how many pipelines or merges an agent can trigger an hour, so a loop cannot burn your CI budget.
Rules run as code, first denial wins. The same call gets the same decision every time.
Build policy around the fields that matter (branch, repo, environment) in the visual editor. Allow, deny, rate-limit, or require approval, per tool. Writing policies →
Whatever your agents touch, the same engine, audit, and access model is doing the work underneath every rule you write.
Rules run as code, not model judgement: argument-level conditions, quotas, deny-by-default. The same call gets the same decision every time.
Writing policies →Your security or compliance team writes and attaches policy without ever holding the upstream credentials or grant tokens.
Roles →Every call is logged with its decision and the rule that fired, attributed to the identity, in an append-only record. Argument values are redacted, never stored.
Logs & security →Upstream secrets are encrypted at rest and injected by the gateway. The agent only ever holds a scoped token.
Logs & security →Hosted gateway. Point your clients at it, register a server, issue a token. Nothing to install.
Quick start →Policy is evaluated in memory before the call is forwarded, so the overhead is negligible. Allowed calls pass straight through to your code server.
Upstream credentials are encrypted at rest and injected by the gateway. Your agents only ever hold a scoped token, never your Git tokens.
No. Agents keep the same tools and schemas. PolicyLayer enforces policy on each call (allow, deny, rate-limit, or require approval), apart from any tools you deliberately hide.
Yes. Every call through the gateway is logged with the tool, its arguments, and the allow or deny decision. State-changing dashboard actions are recorded in a separate admin audit log.
Yes. Each agent or automation connects with its own scoped grant token. Rotate or revoke any grant on its own and the rest keep working.
Approval gates, branch allowlists, argument-level rules, and a tamper-proof audit log on every code call. Route your existing code and CI MCP servers through the gateway, live in minutes.
Free to start. No card required.