pingwa

io.github.grzgrzgrz3由 GitHub 账号 grzgrzgrz3 发布v0.4.1更新于 Oct 24, 2026

Zero-setup WhatsApp notifications + human-in-the-loop for AI agents — text 'join', send in 60s.

已验证Streamable HTTP可网页运行效率与工作流沟通与协作

概览

AI 生成的概览

把 WhatsApp 通知发到自己的手机,并让智能体在 WhatsApp 上向你提问、阻塞等待回复。

可以做什么
  • 向账户所有者本人的手机发送文本消息,可选附带公开图片链接作为说明
  • 在 WhatsApp 上向人提问,最多三个可点击按钮,并等待回答或超时
  • 拉取收到的 WhatsApp 消息,支持游标与长轮询,用于接收临时指令或迟到的回答
  • 查看账户套餐、当月剩余配额以及免费 24 小时回复窗口是否开启
  • 获取升级到 Pro 的 Stripe 结账链接,已是 Pro 时返回账单管理链接
适用场景
适合长时间运行的智能体或脚本在构建、部署完成时提醒你,或在任务中途需要人做决定时,让你直接在 WhatsApp 上点按钮回答,而不必盯着终端。
运行要求
需要 PINGWA_KEY 环境变量中的 pingwa API 密钥(在 WhatsApp 上向服务号码发送 join 获取)。可作为远程端点通过 Bearer 密钥请求头连接,也可用 uvx 在本地运行(需 Python/uv)。需能访问 pingwa 后端网络;可用 PINGWA_BASE_URL 指向自建后端。
安装前请注意
该密钥是可用于发消息和消耗配额的凭据,不要泄露到聊天或日志中。消息会经过托管的 pingwa 后端,后端可看到发送的文本和图片链接。upgrade 工具返回 Stripe 付款链接,应由人自行打开并支付。Webhook 签名密钥只显示一次,需立即保存。

安装

在 SourceWeft 中

  1. 打开 控制台中的 pingwa,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.grzgrzgrz3%2Fpingwa/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "pingwa": {
      "type": "http",
      "url": "https://pingwa.dev/mcp"
    }
  }
}

README

pingwa (client)

[PyPI] [Python] [License: MIT]

WhatsApp notifications for AI agents and scripts with zero setup — no Meta account, no templates, no dashboard: text "join", get an API key, curl → WhatsApp in 60s. Two-way human-in-the-loop: your agent asks, you tap a button to answer. From your terminal or an MCP client.

This is the open-source (MIT) pingwa client: a CLI, a tiny HTTP client, and an MCP server. It talks to a pingwa backend (the hosted service at https://pingwa.dev, or your own). The backend is separate and private; this client is not.

Install & use

No install needed with uv:

bash
export PINGWA_KEY=pw_your_key          # get one: send "join" on WhatsApp to the service numberuvx pingwa send "build finished ✅"     # notify your own phoneecho "deploy done" | uvx pingwa send -  # from stdinuvx pingwa ask "Deploy to prod?" --button yes --button no   # wait for a reply from your phoneuvx pingwa replies                      # pull messages your phone sent back (out-of-band steering)uvx pingwa me                           # plan / quota / reply-windowuvx pingwa keys                         # list active API keys (up to 10 named keys per number)uvx pingwa keys revoke ci               # revoke one by name (or reply 'revoke ci' on WhatsApp)uvx pingwa upgrade                      # get a Stripe link to go Pro (no password needed)uvx pingwa send "x" --json              # raw JSON response

AI agents: don't ask your human to copy-paste a key — drive the registration yourself (POST /v1/registrations; full recipe in llms.txt). The human only taps one WhatsApp link; the key is claimed by you and never travels through the chat. Works for existing accounts too — it mints an additional named key.

Exit codes: 0 ok · 2 missing key · 3 quota exceeded · 1 other. Override the backend with PINGWA_BASE_URL or --base-url.

Webhooks

Prefer PUSH over polling replies? Register HTTPS endpoints and pingwa POSTs every inbound WhatsApp message to them:

bash
uvx pingwa webhooks                                   # list your webhooksuvx pingwa webhooks add https://your-host/pingwa-hook # returns a signing SECRET, shown ONCEuvx pingwa webhooks rm https://your-host/pingwa-hook  # by id, or by exact url

add prints a whsec_... secret once — store it now; it never appears again. Each delivery carries an X-Pingwa-Signature: sha256=<hex> header (an HMAC-SHA256 of the raw body under that secret) — verify it and reject anything that fails. Full verification recipe and payload shape: llms.txt. Up to 5 active webhooks per account; to rotate a secret, rm then add again.

MCP server

Same tools on stdio and remote: notify(text), ask(text, buttons?, timeout?), check_replies(since?, wait?), check_status(), upgrade().

Local (stdio) — for Claude Desktop / Claude Code:

json
{  "mcpServers": {    "pingwa": {      "command": "uvx",      "args": ["pingwa", "mcp"],      "env": { "PINGWA_KEY": "pw_your_key" }    }  }}

Remote (Streamable HTTP, no install):

json
{  "mcpServers": {    "pingwa": {      "url": "https://pingwa.dev/mcp",      "headers": { "Authorization": "Bearer pw_your_key" }    }  }}

Every error carries an action hint, so an agent knows what to do next.

What it sends

Only your message text and your key, to the pingwa backend you point it at — over HTTPS. Nothing else. The recipient is always your own phone (there is no "to" field). See the service's /privacy.

License

MIT — see LICENSE in the repository root. It covers this client package only (src/pingwa/client/); the pingwa server is separate, private, and not published. See NOTICE for the exact boundary.

来源:README.md,提交 58a47df

工具

5

notify

Send a WhatsApp notification to the account owner's own phone. `text` is the message (1-1024 chars). `image_url` (optional) is a public https image link — a screenshot, chart or diff — delivered as an image with `text` as the caption when the user's 24h window is open (otherwise text only). Returns a confirmation with the queued message id; raises an actionable error on quota/auth.

输入参数text必填image_url

check_status

Show the pingwa account's plan, remaining monthly quota, and whether the free 24h WhatsApp reply window is currently open.

无需输入参数。

upgrade

Get a link to upgrade the account to Pro (raises the monthly quota). Returns a Stripe Checkout URL for the human to open and pay — no pingwa password needed, the card is handled by Stripe. If the account is already Pro, returns a billing-portal URL to manage or cancel instead.

无需输入参数。

ask

Ask the human a question on WhatsApp and BLOCK until they reply (or timeout). `text` is the question. `buttons` (optional, up to 3) render as tappable reply buttons; omit them to invite a free-text answer the human types on their phone — use this to let the human steer you mid-task. `timeout` is seconds to wait (max 90). Returns the human's reply (free text and/or the chosen option). On timeout, returns a note — the question was delivered and the answer is still retrievable via `check_replies`.

输入参数text必填buttonstimeout

check_replies

Pull inbound WhatsApp messages the human sent to pingwa (out-of-band instructions, or late answers to an `ask`). `since` is a cursor from a previous call (pass it back to get only newer messages); `wait` long-polls up to that many seconds for something to arrive. Returns the messages and a new cursor.

输入参数waitsince

版本历史

1
  1. v0.4.1最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分