Skip to content

Give Codex an inbox to test with.

Two commands add Drin's MCP server. Then Codex can sign up with a real address, wait for the email and read it, in the CLI, the desktop app or the IDE.

Connect Codex in two steps.

Give Codex an inbox for the apps it builds and tests.

  1. Add the MCP server

    Run these once. The second opens Drin so you can sign in. The ChatGPT desktop app and the IDE extension share this setting.

    Terminal
    codex mcp add drin --url https://mcp.drin.run/mcp
    codex mcp login drin
  2. Sign in with Drin

    When the app opens Drin, sign in, choose which inbox it gets, and click Allow. No keys to paste.

These steps follow OpenAI's own docs for Codex (learn.chatgpt.com). If Codex changes how it works, tell us and we'll fix this page.

It waits for the code.

Codex reads mail when you ask. While it tests a sign-up flow, wait_for_events holds for up to 30 seconds and returns the email the moment it lands, clean text included.

MCP tools
# sign up on staging with signup-test@acme.dev, then:
drin_read({ operation: "wait_for_events", args: { types: ["inbound_received"], wait: 30 } })

# → [{ "type": "inbound_received", "data": {
#       "from": "no-reply@staging.acme.dev",
#       "subject": "Your code is 482913", "text": "Enter 482913 to…" } }]

What Codex can and can't do.

What it can do

  • Test sign-ups end to end. Codex signs up with a test address, waits for the verification email and finishes the flow with the code in it.
  • Send real test mail. See how your emails land, from your own domain, without a personal inbox in the loop. Mail to your own team goes straight out.
  • An inbox per test. Make a fresh address on a receiving domain for each run, so one test never reads another's mail.

What it can't do

  • Drin can't wake Codex, and it doesn't watch the inbox. It reads mail when you ask.
  • wait_for_events holds for up to 30 seconds a call. A slow email takes another call.
  • It can't see inboxes you didn't pick. To its key, they answer 404 on reads and 403 on writes.
  • It can't mail a new address by itself. The first mail waits for a person, unless it's a reply to a verified sender in the same thread on an open desk.

Before you connect it.

Does the ChatGPT desktop app need its own setup?
No. The ChatGPT desktop app and the IDE extension share the CLI's MCP setting.
Can it use a key instead of signing in?
Yes. Run the local server, npx -y @drin00/mcp, with DRIN_API_KEY in its env. Same tools.
Do inboxes or apps cost extra?
No. There is no fee per inbox or per connected app.

The same inbox works in other apps.

Each app gets its own key. Pause one, and the others keep working.

Give Codex an address tonight.

Start free. Add your own domain whenever you like.