MCP deployment with human approval: keep AI agents safe
Why approval gates for AI agents must be enforced by the platform, not a prompt, and how Aria's MCP server splits Look, Change and Delete.
An approval gate for an AI agent is only a gate if the system that performs the action enforces it. A line in a prompt is a request, not a rule. Aria Cloud’s MCP server sorts every action into three kinds: Look runs straight away, Change runs or waits depending on the key and the change, and Delete needs a person to approve it and type the name. This post explains why the boundary has to sit on the platform, what each kind covers, and what a debugging session looks like with each type of key. For the step-by-step workflow, read Deploy with Claude Code. For the full rules and tool list, see the safety model docs.
We build Aria Cloud, so this is the model we chose. The same rules apply to Aria AI, the AI built into Aria, and to every coding agent that works over MCP. Checked 31 October 2026.
Why do prompt-only guardrails fail?
Telling an agent “ask me before running destructive commands” in CLAUDE.md or a rules file is polite, not secure. Anthropic’s Claude Code documentation is direct about it: permission rules are enforced by Claude Code, not by the model, and instructions in a prompt or CLAUDE.md shape what the agent tries without changing what it is allowed to do (permissions docs). That is the client-side half. It protects your computer.
The platform side is a different question. When an agent is forty turns into debugging a failing build, instructions drift, context gets compressed and a well-meaning retry can restart a service or change a schema you never saw. Text in a log or an issue can also contain instructions aimed at the agent. The fix is to put the rules outside the model, in the system that actually changes your server.
What are you actually protecting against?
| Worry | What stops it on Aria |
|---|---|
| The agent deploys something half-finished | With a read-only key, every Change waits for your approval. You choose whether a key may operate |
| It deletes a database or a server | Delete always waits, and you type the name |
| Text in a log tells it to do something | The rules apply to the action, whoever or whatever asked for it |
| It reads a secret | Secret values are masked in results and logs, and an agent asks you for values instead |
| Its key can reach too much | A key can be limited to one app, with only the capabilities you choose |
| You cannot see what it did | Every call is recorded in the app’s Activity, and a revoked key is refused on its next call |
None of this depends on the model behaving. A confused agent, a prompt-injected agent and a well-behaved agent all meet the same rules.
What are Look, Change and Delete?
| Kind | Examples | What happens |
|---|---|---|
| Look | Status, logs, metrics, aria.yaml, the database schema, checking a stack file |
Runs straight away. Nothing changes |
| Change | Saving aria.yaml, deploying, setting variables, launching the app, running a read-only query |
Runs or waits, depending on the key and the change |
| Delete | SQL that changes data, deleting or restoring over data | Always waits for your approval. You type the exact name |
In short, reading runs straight away. With a read key, every change waits for your approval. With an operate key, routine deploys run straight away, but environment variables, launches, DNS, GitHub push and anything destructive always wait. Delete needs your approval, or the typed name in the app. A terminal cannot approve it for you, because an agent can drive a terminal and type too.
When does a Change wait for you?
| Key | Routine Change (save aria.yaml, deploy a service) |
Variables, launching the app, DNS records, GitHub push |
|---|---|---|
| Read-only | Waits for your approval | Waits |
| May operate | Runs straight away | Waits |
Anything that waits shows as a card in AI & MCP, then Approvals, with the exact change. Decline it and nothing ever happens. The agent is told the request is waiting and is told not to ask again to get around you.
What does a real debugging session look like?
Say a new commit makes your API return errors.
- You ask: “Check why the API is failing and fix it.”
- Look, immediately. The agent calls the status, log and diagnosis tools and gets the stack trace. Nothing waits.
- A local fix. The agent finds a missing variable or a query bug, edits your repository and checks the stack file.
- A deploy. What happens next depends on the key.
- With an operate key, Aria deploys the fix at once and the change appears in Activity.
- With a read-only key, a card appears in Approvals with the exact change, and nothing runs until you approve it.
- A new variable. If the fix needs one, the agent asks you for it. Setting variables always waits, whatever the key, and the agent never sees the value.
- If it still looks wrong, rolling back returns to the last good version.
Choose the key to match your trust. Start read-only and move to operate when you are comfortable.
What does the server enforce on the agent’s behalf?
- Secrets are masked in results and errors, even inside logs.
- Database tools run as a limited role. Reads are read-only, and columns that look like credentials, such as
password,tokenorsecret, cannot be read. - A key can be limited to one app. A key for one app cannot touch another.
- Everything is logged, with who, what, when and the result.
- Keys can be revoked at any time. A revoked key is refused on its next call.
What should you still do?
- Review the code the agent writes.
- Choose the key to match the stakes. Routine deploys run straight away with an operate key, so roll back if a deploy is bad, and give an agent a read-only key when the stakes are high.
- Read each approval card as you would a pull request: look before you click.
- Keep Claude Code’s own permission rules, hooks and sandbox on. They are the client-side layer.
FAQ
Which coding agents work with Aria’s MCP server?
Claude Code, Cursor, Codex, Gemini CLI and Antigravity connect with aria init or the one-line aria mcp add command. Any MCP client that supports a remote HTTP server and a bearer key works. See connecting an agent.
Can an AI agent delete my database on Aria?
Not on its own. Delete always needs your approval, and you must type the exact name in the Aria app or on the website.
What does my coding agent reach?
Aria’s structured tools, scoped to one app, with every call recorded. See how Aria secures the server.
Do approvals work on every plan?
The safety model is part of how Aria works, not a plan feature. Aria’s billing docs list only the plan and domains as things you pay for. See billing.
Is “human approval” the same as “nothing runs without me”?
You decide how much a key may do. With an operate key, routine deploys run straight away. What always waits is variables, launches, DNS, GitHub push and deletes.
Give your agents limits. Read about letting Claude Code deploy, see pricing, or get started.
Keep reading
Deploy with Claude Code: let an AI agent ship safely
How to let Claude Code deploy your app: connect, write aria.yaml, deploy, read logs. Variables, launches, DNS, GitHub push and deletes always wait.
How to run multiple apps on one VPS (and size it)
Docker, a reverse proxy and one HTTPS setup per app are the easy part. How to size memory, isolate builds, back up and know when to split servers.
Self-hosted Supabase in production: the checklist
What the official Supabase Docker guide leaves to you: secrets, HTTPS, email, backups, upgrades and monitoring. A checklist with the commands that matter.
Your own cloud. Without the DevOps.
One server that’s yours alone, set up and run by Aria, at one flat monthly price.