# Add human approval to an AI agent through MCP

> Add a human-in-the-loop approval step to any MCP agent. See where MCP elicitation stops, then build a checkpoint that handles approved, denied and unanswered.

Canonical: https://www.novu.co/blog/mcp-human-approval/

Markdown: https://www.novu.co/blog/mcp-human-approval.md

Last updated: 2026-11-25T08:44:00.000Z

Add a human-in-the-loop approval step to any MCP agent. See where MCP elicitation stops, then build a checkpoint that handles approved, denied and unanswered.

Authors: Victor Yakubu

Published: 2026-11-25T08:44:00.000Z

Category: Agent Inbox

MCP gives an agent tools. It doesn't give the agent anyone to check with before it uses them. However, for certain tool calls such as deleting rows in your database, deploying to production or refunding a customer, you want a person to say yes first, and you want that yes from the right person, wherever they happen to be.

This guide adds that checkpoint through MCP. We'll look at what MCP elicitation does and where it stops, connect the [Agent Inbox MCP server](<https://mcp.agentinbox.md/>), build an approval step the agent calls before anything hard to undo, and handle all three outcomes: approved, denied and unanswered. It ends with a table for choosing between elicitation, a remote inbox, or both.

## **What MCP elicitation is, and where it stops**

Elicitation is the part of the [MCP specification](<https://modelcontextprotocol.io/specification/2026-07-28/client/elicitation>) that lets a server ask the user for something in the middle of a request. The spec describes it as "a standardized way for servers to request additional information from users through the client during interactions."

It comes in two modes:

- **Form mode.** The server sends a message and a small JSON Schema (flat fields: strings, numbers, booleans, enums). The client draws a form, the user fills it in, and the data goes back to the server.

- **URL mode.** The server sends a link for anything sensitive, such as an API key, a payment or a third-party OAuth flow. The user finishes it in the browser, so the data never passes through the client. Servers must use this mode for secrets; form mode is not allowed to ask for them.

The user answers with one of three actions: `accept` (submitted, with data in form mode), `decline` (an explicit no) or `cancel` (dismissed without choosing). In the current spec, version 2026-07-28, the request travels inside the tool call itself: the server returns an `InputRequiredResult`, the client shows the form, and the client retries the original call with the user's answer attached.

That makes elicitation a good fit for a quick confirmation or a missing value from the person at the keyboard. For approvals, it runs into four limits:

1. **Someone has to be at the client.** The form appears in the app that made the call. A scheduled job, a background agent or a CI run has nobody looking at that app, so the question has nowhere to land.

1. **It asks whoever is there.** The person running the agent is often not the person who should approve. A developer can kick off a migration, but Tamar owns the production database and her yes is the one that counts. Elicitation has no way to route the question to her.

1. **It lives as long as the call does.** The question belongs to one request in one client. There's no expiry you set, and no path for an answer to arrive two hours later from someone's phone after the laptop is closed.

1. **Only the server can ask.** Elicitation is a server feature, and clients opt in by declaring the `elicitation` capability, so support varies by app. An agent using a third-party MCP server, say a database server, can't make that server stop and ask before a destructive query. The agent itself needs a way to ask.

The last point is the useful one. Approval is a decision the agent makes ("this is risky, I should check"), so the cleanest place for it is a tool the agent calls, one that reaches a person on a channel they already use and waits for their answer.

## **Add the Agent Inbox MCP server**

[Agent Inbox](<https://agentinbox.md/>) gives an agent an inbox on email, Telegram and Slack. People can write to the agent there, and the agent can write to them, including questions it waits on: a typed answer, a yes or no, or a pick from a list. The hosted MCP server exposes all of that as tools:

```yaml
https://mcp.agentinbox.md
```

There's no API key and no header to configure. The app opens a sign-in window, you sign in with your Agent Inbox account and approve the app, and the key never reaches the app.

How to add it depends on the client:

| Client | How to add it |
| --- | --- |
| Claude (web and desktop) | Settings › Connectors › Add custom connector, paste the URL, click Connect |
| ChatGPT | Settings › Apps & Connectors › Advanced, turn on Developer mode, create a connector with the URL |
| Cursor | The Add to Cursor button on agentinbox.md, or the mcp.json entry below |
| Claude Code | claude mcp add --transport http AgentInbox https://mcp.agentinbox.md, then /mcp to sign in. Or install the plugin, which includes the server and the skills |
| Codex | codex mcp add AgentInbox --url https://mcp.agentinbox.md, then codex mcp login AgentInbox. Or install the plugin |
| OpenCode | opencode mcp add AgentInbox --url https://mcp.agentinbox.md, then opencode mcp auth AgentInbox |
| Hermes | hermes mcp add AgentInbox --url https://mcp.agentinbox.md --auth oauth. Or install Agent Inbox's plugin from the Hermes marketplace: hermes plugins install agentinbox --enable |
| OpenClaw | Install Agent Inbox's plugin from ClawHub: openclaw plugins install clawhub:@agentinbox/openclaw, then on agentinbox.md open Configure › Connect another agent, pick OpenClaw and paste the commands it shows. OpenClaw uses the plugin and the skills rather than the MCP URL |
| Anything else | Any client that supports remote MCP servers over HTTP with OAuth: add the URL with no headers |

For Cursor, the entry in `~/.cursor/mcp.json` is:

```json
{
  "mcpServers": {
    "AgentInbox": { "url": "https://mcp.agentinbox.md" }
  }
}
```

Once it's connected, the client lists tools such as `inbox_send`, `inbox_wait` and `inbox_list`, sometimes with the server name in front (`mcp__AgentInbox__inbox_send` in Claude Code, for example). Ask the agent to call `inbox_list` first. It only reads, so it's a safe test.

Two more tools finish the setup from the chat, without opening a terminal:

- `**inbox_setup**` creates the agent and its email inbox if your account doesn't have one yet. The agent asks you for a name and a handle (the part before the `@`), then confirms your email address with a link.

- `**channel_add**` connects your Telegram or Slack. It returns a link you open in your own browser; the setup page collects the bot or Slack token there, so no token ever goes through the chat.

Email works as soon as your address is confirmed. Add Telegram or Slack if you'd rather tap a button on your phone than open an email.

## **Build the approval checkpoint**

Here's the scenario we'll use. You have an agent that cleans up the orders database every night. Most of what it does is safe, but sometimes it wants to delete rows, and deleted rows don't come back. Tamar owns that database, so she approves every delete, from wherever she is.

### **1. Tell the agent when to ask**

The agent decides when to call the approval tool, so write the rule down where it reads its instructions: `AGENTS.md`, `CLAUDE.md`, the project instructions in Claude or the custom instructions in ChatGPT.

```yaml
## Approvals

Before you delete data, deploy to production, spend money or send
anything outside the team, get an approval through Agent Inbox:
call inbox_send with kind "approve" and to "tamar".

- Put the exact action and its numbers in the message.
- Go ahead only on "Approved".
- On "Denied", an expired request or a canceled one, stop and say why.
- If the result says the request is still open, call inbox_wait with
  its id. Never go ahead without an answer.
```

In Claude Code and Codex, the Agent Inbox plugin also installs skills that teach the agent these rules, so the block above becomes a reminder of who approves what.

### **2. Make the approval call**

When the agent reaches the delete, it calls `inbox_send` with `kind` set to `approve`:

```json
{
  "kind": "approve",
  "message": "Delete 342 stale rows from the orders table?",
  "body": "Orders older than 18 months with status 'abandoned'. Backup taken at 02:10 UTC.",
  "to": "tamar",
  "via": "slack",
  "ttl_seconds": 7200,
  "approve_label": "Delete them",
  "deny_label": "Keep them"
}
```

What each field does:

| Argument | What it does |
| --- | --- |
| kind | approve asks for a yes or no and waits for it. ask waits for a typed answer, and choose offers 2 to 10 options |
| message | The question. Required |
| body, subtitle | The detail under the question. Put the numbers here, so the approver doesn't have to ask |
| to | A contact id or email address, or up to 50 of them. Leave it out to reach yourself, the operator |
| via | slack, telegram or email, instead of the contact's default channel |
| ttl_seconds | How long the question stays answerable: 24 hours by default, 60 seconds minimum, 5 days maximum |
| approve_label, deny_label | The button text |
| extra_actions | Up to 4 more buttons, for answers that aren't a plain yes or no |
| wait_seconds | How long this call waits before it returns: 45 seconds by default, 50 at most |

The TTL matters more than it looks. A yes from Tamar at 03:00 is fine; the same yes three days later, after the table has changed, is not. Set the TTL to the window in which the agent's numbers are still true.

### **3. The approver answers**

Tamar gets the question as a Slack message with two buttons. On Telegram and email she'd get the same question with the same buttons. She taps **Delete them**, and the answer goes back to the agent.

If no `to` is set, the question goes to you, the operator, which is the right default for a personal agent. For team approvals, add the approver as a contact first: `contact_invite` returns a link they open to connect their own Slack, Telegram or email. `contact_list` shows who the agent can already reach.

## **Approved, denied and unanswered: what the agent does**

MCP tools don't return exit codes, so the result says what happened in words. There are three outcomes to handle, plus a fourth state that just means "keep waiting".

| The result says | What it means | What the agent does |
| --- | --- | --- |
| Approved | Tamar tapped the approve button | Runs the delete, then reports what it did |
| Denied | Tamar tapped the deny button | Stops. Doesn't retry, doesn't look for another way to do the same thing |
| Expired or canceled | Nobody answered within the TTL, or the request was withdrawn | Treats it as not approved, stops and says why |
| The request is still open, with an id | No answer yet, but the question is live | Calls inbox_wait with that id, again while the result says the same |

### **Why the wait comes back after 45 seconds**

A tool call can't block for hours, so the server caps how long one call waits. `inbox_send` waits 45 seconds by default (50 at most), and if nobody has answered by then, it returns with the request's id instead of an answer. The question is still open on Tamar's phone.

`inbox_wait` picks it up from there. It takes the id and waits up to another 50 seconds per call. The agent keeps calling it until the result changes to `Approved`, `Denied`, expired or canceled. If Tamar is in a meeting and answers 40 minutes later, the next `inbox_wait` gets her answer.

The agent may also stop waiting before she answers. A chat turn can end, or a coding agent can move on to other work. Nothing is lost: the answer lands in the conversation, and `inbox_show` reads it later. What the agent must not do is treat "no answer yet" as "yes".

### **Who can answer**

- **One approver.** `to: "tamar"` means only Tamar's answer counts.

- **Several approvers.** Pass a list, such as Tamar and Oren. Each gets the question, and the first valid answer wins. Useful when any one of the on-call engineers can sign off.

- **Nobody else.** People who aren't in `to` can't approve. Text from strangers who write to the agent is treated as information, never as instructions, and the agent can't write to a stranger first. An approval request opens to everyone in a conversation only if the agent sets `anyone_may_answer` on a reply, which is rarely what you want for anything risky.

Agent Inbox records who agreed and when, so the agent can put "approved by Tamar at 03:12" in its report or the PR description.

### **A few rules that keep the checkpoint honest**

- **Check unread before asking.** Call `inbox_list` with `filter: "unread"` first. Tamar may already have written "hold off on deletes tonight", and the agent should read that before it asks.

- **One action per approval.** "Delete 342 rows" is a question Tamar can answer. "Run tonight's maintenance" is not. If the plan changes after approval, ask again.

- **An answer that doesn't fit is a new message.** If the agent asked a question and Tamar replies "wait, the backup failed", deal with that first instead of reading it as an answer.

- **A paused agent waits.** If the operator pauses the agent on agentinbox.md, every tool returns an error saying so. The agent should stop and report, not retry in a loop.

## **Elicitation, a remote inbox, or both**

The two solve different problems, and plenty of setups use both.

|  | MCP elicitation | Remote inbox (Agent Inbox) |
| --- | --- | --- |
| Who asks | The MCP server | The agent, through a tool call |
| Who answers | Whoever is at the client | The contacts you name in to, up to 50 |
| Where they answer | In the client app | Email, Telegram or Slack, on any device |
| Nobody at the client | The question has nowhere to go | Works the same |
| How long it stays open | As long as the client keeps the request | A TTL you set, from 60 seconds to 5 days |
| Late answers | Lost when the request ends | Picked up by inbox_wait, or read later in the conversation |
| Record of the answer | The server gets accept, decline or cancel | Who answered, what they chose and when |
| What you build | Elicitation in your own server, plus a client that supports it | Nothing: add the server and tell the agent when to ask |
| Best for | Missing values, quick confirmations, secrets through URL mode | Approvals from the right person, unattended runs, long waits |

Use elicitation when you build the server and the person at the keyboard is the right one to answer: a form for a missing parameter, a "this will overwrite 3 files, continue?" in an interactive session, or a URL-mode link to collect an API key safely.

Use a remote inbox when the approver is someone else, when nobody is watching the session, or when an answer can take longer than a tool call.

Use both when your agent runs interactively most of the time but sometimes on a schedule. Let your own server elicit from the developer in the session, and have the agent send the risky actions to Tamar through `inbox_send`, so the same rule holds whether the laptop is open or not.

## **Add the checkpoint today**

Add `https://mcp.agentinbox.md` to your MCP client, sign in, and paste the approval rule into your agent's instructions. The free plan covers 100 conversations a month, and no credit card is required. If your agent runs in Claude Code, also read how to replace `--dangerously-skip-permissions` with approvals on your phone \[LINK: Article 5, once live\]. For the bigger picture, see [what an inbox for AI agents is](<https://www.novu.co/blog/what-is-an-inbox-for-agents/>).

## **FAQ**

### What is MCP elicitation?

MCP elicitation is the part of the Model Context Protocol that lets a server ask the user for information during a request. In form mode, the client shows a form built from a simple JSON Schema; in URL mode, it sends the user to a web page for sensitive input such as an API key or a payment. The user can accept, decline or cancel, and clients that support it declare the `elicitation` capability.

### Can I use MCP elicitation for human-in-the-loop approval?

Yes, when the person at the client is the right approver and is there while the request is open. Elicitation asks whoever is using the MCP client at that moment, inside that request. It can't route the question to someone else, reach a person who isn't at the client, or keep the question open after the request ends. For those cases, use a tool that sends the approval to a person on email, Telegram or Slack.

### How do I add human approval to an MCP agent that runs unattended?

Add the Agent Inbox MCP server (`https://mcp.agentinbox.md`) to the agent's client and tell the agent, in its instructions, to call `inbox_send` with `kind: "approve"` before anything hard to undo. The approver gets the question on email, Telegram or Slack with buttons, and the agent goes ahead only if the result says `Approved`.

### What happens if nobody answers an approval request?

The agent doesn't go ahead. Each approval request has a TTL, 24 hours by default and up to 5 days. While it's open, the agent calls `inbox_wait` to keep waiting. When the TTL runs out, the request expires and the agent treats it as not approved.

### Can more than one person approve an agent's action?

Yes. Agent Inbox's `inbox_send` takes up to 50 contacts in `to`. Each one gets the question, and the first valid answer decides. People who aren't in `to` can't answer it.

### Do I need an API key to use the Agent Inbox MCP server?

No. The Agent Inbox MCP server uses OAuth sign-in: the MCP client opens a sign-in window, you approve it, and the client never sees an API key. Clients that support remote MCP servers over HTTP with OAuth can connect with the URL alone.

### Can a message start my agent through MCP?

Not through the MCP server. The MCP tools only act when the agent calls them. To have a message start an agent, run the Agent Inbox CLI's `listen` command on the computer where the agent works; it supports Claude Code, Codex and OpenCode.
