Skip to content

docs(integrations): add Cleave Protocol MCP tool page - #2720

Open
cleave-protocol wants to merge 1 commit into
google:mainfrom
cleave-protocol:add-cleave-integration
Open

cleave-protocol wants to merge 1 commit into
google:mainfrom
cleave-protocol:add-cleave-integration

Conversation

@cleave-protocol

Copy link
Copy Markdown

Adds an integration page for the Cleave Protocol MCP server. It is a public remote MCP server (streamable HTTP, no API key) whose tools plan token swaps that can be split across several DEX pools, on Ethereum, Arbitrum, Base, BNB Chain, Polygon and Optimism, and cross-chain swaps between them. A plan returns unsigned calls for the user's own wallet to sign, so the agent never handles a private key. The quoted output includes swap and route fees; the wallet pays network gas separately.

Disclosure: I work on Cleave Protocol.

The server has been listed in the official MCP Registry as fi.cleave/swap since 2026-10-26 (current version 1.0.1) and on Glama (https://glama.ai/mcp/connectors/fi.cleave/swap). Its tools are also served as plain HTTP with a public OpenAPI file at https://api.cleave.fi/agent/v1/openapi.json, and the server README and client configs are in the public repo https://github.com/cleave-protocol/cleave-swap.

The page follows the MCP tool template (Use cases, Prerequisites, Use with agent with Python and TypeScript tabs, Available tools, Configuration, Additional resources) and uses the mcp tag. The only file besides the page is its icon.

How I tested it:

  • Python, google-adk 2.16.0 with the mcp extra: I took the agent code from the page as written. get_tools() returns the four tools in the table, and the tool_filter snippet keeps the three it lists. Through InMemoryRunner the agent called cleave_find_token and then cleave_plan_swap for 100 USDC to WETH on Base. A scripted BaseLlm stood in for Gemini, so no model key was involved. I also checked the Configuration section: with a pinned wallet and maxUsd=250, a $1,000 plan comes back blocked (above_max_usd), and a plan to another recipient comes back blocked (recipient_not_pinned).
  • TypeScript, @google/adk 2.5.0: the page's agent type-checks with tsc, getTools() returns the four tools, and the same two calls go through InMemoryRunner. The TypeScript tool_filter example type-checks and keeps the three tools it lists. The client logs a few "MCP transport error ... aborted" lines while doing so. I get the same lines against a local server built on the MCP TypeScript SDK in streaming mode, and none with that server in JSON mode, so they come from how the client closes streamed responses. The page has a short note about them.
  • mkdocs build passes with no new warnings. The card shows in the catalog with its icon, and lychee finds no broken links on the page.

@netlify

netlify Bot commented Dec 5, 2026

Copy link
Copy Markdown

👷 Deploy request for adk-docs-preview pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 38a528b

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant