GB

gsd-build/agent-inbox

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

64 stars 6 forks 质量 68 趋势 14MIT

只需一个工具调用,就能为任何AI代理提供一次性邮箱收件箱。MCP服务器用于邮件验证、认证流程和测试。

概览

只需一个工具调用,就能给任何AI代理一个一次性邮箱。 交互式安装程序会自动检测你的AI编码代理(Claude Code、Codex CLI、Cursor、Gemini CLI、Windsurf),配置MCP服务器,并为每个代理安装可选技能。 当MCP客户端(非TTY)启动时,它会正常启动MCP服务器。当你从终端运行时,会得到安装程序。 一个按需创建真实临时电子邮件地址的MCP服务器。你的客服可以注册服务、接收确认邮件、提取验证链接并清理——你无需动手。 没有API密钥。没有账户。没有配置。支持任何邮件发送服务——Supabase、Resend、SendGrid、Postmark、AWS SES等等。 当某个服务需要邮件验证时,AI代理遇到了瓶颈。他们可以填写注册表,但收不到确认邮件。于是他们停下来,要求你去做。 如果你更喜欢手动配置而不是使用安装程序: 添加到 ~/。

概述(AI 翻译)

只需一个工具调用,就能给任何AI代理一个一次性邮箱。

安装

交互式安装程序会自动检测你的AI编码代理(Claude Code、Codex CLI、Cursor、Gemini CLI、Windsurf),配置MCP服务器,并为每个代理安装可选技能。

当MCP客户端(非TTY)启动时,它会正常启动MCP服务器。当你从终端运行时,会得到安装程序。

它的作用

一个按需创建真实临时电子邮件地址的MCP服务器。你的客服可以注册服务、接收确认邮件、提取验证链接并清理——你无需动手。

没有API密钥。没有账户。没有配置。支持任何邮件发送服务——Supabase、Resend、SendGrid、Postmark、AWS SES等等。

问题所在

当某个服务需要邮件验证时,AI代理遇到了瓶颈。他们可以填写注册表,但收不到确认邮件。于是他们停下来,要求你去做。

修复

手动设置

如果你更喜欢手动配置而不是使用安装程序:

克劳德·科德

或者在~/.claude/settings.json中添加:

Codex CLI

加到~/.codex/config.toml:

光标

添加到 '~/.cursor/mcp.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

agent-inbox

Give any AI agent a disposable email inbox in one tool call.

Install

npx gsd-agent-inbox

The interactive installer auto-detects your AI coding agents (Claude Code, Codex CLI, Cursor, Gemini CLI, Windsurf), configures the MCP server, and installs the optional skill for each.

When launched by an MCP client (non-TTY), it starts the MCP server normally. When you run it from a terminal, you get the installer.

What it does

An MCP server that creates real, temporary email addresses on demand. Your agent can sign up for services, receive confirmation emails, extract verification links, and clean up — without you lifting a finger.

No API keys. No accounts. No configuration. Works with any email-sending service — Supabase, Resend, SendGrid, Postmark, AWS SES, whatever.

The problem

AI agents hit a wall when a service requires email verification. They can fill out a sign-up form, but they can’t receive the confirmation email. So they stop and ask you to do it.

The fix

Agent: create_inbox({ prefix: "signup", name: "test" })
→ [email protected] (name: test)

Agent: [fills sign-up form with that email]

Agent: verify_email({ address: "test", subject_contains: "confirm" })
→ Email verified successfully!
  Verification URL: https://myapp.supabase.co/auth/v1/verify?token=abc123
  HTTP Status: 200

Agent: delete_inbox({ address: "test" })
→ Done.

Manual setup

If you prefer to configure manually instead of using the installer:

Claude Code

claude mcp add agent-inbox -- npx -y gsd-agent-inbox

Or add to ~/.claude/settings.json:

{
  "mcpServers": {
    "agent-inbox": {
      "command": "npx",
      "args": ["-y", "gsd-agent-inbox"]
    }
  }
}

Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.agent-inbox]
command = "npx"
args = ["-y", "gsd-agent-inbox"]
env = { }

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "agent-inbox": {
      "command": "npx",
      "args": ["-y", "gsd-agent-inbox"]
    }
  }
}

Gemini CLI

Add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "agent-inbox": {
      "command": "npx",
      "args": ["-y", "gsd-agent-inbox"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "agent-inbox": {
      "command": "npx",
      "args": ["-y", "gsd-agent-inbox"]
    }
  }
}

Any other MCP client

Any client that supports stdio transport:

{
  "command": "npx",
  "args": ["-y", "gsd-agent-inbox"]
}

Build from source

git clone https://github.com/gsd-build/agent-inbox.git
cd agent-inbox
npm install
npm run build
npm start

Tools

Tool What it does
create_inbox Spin up a temporary email address. Optional prefix for readability, optional name for easy reference.
在 GitHub 查看完整 README

安装

npx -y gsd-agent-inbox
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "agent-inbox": { "command": "npx", "args": ["-y", "gsd-agent-inbox"] } } }