DeepSeek Harness (DSH) adopts a plugin-based architecture. Developers can connect external data sources to agents through extension plugins. In the on-chain financial analysis domain, obtaining real-time DeFi yield data is a key step in building the decision-making capabilities of agents. This article introduces the xby-defi-yields plugin, which integrates with the DefiLlama data source to provide agents with the ability to query and analyze yield pool data.
Plugin Positioning¶
xby-defi-yields is a DSH plugin maintained by xby-skill and belongs to the “online tools” category. It is essentially an MCP server designed to solve the problem of AI agents lacking a real-time data source when exploring DeFi yield opportunities.
Core Features¶
The plugin provides the following two main capabilities:
- set_xby_apikey: Sets an API key in the chat context. The key is automatically persisted and remains valid after the process restarts.
- get_yield_pools: Retrieves yield pool data from the DefiLlama yields.llama.fi API. It supports filtering by blockchain name or project name and returns key metrics such as symbol, project, tvlUsd, apy, apyMean30d, and predictions.
Installation and Enablement¶
Use the following command to install the plugin (using the web configuration profile as an example):
dsh plugin --profile web add github:xby_skill/xby-defi-yields
Typical Usage¶
Invoke it in the DSH chat interface or in a script.
- Set the API key:
set_xby_apikey
- Query the yield pools for the Lido project on the Ethereum blockchain:
get_yield_pools chain: 'Ethereum' project: 'lido'
Configuration and Prerequisites¶
Before using this plugin, you need to register on the Xiaobenyang Official Website and obtain an API key. The plugin is open source under the MIT license.
Applicable Scenarios and Cautions¶
This plugin is suitable for DSH agent scenarios that require integrating DeFi yield data for analysis. Note that the plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the source code and license.
Summary¶
Through xby-defi-yields, developers can connect DeFi on-chain data to agents at low cost. For more details, refer to the GitHub repository or the community directory page.