Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Fail-closed human approval gates for AI agent actions. Default-deny, TTL expiry, audit log.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"approval-gate": {
"command": "npx",
"args": [
"-y",
"@itcustomsolution/approval-gate-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add approval-gate -- npx -y @itcustomsolution/approval-gate-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"approval-gate": {
"command": "npx",
"args": [
"-y",
"@itcustomsolution/approval-gate-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"approval-gate": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@itcustomsolution/approval-gate-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub itcustomsolution ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.4.1) เข้า registry 7 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Symantec Cloud DLP AIops
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
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.
Governed Symantec Cloud DLP — 14 MCP tools, read-only with audit.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
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.
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.
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.
request_approval with action: "send email to alice@example.com, subject: Invoice 1042" and gets back id a1b2c3d4e5f6.wait_for_approval. Nothing is sent.approval-gate list, then approval-gate approve a1b2c3d4e5f6 looks right.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.~/.approval-gate/audit.jsonl now has the request and your decision.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.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.~/.approval-gate/audit.jsonl (an append-only convention, not a tamper-proof log).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.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
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"] } } }
| Tool | Purpose |
|---|---|
request_approval | Register an intended action (action, reason, optional ttl_seconds, optional operation and JSON payload to bind). Returns an id (and payloadDigest). |
check_approval | Poll a request's status: pending / approved / denied / expired. |
wait_for_approval | Block up to timeout_seconds for a decision. Timeout = still pending = not approved. |
list_pending | List requests awaiting a human, oldest first, one page at a time (limit 1-100, default 50; pass nextCursor back as cursor). |
consume_approval | Call 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_approval | Deny 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). |
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.
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_approvaland thenwait_for_approval. When it returnsapproved, call
consume_approvalwith the same id and exact action text, and proceed only if it returns
ok: true. Never calldecide_approvalfor your own requests.
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.
| Limit | Value |
|---|---|
action, reason, decision reason | 8192 UTF-8 bytes each |
requested_by | 256 bytes (self-reported, never authenticated) |
operation | 1-128 of A-Z a-z 0-9 . _ : / - |
payload | JSON only; 32 KiB canonical (RFC 8785), depth 32, 10000 values; no "__proto__" key |
| TTL | MCP: 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 decision | APPROVAL_GATE_MAX_PENDING, default 100, 1 to 10000. Concurrent creators can overshoot by at most their own number. Invalid values fail closed. |
| List page | 1-100 (default 50) |
| State directory | New 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
ตัดมาแค่ช่วงต้น อ่านต่อใน repo