BRYDGE

com.brydge-ai由 brydge-ai.com 发布v0.2.0更新于 Oct 31, 2026

Checks whether an agent's actions actually happened, against the destination's own records.

已验证STDIO仅桌面金融安全与监控

概览

AI 生成的概览

BRYDGE 在智能体执行操作前进行授权,事后依据目标系统自身的记录核实该操作是否真的发生。

可以做什么
  • 执行操作前先申请许可,获得授权 ID,或转交人工决定
  • 上报智能体认为已经发生的结果
  • 读取目标系统记录,核实操作是否发生,并获取最新核查结论
  • 查询智能体在 24 小时内可执行多少次操作才会转交人工
适用场景
适用于智能体会执行退款、付款等有实际后果的变更,而你希望独立核实每次操作是否被允许、是否真的完成,而不是只相信智能体自己的汇报。
运行要求
通过 npx 以 stdio 在本地运行(需 Node.js)。需要 BRYDGE 账号,并在 BRYDGE_API_KEY 中提供 API 密钥、在 BRYDGE_ACTOR 中提供智能体名称;自建实例可设置 BRYDGE_URL。还需在 BRYDGE 中为操作定价、注册带只读凭据的目标系统,并向该智能体签发授权。需要能访问 BRYDGE 的网络。
安装前请注意
需要 BRYDGE API 密钥这一机密信息,并按操作声明价值收取一定比例费用;发现新情况的核查会计费。它会用你注册的凭据读取目标系统记录。它本身无法阻止重复执行;升级的操作在 BRYDGE 中等待人工处理,而非在服务器内等待。

安装

在 SourceWeft 中

  1. 打开 控制台中的 BRYDGE,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

brydge-mcp

Check whether your agent's work actually happened.

This is BRYDGE as an MCP server. Before an agent acts, BRYDGE decides whether it may. Afterwards, BRYDGE reads the destination system's own records, such as your payment processor or ticket system, using its own credential. It then reports whether the work happened as permitted. What the agent says happened is kept beside that finding and never decides it.

Tools

ToolWhat it does
brydge_superviseAsks before acting. ALLOWED returns an authorization id for the agent to write into the record the action creates. ESCALATED means a person decides, and the agent must not act; asked again with the same idempotency_key, it returns their answer.
brydge_report_outcomeReports what the agent believes happened.
brydge_verifyReads the destination's records now and says whether the work happened.
brydge_get_findingReturns what BRYDGE has found so far, without reading the records again. Free.
brydge_get_headroomSays how many actions the agent may take in any 24 hours before a person is asked.

The server also gives the model its instructions: ask first, cite the authorization, report, then verify before saying the work is done.

Set up BRYDGE first

Do these once, in BRYDGE:

  1. Issue an API key on the Connect page.
  2. Declare what the action is worth. BRYDGE charges a share of that value, and it will not check an action nobody has priced.
  3. Register a destination for the action: where BRYDGE reads the records, and the read-only credential it uses. BRYDGE has a preset for Stripe refunds.
  4. Issue a mandate to the agent for the action, on the agent's page in BRYDGE. Without one, every call goes to a person, and the agent acts only once they allow it (see When a person decides).

A mandate says what the agent may do; headroom says how much of it, in any 24 hours. A new agent starts with room for one action a day, and every report BRYDGE checks and finds true raises that.

Add it to your MCP client

Most clients take this configuration (Claude Desktop, Cursor, Windsurf and others):

json
{  "mcpServers": {    "brydge": {      "command": "npx",      "args": ["-y", "brydge-mcp"],      "env": {        "BRYDGE_API_KEY": "brydge_sk_...",        "BRYDGE_ACTOR": "agent:refund-ops"      }    }  }}

On Windows, npx is a .cmd file, and only clients that start commands through a shell or through the MCP SDK can launch it by name. If your client reports spawn npx ENOENT, start it through the command shell instead:

json
{  "mcpServers": {    "brydge": {      "command": "cmd",      "args": ["/c", "npx", "-y", "brydge-mcp"],      "env": {        "BRYDGE_API_KEY": "brydge_sk_...",        "BRYDGE_ACTOR": "agent:refund-ops"      }    }  }}

In Claude Code:

