pendnt

dev.pendnt由 pendnt.dev 发布官方发布者v0.2.0更新于 Oct 24, 2026

Human approvals, notifications, inbound webhooks, wake-ups for headless agents. Free trial: /try

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

概览

AI 生成的概览

远程 MCP 服务器,为无人值守的智能体提供持久的人工审批、通知、入站 webhook、定时唤醒和一个小型键值存储。

可以做什么
发起并查询人工审批请求,让远程操作者代替终端回答 Claude Code 的权限提示。向已配置的渠道发送通知和运行结束提醒。创建和列出入站 webhook 端点,并等待事件到达。为无人值守运行安排、列出和取消唤醒。读写和删除小型键值条目,并查询当前身份。
适用场景
适合无人值守运行智能体的场景,例如用 claude -p 配合 cron 或在 CI 中运行,此时工具调用提示会卡在无人查看的终端上。它允许操作者从手机或收件箱批准或拒绝,让运行继续,并可在运行结束时发出提醒。
运行要求
通过 streamable HTTP 连接 api.pendnt.dev 远程端点,使用 Authorization 请求头中的 bearer API 密钥(aio_ 前缀)认证;无需账号即可获取免费试用密钥。Claude Code 插件还会读取 PENDNT_API_KEY、可选的 PENDNT_URL 和 PENDNT_APPROVAL_TIMEOUT_S,其钩子需要 Node 18 以上。使用权限提示路径时需把 MCP_TOOL_TIMEOUT 调到高于服务端等待时间。
安装前请注意
API 密钥是放在 Authorization 请求头中的机密,不要写入共享配置。审批请求会把工具调用的摘要发送到 pendnt 的服务器,通知也会经其转发。PermissionRequest 钩子采用失败即拒绝策略,缺少密钥、网络错误或超时都会拒绝而非放行。Notification 钩子默认转发所有类型的通知,除非收窄匹配范围。权限提示工具会让调用保持打开数分钟,且无法覆盖被标记为需要用户交互的工具。

安装

在 SourceWeft 中

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

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

交给智能体安装

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

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

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

其他 MCP 客户端

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

