原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Approval Gate MCP

作者:itcustomsolution版本 0.4.1i★ –i在你的电脑上运行
注册名称io.github.itcustomsolution/approval-gate-mcp

安装

概览

作者提供的说明(英文原文)

Fail-closed human approval gates for AI agent actions. Default-deny, TTL expiry, audit log.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "approval-gate": {
      "command": "npx",
      "args": [
        "-y",
        "@itcustomsolution/approval-gate-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add approval-gate -- npx -y @itcustomsolution/approval-gate-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "approval-gate": {
      "command": "npx",
      "args": [
        "-y",
        "@itcustomsolution/approval-gate-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "approval-gate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@itcustomsolution/approval-gate-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 itcustomsolution 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32489 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32489 个服务器的 83% 更新
  • 基础检查结果等于或优于此分类中其他 32489 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Approval Gate MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.4.1)于7天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Whisper

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

Whisper

作者:whisper-sec

One routable IPv6 per AI agent, verifiable from the DNS root. Keyless tools need no signup.

电脑或云端今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

approval-gate-mcp

An MCP server and library for requesting a human decision before a consequential agent action. Approvals expire, are single-use and can bind an operation to an exact payload.

The trusted executor must enforce the approval. Installing an MCP server does not prevent an agent from using another tool, and the gate is not a security boundary against processes with the same OS-user privileges. Read the trusted execution boundary and threat model before integration.

Release and verification

As of 31 October 2026, v0.4.1 on GitHub and 0.4.1 on npm are published. Source changes, GitHub releases and registry publication are separate states; these links identify the released version.

Requires Node.js 22+. See the MIT license, changelog and test suite. The 0.4.1 release notes describe the shipped changes. Tests apply to the revision and environment where they ran; they do not establish production certification. The quickstart below pins the published package; run npm test for your own checkout.

Why

Sending, deleting, publishing, spending and deploying need a decision tied to the actual operation. A general instruction to "ask first" leaves the executor to interpret an informal conversation. This project records a specific request, a human decision, an expiry and a single-use consume step that trusted execution code can enforce.

Use it when you control that execution boundary. If an agent can bypass it through a shell, another tool or direct file access, adding this server alone cannot enforce approval.

30-second quickstart

claude mcp add approval-gate -- npx -y @itcustomsolution/approval-gate-mcp@0.4.1

Claude Desktop (claude_desktop_config.json):

{

"mcpServers": { "approval-gate": { "command": "npx", "args": ["-y", "@itcustomsolution/approval-gate-mcp@0.4.1"] } } }

Approve or deny from your terminal with npx -p @itcustomsolution/approval-gate-mcp@0.4.1 approval-gate list.

Example

  1. Your agent wants to email a customer. It calls request_approval with action: "send email to alice@example.com, subject: Invoice 1042" and gets back id a1b2c3d4e5f6.
  2. It calls wait_for_approval. Nothing is sent.
  3. In your own terminal: approval-gate list, then approval-gate approve a1b2c3d4e5f6 looks right.
  4. The agent can observe approved, but that status does not authorize sending. The trusted executor calls executeApproved for that id and the exact action (plus operation/payload binding, if present) immediately around its send function. See Trusted execution boundary. It must not accept an agent-supplied or MCP JSON result as proof. Denial, timeout or expiry prevents a successful consume.
  5. ~/.approval-gate/audit.jsonl now has the request and your decision.

Design principles

  • Fail closed. The only thing that authorizes an action is a successful consume: consume_approval returning ok: true (once, for the exact approved action), or executeApproved in trusted code. Pending, approved-but-not-consumed, denied, expired, timeout, error: none of those is an authorization; all of them mean no.
  • The gate never executes anything. It records intent and decisions. Your agent asks first, then acts only on approval. Separation of decision and execution keeps the gate simple and auditable.
  • Decisions are out-of-band. A human approves or denies with a CLI in their own terminal, not inside the agent's context. The MCP tools cannot approve. The CLI asks for an interactive terminal and a re-typed confirmation, which is a speed bump, not authentication: anything running as your OS user (a shell, a PTY, or file access) can still get past it. See Threat model.
  • Only a consume authorizes. status: "approved" is informational. Status responses carry authorizesExecution: false and an effectiveStatus (approved_unconsumed, approved_expired, consumed, revoked, ...). Trusted code that performs the side effect should call executeApproved (see Trusted execution boundary), which consumes the approval itself. A consume result that arrived over MCP, from a file or from an agent is never proof of approval, however well-formed.
  • Everything is audited. Every request, decision, expiry, and consumption is appended to ~/.approval-gate/audit.jsonl (an append-only convention, not a tamper-proof log).
  • Requests expire. Default TTL is 1 hour; a stale approval is not an approval.
  • Approvals are single-use and bound to the action. consume_approval succeeds once, only for the exact action text that was approved (and, if the request carried them, the same operation name and the same canonical JSON payload), and only if the clock read after all of its persistence is still at or before the request's expiry.

Install

Requires Node.js 22 or later (Node 18 and 20 are past end of life; the MCP SDK's @hono/node-server dependency needs Node 20+).

From npm:

npm install -g @itcustomsolution/approval-gate-mcp@0.4.1   # installs `approval-gate` and `approval-gate-mcp`

From source:

git clone --branch v0.4.1 --depth 1 https://github.com/itcustomsolution/approval-gate-mcp.git

cd approval-gate-mcp npm ci --ignore-scripts npm test # builds the source and runs the tests node dist/cli.js list

Wire it into an MCP client

Claude Code:

claude mcp add approval-gate -- node /path/to/approval-gate-mcp/dist/index.js

Or in any MCP client config:

{

"mcpServers": { "approval-gate": { "command": "node", "args": ["/path/to/approval-gate-mcp/dist/index.js"] } } }

Tools

ToolPurpose
request_approvalRegister an intended action (action, reason, optional ttl_seconds, optional operation and JSON payload to bind). Returns an id (and payloadDigest).
check_approvalPoll a request's status: pending / approved / denied / expired.
wait_for_approvalBlock up to timeout_seconds for a decision. Timeout = still pending = not approved.
list_pendingList requests awaiting a human, oldest first, one page at a time (limit 1-100, default 50; pass nextCursor back as cursor).
consume_approvalCall right before acting. Succeeds once, only if approved, unexpired, and action (plus operation/payload, if the request had them) matches exactly. Anything else: do not proceed. Its JSON result is not a transferable credential.
decide_approvalDeny a pending request, or revoke an approved one that has not been consumed. Approving through MCP is refused by default, so an agent cannot approve its own request; approvals come from the CLI. Operators can opt in with APPROVAL_GATE_ALLOW_MCP_APPROVE=1 (not recommended).

The human side

approval-gate list                # pending requests

approval-gate show a1b2c3d4e5f6 approval-gate approve a1b2c3d4e5f6 looks right, ship it approval-gate deny a1b2c3d4e5f6 wrong recipient approval-gate revoke a1b2c3d4e5f6 changed my mind # approved but not yet consumed approval-gate list approved --limit 20 --after a1b2c3d4e5f6 # page through history approval-gate archive --older-than-days 30 # retention: move finished requests aside

show and the approve confirmation print the operation and the full canonical payload (escaped) when a request binds one: that is exactly what an executor will be allowed to run.

Suggested agent policy

Put something like this in your agent's system prompt or policy file:

Before any outbound or destructive action (send, publish, delete, purchase, deploy),

call request_approval and then wait_for_approval. When it returns approved, call

consume_approval with the same id and exact action text, and proceed only if it returns

ok: true. Never call decide_approval for your own requests.

Trusted execution boundary

When your own code (not the agent) performs the side effect, let the gate consume the approval at that boundary and run exactly the approved payload:

import { executeApproved } from "@itcustomsolution/approval-gate-mcp/dist/store.js";

// id comes from the agent; the action, operation and payload are what your code is about to run. await executeApproved(id, { action, operation: "smtp.send", payload: { to, subject, body } }, async (ctx) => { ctx.assertActive(); // re-check expiry immediately before the side effect await smtp.send(ctx.payload); // ctx.payload is a frozen copy of what the human approved });

executeApproved accepts no receipt. It performs the single-use consume itself (binding to the action text, and to the operation and payload if the request carried them), writes an execution_started audit line (fsync), checks expiry again, and only then calls your function. If the start record cannot be written, or the approval expired during that write, nothing runs. Call ctx.assertActive() again after any await that precedes the side effect.

assertConsumed(result, id, action, binding?) remains for code that calls consumeApproval itself: it accepts only a grant object issued by consumeApproval in the same process, once, for the same id/action/binding, before expiry. A copy, a JSON round trip (an MCP response, a file, an agent message) or a hand-built object is always refused. 0.3.0 accepted any well-shaped object; see the changelog.

Crash and replay semantics. Consumption is at-most-once: once .used is claimed the approval is spent, whatever happens next, including refusals after the claim (expired during persistence, audit failure). A crash after execution_started and before execution_finished means the outcome is unknown: inspect the external system and, if needed, create and approve a new request. Nothing is retried automatically, and there is no atomic guarantee between this gate's files and the external system your callback touches. Details: docs/authorization-states.md.

Limits

LimitValue
action, reason, decision reason8192 UTF-8 bytes each
requested_by256 bytes (self-reported, never authenticated)
operation1-128 of A-Z a-z 0-9 . _ : / -
payloadJSON only; 32 KiB canonical (RFC 8785), depth 32, 10000 values; no "__proto__" key
TTLMCP: integer 10 s to 7 days; library: any finite number up to 7 days (zero or negative gives an already-expired request)
Requests awaiting a decisionAPPROVAL_GATE_MAX_PENDING, default 100, 1 to 10000. Concurrent creators can overshoot by at most their own number. Invalid values fail closed.
List page1-100 (default 50)
State directoryNew requests are refused at 100,000 entries in requests/; listing refuses above 200,000. Reading, deciding, consuming and archive work at any size.

When the queue is full, request_approval fails with approval queue full until a human decides requests or they expire. Finished requests stay on disk until you run approval-gate archive, which moves only finished requests that were created and expired at least 8 days ago, so nothing archived can still be used. An MCP client can create and deny its own requests without a human, so it can fill requests/ up to the creation limit; that blocks new requests (an availability limit, like the queue cap), never a human's decisions. Each listing page reads every request file, so listing slows down as history grows until you archive. Paginated listing streams directory entries

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx