Blueping

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.

Your code MCP
// The agent's own tool calls, over MCPcreate_inbox({ "client_id": "dev-feature-login" })wait_for_code({ "inbox_id": "inb_5Fe1", "from": "tallyboard.example" }){ "code": "605118", "message_id": "em_6Tq1Wz8L" }read_message({ "message_id": "em_6Tq1Wz8L" }){ "subject": "Confirm your account", "auth": { "dmarc": "pass" } }

dev-feature-login@blueping.dev

Claude Code, on the feature-login branch

Tallyboard local4:12 PM
to dev-feature-login@blueping.dev
Confirm your account

Your code is 605118. Or confirm with the link below.

Your webhook email.received
{  "type": "email.received",  "data": {    "inbox": { "address": "dev-feature-login@blueping.dev" },    "message": {      "id": "em_6Tq1Wz8L",      "from": { "name": "Tallyboard local" },      "subject": "Confirm your account",      "codes": [ { "value": "605118" } ],      "links": [ { "url": "http://localhost:3000/confirm?token=abc", "kind": "verify" } ]    }  }}

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 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:

{
  "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.

# 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))

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.

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.
ToolWhat it does here
create_inboxMakes the branch's inbox, or finds it by client_id.
wait_for_codeReturns the code or the verification link as soon as the email lands.
read_messageReads the email whole: text, HTML, links, headers, and its authentication and safety results.
search_messagesFinds an older email by words, such as every reset email this branch received.
delete_inboxRetires 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. 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 shows, then call the handler.

// 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, and every price on Pricing.

The API referenceWebhooksThe MCP serverBlueping vs PrimitiveAll use cases

Last checked against the API on .

Questions about coding agents

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

Read the docs

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, 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 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.

Let your coding agent read its own email

It signs up, reads the email your code sent, and tells you what it found.