---
agent:
  instructions: "Use this search API to find what Blueping's public pages say, with keywords or a question, instead of crawling them one by one. Results are returned in Markdown, best first, each with its link."
  endpoint: "https://blueping.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

> The index of these docs for agents is at https://blueping.dev/llms.txt

# Your coding agent gets an inbox.

Claude Code, Codex and Cursor connect over MCP, sign up to the app they are building and read the email your code just sent.

Claude Code signs up to the app it is building as dev-feature-login@blueping.dev, waits for the code with one tool call, and reads the email whole before it says the feature works.

## How do I give Claude Code, Codex or Cursor an email inbox?

Connect Blueping's hosted MCP server with one line in the client and sign in once in the browser; the agent then has `create_inbox`, `wait_for_code` and `read_message` among its tools. It can sign up to the app it is building, read the email your code just sent, and check the copy, the links and the headers before it tells you the feature works.

## Where coding agents stop today

Ask Claude Code to add email verification to Tallyboard's sign-up and it writes the route, the template and the token logic, runs the server, then asks you to check your inbox to confirm it works. It has no inbox of its own. You open your mail, copy a code back into the chat, and a loop of one minute takes ten.

The same thing happens elsewhere. A bug report says the reset link returns a 404, and the agent can't receive a reset email to reproduce it. A refactor touches the mail templates, and nobody looks at the rendered HTML until a customer does. A payment provider's test dashboard wants a confirmed email before the agent can read the keys it needs.

With an inbox of its own, the agent finishes the job. It gets an address per branch, such as dev-feature-login@blueping.dev, signs up to its own build, waits for the email, reads it whole and reports what it found, in the session where it wrote the code.

## From one prompt to a tested sign-up flow

Over MCP, the steps below are tool calls the agent makes on its own; the REST call is the same thing for scripts.

### 1. Connect the MCP server once

One command in Claude Code or Codex, or one entry in Cursor's config, adds `https://blueping.dev/mcp`. You sign in once in the browser with OAuth, so no API key sits in a dotfile. [Connect your agent](https://blueping.dev/agents.md) has the line for each client.

**Call:** `claude mcp add --transport http blueping https://blueping.dev/mcp`

**Answer:** The client lists the inbox tools

**Checked:** The token holds `email:read`, `email:send` and `inbox:manage`, the scopes you approve on the consent page; held mail takes `held:read` on top

### 2. Give the branch an inbox

The agent creates an inbox named after the branch, such as `client_id` `dev-feature-login`. Running the task again reuses it, so a long session doesn't pile up addresses.

**Call:** `create_inbox`, the tool for POST `/v1/inboxes`

**Answer:** The inbox's `id` and `address`, which receive at once

**Checked:** The plan's inboxes, and creations in a day

### 3. Sign up to the app it is building

The agent submits your sign-up form with that address, through `curl`, a test script or its browser tool. Your app sends through its configured mail service, as it would for a user.

**Call:** Your app's sign-up route

**Answer:** Your app's confirmation email, on its way

**Checked:** Your mail service signs it with your domain

### 4. Read the email your code sent

`wait_for_code` returns the code or the link as soon as the email lands. `read_message` returns the whole message, so the agent checks the subject line, the plain text and HTML parts, where each link points, and the `In-Reply-To` and `References` headers.

**Call:** `wait_for_code`, then `read_message`

**Answer:** `code`, `link`, then `text`, `html`, `links`, `headers` and `auth`

**Checked:** Every message carries its `auth` and `safety` results, and `untrusted: true` over MCP

### 5. Report, then clean up

The agent tells you what it verified and what it changed. When the branch merges, it can delete the inbox; `delete_inbox` asks you first, and the address is retired for good.

**Call:** `delete_inbox`, the tool for DELETE `/v1/inboxes/{id}`

**Answer:** The inbox, deleted, with its mail

**Checked:** `delete_inbox` is marked destructive and for your confirmation, so your client asks you before it runs

What `read_message` returns in step 4, cut to the fields the agent checks:

```json
{
  "id": "em_6Tq1Wz8Lp3Kd9Hn2",
  "subject": "Confirm your account",
  "from": { "address": "no-reply@dev.tallyboard.example", "name": "Tallyboard local" },
  "codes": [{ "value": "605118" }],
  "links": [{ "url": "http://localhost:3000/confirm?token=abc", "kind": "verify" }],
  "auth": { "spf": "pass", "dkim": "pass", "dmarc": "pass", "verdict": "pass" },
  "safety": { "verdict": "clear", "reasons": [], "held": false },
  "headers": { "message_id": "<9f1e@dev.tallyboard.example>", "in_reply_to": null, "references": null },
  "text": "Welcome to Tallyboard.\n\nYour code is 605118.",
  "html": "<p>Welcome to Tallyboard.</p><p>Your code is <b>605118</b>.</p>"
}
```

