Recta

io.github.RectaBuild由 GitHub 账号 RectaBuild 发布v1.1.0更新于 Nov 7, 2026

Cheaper cross-chain stablecoin routes for AI agents; 5 % of the verified saving, nothing if none.

已验证Streamable HTTP可网页运行云端与基础设施金融

概览

AI 生成的概览

Recta 是面向 AI 智能体的跨链预检服务,判断稳定币或 BTC 转账是否存在可证明的更便宜路径,并按已验证节省额的 5% 收费。

可以做什么
  • 检查服务状态与覆盖范围:服务是否就绪、支持的通道、资产、所比较的跨链桥、金额区间与请求结构
  • 评估适配性与节省概率:计划中的转账是否被覆盖、可声明为基准的路径,以及该通道历史上发现节省的次数
  • 生成并试用评估:按通道和金额获取请求模板,再以未签名方式试算是否存在更便宜路径及节省金额
  • 签名与发送:计算智能体自有钱包需签名的消息,发送已签名请求并取得可证明的最便宜路径或弃权结果
适用场景
在智能体跨链转移稳定币或 BTC 之前使用,确认在同一链状态下能否证明存在更便宜的路径。建议先用免费且无需签名的检查,确认通道被覆盖且节省有可能,再决定是否签名。
运行要求
可使用 api.recta.build 远程端点,或通过 npx 运行本地 npm 包 @recta/mcp(需 Node.js)。需在 RECTA_PRIVATE_KEY 中提供专用 EVM 钱包私钥,仅在本地用于签名。可选设置:RECTA_ALLOW_EXECUTE、RECTA_MAX_FEE_USDC、RECTA_MIN_OUTPUT_BPS。评估本身免费且无需资金。
安装前请注意
服务需要钱包私钥(RECTA_PRIVATE_KEY),请使用专用钱包并让私钥只留在本机。签署 Permit2 授权后,Recta 可在 Base 上以 USDC 收取已验证节省额的 5%,上限由 RECTA_MAX_FEE_USDC 控制。仅当 RECTA_ALLOW_EXECUTE 设为 yes 时才会签名费用许可并发送交易,其他取值下仅可读取和预览。执行路径会动用真实资金。

安装

在 SourceWeft 中

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

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.RectaBuild%2Frecta/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "recta": {
      "type": "http",
      "url": "https://api.recta.build/mcp"
    }
  }
}

README

Recta

Preflight for AI agents that move stablecoins or BTC between blockchains: before a bridge transfer, ask Recta whether a cheaper route exists at the same chain state. Free when there is none; otherwise exactly 5 % of the saving verified on chain. The agent keeps at least 95 % of every verified saving.

Recta never holds keys or funds: your agent signs and sends every transaction itself.

Client package

packages/client is @recta/client: evaluate, authorize the fee, execute and report from your agent's own wallet, with local checks before every signature. Published to npm from this repository with provenance.

Local MCP server

packages/mcp is @recta/mcp: a local MCP server over the client, so Claude, Cursor or any MCP agent runs the same flow with its own key, which stays on the machine. Execution is off until the operator turns it on. The evaluation tools also come as a Coinbase AgentKit action provider (@recta/mcp/agentkit) and a GOAT plugin (@recta/mcp/goat).

What is in this repository

The tools an agent uses to call Recta: the Agent Skill, the AGENTS.md snippet and, as they are published, the client and local MCP packages. The server behind api.recta.build is not published here; its MCP endpoint above is the one listed in the official MCP Registry as io.github.RectaBuild/recta.

来源:README.md,提交 a0c6f48

工具

9

recta_about

What Recta is and how it charges

