Proctor

io.github.louissarvin由 GitHub 帳號 louissarvin 發布v1.0.0更新於 Oct 24, 2026

Human oversight for AI agents: block a tool call on a verified human, with on-chain proof.

已驗證STDIO僅桌面金融安全與監控

概覽

AI 產生的概覽

Proctor 會攔截 AI 代理的工具呼叫,直到一位非操作者的真人核准,並回傳可向第三方證明的鏈上憑證。

可以做什麼
  • 請求人工核准:唯一的工具 request_human_approval 會暫停代理,把決策連結交給真人。
  • 先執行政策:低於門檻的呼叫直接放行,因此大多數呼叫不會打擾任何人。
  • 回傳可驗證結果:核准、拒絕或逾時,並附上 Hedera 主題上的引用紀錄,供第三方日後查核。
  • 到期時預設拒絕,並區分「真人拒絕」與「閘道無法連線」兩種情況。
  • 設定錢包後,可選擇透過 Hedera 完成真實的 x402 付款。
適用情境
適用於代理可能執行有後果的操作、且需要操作者以外的真人簽核並留下可稽核證據的情境。適合需要可查核核准紀錄而非本機確認視窗的團隊。
執行需求
透過 npx proctor-mcp 以 stdio 在本機執行,通常搭配桌面 MCP 用戶端。需要可連線的 Proctor 閘道,由 PROCTOR_API 指定(預設指向本機位址)。付費模式另需 HEDERA_AGENT_ID、私鑰 HEDERA_AGENT_KEY 與 AGENT_ALLOWED_TOKENS;未設定時會退回操作者端點,不進行結算。
安裝前請注意
HEDERA_AGENT_KEY 是會產生花費的 ECDSA 私鑰,應僅限用於一個有資金的測試網帳戶。AGENT_ALLOWED_TOKENS 限制代理可支付的代幣。付費模式會透過第三方結算真實付款,且核准連結刻意不回傳給付款方。決策紀錄會寫入公開的 Hedera 主題。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Proctor,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Proctor MCP server

The human-in-the-loop that MCP's specification asks for and does not provide.

The MCP tools spec says, verbatim:

"For trust & safety and security, there SHOULD always be a human in the loop with the ability to deny tool invocations."

Applications SHOULD ... "Present confirmation prompts to the user for operations, to ensure a human is in the loop."

It then defines no mechanism for it. Every client builds its own confirmation dialog, locally, and nothing survives the click. Three questions an auditor asks after an incident have no answer:

QuestionWhat a local dialog can show
Was a human actually there?Nothing. A dialog proves a click, not a person
Was it someone other than the agent's operator?Nothing
Can you prove it to someone who does not trust you?Nothing

Meanwhile the direction of travel for paid MCP tools is explicitly the other way. Vercel's x402-mcp pitch is "no account, no API key, no human in the loop". That is correct for a weather API and wrong for a wire transfer.

This server is the missing mechanism.

What it does

One tool: request_human_approval.

It blocks the agent on a real person who is not the operator, fails closed on a deadline, and returns a citation on a Hedera topic with no admin key — so the decision can be proven to a third party later, without trusting the agent or us.

below threshold   → Proceed. Policy did not require a human (below_threshold).above threshold   → blocks, hands a link to a phone, waitsapproved          → Approved by a verified human. HCS sequence #41. You may proceed.refused / expired → NOT approved (EXPIRE). Do not proceed.

Most calls never reach a human. An oversight tool that interrupts everything is one the agent's owner switches off, so policy runs first and the common path is free.

Install

Published on npm as proctor-mcp and listed in the MCP Registry as io.github.louissarvin/proctor.

jsonc
// Claude Desktop: claude_desktop_config.json{  "mcpServers": {    "proctor": {      "command": "npx",      "args": ["-y", "proctor-mcp"],      "env": { "PROCTOR_API": "http://localhost:3700" }    }  }}

Nothing to clone and nothing to build. Point PROCTOR_API at a Proctor instance; the default is http://localhost:3700.

Verify it without a client:

bash
printf '%s\n%s\n' \  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \  | npx -y proctor-mcp

Works with any MCP client — Claude Desktop, Cursor, or your own. Transport is JSON-RPC 2.0 over stdio, protocol version 2025-06-18.

Verify it without a client:

bash
printf '%s\n%s\n' \  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \  | bun src/index.ts

Three decisions worth knowing

A refusal is not a tool error. It returns isError: false with approved: false. Marking a refusal as an error invites a model to treat it as a transient fault and retry around it, which is precisely the behaviour this tool exists to prevent.

Unreachable is not refused. If Proctor is down the tool says so explicitly and marks isError: true. "The gate is down" and "a human said no" are different facts, and collapsing them means an outage silently becomes a rejection — or worse, gets retried until it isn't.

No dependencies on the oversight path. JSON-RPC over stdio is a loop, and adding an SDK to a security tool is how it acquires a supply chain. The x402 client is imported lazily and only when a wallet is configured, so pointing this at a hosted Proctor to ask a human a question never loads a Hedera SDK.

Paid mode

Set a wallet and the tool stops simulating and starts paying:

jsonc
"env": {  "PROCTOR_API": "http://localhost:3700",  "HEDERA_AGENT_ID": "0.0.xxxxx",  "HEDERA_AGENT_KEY": "302e…",  "AGENT_ALLOWED_TOKENS": "0.0.10394781"}

It then hits the real x402 gate and settles through the Blocky402 facilitator. A verified run:

[proctor] paid the gate; a witness is being dispatched from the rotastructuredContent: { "approved": false, "outcome": "EXPIRE", "paid": true }

and the corresponding settlement on Hedera testnet:

0.0.10359475   -420000     the agent pays0.0.10349677  +415800     treasury0.0.10349667    +4200     1% HTS custom fee, assessed on chainfee payer 0.0.7162784     Blocky402

Policy runs first, and it is free. POST /v1/gate/evaluate decides whether a human is needed before any payment is made. An oversight tool that charges on every invocation is one the agent's owner switches off within a day.

Paid mode returns no witness link, on purpose. The gate never hands the approval URL back to the payer — an agent that could reach it could approve its own decision, which is the single property this product sells. The human is reached through the operator's rota instead. Unpaid operator mode does return a link, because there the caller is the operator.

Without a wallet the tool falls back to Proctor's operator endpoint, which opens a real decision but settles nothing, and says so in its own output (paid: false).

What it does not do yet

The evidence citation may read attestation pending when a decision resolves faster than consensus. The record lands afterwards, off the agent's critical path, and the sequence number is durable in the decision's own record.

Only the Hedera rail is wired here. The gate advertises Arc through Circle's Gateway too, and agent/ demonstrates it; the MCP client registers the Hedera scheme only.

來源:mcp/README.md,提交 29055f2

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。