## A mail report your coding agent can run

Coding agents work well with small scripts they can run and read. This one prints, as JSON, what the newest email to the branch's inbox looks like: its sender and whether DMARC proves it, its codes, every link with its kind, and whether it has a text and an HTML part. Keep it in your repo's `scripts/` folder and tell the agent to run it after each sign-up.

Python:

```python
# mail_report.py: the newest email your app sent to this branch's inbox, as JSON for your coding agent.
# Run: python mail_report.py feature-login
# pip install requests
import json
import os
import sys

import requests

API = "https://blueping.dev/v1"
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['BLUEPING_API_KEY']}"
branch = sys.argv[1] if len(sys.argv) > 1 else "main"

inbox = session.post(f"{API}/inboxes", json={"client_id": f"dev-{branch}"}).json()
page = session.get(f"{API}/inboxes/{inbox['id']}/messages", params={"limit": 10}).json()
received = [message for message in page["data"] if message["direction"] == "in"]
if not received:
    raise SystemExit(f"nothing yet at {inbox['address']}: sign up with it, then run this again")

message = session.get(f"{API}/messages/{received[0]['id']}").json()  # whole: text, HTML, headers
report = {
    "address": inbox["address"],
    "subject": message["subject"],
    "from": message["from"]["address"],
    "authenticated": message["auth"]["verdict"] == "pass",
    "codes": [code["value"] for code in message["codes"]],
    "links": [f"{link['kind']} {link['url']}" for link in message["links"]],
    "text_part": bool(message["text"]),
    "html_part": bool(message["html"]),
    "held_in_inbox": page["held"]["count"],
}
print(json.dumps(report, indent=2))
```

Node.js:

```javascript
// mail-report.mjs: the newest email your app sent to this branch's inbox, as JSON for your coding agent.
// Run: node mail-report.mjs feature-login (Node.js 18 or later)
const API = "https://blueping.dev/v1";
const headers = { Authorization: `Bearer ${process.env.BLUEPING_API_KEY}`, "Content-Type": "application/json" };
const get = async (path) => (await fetch(API + path, { headers })).json();
const branch = process.argv[2] ?? "main";

const inbox = await (await fetch(`${API}/inboxes`, { method: "POST", headers, body: JSON.stringify({ client_id: `dev-${branch}` }) })).json();
const page = await get(`/inboxes/${inbox.id}/messages?limit=10`);
const received = page.data.filter((message) => message.direction === "in");
if (!received.length) {
  console.error(`nothing yet at ${inbox.address}: sign up with it, then run this again`);
  process.exit(1);
}

const message = await get(`/messages/${received[0].id}`); // whole: text, HTML, headers
const report = {
  address: inbox.address,
  subject: message.subject,
  from: message.from.address,
  authenticated: message.auth.verdict === "pass",
  codes: message.codes.map((code) => code.value),
  links: message.links.map((link) => `${link.kind} ${link.url}`),
  text_part: Boolean(message.text),
  html_part: Boolean(message.html),
  held_in_inbox: page.held.count,
};
console.log(JSON.stringify(report, null, 2));
```

Put the key in your shell or your `.env` as `BLUEPING_API_KEY`; the agent never needs to see it. A report with `authenticated: false` usually means your local or staging app sends from a domain whose DKIM key isn't published yet, which is worth fixing before production.

## The prompt that runs the whole loop

With the server connected, this is all you type. The agent picks the tools; you approve the ones that change things.

```text
Add email verification to sign-up, then prove it works: create a Blueping inbox with client_id dev-feature-login, sign up on http://localhost:3000 with its address, wait for the verification email, follow the link, and show me the email's subject, its links and whether its sender is proven.
```

| Tool | What it does here |
| --- | --- |
| `create_inbox` | Makes the branch's inbox, or finds it by `client_id`. |
| `wait_for_code` | Returns the code or the verification link as soon as the email lands. |
| `read_message` | Reads the email whole: text, HTML, links, headers, and its authentication and safety results. |
| `search_messages` | Finds an older email by words, such as every reset email this branch received. |
| `delete_inbox` | Retires the branch's address when you say so. |