{
  "mcpServers": {
    "pendnt": {
      "type": "http",
      "url": "https://api.pendnt.dev/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

pendnt (Claude Code plugin)

Try it in 10 seconds — no account: curl https://api.pendnt.dev/try?plain=1 returns a 72-hour trial key (20 requests) with a quickstart.

Wires a Claude Code session — interactive or headless (claude -p) — up to a pendnt workspace: durable human approvals, notifications, and a "run finished" ping, without the agent needing a terminal.

"pendnt" is a placeholder product name. It's kept in exactly one place — PRODUCT_NAME in lib/config.mjs — plus the name fields in plugin.json, marketplace.json and .mcp.json, and the matching MCP server name registered in /app/src/routes/mcp.ts. Rename all of those together and it's renamed everywhere that matters.

This plugin ships two independent ways to answer permission prompts headlessly — pick one (or both; --permission-prompt-tool takes priority when both are wired up, see §1a below):

  1. A PermissionRequest hook (hooks/permission-request.mjs) — works with plain claude -p, no extra flags. Runs automatically before every tool-use prompt.
  2. The permission_prompt MCP tool, via --permission-prompt-tool mcp__pendnt__permission_prompt — Claude Code's own dedicated mechanism for headless permission prompts (see INTEGRATIONS.md §1a).

Plus a Notification hook and a Stop hook that both relay to POST /v1/notify — see What's included below.

Install

Local marketplace (for trying this out before publishing anywhere)

This repo doubles as its own local marketplace — .claude-plugin/marketplace.json lists this plugin with source: "./", pointing at the same directory plugin.json lives in. From Claude Code:

/plugin marketplace add Pendnt/pendnt-plugin/plugin install pendnt@pendnt

(or non-interactively: claude plugin marketplace add Pendnt/pendnt-plugin && claude plugin install pendnt@pendnt)

To publish for real later, split marketplace.json out into its own repo with source pointing at this plugin's repo (see INTEGRATIONS.md §1d for the marketplace manifest shape and github/git-subdir/npm/archive source types), then claude plugin marketplace add <owner>/<repo> from anywhere.

Env vars

VariableRequiredDefaultMeaning
PENDNT_API_KEYyes—Authorization: Bearer <key> for every call to the API (aio_..., from POST /dev/bootstrap locally, or your real workspace's API key in production). Without it, the PermissionRequest/Notification/Stop hooks all fail closed (deny / no-op) rather than erroring the session.
PENDNT_URLnohttps://api.pendnt.devBase URL of the pendnt REST API — not including /mcp or /v1. Point this at http://localhost:8787 for local dev against wrangler dev (see below).
PENDNT_APPROVAL_TIMEOUT_Sno600 (10 min)Total wall-clock budget the PermissionRequest hook spends re-polling before it gives up and denies. Each individual poll is capped server-side at 25s (wait_s), so the hook loops GET /v1/requests/:id?wait_s=25 until this budget runs out.

Set them in your shell, or in .claude/settings.json under env — see settings.json docs. .mcp.json's ${PENDNT_URL:-...} / ${PENDNT_API_KEY} syntax is Claude Code's own env-var expansion for .mcp.json values (headers and URLs) — see INTEGRATIONS.md §1e.

What's included

  • .mcp.json — registers the pendnt remote MCP server (${PENDNT_URL:-https://api.pendnt.dev}/mcp, Authorization: Bearer ${PENDNT_API_KEY}) so all 14 tools (request_approval, check_request, permission_prompt, notify, create_endpoint, list_endpoints, wait_for_event, schedule_wakeup, list_wakeups, cancel_wakeup, kv_get, kv_set, kv_delete, whoami) are available to the model directly, under mcp__pendnt__<tool> — except permission_prompt, which Claude Code removes from its own visible tool list once named by --permission-prompt-tool (see below), since it's meant to be called by the CLI itself, not by the model.
  • hooks/hooks.json — wires three hooks (shape matches settings.json's hooks key, see INTEGRATIONS.md §1d):
    • PermissionRequest → hooks/permission-request.mjs. Fires before every tool-use prompt. POSTs a summary of the tool call to POST /v1/requests (kind: "approval", wait_s: 25, timeout_s: $PENDNT_APPROVAL_TIMEOUT_S), then re-polls GET /v1/requests/:id?wait_s=25 until it's answered or the total PENDNT_APPROVAL_TIMEOUT_S budget elapses. Prints exactly one JSON object per INTEGRATIONS.md §1b's PermissionRequest contract:
      json
      { "hookSpecificOutput": { "hookEventName": "PermissionRequest", "decision": { "behavior": "allow", "updatedInput": {} } } }
      or {"behavior": "deny", "message": "..."}. Fails closed on every error path (missing API key, network failure, operator denies, request expires, timeout) — the only way to get allow is an explicit approval. An operator using the answer page's free-text box (always shown, even for kind: "approval" requests) is treated as approval only if the text starts with yes/y/allow/approve/ok — anything else denies with that text as the reason.
    • Notification → hooks/notify.mjs. Relays notification_type/message to POST /v1/notify. Cannot block Claude Code (per the hook's own semantics) and never tries to — always exits 0.
    • Stop → hooks/stop.mjs. Relays a "run finished" message to POST /v1/notify at the end of every turn. Never returns {"decision":"block"} — it only notifies, it doesn't keep the agent going.
  • lib/ — the three hook scripts' shared bits: config.mjs (env vars + the PRODUCT_NAME constant), client.mjs (thin fetch wrappers for /v1/requests and /v1/notify), stdin.mjs (hook stdin JSON parsing). No npm dependencies — plain Node 18+ (fetch, AbortController) is enough.

The --permission-prompt-tool path (§1a)

Instead of (or in addition to — Claude Code prefers --permission-prompt-tool over hooks when both apply) the PermissionRequest hook, you can point Claude Code's dedicated permission-prompt mechanism directly at the permission_prompt MCP tool this plugin's .mcp.json registers — the one tool in this server purpose-built for this flag (see /app/README.md's permission_prompt section for the full contract):

bash
export PENDNT_API_KEY=aio_...export PENDNT_URL=https://api.pendnt.dev   # or http://localhost:8787 for local devexport MCP_TOOL_TIMEOUT=600000              # ms — must exceed PERMISSION_PROMPT_WAIT_S (default 540s)
claude -p --permission-prompt-tool mcp__pendnt__permission_prompt "deploy to prod"

Three things worth knowing before you rely on this path:

  • Claude Code blocks the first turn until the pendnt MCP server connects, capped by MCP_TIMEOUT (default 30s, env var, milliseconds) — bump it if your network is slow: export MCP_TIMEOUT=60000 (from INTEGRATIONS.md §1a).
  • As of CLI ≥2.1.199, an allow from a --permission-prompt-tool is converted to deny for any MCP tool call flagged _meta["anthropic/requiresUserInteraction"] — this prompt tool can't rubber-stamp those regardless of what the operator answers (also from INTEGRATIONS.md §1a).
  • permission_prompt holds the MCP tool call open server-side for up to PERMISSION_PROMPT_WAIT_S (env var on /app, default 540s = 9 min) waiting for the operator, unlike every other tool's ≤25s wait_s. Claude Code's own MCP_TOOL_TIMEOUT (its per-tool-call timeout, ms, default 30000) must be set higher than that or the CLI gives up first — hence export MCP_TOOL_TIMEOUT=600000 above.

Unlike request_approval, permission_prompt does return Claude Code's exact {behavior, updatedInput, updatedPermissions, interrupt} / {behavior:"deny", message, interrupt} contract natively — an allow echoes the original input back as updatedInput, a deny (or an unanswered timeout) carries a human-readable message. That's the same translation the PermissionRequest hook below does by hand for its own hook-shaped contract; permission_prompt does it as the MCP tool result directly, which is what --permission-prompt-tool actually reads.

Headless example

bash
export PENDNT_API_KEY=aio_...export PENDNT_URL=https://api.pendnt.devexport MCP_TOOL_TIMEOUT=600000
claude -p --permission-prompt-tool mcp__pendnt__permission_prompt \  "review open PRs and merge the ones that pass CI"

Or, with the PermissionRequest hook doing the work instead (no extra flag needed once the plugin is installed):

bash
export PENDNT_API_KEY=aio_...export PENDNT_URL=https://api.pendnt.dev
claude -p "review open PRs and merge the ones that pass CI"

Either way, every tool-use prompt now creates a durable approval request instead of blocking on a terminal that doesn't exist — check your configured channels (email/web inbox — see /app/README.md's "Channels" section for what's actually implemented today), answer from your phone, and the agent resumes.

Running the hook locally against wrangler dev

From /app:

bash
cd ../appnpm installnpm run db:migrate:localnpm run dev   # http://localhost:8787

In another terminal, bootstrap a workspace + API key (see /app/README.md) and point the plugin's env vars at it:

bash
BOOT=$(curl -s -X POST http://localhost:8787/dev/bootstrap -d '{}')export PENDNT_API_KEY=$(echo "$BOOT" | jq -r .api_key)export PENDNT_URL=http://localhost:8787

Then either run a hook script directly, feeding it the JSON a real Claude Code hook invocation would send on stdin (useful for iterating on the hook without a full Claude Code session):

bash
echo '{"session_id":"s1","cwd":"'"$PWD"'","tool_name":"Bash","tool_use_id":"toolu_1","tool_input":{"command":"deploy prod"}}' \  | PENDNT_APPROVAL_TIMEOUT_S=60 node hooks/permission-request.mjs

...or install the plugin locally (/plugin marketplace add Pendnt/pendnt-plugin from Claude Code, see Install) and drive a real session — with PENDNT_URL/PENDNT_API_KEY exported in the shell Claude Code runs in, every tool-use prompt round-trips through your local wrangler dev instance. Answer the request the same way /app/README.md's curl walkthrough does: compute the HMAC signature yourself (it's a pure function of the request id and SIGNING_SECRET) and POST /a/<id>/<sig>, or watch the log delivery channel's console output from wrangler dev for the answer link once a real channel is wired up.

Caveats

  • No npm dependencies by design (fetch/AbortController only) — every hook script runs under plain node hooks/*.mjs, no npm install step inside the plugin itself.
  • The PermissionRequest hook's fail-closed defaults (missing key, network error, timeout → deny) are a deliberate safety choice, not a limitation to work around — a headless agent with nobody to ask should not proceed by default.
  • hooks/hooks.json's Notification matcher is not narrowed to specific notification_types — every notification (including ones that aren't permission-prompt-related) gets relayed. Narrow the matcher or filter inside hooks/notify.mjs if that's noisier than you want.

Guides

Practical writeups on running agents unattended, at pendnt.dev/guides: --dangerously-skip-permissions alternatives · claude -p on cron · the --permission-prompt-tool contract · hooks for unattended runs · exit codes: retry vs stay dead

来源:README.md,提交 1c5509a

工具

0
该服务器需要 API 密钥等凭据,因此 SourceWeft 无法在没有凭据的情况下读取其工具,也未收录。

版本历史

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

评分

已满足适用检查项的 85%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分