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 分

    请在仓库或注册中心条目中声明许可证。