Visual Studio Code and Gemini CLI connect the same way, each with its line on [Connect your agent](https://blueping.dev/agents.md). Any other client that speaks MCP over HTTP, such as Windsurf, takes the same address.

## Save every email your app sends for review

Templates change in pull requests, and reviewers rarely see the rendered email. Point a webhook at a small server of yours, reachable over public HTTPS such as through a tunnel to your machine, and save each received email into the repository's `emails/` folder: the coding agent, and you, can diff the HTML across branches. Subscribe with POST `/v1/webhooks` and the `email.received` event, check the signature as [Webhooks](https://blueping.dev/docs/webhooks.md#verify) shows, then call the handler.

```javascript
// save-emails.mjs: the part of your webhook server that saves each email your app sends, for review.
// Check the Blueping-Signature header before calling handle(): /docs/webhooks#verify has the code.
import { mkdir, writeFile } from "node:fs/promises";

const API = "https://blueping.dev/v1";
const headers = { Authorization: `Bearer ${process.env.BLUEPING_API_KEY}` };

export async function handle(event) {
  if (event.type !== "email.received") return;
  const message = await (await fetch(`${API}/messages/${event.data.message.id}`, { headers })).json();
  const name = message.subject.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || message.id;
  await mkdir("emails", { recursive: true });
  if (message.html) await writeFile(`emails/${name}.html`, message.html);
  await writeFile(`emails/${name}.txt`, message.text ?? "");
  console.log(`saved emails/${name}`);
}
```

The event carries the message as lists show it; the handler reads it whole with GET `/v1/messages/{id}`, which returns the HTML as your app rendered it.

## Guardrails for an agent with an inbox

A coding agent acts fast and with broad permissions, so the inbox side is built to keep it on task.

### It asks before writing to someone new

The MCP tools tell the model to check with you before it writes to an address for the first time. `delete_inbox` and `delete_thread` are marked for your confirmation, and clients that read the mark ask you before they run.

### Email text is data

Every message someone else wrote reaches the model with `untrusted: true`, and one that carries tool-call syntax or instructions aimed at a model is held. A shell command in an email body is text for the agent to read, under the same mark.

### Point it at your own builds

Staging, preview and local apps first. When the agent signs up to a third-party service, that sign-up is part of the task you gave it, under your account.

### No key in the repository

OAuth sign-in keeps keys out of dotfiles. The scripts on this page read `BLUEPING_API_KEY` from the environment, and a key in a URL is refused by the API.

## What a team of coding agents needs

A solo developer reuses one inbox per project. A team that gives each open branch its own address holds a dozen inboxes and sends next to nothing, since the agent mostly receives.

**Developer fits this setup**: 50 inboxes, 15,000 sends a month and 1,500 a day, and 15 GB of storage, for $19 a month, or $180 a year.

Receiving is never counted, and each recipient of a send counts once. Every limit is on [Limits](https://blueping.dev/docs/limits.md), and every price on [Pricing](https://blueping.dev/pricing.md).

[The API reference](https://blueping.dev/docs/api.md) · [Webhooks](https://blueping.dev/docs/webhooks.md) · [The MCP server](https://blueping.dev/agents.md) · [Blueping vs Primitive](https://blueping.dev/compare/primitive.md) · [All use cases](https://blueping.dev/use-cases.md)

Last checked against the API on 27 November 2026.

## Questions about coding agents

What builders ask before they set it up. The docs answer the rest.

[Read the docs](https://blueping.dev/docs.md)

### Which coding agents work?

Any client that speaks MCP over HTTP. Claude Code, Codex, Cursor, Visual Studio Code and Gemini CLI each have their line on [Connect your agent](https://blueping.dev/agents.md), and the others take the same address.

### Does the agent need an API key?

No. The client signs in with OAuth in your browser. An API key works too, for machines with no browser, such as a CI runner.

### Can it test the emails my app sends?

Yes. Point the sign-up at the agent's address: `read_message` returns the whole message, its text and HTML, every link and the headers that thread it.

### What if my local app prints emails to the console?

The inbox receives mail from the internet, so the app needs to send through a real mail service, such as its staging setup. A staging mail key does it.

### Can the agent sign up to third-party services for me?

It can, with an address per service, as the [verification codes](https://blueping.dev/use-cases/verification-codes.md) page shows. Use it for accounts the task needs, such as a sandbox dashboard.

### Where is the mail stored?

In the European Union: 90 days on Free, and until you delete it on a paid plan. A branch's inbox deleted after the merge takes its mail with it.

## More agents at work

- [Tests sign-up emails in CI, qa-runner@blueping.dev. Turn the checks the agent ran by hand into a test your pipeline runs on every change.](https://blueping.dev/use-cases/email-testing-in-ci.md)
- [Signs up for the tools it needs, browser-agent-7@blueping.dev. The code call in depth, for sign-ups to services other than your own.](https://blueping.dev/use-cases/verification-codes.md)
- [Answers the planner's tasks, research-worker@blueping.dev. When several agents work on one task, each with its own address.](https://blueping.dev/use-cases/multi-agent-email.md)