bash
claude mcp add brydge -e BRYDGE_API_KEY=brydge_sk_... -e BRYDGE_ACTOR=agent:refund-ops -- npx -y brydge-mcp
Setting
BRYDGE_API_KEYYour BRYDGE API key. Required.
BRYDGE_ACTORThe name BRYDGE knows this agent by, such as agent:refund-ops. Mandates are issued to this name. Required.
BRYDGE_URLWhere BRYDGE runs. Leave it unset for BRYDGE's hosted service.

The agent's name comes from this configuration, never from the model, so an agent cannot borrow another agent's permissions. Run one server per agent.

How an agent uses it

  1. Ask first. Before a refund, payment or other change, the agent calls brydge_supervise with the action, the target and the facts, such as {"amount": 4200}.
  2. Cite the authorization. If the answer is ALLOWED, the agent carries the action out and writes the authorization id where the destination keeps it. For a Stripe refund, that is metadata.brydge_authorization. BRYDGE finds the work by this id, and by nothing else.
  3. Report. The agent calls brydge_report_outcome with what it believes happened.
  4. Verify. Before saying the work is done, the agent calls brydge_verify.

brydge_supervise takes an idempotency_key, a name for one intended action such as refund:ch_123. Asking again with the same key and the same details is the same request: a retry gets the same answer, and once a person has answered an escalated one, it gets their answer. A key reused for a different action never gets another action's answer, because the server also hashes in what is being asked.

When a person decides

An escalated action waits for a person, in BRYDGE. The server does not wait with it: the model is told not to act, and to ask again once they have answered:

text
ESCALATED. Do not carry this out: a person decides. No mandate lets agent:refund-ops refund yet, so a person decides. A person has been asked. Ask again with the same idempotency key once they have answered: if they allow it, the answer is ALLOWED. Authorization: cmurkt5mw000i7dev66vu5afm.

When the model calls brydge_supervise again with the same idempotency_key, action, target and facts, BRYDGE answers with the person's decision:

The persondecisionsettledThe model is told
has not answered yetESCALATEDnullDo not act yet; ask again once they have answered. The person is not asked twice.
allowed itALLOWED"ALLOWED"Carry it out, citing the same authorization.
refused itESCALATED"REFUSED"REFUSED. A person refused this: do not carry it out., with their reason.

A request with different details is a different action, so allowing a £42 refund never lets the agent refund £420.

Each authorization is for one action. A retry of an action already carried out gets the same ALLOWED back, and the model is told that if it already carried the action out, it must not do it again. If an action does run twice under one authorization, a check reports MISMATCH with DUPLICATE_EXECUTION.

What a check can find

stateMeaning
VERIFIEDThe records show the work, as it was permitted.
FAILEDThe records show it was attempted and did not succeed.
MISMATCHThe records show something other than what was permitted. reason says what: AMOUNT, TARGET, ACTOR, ACTION, DUPLICATE_EXECUTION, UNAUTHORISED_EXECUTION or CORRELATION.
UNKNOWNBRYDGE could not tell. NO_MATCH means the records hold nothing for this authorization; the other reasons mean BRYDGE could not read the records. Unknown is not the same as failed.
PENDINGThe destination says the work is still in progress.

brydge_verify reads the records when it is called. A check that finds something new is billed; asking again when nothing has changed is free. BRYDGE also checks every action by itself once the destination's reporting window has passed (60 minutes unless you set another), and brydge_get_finding reads that for free.

Protocol

The server speaks MCP over stdio. It serves clients on the 2026-07-28 revision and on the 2025 revisions from the same process, built on the official TypeScript SDK. When BRYDGE cannot be asked (a bad key, an action with no declared value, a rate limit, or BRYDGE being unreachable), the tool returns an error the model can read, and nothing is carried out.

Limits

  • BRYDGE treats a target as one piece of work. A second record for the same target that carries a different authorization, such as a second partial refund of one charge, is reported as a MISMATCH.
  • The server does not wait for a person. An escalated action ends with the model being told a person decides, and their answer reaches the agent only when the model asks again with the same idempotency_key and the same details. A request under a new key is decided afresh.
  • The server does not see the action itself, so it cannot stop a second one. Whether an action was already carried out is for the model to remember; the server tells it when BRYDGE has answered the same request before.

Development

bash
npm installnpm test          # a real MCP client against the server in both protocol eras, and the built command over stdionpm run test:int  # against a running BRYDGE; see tests/integrationnpm run build

License

MIT

来源:README.md,提交 8b2fa39

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.2.0最新Oct 3, 2026
  2. v0.1.1Sep 26, 2026
  3. v0.1.0Sep 26, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分