@arcadia-finance/mcp-server 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +249 -248
- package/README.md +12 -2
- package/dist/clients/chain.js +3 -3
- package/dist/config/cache-hints.js +10 -0
- package/dist/index.js +2 -1
- package/dist/prompts/workflows.js +4 -2
- package/dist/tools/dev/send.js +2 -7
- package/dist/tools/output-schemas.js +2 -0
- package/dist/tools/read/asset-managers.js +3 -8
- package/dist/tools/read/assets.js +1 -1
- package/dist/tools/read/strategy.js +9 -5
- package/dist/tools/read/wallet.js +1 -1
- package/dist/tools/write/account/add-liquidity.js +123 -4
- package/llms-full.txt +3 -3
- package/package.json +18 -17
- package/server.json +9 -2
- package/skills/clamm-liquidity/SKILL.md +22 -21
- package/skills/clamm-liquidity/selection.md +4 -4
- package/skills/openclaw/SKILL.md +4 -2
- package/skills/openclaw/arcadia.sh +1 -1
|
@@ -7,7 +7,7 @@ Use this guide to evaluate whether a strategy makes sense and how to configure i
|
|
|
7
7
|
## 1. Pool / Strategy Selection
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
read_strategy_list(chain_id: 8453) // browse all LP strategies + fee APY
|
|
10
|
+
read_strategy_list(chain_id: 8453) // browse all LP strategies + fee APY (7-day average at the default range)
|
|
11
11
|
read_pool_list(chain_id: 8453) // check borrow cost for leveraged strategies
|
|
12
12
|
```
|
|
13
13
|
|
|
@@ -32,7 +32,7 @@ Must be positive to justify the leverage cost. Higher leverage amplifies both si
|
|
|
32
32
|
|
|
33
33
|
- Fee tier: higher fee tier (0.3%, 1%) = more fee per trade, better for volatile pairs
|
|
34
34
|
- Volume + TVL: high volume/TVL ratio = fees are being earned actively
|
|
35
|
-
- Active Merkl rewards: extra yield on top
|
|
35
|
+
- Active Merkl rewards: extra yield on top of the fee APY
|
|
36
36
|
|
|
37
37
|
**`numeraire` — context-dependent meaning:**
|
|
38
38
|
|
|
@@ -45,7 +45,7 @@ Must be positive to justify the leverage cost. Higher leverage amplifies both si
|
|
|
45
45
|
|
|
46
46
|
Range width is the central tradeoff in any LP strategy. It is set in the Arcadia platform after enabling the rebalancer. Understanding the full tradeoff is essential for choosing parameters — a simple fee APY comparison is not enough.
|
|
47
47
|
|
|
48
|
-
**Core principle:** The `strategy_apy` from `read_strategy_list` (list view) is the 7-day average APY computed for that strategy's **default range width** (configured per strategy: e.g. very narrow for stables, ±7.5% / balanced for most volatile pairs). It is sampled every ~3 hours and averaged over 7d. It already reflects a concentrated range: NOT a full-range / pool-level number. Choosing a different range width changes your actual yield: narrower = higher fee capture but more rebalancing cost/risk, wider = lower fees but fewer rebalances. Call `
|
|
48
|
+
**Core principle:** The `strategy_apy` from `read_strategy_list` (list view) is the 7-day average APY computed for that strategy's **default range width** (configured per strategy: e.g. very narrow for stables, ±7.5% / balanced for most volatile pairs). It is sampled every ~3 hours and averaged over 7d. It already reflects a concentrated range: NOT a full-range / pool-level number. Choosing a different range width changes your actual yield: narrower = higher fee capture but more rebalancing cost/risk, wider = lower fees but fewer rebalances. Call `read_strategy_info(strategy_id: <id>)` to see APY over the last 24 hours broken down by range width (very_narrow, narrow, balanced, wide, very_wide). The net return after rebalancing costs, IL, and gas determines the optimal width: see the model below.
|
|
49
49
|
|
|
50
50
|
### The full tradeoff
|
|
51
51
|
|
|
@@ -173,7 +173,7 @@ Monitor periodically with `read_account_info` and `read_account_pnl`. Exit or ad
|
|
|
173
173
|
## 6. Quick Checklist Before Opening a Position
|
|
174
174
|
|
|
175
175
|
```
|
|
176
|
-
[ ] read_strategy_list → fee_APY noted (7d avg for default range;
|
|
176
|
+
[ ] read_strategy_list → fee_APY noted (7d avg for default range; read_strategy_info for 24h per-range APY)
|
|
177
177
|
[ ] read_pool_list → borrow_APY noted (if leveraged)
|
|
178
178
|
[ ] net_APY = fee_APY - (leverage-1) × borrow_APY > 0
|
|
179
179
|
[ ] Pair type matches strategy (volatile/stable for delta neutral)
|
package/skills/openclaw/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: arcadia-finance
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.5.0
|
|
4
4
|
description: "DeFi liquidity management on Uniswap and Aero, live on Base, Optimism, Unichain and Robinhood. Deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools."
|
|
5
5
|
metadata:
|
|
6
6
|
openclaw:
|
|
@@ -36,7 +36,7 @@ Requires: `curl`, `jq`. No other dependencies.
|
|
|
36
36
|
# Account details (health factor, collateral, debt, positions)
|
|
37
37
|
{baseDir}/arcadia.sh read_account_info '{"account_address":"0x..."}'
|
|
38
38
|
|
|
39
|
-
# Featured LP strategies with APY
|
|
39
|
+
# Featured LP strategies with APY (last 24 hours at the featured range width)
|
|
40
40
|
{baseDir}/arcadia.sh read_strategy_list '{"featured_only":true}'
|
|
41
41
|
|
|
42
42
|
# Lending pools (TVL, APY, utilization)
|
|
@@ -82,6 +82,8 @@ All write tools return unsigned transactions `{ to, data, value, chainId }`. Sig
|
|
|
82
82
|
{baseDir}/arcadia.sh write_account_automations '{"account_address":"0x...","position_id":12345,"intents":[{"kind":"compound_fees"},{"kind":"rebalance"}],"chain_id":8453}'
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
+
If `write_account_add_liquidity` returns price warnings and no transaction, show the warnings to the user. Call it again with `accept_price_checks` set to the returned list only after the user explicitly confirms. New warnings on a rebuild need a new confirmation.
|
|
86
|
+
|
|
85
87
|
## Configuration
|
|
86
88
|
|
|
87
89
|
The CLI connects to `https://mcp.arcadia.finance/mcp` by default. Set `ARCADIA_MCP_URL` to override (e.g. for local development).
|
|
@@ -29,7 +29,7 @@ if [[ -z "$TOOL_NAME" ]]; then
|
|
|
29
29
|
fi
|
|
30
30
|
|
|
31
31
|
# Request metadata MCP 2026-07-28 requires on every call.
|
|
32
|
-
META='{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"arcadia-openclaw","version":"1.
|
|
32
|
+
META='{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"arcadia-openclaw","version":"1.5.0"}}'
|
|
33
33
|
|
|
34
34
|
# POST one request; the body is plain JSON or a single SSE data: line.
|
|
35
35
|
mcp_post() {
|