Pushary: human-in-the-loop for AI agents

io.github.Pushary由 GitHub 账号 Pushary 发布v1.5.2更新于 Nov 22, 2026

Human-in-the-loop for AI agents: ask a person and get approvals or answers by push notification.

发布方自己的服务:TAP

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

概览

AI 生成的概览

让 AI 代理把问题、审批请求和提醒推送到用户手机或 Mac,并等待答复后再继续。

可以做什么
  • 向用户提出确认、选择或文本输入问题并等待回复
  • 发送任务进展通知,可附带详情上下文
  • 按关联 ID 读取、长轮询或取消已有问题
  • 安排、列出和取消一次性个人提醒
  • 请求确认本次运行的边界或范围
适用场景
适合代理遇到只有用户能决定的选择、在执行不可逆或对外操作前需要批准,或需要汇报无人值守任务结果时使用。也适合希望记录哪个代理问了什么、由谁答复的团队。
运行要求
远程 MCP 端点,使用 bearer 认证:在 Authorization 头中携带从控制台获取的 Pushary API 密钥(pk_ 格式),或通过 Claude/Cowork 插件用 OAuth 登录。托管推送需要付费套餐(新用户有 3 天试用);强制式工具审批需要受支持的主机钩子或运行时集成。
安装前请注意
API 密钥属于机密,须妥善保管,不要把运营者密钥分享给终端用户。托管推送需付费套餐,为自己的用户嵌入审批需 Partner 套餐。问题和通知会把任务细节发送到 Pushary 及用户设备。强制审批仅在受支持的主机上生效,其他环境下代理可能不经拦截继续执行;沉默不等于同意。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Pushary: human-in-the-loop for AI agents,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "pushary-human-in-the-loop-for-ai-agents": {
      "type": "http",
      "url": "https://pushary.com/api/mcp/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Pushary: human-in-the-loop for AI agents

Push notifications and human-in-the-loop for AI agents. Approve from your phone.
Get started  ·  Skills directory  ·  Report a bug

[MIT License] [skills.sh] [npm] [PyPI] [Glama score]

Start here

Try an approval without signing up

Already paired your phone? Try the three-agent exercise and see which session gets your answer. → connect an open phone page → approve or decline → see the agent continue or stop. This browser demo uses polling and temporary state, not real push delivery or the production ledger.

What you want to buildStart with
Notifications, questions and approvals for your own AI agents, such as Claude Code or CodexThe setup instructions below
An enforced tool approval in the Vercel AI SDKRunnable AI SDK example
A LangGraph workflow that branches on a human decisionRunnable LangGraph example
Another agent frameworkAll Pushary integrations
When an agent should stop and ask a person, and how to add that step in any frameworkThe pushary-human-in-the-loop skill

The skill and adapters are MIT-licensed. Hosted phone delivery requires a Pushary account; embedding approvals for your own users requires Partner access. The two framework examples also run locally with simulated answers and no credentials.

If Pushary helped you, star this repo. Want to help? Public issues and patches are welcome.


Pushary lets your AI agent send task updates and ask you for a decision on your phone. Supported host hooks also enforce approvals before an action runs.

Hosted delivery requires a paid Pushary plan. MCP questions and notifications work with any compatible client; enforced approvals depend on the host integration.

What you get after you sign in

  1. Sign in and pick a plan. New customers start with a 3-day trial.
  2. Run npx -y pushary@latest setup once. It connects Claude Code, Codex, Cursor, Gemini CLI, Hermes and the other agents it finds on this computer.
  3. When an agent needs a yes or an answer, the question arrives on your phone (the Pushary app for iOS and Android), on your Mac, or in the dashboard.
  4. You answer with one tap, or type a short reply, and the agent keeps going. The dashboard keeps a record of what each agent asked and what you answered.

Read the quickstart for each step, or see what Pushary does for AI agents.

Plans

Each plan starts with a 3-day trial for new customers. During the trial, Agent, Agent Pro and Team include 5 call minutes.

PlanPriceWhat you get
Agent$9.99 a monthOne person and every AI agent they run. Approve, deny or answer from your phone or Mac. 10 call minutes a month.
Agent Pro$19.99 a monthEverything in Agent, plus unlimited notifications, budgets and priority support. 20 call minutes a month.
Team$59 a month for 5 people, $12 for each extra personA shared record of what your team's agents asked and who answered, with export. 60 call minutes a month.

Missed the push? Pushary can call you, by default a minute or two after the push, and read the request. You approve it, say no or tell the agent what to do. Calls need a confirmed phone number and work in English, German, French and Dutch. Calls cover Claude Code, Codex, Gemini CLI, Hermes and the other agents listed on the calls page, not yet Cursor, VS Code, OpenCode or OpenClaw. Phone calls · How calls work

How It Works

AI Agent  ->  MCP Protocol  ->  Pushary API  ->  Push Notification  ->  Your Phone

Pushary is an MCP server that connects your AI agent to push notifications. The agent calls Pushary's tools over the Model Context Protocol, and you receive notifications instantly on any device.

Three question types - yes/no confirmations, multiple choice, and free text input. Your agent picks the right one for the situation.

Rich context notifications - agents can include file changes, error details, and suggested next steps in a detail page you see when tapping the notification.

Agent identification - when you run multiple agents, each notification shows which agent is asking so you always know what you're responding to.

Permission hooks - route Claude Code's tool approval prompts through push notifications so you can approve or deny from your phone.


Personal setup: phone first

Run the pairing setup in your agent's terminal:

bash
npx -y pushary@latest setup

Install Pushary on your phone, scan the QR or open the printed link, compare the fingerprints, and approve. Setup then configures the selected agent's tools, supported hooks and skill. You do not need to copy an API key first. Personal accounts require a paid plan. Existing credentials are reused.

Verify setup:

bash
npx -y pushary@latest doctor

Ask your agent for one harmless test question. Confirm the intended device receives it and the answer returns to the same task.

The Claude Code guide covers its hooks and permission modes. Supported agents shows what Pushary can do in each of the others.

For Hermes specifically:

bash
npx -y pushary@latest setup --agents hermes

This writes the native plugin to ~/.hermes/plugins/pushary and turns it on with hermes plugins enable pushary and hermes config set. Restart Hermes afterward with hermes gateway restart. The plugin provides notification, question, wait, cancel, reminder and scope tools, plus Partner enrollment and customer-question tools. Its parameters use snake_case; use the Hermes skill, not MCP parameter names. The native approval transport preserves Hermes' session and standing approvals.

Mac notch and other answer surfaces

Install Pushary for Mac, sign in with the same personal account and connect your agents from the app. The notch provides confirm, choice, text and question-set controls with keyboard support. Keep the app running for presence and delivery; verify one harmless question there, then phone fallback while away from the Mac.

SurfaceAnswers
MobileConfirm, choice and text in the app. Supported confirm notifications expose lock-screen approve/deny; arbitrary choices and text open the app.
Mac notchQuestions for the signed-in account, including keyboard answering, and Partner customers' questions once they connect the Mac from their phone.
SlackButtons, choice menus and text modals when the integration and recipient are configured.
BrowserDecision-page fallback and browser notifications when permission is enabled.

Delivery follows your settings and presence. push_first uses presence, push_only requests push every time, notify_only keeps decisions in the current client, and terminal_only avoids push. A successful API call alone does not prove a device displayed the request.

Team setup: send a risky step to a lead

On Pushary for Teams, each person runs the same setup and connects their own agents. Their agents' questions go to them. An owner or admin can send a chosen step to someone else with a routing rule in Policies, under Approval routing:

FieldExample
Tool patternBash(git push:*)
Repositoryinfra, or all repositories
Route toThe Admins role, or one person

Claude Code, Codex, Cursor and Gemini CLI shell calls all match a Bash(...) rule, so one rule covers a team that runs several agents. Whoever answers in the phone app, Mac app or dashboard is recorded by name, next to whose agent asked.

What a routing rule doesn't do:

  • It doesn't lock the terminal. If nobody answers in time, the person running the agent can still approve at the agent's own prompt, and that yes isn't recorded.
  • The phone can only deny risky steps such as a force push or rm -r. Approve those in the dashboard.
  • It needs a second person. Routing starts once someone else joins the workspace.

Team is $59 a month for 5 people, plus $12 for each extra person. How a routing rule works, step by step.

Partner setup: your own customers

Personal pairing connects you, the operator. Partner integrations enroll each of your application's customers through a scoped connection link and address decisions using your stable customer ID. Customers use the mobile enrollment flow; do not route their approvals to your personal Mac inbox or share an operator API key.

Start with the Partner integration guide, then a Mastra agent example, AI SDK example or LangGraph example. Tools choose confirm, choice or text. Approving an action and supplying an answer are different operations; a text answer saying “yes” is not permission to execute another tool.

Partner plans start at $99 a month. Your customers install the Pushary app and need no Pushary account or plan of their own. Partner plans · Try the browser demo

Manual fallback

For a client that needs manual MCP configuration, obtain your key in the Pushary dashboard and configure:

json
{  "mcpServers": {    "pushary": {      "url": "https://pushary.com/api/mcp/mcp",      "headers": {        "Authorization": "Bearer YOUR_API_KEY"      }    }  }}

Keep the key private. Install the skill with npx skills add Pushary/pushary-skill if the client supports skills.sh. Manual MCP provides cooperative questions and notifications; enforced approvals require the supported host hooks/runtime integration.

Claude Code users can alternatively install this repository as a plugin:

/plugin marketplace add Pushary/pushary-skill/plugin install pushary

The plugin carries the pushary and pushary-human-in-the-loop skills. The Hermes, ChatGPT and Cowork skills in skills/ are for those hosts.

The plugin's MCP server sends PUSHARY_API_KEY from the environment Claude Code starts in. Claude Code opened from the Dock, an IDE or another app does not read your shell profile, so the Pushary tools are missing and /mcp shows "Server rejected the configured Authorization header (HTTP 401)". Put the key in the env block of ~/.claude/settings.json, which Claude Code reads however it is started:

json
{  "env": {    "PUSHARY_API_KEY": "YOUR_API_KEY"  }}

Then restart Claude Code.

Pick one installation path: installing the plugin on top of CLI-installed Claude hooks can run hooks twice. Use npx -y pushary@latest clean before switching paths.

The plugin starts each hook through npx, which is too slow for the hook that streams live reply previews to your phone, so the plugin leaves that hook out. For live previews, install with npx -y pushary@latest setup instead. Setup installs every hook as a local command.

The plugin also runs the hook through npx before every MCP, WebFetch, Task and Agent call, so the kill switch and standing denies cover those tools. That adds about 2 seconds to each of those calls when npx has the package cached, and about 8 seconds when it does not, which happens on the first call after each CLI release. The WebFetch, Task and Agent hook may run for up to 30 seconds so that a cold start still finishes the check. Setup's local hooks do not pay the npx start.


Setup: Lovable

Lovable is a hosted app builder, so there is no local install step (npx skills add does not apply). You connect the MCP server in Lovable's UI, then paste the skill into Lovable's Knowledge so the agent uses it on its own.

1. Connect the MCP server. In Lovable, go to Settings -> Connectors -> Personal connectors (paid Lovable plans), click New MCP server, set the URL to https://pushary.com/api/mcp/mcp, choose Bearer token, and paste your API key (pk_xxx.xxx).

2. Add the skill to Knowledge. Lovable cannot install skills via npx, so paste the skill guidance into Settings -> Knowledge. Use the condensed SKILL-LITE.md as the source. This makes the Lovable agent notify you when a build finishes and ask before risky changes, without you prompting each time.

Lovable gets notifications and questions only (no enforced gate, since it has no permission hook). Full walkthrough: Lovable guide.


Setup: Claude Chat and Cowork

For Claude Chat or Claude Code, use Pushary for Claude. In Chat, open Customize > Plugins > Add > Add marketplace, add https://github.com/Pushary/claude-plugin, and install Pushary for Claude. In Claude Code, run /plugin marketplace add Pushary/claude-plugin, then /plugin install pushary@pushary-claude-plugin.

For Cowork, the existing Pushary for Cowork plugin remains available. Add https://github.com/Pushary/cowork-plugin as the marketplace and install Pushary for Cowork. Cowork also supports standing instructions under Settings > Cowork. Its existing plugin, marketplace, and pushary-cowork skill identifiers are preserved.

Both bundles use the public OAuth connector and the same shared skill. Connect Pushary from the plugin's Connectors tab in Chat or Cowork, or /mcp in Claude Code, and sign in with the same Pushary account used by your phone or Mac. No CLI or API key is needed for either bundle.

If the connector is missing, add https://pushary.com/api/mcp/mcp under Customize > Connectors > Add custom connector and leave the OAuth Client ID and Secret fields empty. Enable Pushary in the conversation, ask one harmless test question, and verify your answer returns to Claude.

These bundles provide questions and notifications and install no native permission hooks. For Claude Code approval hooks, use the Claude Code setup above. Choose one installation path per app to avoid duplicate Pushary connectors. Full Claude guide.


Tools

The skill guides these MCP tools:

ToolDescription
send_notificationSend a push notification with optional rich context (file changes, errors, next steps)
ask_userAsk the user a question via push - yes/no, multiple choice, or free text
wait_for_answerLong-poll for the user's response to a question
cancel_questionCancel a pending question that's no longer relevant
list_sessionsRead-only view of your live agent sessions and pending questions
propose_scopeRatify the boundary of a run: file globs, enforced on supported hosts, or a recorded promise when the run changes no files

Full tool documentation with parameters, examples, and usage guidelines is in skills/pushary/SKILL.md.

Human-in-the-Loop

The agent can ask you decisions via push and wait for your answer:

Agent: "Which auth strategy should I use?"  Options: JWT tokens / Session cookies / OAuth2 + PKCE  -> push to your phone
You: tap "JWT tokens"
Agent: proceeds with JWT implementation

Supports three question types:

  • Confirm - yes/no binary decisions
  • Select - pick from 2-6 options
  • Input - free text response

Read answered, status and handoffAction (or nextAction) from the tool result. Poll only as directed; cancel a live question before handing it to another surface and honor any winning answer. Expiry and waits follow server policy. Silence is not approval, and a late reply cannot restart an ended agent turn.

Packages

PackageRegistryDescription
pusharynpmThe Pushary CLI: setup, permission hooks and doctor. Also published as @pushary/agent-hooks, the same package
hermes-plugin-pusharyPyPIHermes Agent native plugin

Related repositories

Compatible Agents

Works with any agent that supports skills.sh or the Model Context Protocol:

Publishing the MCP registry entry

server.json is not published by merging it. The MCP registry serves one record per version, so an edit here reaches nobody until the new version is pushed to the registry, and the old text keeps being what every agent reads.

Everyday path: bump version in server.json, merge to main, then sync the public skill mirror. Its release workflow publishes the new registry entry.

The release workflow publishes from the public Pushary repository so GitHub OIDC can prove ownership of the io.github.Pushary/pushary namespace. Verify the workflow and registry result after release.

Manual fallback, from this directory:

curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher./mcp-publisher login github./mcp-publisher publish

Check what the registry actually serves, which is the only number that matters:

curl -s "https://registry.modelcontextprotocol.io/v0/servers?search=pushary"

That endpoint returns every version, oldest first. Read the entry whose _meta."io.modelcontextprotocol.registry/official".isLatest is true; the first row in the list is the oldest record, not the live one.

Contributing

Contributions are welcome! Please read the contributing guide before submitting a pull request.

Security

If you discover a security vulnerability, please report it responsibly. See SECURITY.md for details.

Funding

This project is fully funded by RalphNex OU, an Estonian software development agency.

License

MIT - Copyright (c) 2025 RalphNex OU

来源:README.md,提交 5edada1

工具

6

schedule_reminder

Schedule a Personal Reminder

Schedule, list, retrieve or cancel a personal Pushary reminder for the authenticated user. Scheduled reminders can arrive after the agent exits. One-time only; up to 30 days away, 25 pending per user/site. Scheduling requires body and either inMinutes or at with an explicit UTC offset. requestId identifies one schedule across retries. reminderId retrieves its outcome; no arguments lists pending reminders; cancelReminderId cancels a pending reminder. Returns the scheduled time, state and any delivery warning. Delivery respects stop/mute and active membership. Does not schedule agent work or customer campaigns. API reference: https://pushary.com/docs/agents/reference/tools#schedule_reminder

输入参数atenvbodytitleagentNameinMinutesmachineIdrequestIdsessionIdreminderIdcancelReminderId

send_notification

Send Push Notification

Send a notification to connected devices for a requested update or a meaningful unattended result, such as a finished task. Delivery follows the account policy and optional recipient filters. context adds a detail page. context.askQuestion is kept for older clients; ask questions with ask_user. Returns web/mobile delivery counts and a warning when no delivery channel is connected. Sends real notifications. API reference: https://pushary.com/docs/agents/reference/tools#send_notification

输入参数envurlbody必填tagstitle必填contexticonUrlimageUrlagentNamemachineIdsessionIdexternalIds另有 1 个

ask_user

Ask User a Question

Request an unresolved decision or missing input from the user through Pushary. Supports confirm, select and input questions. Delivery and waiting follow the account policy; a call waits at most 55 seconds and may return immediately. Returns the question state, answer when available, delivery information and handoff fields. answerUrl is optional. A pending question remains answerable after a poll ends. Sends a real question; it does not grant permission for other actions.

输入参数envtagstypewaitactionintentblockercontextoptionsrepoKeyquestion必填toolName另有 21 个

propose_scope

Propose Run Scope

Request agreement on an unresolved or user-requested boundary for this session. Sends a real scope question and returns ratified, answered, contract and enforcement information. Only supported hooks can enforce file paths on path-bearing tool calls; promises are recorded but not enforced. Empty enforces means no automatic boundary checking. A contract never overrides host permissions or authorizes a separate action. The call waits at most 55 seconds; a pending proposal remains answerable after the call returns.

输入参数doneWhen必填promisesagentNamemachineIdsessionId必填timeoutMsallowedPathsoffLimitsPaths

wait_for_answer

Wait for User Answer

Read the answer or current state of an existing Pushary question by its correlationId. Waits up to timeoutMs, capped at 55 seconds. Returns answered, the answer when available, status and handoff information. Only pending is a live unanswered question; cancelled, expired, missing and unavailable are terminal states. Does not send another question.

输入参数timeoutMscorrelationId必填

cancel_question

Cancel Pending Question

Retract a pending question that is no longer needed or is moving to the current client. Returns cancelled:true only when a pending question was removed. False may mean it was already answered, expired, missing or unavailable. An unavailable state includes handoffAction:stop because cancellation could not safely inspect or fence the question. Does not retract an answer already recorded.

输入参数handoffcorrelationId必填

版本历史

6
  1. v1.5.2最新Oct 25, 2026
  2. v1.5.1Oct 25, 2026
  3. v1.5.0Oct 9, 2026
  4. v1.4.2Oct 4, 2026
  5. v1.4.1Sep 26, 2026
  6. v1.4.0Sep 16, 2026

评分

已满足适用检查项的 100%

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

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

其他 Human 集成