Cleave for Agents: token swaps, cross-chain swaps and gas top-ups

fi.cleave由 cleave.fi 發布官方發布者v1.0.0更新於 Oct 26, 2026

Swap, bridge and get gas on 6 EVM chains. Each plan states its outcome before you sign. No API key.

已驗證Streamable HTTP可網頁執行雲端與基礎設施金融

概覽

AI 產生的概覽

Cleave 在六條 EVM 鏈上規劃代幣兌換、跨鏈橋接與原生 Gas 儲值,回傳未簽署交易供使用者自己的錢包簽署。

可以做什麼
  • 規劃同鏈兌換、跨鏈兌換或橋接,以及 Gas 儲值,並回傳待簽署的未簽署交易
  • 依代號或合約地址尋找代幣,回傳精度,並在與已上架代幣相似時提出警示
  • 依鏈、交易雜湊與 requestId 追蹤已規劃或已送出的兌換、橋接或 Gas 訂單
  • 為持有 USDC 但沒有 Gas 的錢包取得原生 Gas(ETH、BNB 或 POL),回傳一筆待簽署的 USDC 授權
適用情境
適合使用者想兌換代幣、在以太坊、Arbitrum、Base、BNB Chain、Polygon 或 Optimism 之間移轉資產、用 USDC 補充 Gas,或確認轉帳是否到帳的情境。其他鏈沒有可用路由。
執行需求
遠端 MCP 端點;未宣告需要 API 金鑰或環境變數。使用者需在六條支援鏈之一擁有錢包,用來簽署回傳的交易或 USDC 授權。
安裝前請注意
這些工具會動用真實資金:簽署回傳的交易或 USDC 授權會花費使用者的代幣或 USDC。方案在 validUntil 時間後失效,過期需重新規劃;部分路由可能無法成交,只能數小時後退款。使用受 Cleave 使用條款與隱私權政策約束。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Cleave for Agents: token swaps, cross-chain swaps and gas top-ups,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/fi.cleave%2Fswap/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "cleave-for-agents-token-swaps-cross-chai": {
      "type": "http",
      "url": "https://api.cleave.fi/mcp"
    }
  }
}

工具

4

cleave_plan_swap

Plan a swap, bridge or gas top-up

Plans a token swap on one chain, a cross-chain swap or bridge, or a native-gas top-up on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism, and returns unsigned transactions for the given wallet to sign. It fits when the user wants to exchange tokens, move them between these chains, or get ETH, BNB or POL for gas. It sends nothing and moves no funds. The answer leads with blocking notices and warnings, then gives the route's outcome kind (exact or at least a minimum; with a swap on arrival, the token, else a named fallback; where a transfer can go unfilled, a refund of the bridged token on the source chain hours later), every third-party cost except network gas, the expected time, validUntil and the calls in signing order. A blocking notice returns no calls; a warning, or a recipient other than the wallet, sets requiresConfirmation, and the connection's settings can turn either into a refusal. Calls sent after validUntil are stale: they can revert or, on some routes, end in a refund hours later. Amounts are decimal strings in token units; tokens are listed symbols or contract addresses; the recipient defaults to the wallet. Limits set in the connection (a pinned wallet, a per-plan USD cap, listed tokens only) bound every argument. For an ambiguous symbol, cleave_find_token lists the candidates; after sending, cleave_track_swap reports progress. A wallet with no gas can get it with cleave_get_gas.

輸入參數amount必填wallet必填buyToken必填recipientsellToken必填toChainIdfromChainId必填maxSlippageBps

cleave_track_swap

Track a planned swap or transfer

Reports the status of a swap, bridge or gas top-up that was planned with cleave_plan_swap and then sent, or ordered with cleave_get_gas: its state (for example pending, in flight, delivered, refund pending or refunded), what arrived against the plan and on which chain, and the next action or when to check again. It takes the chain and transaction hash, plus the plan's requestId when known, or for a gas top-up the requestId alone; a transaction to a contract outside Cleave's published list is reported as such. It fits when the user asks whether such a transfer arrived, and before any re-send, because re-sending a plan that is still in flight can pay twice. It reports states only and returns no transactions.

輸入參數txHashchainIdrequestId

cleave_find_token

Find a token's contract address

Finds a token by symbol or contract address on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism and returns its address, decimals and whether it is on Cleave's token list, with a flag when it resembles a listed token. A symbol shared by several listed tokens returns every candidate by address instead of picking one. An unlisted token is found only by its address and comes back flagged, without a name or symbol. It fits before cleave_plan_swap when the user names a token by symbol and the address is unknown.

輸入參數query必填chainId必填

cleave_get_gas

Get native gas with USDC

Gets native gas (ETH, BNB or POL) on Ethereum, Arbitrum, Base, BNB Chain, Polygon or Optimism for a wallet that holds USDC on Ethereum, Arbitrum, Base, Optimism or Polygon but has no gas to send transactions. Called with the paying chain, the receiving chain, the recipient and a USDC amount, it returns an offer: the fee, the minimum native amount, the deadline, the order and one USDC authorization for the wallet to sign; signing costs no gas. Called again with the offer and the signature, it passes the signed order to Cleave's relayer, which executes it through a contract made for that one order, and returns a requestId for cleave_track_swap. On one chain the recipient gets at least the minimum or nothing moves; from another chain it gets the native coin at the minimum, else USDC on arrival if the arrival swap fails. An order not executed by its deadline is refunded to the refund address, or, if paid from another chain and not filled, refunded hours later. When the wallet already holds some gas, cleave_plan_swap plans a swap to the native coin.

輸入參數offeramountwalletchainIdrefundTorecipientsignaturepayChainId

版本歷史

1
  1. v1.0.0最新Oct 26, 2026

評分

已滿足適用檢查項的 72%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分

    請在註冊中心條目中發布圖示。

  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。