Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Human approval gate for AI agents: risk-scored requests that only a person can approve
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
APPROVAL_QUEUE_STATE_DIR, APPROVAL_QUEUE_TTL_HOURS你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"approval-queue": {
"command": "npx",
"args": [
"-y",
"@opafex/mcp-approval-queue"
],
"env": {
"APPROVAL_QUEUE_STATE_DIR": "your-value",
"APPROVAL_QUEUE_TTL_HOURS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add approval-queue --env APPROVAL_QUEUE_STATE_DIR=your-value --env APPROVAL_QUEUE_TTL_HOURS=your-value -- npx -y @opafex/mcp-approval-queue运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"approval-queue": {
"command": "npx",
"args": [
"-y",
"@opafex/mcp-approval-queue"
],
"env": {
"APPROVAL_QUEUE_STATE_DIR": "your-value",
"APPROVAL_QUEUE_TTL_HOURS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"approval-queue": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@opafex/mcp-approval-queue"
],
"env": {
"APPROVAL_QUEUE_STATE_DIR": "your-value",
"APPROVAL_QUEUE_TTL_HOURS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
APPROVAL_QUEUE_STATE_DIR envAPPROVAL_QUEUE_TTL_HOURS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 opafex 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.0)于13天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, Recta
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Cheaper cross-chain stablecoin routes for AI agents; 5 % of the verified saving, nothing if none.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A human-in-the-loop approval gate for AI agents, as an MCP server.
The agent calls request_approval before doing something risky. The action is risk-scored, and unless a rule you set covers it, you decide — in a form your MCP client shows you (MCP elicitation), or from a terminal. The agent gets a proceed: true|false it can act on.
The agent can ask; only a human can approve. There is no approve, reject or add-rule tool for the model to call. An approval gate the gated agent can open is not a gate.
Requires Node.js 20+.
Add to your client's MCP config (for Claude Code, .mcp.json in your project root):
{
"mcpServers": { "approval-queue": { "command": "npx", "args": ["-y", "@opafex/mcp-approval-queue"] } } }
Then tell the agent when to use it, for example in your project instructions:
Before deleting data, sending email, spending money or deploying, call
request_approvaland only continue ifproceedis true.
bulk_delete_users is a delete wherever the word sits — plus params.estimatedCost. The agent may pass a category, but it can only raise the score, never lower it.check_status:bash npx @opafex/mcp-approval-queue pending npx @opafex/mcp-approval-queue approve appr_3f9c1a2b4d5e --reason "checked the recipient list" npx @opafex/mcp-approval-queue reject appr_3f9c1a2b4d5e
APPROVAL_QUEUE_TTL_HOURS) and can no longer be approved.After five human approvals of the same action with no rejection, the next form suggests *always approve*. Auto-approvals do not count towards that — the system agreeing with itself is not evidence.
| Tool | Description |
|---|---|
request_approval | Submit an action (action, optional params, context, category, wait). Returns status, proceed, risk, and what to do next. |
check_status | Re-read a request by id. |
list_pending | Requests still waiting for a human, newest first. |
list_rules | The auto-approval rules a human has set (read-only). |
status is one of pending, approved, rejected, auto_approved, expired. Proceed only when proceed is true.
| URI | Contents |
|---|---|
approval://stats | Counts by status and the average time a human took to decide |
approval://rules | Current auto-approval rules |
approval://history | Last 50 decisions |
mcp-approval-queue start the MCP server (stdio)
mcp-approval-queue pending list requests waiting for a decision mcp-approval-queue show one request in full mcp-approval-queue approve [--always] [--reason ] mcp-approval-queue reject [--reason ] mcp-approval-queue rules list rules mcp-approval-queue rules add --max-risk [--description ] mcp-approval-queue rules remove mcp-approval-queue history [limit]
Patterns are globs: * matches anything, ? one character, case-insensitive. A rule can never cover high or critical risk.
| Variable | Default | Description |
|---|---|---|
APPROVAL_QUEUE_STATE_DIR | ~/.opafex/approval-queue | Where state.json (requests, rules, history) lives. The server and the CLI must point at the same directory. |
APPROVAL_QUEUE_TTL_HOURS | 24 | Hours before an undecided request expires |
State is one JSON file, written atomically under a lock file, so the server and the CLI can run at the same time.
Be clear about this before relying on it:
state.json are a human channel only if the agent cannot run the command or write the file. Coding agents such as Claude Code usually can. In that setup rely on the elicitation channel, and deny the agent the CLI and the state directory in your client's permission settings — for Claude Code, deny Bash(npx @opafex/mcp-approval-queue approve:*), Bash(npx @opafex/mcp-approval-queue rules:*), and edits under ~/.opafex/.request_approval, and has to honour proceed: false. This is a protocol for a cooperative agent and a record of what was allowed, not a sandbox. Pair it with your client's own tool permissions for anything that must be enforced.import { ApprovalQueueService, StateStore, assessRisk } from '@opafex/mcp-approval-queue';
const queue = new ApprovalQueueService(new StateStore('/var/lib/my-app/approvals')); const { request } = await queue.requestApproval({ action: 'refund_order', params: { estimatedCost: 40 } });
npm install
npm run build npm test
MIT — see LICENSE.