Start here. Call Recta before your agent moves stablecoins or BTC from one blockchain to another (a bridge or cross-chain transfer): give it the route you would use anyway, and it answers, for free, whether a cheaper route exists at the same chain state and proves the saving. If there is none, nothing is charged. Networks: arbitrum, arc, avalanche, base, bitcoin_l1, bnb_chain, ethereum, hyperevm, ink, linea, monad, optimism, polygon, robinhood_chain, solana_mainnet, tron_mainnet, unichain. Assets: BTC, USDC, USDC_BINANCE_PEG, USDG, USDT, USDT_BINANCE_PEG, USDT_OP_BRIDGED. The exact corridors are in the service descriptor. Returns the full guide (llms.txt): what Recta is, the fee (5 % of the verified saving, nothing if none) and the call flow.

无需输入参数。

recta_status

Service readiness

Call before relying on Recta in a run: whether it is ready to evaluate now, and its contract version.

无需输入参数。

recta_service_descriptor

Commercial contract

Call to check whether a planned cross-chain transfer is covered: the supported corridors (source and destination networks and assets), the bridges compared (Across, CCTP, Stargate, USDT0 and others), amount ranges, limits and the JSON Schema of every request and response.

无需输入参数。

recta_fit_check

Is my transfer covered? (free, no signature)

Call first, before a cross-chain stablecoin or BTC transfer: whether Recta covers the corridor, which routes it compares, which route you can declare as yours, and the contracts a route would touch. Unsigned, free, never reveals a route or a saving.

输入参数source_asset必填source_network必填destination_asset必填destination_network必填

recta_saving_odds

How often Recta found a saving here (free, no signature)

How many recorded decisions on this corridor found a saving against each route you could declare (counts and dates only). Unsigned and free; use it to decide whether a signed evaluation is worth it.

输入参数source_asset必填source_network必填baseline_providerdestination_asset必填destination_network必填

recta_request_template

The whole evaluation request for my transfer (free, no signature)

Returns the full body of the evaluation request for a corridor, an amount and the route you would use anyway (baseline_provider): you fill only your sender, recipient and gas ceilings, then sign it with recta_prepare_signed_request and recta_send_signed_request.

输入参数amount必填source_asset必填latency_classsource_network必填guarantee_classbaseline_provider必填destination_asset必填destination_network必填

recta_trial_evaluation

Would Recta save me money on this transfer? (free, no signature)

Unsigned trial of an evaluation: send the evaluation request body (from recta_request_template, with your sender and recipient filled) and get whether a cheaper provable route exists for this exact transfer, the saving (lower bound, USDC) and Recta's 5 % of it. Names no route, stores nothing, charges nothing; 3 a day per address. To get the route, sign the same body with recta_prepare_signed_request and recta_send_signed_request.

输入参数body必填

recta_prepare_signed_request

Text to sign for a Recta request

Step 1 of a free quote for a cross-chain transfer. Computes the exact message the agent's EVM wallet must sign (EIP-191 personal_sign) for one Recta request, and the headers to send. Holds no key and calls nothing. Then call recta_send_signed_request with the same method, path, idempotency_key, body and issued_at, plus the signature. Start with POST /v1/golden-corridor/commercial-evaluations (body: recta_request_template; its "sender" must be the signing address). If you have no wallet tool that can personal_sign, this server cannot sign for you: No signing code needed: the npm package @recta/client builds, checks and signs the request for you, and @recta/mcp (`npx -y @recta/mcp`, key in RECTA_PRIVATE_KEY of a dedicated wallet, kept on your machine) is a local MCP server that does it as tools. Evaluations are free and need no funds.

输入参数bodypath必填method必填idempotency_key

recta_send_signed_request

Send a signed request to Recta

Step 2: sends the request signed by the agent's own wallet to a Recta route and returns its HTTP status and JSON body. POST /v1/golden-corridor/commercial-evaluations returns, free, the cheapest provable route against the route the agent would use anyway, or an abstention. Executing a decision's route creates a fee of 5 % of the verified saving, capped by the permit the agent signs; no saving, no fee.

输入参数bodypath必填method必填signer必填issued_at必填signature必填idempotency_key

版本历史

2
  1. v1.1.0最新Nov 7, 2026
  2. v1.0.0Nov 4, 2026

评分

已满足适用检查项的 90%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

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