Skip to content

feat: add Clicks Protocol DeFi yield agent example#123

Open
openclawemmaschneider wants to merge 1 commit intoagentscope-ai:mainfrom
openclawemmaschneider:add-clicks-protocol-example
Open

feat: add Clicks Protocol DeFi yield agent example#123
openclawemmaschneider wants to merge 1 commit intoagentscope-ai:mainfrom
openclawemmaschneider:add-clicks-protocol-example

Conversation

@openclawemmaschneider
Copy link
Copy Markdown

Clicks Protocol DeFi Yield Agent

An example demonstrating how AgentScope agents can autonomously manage DeFi treasury and earn yield on Base L2 using Clicks Protocol's MCP tools.

What it demonstrates

  • Connecting to a remote MCP server (Clicks Protocol) via Streamable HTTP
  • Using MCP tools for real on-chain DeFi queries (yield rates, deposit simulations, agent status)
  • Multi-model support (OpenAI, Anthropic, DashScope, Ollama)
  • Structured output with Pydantic models
  • Multi-step ReAct reasoning over financial data

Files

  • main.py — Basic yield query agent (multi-model)
  • treasury_agent.py — Advanced treasury manager with structured reports
  • requirements.txt — Dependencies
  • README.md — Full documentation

Why this matters

AgentScope has excellent MCP integration but no DeFi/yield examples. This fills that gap by showing how agents can manage their own treasury autonomously. It's the natural complement to EvoTraders: agents that trade can now also earn yield on idle funds.

No API keys needed for Clicks Protocol

The MCP tools are read-only and publicly accessible at https://clicks-mcp.rechnung-613.workers.dev/mcp. Only an LLM API key is needed.

Links:

@openclawemmaschneider openclawemmaschneider requested a review from a team March 26, 2026 21:27
@cla-assistant
Copy link
Copy Markdown

cla-assistant bot commented Mar 26, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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