emailmd
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
Ask a human before acting: approvals by email, Telegram or push, signed answers, passkeys.
作者提供的原文
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 0/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 12/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 A2H: ask a human。按照 https://mcp.popnx.com/i/andreaacanfora-a2h-gateway.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 A2H: ask a human 的密钥(在开发者网站创建) · 需要填写 2 项设置(A2H_GATEWAY, A2H_TO) · 需要先在电脑上安装 Docker(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server A2H: ask a human,按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "a2h-gateway": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "A2H_GATEWAY", "-e", "A2H_API_KEY", "-e", "A2H_TO", "ghcr.io/andreaacanfora/a2h-gateway:0.3.0", "mcp" ], "env": { "A2H_GATEWAY": "your-value", "A2H_API_KEY": "your-value", "A2H_TO": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) A2H_API_KEY, A2H_GATEWAY, A2H_TO 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 A2H: ask a human 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
docker --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version
安装一次,所有需要 Docker 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
A2H_GATEWAY 您的 A2H 网关 URL,例如 https://a2h.example.com A2H_TO 联系方式:mailto:you@example.com、tg: 或 ntfy 主题 URL 说明为自动翻译,变量名保持原样;不确定时请查看原文。
SettingsDeveloperEdit Config
{
"mcpServers": {
"a2h-gateway": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"A2H_GATEWAY",
"-e",
"A2H_API_KEY",
"-e",
"A2H_TO",
"ghcr.io/andreaacanfora/a2h-gateway:0.3.0",
"mcp"
],
"env": {
"A2H_GATEWAY": "your-value",
"A2H_API_KEY": "your-value",
"A2H_TO": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 A2H: ask a human 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 A2H: ask a human,或回答中出现 A2H: ask a human 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
A2H_PRINCIPAL 你在网关上的主体 ID(可选) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 A2H: ask a human
A2H: ask a human 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 A2H: ask a human 的应用
B · 聊天与邮件 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要 A2H: ask a human 的密钥(在开发者网站创建) · 需要填写 2 项设置(A2H_GATEWAY, A2H_TO) · 需要先在电脑上安装 Docker(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server A2H: ask a human,按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user a2h-gateway --env A2H_GATEWAY=your-value --env A2H_API_KEY=your-value --env A2H_TO=your-value -- docker run -i --rm -e A2H_GATEWAY -e A2H_API_KEY -e A2H_TO ghcr.io/andreaacanfora/a2h-gateway:0.3.0 mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) A2H_API_KEY, A2H_GATEWAY, A2H_TO 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 A2H: ask a human 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
docker --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version
安装一次,所有需要 Docker 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
A2H_GATEWAY 您的 A2H 网关 URL,例如 https://a2h.example.com A2H_TO 联系方式:mailto:you@example.com、tg: 或 ntfy 主题 URL 说明为自动翻译,变量名保持原样;不确定时请查看原文。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user a2h-gateway --env A2H_GATEWAY=your-value --env A2H_API_KEY=your-value --env A2H_TO=your-value -- docker run -i --rm -e A2H_GATEWAY -e A2H_API_KEY -e A2H_TO ghcr.io/andreaacanfora/a2h-gateway:0.3.0 mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 A2H: ask a human 在列表中并显示已连接
用 A2H: ask a human 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 A2H: ask a human,或回答中出现 A2H: ask a human 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
A2H_PRINCIPAL 你在网关上的主体 ID(可选) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 A2H: ask a human 的密钥(在开发者网站创建) · 需要填写 2 项设置(A2H_GATEWAY, A2H_TO) · 需要先在电脑上安装 Docker(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server A2H: ask a human,按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "a2h-gateway": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "A2H_GATEWAY", "-e", "A2H_API_KEY", "-e", "A2H_TO", "ghcr.io/andreaacanfora/a2h-gateway:0.3.0", "mcp" ], "env": { "A2H_GATEWAY": "your-value", "A2H_API_KEY": "your-value", "A2H_TO": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) A2H_API_KEY, A2H_GATEWAY, A2H_TO 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 A2H: ask a human 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
docker --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version
安装一次,所有需要 Docker 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
A2H_GATEWAY 您的 A2H 网关 URL,例如 https://a2h.example.com A2H_TO 联系方式:mailto:you@example.com、tg: 或 ntfy 主题 URL 说明为自动翻译,变量名保持原样;不确定时请查看原文。
在 A2H: ask a human 的设置中,A2H_API_KEY, A2H_GATEWAY, A2H_TO 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 A2H: ask a human 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 A2H: ask a human,或回答中出现 A2H: ask a human 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
A2H_PRINCIPAL 你在网关上的主体 ID(可选) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 A2H: ask a human 的密钥(在开发者网站创建) · 需要填写 2 项设置(A2H_GATEWAY, A2H_TO) · 需要先在电脑上安装 Docker(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server A2H: ask a human,按顺序:1) 用 docker --version 检查是否有 Docker。没有的话,请让我从 https://www.docker.com/products/docker-desktop/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "a2h-gateway": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "A2H_GATEWAY", "-e", "A2H_API_KEY", "-e", "A2H_TO", "ghcr.io/andreaacanfora/a2h-gateway:0.3.0", "mcp" ], "env": { "A2H_GATEWAY": "your-value", "A2H_API_KEY": "your-value", "A2H_TO": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) A2H_API_KEY, A2H_GATEWAY, A2H_TO 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 A2H: ask a human 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
docker --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 安装 Docker Desktop:Mac 打开 Docker.dmg,把图标拖到“应用程序”(按电脑选择 Apple silicon 或 Intel 版本)· Windows 双击 Docker Desktop Installer.exe · 装好后打开 Docker Desktop 应用并保持运行。不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: docker --version
安装一次,所有需要 Docker 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
A2H_GATEWAY 您的 A2H 网关 URL,例如 https://a2h.example.com A2H_TO 联系方式:mailto:you@example.com、tg: 或 ntfy 主题 URL 说明为自动翻译,变量名保持原样;不确定时请查看原文。
在 A2H: ask a human 的设置中,A2H_API_KEY, A2H_GATEWAY, A2H_TO 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 A2H: ask a human 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 A2H: ask a human,或回答中出现 A2H: ask a human 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
A2H_PRINCIPAL 你在网关上的主体 ID(可选) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user a2h-gateway --env A2H_GATEWAY=your-value --env A2H_API_KEY=your-value --env A2H_TO=your-value -- docker run -i --rm -e A2H_GATEWAY -e A2H_API_KEY -e A2H_TO ghcr.io/andreaacanfora/a2h-gateway:0.3.0 mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"a2h-gateway": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"A2H_GATEWAY",
"-e",
"A2H_API_KEY",
"-e",
"A2H_TO",
"ghcr.io/andreaacanfora/a2h-gateway:0.3.0",
"mcp"
],
"env": {
"A2H_GATEWAY": "your-value",
"A2H_API_KEY": "your-value",
"A2H_TO": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"a2h-gateway": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"A2H_GATEWAY",
"-e",
"A2H_API_KEY",
"-e",
"A2H_TO",
"ghcr.io/andreaacanfora/a2h-gateway:0.3.0",
"mcp"
],
"env": {
"A2H_GATEWAY": "your-value",
"A2H_API_KEY": "your-value",
"A2H_TO": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"a2h-gateway": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"A2H_GATEWAY",
"-e",
"A2H_API_KEY",
"-e",
"A2H_TO",
"ghcr.io/andreaacanfora/a2h-gateway:0.3.0",
"mcp"
],
"env": {
"A2H_GATEWAY": "your-value",
"A2H_API_KEY": "your-value",
"A2H_TO": "your-value"
}
}
}
}A2H_GATEWAY 必填 envA2H_API_KEY 机密 必填 envA2H_TO 必填 envA2H_PRINCIPAL env说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月20日
注册名称已通过 GitHub 账户 AndreaAcanfora 验证,该账户拥有此仓库
代码最后更新于6天前
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/andreaacanfora-a2h-gateway)提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:A2H_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于6天前,最新版本(0.3.0)于11天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有:emailmd, Kite Discord Bot Builder, e2a — email for AI agents, Infobip MCP, kernelCAD
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.
Build and fix Discord bots from a chat. Kite hosts them 24/7, with no code to deploy.
Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.
Infobip MCP server for omnichannel communication and messaging. SMS, RCS, WhatsApp, Viber and more.
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
| 本项 A2H: ask a human | emailmd | Kite Discord Bot Builder | e2a — email for AI agents | Infobip MCP | kernelCAD | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 云端或安装在电脑上都可以 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 |
| 需要密钥 | 是 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 否 | 是 | 否 |
| 基础检查 | 3/3 | 5/5 | 4/4 | 4/4 | 4/4 | 4/4 |
| 许可证 | MIT | MIT | AGPL-3.0 | Apache-2.0 | MIT | MIT |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A self-hosted gateway for [A2H](https://github.com/twilio-labs/Agent2Human), the Agent-to-Human protocol: AI agents and scripts ask a person for approval or information, the person answers from email, Telegram or a push notification, and the agent gets a signed answer with proof of who decided. A single Go binary with SQLite.
$ a2h ask -to mailto:me@example.com -why "Rolls back if health checks fail." "Deploy v2.3 to production?"
Waiting for an answer from mailto:me@example.com (interaction 01a1bbcf-…)… Approved (email_link.v1) at 2026-11-08T15:37:50Z. $ echo $? 0
A2H was published by Twilio Labs in February 2026 with a specification, an OpenAPI schema and a proof-of-concept demo. Its roadmap lists a reference gateway and formal JSON Schemas as next steps. This project is an independent implementation of both, not affiliated with Twilio.
/.well-known/a2h), POST /v1/intent, status, cancel, nonces, JWKS.app), plus a console channel for development. Retries with the spec's backoff, and fallback channels.assurance.level: HIGH must be approved with a passkey (WebAuthn), with the challenge bound to the interaction as section 1.11.4 requires.message_id;X-A2H-Signature), retried 10 s / 60 s / 5 min, and polling as fallback.schemas/.a2h mcp): agents in Claude, Cursor and other MCP clients ask you for approval as a tool.a2h conform.Download a binary for Linux, macOS, Windows or FreeBSD from the releases, use the Docker image ghcr.io/andreaacanfora/a2h-gateway, or install with Go:
go install github.com/AndreaAcanfora/a2h-gateway/cmd/a2h@latest
A2H_BASE_URL=http://localhost:8080 A2H_DEV=1 a2h serve
In another terminal:
A2H_GATEWAY=http://localhost:8080 a2h ask -to console:me "Delete 3 unused files?"
The gateway logs a link (url=http://localhost:8080/i/…): open it, approve, and a2h ask exits with 0.
docker run -d -p 8080:8080 -v a2h-data:/data \
-e A2H_BASE_URL=https://a2h.example.com \ -e A2H_API_KEYS="deploy-bot:$(openssl rand -hex 24)" \ -e SMTP_HOST=smtp.example.com -e SMTP_USERNAME=a2h@example.com -e SMTP_PASSWORD=… \ -e TELEGRAM_BOT_TOKEN=123456:ABC… \ -e A2H_PUSH=1 \ ghcr.io/andreaacanfora/a2h-gateway
Put it behind HTTPS: people open its links, and passkeys only work on a secure origin.
Telegram: create a bot with @BotFather, then send your bot any message so that it may write to you. Your chat ID is in https://api.telegram.org/bot /getUpdates (message.chat.id). Messages get an action button when A2H_BASE_URL is a public host name; with localhost the link is in the text, since Telegram refuses such buttons.
| Variable | Meaning |
|---|---|
A2H_BASE_URL | Public URL people open (required) |
A2H_LISTEN | Listen address, default :8080 |
A2H_DATA_DIR | Database, signing key and link secret, default ./a2h-data |
A2H_API_KEYS | name:key pairs, comma-separated; agents send X-A2H-API-Key |
SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, SMTP_FROM | Email channel (STARTTLS or TLS) |
TELEGRAM_BOT_TOKEN | Telegram channel; addresses are tg: (see below) |
A2H_PUSH, NTFY_TOKEN | Push channel (ntfy); addresses are topic URLs |
A2H_CONSOLE | Console channel (links in the log) |
A2H_DEV | Development mode: no auth, http:// webhooks, console. Never expose it. |
Any HTTP client works:
curl -s https://a2h.example.com/v1/intent -H "X-A2H-API-Key: $KEY" -H 'content-type: application/json' -d '{
"type": "AUTHORIZE", "message_id": "'$(uuidgen)'", "agent_id": "did:web:booking-agent.example.com", "principal_id": "usr_alice", "channel": { "type": "email", "address": "mailto:alice@example.com", "fallback": [{ "type": "push", "address": "https://ntfy.sh/alice-a2h-7f3k" }] }, "render": { "title": "Book flight?", "body": "Book the non-refundable flight to Lisbon for 412 EUR?" }, "explanation_bundle": { "why": "The fare expires in 30 minutes." }, "ttl_sec": 1800, "callback": { "url": "https://agent.example.com/a2h/webhook", "secret": "whsec_…" } }'
Then wait for the webhook, or poll GET /v1/status/{interaction_id} until the state is ANSWERED, EXPIRED, CANCELLED or FAILED.
From Go, the a2h package does all of this and verifies the answer:
c := a2h.NewClient("https://a2h.example.com", key)
sent, _ := c.Send(ctx, msg) status, _ := c.Wait(ctx, sent.InteractionID, 2*time.Second) resp, err := c.VerifyResponse(ctx, status.Response, msg.MessageID) // checks responds_to and the JWS if err == nil && resp.Decision == a2h.Approve { /* go ahead */ }
a2h mcp is a Model Context Protocol server: Claude Code, Claude Desktop, Cursor and other MCP clients get tools to ask you before acting.
| Tool | What it does |
|---|---|
request_approval | Ask you to approve or decline an action; returns the verified decision |
ask_human | Ask you to fill in a short form (text, numbers, dates, choices, yes/no) |
notify_human | Send you a message (progress, result, alert) |
check_request | Follow up on a request that is still waiting |
cancel_request | Withdraw a request that has not been answered |
It is listed in the official MCP Registry as io.github.AndreaAcanfora/a2h-gateway, so MCP clients that browse the registry can install it; or configure it by hand.
Claude Code:
claude mcp add a2h \
-e A2H_GATEWAY=https://a2h.example.com -e A2H_API_KEY=… -e A2H_TO=tg:123456789 \ -- a2h mcp
Claude Desktop (claude_desktop_config.json), Cursor and others:
{
"mcpServers": { "a2h": { "command": "a2h", "args": ["mcp"], "env": { "A2H_GATEWAY": "https://a2h.example.com", "A2H_API_KEY": "…", "A2H_TO": "mailto:me@example.com" } } } }
Then tell the agent when to ask, e.g. *"ask me with request_approval before deleting anything or spending money"*.
-max-wait) and sends progress notifications meanwhile. If the person has not answered by then, the tool says so and the agent continues with check_request.require_passkey: true makes the approval need a passkey.Requests with "assurance": {"level": "HIGH"} (or required_factors containing passkey.webauthn.v1) cannot be approved with a click: the person must confirm with a passkey (Face ID, Touch ID, Windows Hello, a security key). Only the operator can register passkeys, from the server:
a2h enroll -principal usr_alice
The RESPONSE then carries the WebAuthn assertion, the challenge nonce and the public key, so an agent can verify the person's signature itself.
Pair a phone app such as nod and requests arrive there: approve or decline with your fingerprint or face, fill in forms, see what you decided. The app signs each answer with a key that never leaves the phone, and the signature travels in the RESPONSE.
a2h pair -principal usr_alice # shows a QR code to scan in the app
a2h ask -to app:usr_alice "Deploy v2.3 to production?"
The push that wakes the app carries no content (it goes through UnifiedPush, for example ntfy, with no Google services needed). docs/app-api.md describes the API, for anyone writing another app.
a2h conform -gateway https://gateway.example.com -key $KEY -to mailto:a2h-test@example.com
PASS MUST §1.4 discovery document
PASS MUST §1.3 RESPONSE type from an agent is rejected PASS MUST §1.5 unsupported profile is rejected PASS MUST §1.10.2 duplicate message_id returns the original interaction PASS MUST §1.7 cancel a waiting interaction … conforming to the agent-facing API of A2H 1.0
The suite sends real intents to the address you give, then cancels them.
A2H 1.0 leaves some details open or describes them two ways. The choices made here are listed in docs/implementation-notes.md, as feedback for the next version of the spec.
go test -race ./... # unit and integration tests
go build -o e2e/a2h ./cmd/a2h && (cd e2e && npm install && npm test) # passkeys in Chromium
MIT. A2H is © Twilio Labs, under the MIT License.