Repository navigation
docs(integrations): add Cleave Protocol MCP tool page - #2720
Open
cleave-protocol wants to merge 1 commit into
Open
cleave-protocol wants to merge 1 commit into
cleave-protocol wants to merge 1 commit into
Conversation
👷 Deploy request for adk-docs-preview pending review.Visit the deploys page to approve it
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/swapsince 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
mcptag. The only file besides the page is its icon.How I tested it:
mcpextra: I took the agent code from the page as written.get_tools()returns the four tools in the table, and thetool_filtersnippet keeps the three it lists. ThroughInMemoryRunnerthe agent calledcleave_find_tokenand thencleave_plan_swapfor 100 USDC to WETH on Base. A scriptedBaseLlmstood in for Gemini, so no model key was involved. I also checked the Configuration section: with a pinned wallet andmaxUsd=250, a $1,000 plan comes back blocked (above_max_usd), and a plan to another recipient comes back blocked (recipient_not_pinned).tsc,getTools()returns the four tools, and the same two calls go throughInMemoryRunner. The TypeScripttool_filterexample 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 buildpasses with no new warnings. The card shows in the catalog with its icon, and lychee finds no broken links on the page.