@arcadia-finance/mcp-server 0.5.1 → 0.6.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.
Files changed (55) hide show
  1. package/README.md +58 -52
  2. package/dist/clients/api.js +52 -11
  3. package/dist/clients/chain.js +25 -0
  4. package/dist/config/addresses.js +22 -2
  5. package/dist/config/chains.js +12 -4
  6. package/dist/index.js +36 -134
  7. package/dist/prompts/workflows.js +54 -18
  8. package/dist/resources/guides.js +1 -1
  9. package/dist/tools/aero.js +157 -0
  10. package/dist/tools/dev/send.js +4 -4
  11. package/dist/tools/index.js +6 -0
  12. package/dist/tools/output-schemas.js +103 -29
  13. package/dist/tools/read/account.js +57 -15
  14. package/dist/tools/read/aero-upgrade.js +53 -0
  15. package/dist/tools/read/asset-managers.js +9 -9
  16. package/dist/tools/read/assets.js +9 -9
  17. package/dist/tools/read/guides.js +4 -4
  18. package/dist/tools/read/points.js +4 -4
  19. package/dist/tools/read/pools.js +10 -9
  20. package/dist/tools/read/shapes.js +48 -0
  21. package/dist/tools/read/strategy.js +14 -13
  22. package/dist/tools/read/wallet.js +15 -15
  23. package/dist/tools/write/account/add-liquidity.js +9 -9
  24. package/dist/tools/write/account/aero-upgrade.js +124 -0
  25. package/dist/tools/write/account/borrow.js +5 -5
  26. package/dist/tools/write/account/close.js +8 -8
  27. package/dist/tools/write/account/create.js +3 -3
  28. package/dist/tools/write/account/deleverage.js +4 -4
  29. package/dist/tools/write/account/deposit.js +4 -4
  30. package/dist/tools/write/account/format-response.js +1 -1
  31. package/dist/tools/write/account/remove-liquidity.js +6 -6
  32. package/dist/tools/write/account/repay.js +4 -4
  33. package/dist/tools/write/account/stake.js +5 -5
  34. package/dist/tools/write/account/swap.js +4 -4
  35. package/dist/tools/write/account/withdraw.js +5 -5
  36. package/dist/tools/write/asset-managers/automations.js +14 -14
  37. package/dist/tools/write/asset-managers/intents.js +10 -7
  38. package/dist/tools/write/pool/deposit.js +5 -5
  39. package/dist/tools/write/pool/redeem.js +4 -4
  40. package/dist/tools/write/wallet/approve.js +4 -4
  41. package/dist/tools/write/wallet/upgrade-velo.js +76 -0
  42. package/dist/utils/analytics.js +68 -0
  43. package/dist/utils/http-config.js +4 -4
  44. package/llms-full.txt +114 -77
  45. package/llms.txt +47 -44
  46. package/package.json +8 -4
  47. package/server.json +10 -4
  48. package/skills/clamm-liquidity/SKILL.md +101 -83
  49. package/skills/clamm-liquidity/automation.md +14 -14
  50. package/skills/clamm-liquidity/selection.md +13 -13
  51. package/skills/clamm-liquidity/strategies.md +135 -53
  52. package/skills/openclaw/SKILL.md +3 -3
  53. package/skills/openclaw/arcadia.sh +24 -45
  54. package/skills/openclaw/contracts.md +19 -16
  55. package/dist/utils/tool-naming.js +0 -91
package/llms-full.txt CHANGED
@@ -1,10 +1,10 @@
1
1
  # Arcadia Finance MCP Server
2
2
 
3
- > MCP server for Arcadia Finance, a DeFi protocol for concentrated liquidity (Uniswap v3/v4, Aerodrome/Slipstream, Velodrome) with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Supported chains: Base (8453), Unichain (130), Optimism (10).
3
+ > MCP server for Arcadia Finance, a DeFi protocol for concentrated liquidity (Uniswap v3/v4, Aero CL, Aerodrome/Slipstream, Velodrome) with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Supported chains: Base (8453), Unichain (130), Optimism (10), Robinhood (4663).
4
4
 
5
5
  ## Overview
6
6
 
7
- Arcadia lets users deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools to earn borrower interest. This MCP server exposes the full protocol as 35 tools:
7
+ Arcadia lets users deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools to earn borrower interest. This MCP server exposes the full protocol as 38 tools:
8
8
 
9
9
  - **Account management**: health factor, collateral, debt, positions, PnL, history
10
10
  - **Wallet**: ERC20 balances, allowances, owned accounts, points
@@ -24,43 +24,43 @@ npx -y @arcadia-finance/mcp-server
24
24
 
25
25
  Or connect to the remote server: `https://mcp.arcadia.finance/mcp`
26
26
 
27
- ## Read Tools (18)
27
+ ## Read Tools (19)
28
28
 
29
- ### read.account.info
29
+ ### read_account_info
30
30
 
31
31
  Get full overview of an Arcadia account: health factor, collateral value, debt, deposited assets, liquidation price, and automation status.
32
32
 
33
33
  Parameters:
34
34
  - `account_address` (string, required): Arcadia account address
35
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
35
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
36
36
 
37
- ### read.account.history
37
+ ### read_account_history
38
38
 
39
39
  Get historical collateral and debt values for an Arcadia account over time.
40
40
 
41
41
  Parameters:
42
42
  - `account_address` (string, required): Arcadia account address
43
43
  - `days` (number, default: 14): Number of days of history
44
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
44
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
45
45
 
46
- ### read.account.pnl
46
+ ### read_account_pnl
47
47
 
48
48
  Get PnL (cost basis) and yield earned for an Arcadia account.
49
49
 
50
50
  Parameters:
51
51
  - `account_address` (string, required): Arcadia account address
52
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
52
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
53
53
 
54
- ### read.wallet.balances
54
+ ### read_wallet_balances
55
55
 
56
56
  Get native ETH and ERC20 token balances for a wallet address.
57
57
 
58
58
  Parameters:
59
59
  - `wallet_address` (string, required): Wallet address to check balances for
60
60
  - `token_addresses` (string[], required): ERC20 token contract addresses to check
61
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
61
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
62
62
 
63
- ### read.wallet.allowances
63
+ ### read_wallet_allowances
64
64
 
65
65
  Check ERC20 token allowances for a spender address.
66
66
 
@@ -68,56 +68,56 @@ Parameters:
68
68
  - `owner_address` (string, required): Token owner address (the wallet granting approval)
69
69
  - `spender_address` (string, required): Spender address to check allowance for
70
70
  - `token_addresses` (string[], required): ERC20 token contract addresses to check
71
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
71
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
72
72
 
73
- ### read.wallet.accounts
73
+ ### read_wallet_accounts
74
74
 
75
75
  List all Arcadia accounts owned by a wallet address.
76
76
 
77
77
  Parameters:
78
78
  - `wallet_address` (string, required): Wallet address to list accounts for
79
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
79
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
80
80
 
81
- ### read.wallet.points
81
+ ### read_wallet_points
82
82
 
83
83
  Get Arcadia points balance for a specific wallet address.
84
84
 
85
85
  Parameters:
86
86
  - `wallet_address` (string, required): Wallet address to get points for
87
87
 
88
- ### read.asset.list
88
+ ### read_asset_list
89
89
 
90
90
  List supported collateral assets on Arcadia.
91
91
 
92
92
  Parameters:
93
93
  - `search` (string, optional): Filter assets by symbol (case-insensitive substring match)
94
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
94
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
95
95
 
96
- ### read.asset.prices
96
+ ### read_asset_prices
97
97
 
98
98
  Get USD prices for one or more asset addresses.
99
99
 
100
100
  Parameters:
101
101
  - `asset_addresses` (string, required): Single address or comma-separated addresses
102
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
102
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
103
103
 
104
- ### read.pool.list
104
+ ### read_pool_list
105
105
 
106
106
  List all Arcadia lending pools: TVL, utilization, available liquidity.
107
107
 
108
108
  Parameters:
109
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
109
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
110
110
 
111
- ### read.pool.info
111
+ ### read_pool_info
112
112
 
113
113
  Get detailed info for a single lending pool including APY history over time.
114
114
 
115
115
  Parameters:
116
116
  - `pool_address` (string, required): Pool address
117
117
  - `days` (number, default: 14): Number of days of APY history
118
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
118
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
119
119
 
120
- ### read.point_leaderboard
120
+ ### read_point_leaderboard
121
121
 
122
122
  Get the Arcadia points leaderboard (paginated).
123
123
 
@@ -125,7 +125,7 @@ Parameters:
125
125
  - `limit` (number, default: 25): Max entries to return
126
126
  - `offset` (number, default: 0): Skip first N entries for pagination
127
127
 
128
- ### read.strategy.list
128
+ ### read_strategy_list
129
129
 
130
130
  Get Arcadia LP strategies with 7d avg APY for each strategy's default range.
131
131
 
@@ -133,53 +133,62 @@ Parameters:
133
133
  - `featured_only` (boolean, default: false): Return only featured/curated strategies
134
134
  - `limit` (number, default: 25): Max strategies to return
135
135
  - `offset` (number, default: 0): Skip first N strategies for pagination
136
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
136
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
137
137
 
138
- ### read.strategy.info
138
+ ### read_strategy_info
139
139
 
140
140
  Get full detail for a specific LP strategy by ID.
141
141
 
142
142
  Parameters:
143
143
  - `strategy_id` (number, required): Strategy ID
144
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
144
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
145
145
 
146
- ### read.strategy.recommendation
146
+ ### read_strategy_recommendation
147
147
 
148
148
  Get a rebalancing recommendation for an Arcadia account.
149
149
 
150
150
  Parameters:
151
151
  - `account_address` (string, required): Arcadia account address
152
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
152
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
153
153
 
154
- ### read.asset_manager.intents
154
+ ### read_asset_manager_intents
155
155
 
156
156
  List the automation intents Arcadia supports with the parameters each accepts. Pass `account_address` to also get live per-account availability, including the compatibility rule blocking anything unavailable.
157
157
 
158
158
  Parameters:
159
159
  - `account_address` (string, optional): Include it to get live per-account availability
160
160
  - `position_id` (number, optional): Scope availability to one LP position. Requires account_address
161
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
161
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
162
162
 
163
- ### read.asset_manager.current
163
+ ### read_asset_manager_current
164
164
 
165
165
  Read which asset managers are enabled on an account, with their decoded on-chain configuration, the intents they map to, Merkl claim state, and any superseded managers that should be cleared.
166
166
 
167
167
  Parameters:
168
168
  - `account_address` (string, required): Arcadia account address
169
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
169
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
170
170
 
171
- ### read.guides
171
+ ### read_guides
172
172
 
173
173
  Get Arcadia workflow guides and reference documentation.
174
174
 
175
175
  Parameters:
176
176
  - `topic` (enum, optional): overview | automation | strategies | selection
177
177
 
178
- ## Write Tools (16)
178
+ ### read_account_aero_upgrade
179
+
180
+ Which Arcadia accounts have something to upgrade to Aero (MetadexCL V1): Slipstream V1 to V3 positions (staked or not) and old AERO. Per account: `status` (ready | choices_required | waiting | not_open | nothing_to_upgrade), `positions`, `movable`, `waiting`, `blocked`, `old_aero`. Accounts without a Slipstream position or old AERO are left out. `failed_accounts` lists the accounts whose check failed, with the error: an empty `accounts` list means nothing to do only when `failed_accounts` is empty too. Otherwise those accounts could not be checked, so say so and retry later. No calldata or simulation; call write_account_aero_upgrade for the plan and the transaction.
181
+
182
+ Parameters:
183
+ - `wallet_address` (string): every account of a wallet; pass this or `account_address`
184
+ - `account_address` (string): one account
185
+ - `chain_id` (number, default: 8453): 8453 (Base) or 10 (Optimism); Robinhood (4663) answers an empty list
186
+
187
+ ## Write Tools (18)
179
188
 
180
189
  All write tools return unsigned transactions as `{ to, data, value, chainId }`.
181
190
 
182
- ### write.wallet.approve
191
+ ### write_wallet_approve
183
192
 
184
193
  Build an unsigned approval transaction for ERC20 tokens or ERC721/ERC1155 NFTs.
185
194
 
@@ -188,19 +197,28 @@ Parameters:
188
197
  - `spender_address` (string, required): Address being approved
189
198
  - `asset_type` (enum, default: "erc20"): erc20 | erc721 | erc1155
190
199
  - `amount` (string, default: "max_uint256"): ERC20 only: amount in raw units
191
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
200
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
201
+
202
+ ### write_wallet_upgrade_velo
203
+
204
+ Upgrade VELO held in a wallet on Optimism to the new AERO on Base: ordered wallet transactions (`transactions[]`) from `owner_address`, an approve when the allowance is short, then depositLiquid on the Velodrome migration with the Hyperlane fee as value. 0.044 new AERO per VELO arrives at the same address on Base. VELO inside an account must be withdrawn first (write_account_withdraw); VELO stays usable, so this is optional. Errors name the contract's reason: `not_open` (with the opening time), `paused`, `budget_exhausted`, `recipient_not_deployed`.
205
+
206
+ Parameters:
207
+ - `owner_address` (string, required): wallet holding the VELO; receives the AERO on Base
208
+ - `amount` (string, optional): raw units (18 decimals); omit for the full balance
209
+ - `chain_id` (number, default: 10): Optimism only
192
210
 
193
- ### write.pool.deposit
211
+ ### write_pool_deposit
194
212
 
195
- Build an unsigned deposit transaction into an Arcadia lending tranche (ERC-4626). Lenders deposit the pool's underlying asset (USDC / WETH / cbBTC) and receive tranche shares that accrue interest from borrowers. Requires prior ERC-20 approval to the tranche via `write.wallet.approve`.
213
+ Build an unsigned deposit transaction into an Arcadia lending tranche (ERC-4626). Lenders deposit the pool's underlying asset (USDC / WETH / cbBTC) and receive tranche shares that accrue interest from borrowers. Requires prior ERC-20 approval to the tranche via `write_wallet_approve`.
196
214
 
197
215
  Parameters:
198
- - `tranche_address` (string, required): Tranche contract address (get from `read.pool.list`, each pool's `tranches[0].address`)
216
+ - `tranche_address` (string, required): Tranche contract address (get from `read_pool_list`, each pool's `tranches[0].address`)
199
217
  - `assets` (string, required): Amount of underlying asset to deposit in raw units
200
218
  - `receiver` (string, required): Address that receives the minted tranche shares
201
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
219
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
202
220
 
203
- ### write.pool.redeem
221
+ ### write_pool_redeem
204
222
 
205
223
  Build an unsigned redeem transaction to withdraw from an Arcadia lending tranche (ERC-4626). Burns tranche shares and returns the corresponding amount of underlying asset, including accrued interest. The owner must be the shares holder; receiver is where the underlying is sent.
206
224
 
@@ -209,9 +227,9 @@ Parameters:
209
227
  - `shares` (string, required): Amount of tranche shares to burn in raw units
210
228
  - `receiver` (string, required): Address that receives the underlying asset
211
229
  - `owner` (string, required): Address that owns the tranche shares being burned
212
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
230
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
213
231
 
214
- ### write.account.create
232
+ ### write_account_create
215
233
 
216
234
  Build an unsigned transaction to create a new Arcadia account via the Factory contract.
217
235
 
@@ -220,9 +238,9 @@ Parameters:
220
238
  - `wallet_address` (string, required): Wallet address that will send the transaction
221
239
  - `account_version` (number, default: 0): 0 = latest (V4 spot), 3 = margin (can borrow)
222
240
  - `creditor` (string, optional): Lending pool address for V3 margin account
223
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
241
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
224
242
 
225
- ### write.account.deposit
243
+ ### write_account_deposit
226
244
 
227
245
  Build an unsigned transaction to deposit assets into an Arcadia account as collateral.
228
246
 
@@ -233,9 +251,9 @@ Parameters:
233
251
  - `asset_ids` (number[], optional): Token IDs: 0 for ERC20, NFT token ID for ERC721
234
252
  - `asset_types` (number[], optional): V4 only. 1=ERC20, 2=ERC721, 3=ERC1155
235
253
  - `account_version` (number, optional): Override account version (auto-detected if omitted)
236
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
254
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
237
255
 
238
- ### write.account.withdraw
256
+ ### write_account_withdraw
239
257
 
240
258
  Build an unsigned transaction to withdraw assets from an Arcadia account.
241
259
 
@@ -246,9 +264,9 @@ Parameters:
246
264
  - `asset_ids` (number[], optional): Token IDs: 0 for ERC20, NFT token ID for ERC721
247
265
  - `asset_types` (number[], optional): V4 only. 1=ERC20, 2=ERC721, 3=ERC1155
248
266
  - `account_version` (number, optional): Override account version (auto-detected if omitted)
249
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
267
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
250
268
 
251
- ### write.account.borrow
269
+ ### write_account_borrow
252
270
 
253
271
  Build an unsigned transaction to borrow from an Arcadia lending pool.
254
272
 
@@ -257,9 +275,9 @@ Parameters:
257
275
  - `account_address` (string, required): Arcadia account address used as collateral
258
276
  - `amount` (string, required): Amount in raw units
259
277
  - `to` (string, required): Address to receive borrowed tokens
260
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
278
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
261
279
 
262
- ### write.account.repay
280
+ ### write_account_repay
263
281
 
264
282
  Repay debt to an Arcadia lending pool using tokens from the wallet.
265
283
 
@@ -267,9 +285,9 @@ Parameters:
267
285
  - `pool_address` (string, required): Lending pool address
268
286
  - `account_address` (string, required): Arcadia account address with debt
269
287
  - `amount` (string, required): Amount in raw units, or "max_uint256" to repay all
270
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
288
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
271
289
 
272
- ### write.account.add_liquidity
290
+ ### write_account_add_liquidity
273
291
 
274
292
  Flash-action: atomically deposits from wallet + uses account collateral + swaps to optimal ratio + mints LP + borrows if leveraged, in one transaction.
275
293
 
@@ -277,7 +295,7 @@ Parameters:
277
295
  - `account_address` (string, required): Arcadia account address
278
296
  - `wallet_address` (string, required): Wallet address of the account owner
279
297
  - `positions` (object[], required): LP positions to mint. Each object:
280
- - `strategy_id` (number, required): From read.strategy.list
298
+ - `strategy_id` (number, required): From read_strategy_list
281
299
  - `tick_lower` (number, optional): Lower tick. Omit for full range.
282
300
  - `tick_upper` (number, optional): Upper tick. Omit for full range.
283
301
  - `deposits` (object[], optional): Wallet tokens to deposit. Each object:
@@ -287,9 +305,9 @@ Parameters:
287
305
  - `use_account_assets` (boolean, default: false): Use all existing account collateral
288
306
  - `leverage` (number, default: 0): 0 = no borrow, 2 = 2x leverage
289
307
  - `slippage` (number, default: 100): Basis points, 100 = 1%
290
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
308
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
291
309
 
292
- ### write.account.remove_liquidity
310
+ ### write_account_remove_liquidity
293
311
 
294
312
  Flash-action: partially decreases liquidity from an LP position.
295
313
 
@@ -298,9 +316,9 @@ Parameters:
298
316
  - `asset_address` (string, required): Position manager contract
299
317
  - `asset_id` (number, required): NFT token ID
300
318
  - `adjustment` (string, required): Liquidity amount to remove (raw uint128)
301
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
319
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
302
320
 
303
- ### write.account.swap
321
+ ### write_account_swap
304
322
 
305
323
  Flash-action: swaps assets within an Arcadia account atomically.
306
324
 
@@ -310,9 +328,9 @@ Parameters:
310
328
  - `asset_to` (string, required): Token address to swap to
311
329
  - `amount_in` (string, required): Raw units
312
330
  - `slippage` (number, default: 100): Basis points, 100 = 1%
313
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
331
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
314
332
 
315
- ### write.account.deleverage
333
+ ### write_account_deleverage
316
334
 
317
335
  Flash-action: sells account collateral to the debt token and repays atomically.
318
336
 
@@ -323,9 +341,9 @@ Parameters:
323
341
  - `numeraire` (string, required): Debt token address
324
342
  - `creditor` (string, required): Lending pool address
325
343
  - `slippage` (number, default: 100): Basis points, 100 = 1%
326
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
344
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
327
345
 
328
- ### write.account.stake
346
+ ### write_account_stake
329
347
 
330
348
  Flash-action: stake, unstake, or claim rewards for an LP position.
331
349
 
@@ -334,9 +352,28 @@ Parameters:
334
352
  - `action` (enum, required): stake | unstake | claim
335
353
  - `asset_address` (string, required): Position manager contract address
336
354
  - `asset_id` (number, required): NFT token ID
337
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
355
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
356
+
357
+ ### write_account_aero_upgrade
358
+
359
+ Upgrade one Arcadia account to Aero (MetadexCL V1) in one flashAction: every Slipstream V1/V2/V3 position (staked or not) moves to the Aero CL pool with the same pair and variant at the same range and tick spacing (when Aero has no pool at that tick spacing, the user picks another one), and every unit of old AERO (loose, in rewards, in an old-AERO pair) becomes the new AERO. Returns the plan (`items[]` with `status` and `reason`, `managers_to_reconnect`, `old_managers_still_needed`, `tenderly_sim_status`) and, when anything can go now, the unsigned `transaction` with its `gas`. The backend decides what moves; report statuses and reasons as given.
360
+
361
+ - `status` ready: sign the transaction. `choices_required`: a position has status `choose` with `options[]` (every Aero pool on its pair with `apy`, `tvl_usd`, `is_new`, `tick_spacing`, `range_widened`, `default`, `disabled_reason`); ask the user to pick one whose `disabled_reason` is null and call again with `choices`, so one transaction moves everything. A `transaction` returned with `choices_required` moves only the ready items: sign it alone only when the user wants to leave the choose positions where they are. `waiting`: see each item's `reason` (for example `pool_not_on_aero`, `target_price_mismatch`, `account_unhealthy`, `exposure_limit`); a waiting item with an option whose `disabled_reason` is null can still move with that pick. `not_open`: the AERO upgrade contract does not accept deposits at the moment.
362
+ - When the transaction's simulation fails, the tool returns an error and no transaction. A plan without a transaction can still show `tenderly_sim_status` failure: the account's health or a lending pool limit refused the move and the items wait on `account_unhealthy` or `exposure_limit`. Report those reasons and do not rebuild.
363
+ - Pass `accounts` (up to 10) instead of `account_address` for one plan per account (`results[]`). `multisends` groups the accounts that got a transaction, in order: a Safe signs one MultiSend per group, each below `max_gas_per_tx`.
364
+ - After it confirms, reconnect `managers_to_reconnect` with write_account_automations (or write_account_automations_delta when `old_managers_still_needed`) and verify with read_account_info.
365
+
366
+ Spot and margin accounts can hold Aero positions, staked or not, on Base, Optimism and Robinhood.
367
+
368
+ Parameters:
369
+ - `account_address` (string): the account to upgrade; pass this or `accounts`
370
+ - `accounts` (string[], 1 to 10): one plan and transaction per account
371
+ - `choices` (object[], optional): `{position_manager, position_id, pool}` per position with status choose, or waiting with a selectable option
372
+ - `slippage` (number, optional, 1 to 1000): price band in bps; default 150, or 500 when the owner is a contract
373
+ - `min_block` (number, optional): block of the transaction you just confirmed, so the plan reads state at or after it
374
+ - `chain_id` (number, default: 8453): 8453 (Base), 10 (Optimism) or 4663 (Robinhood, nothing to upgrade)
338
375
 
339
- ### write.account.close
376
+ ### write_account_close
340
377
 
341
378
  Atomic flash-action that closes an Arcadia account position in one transaction.
342
379
 
@@ -353,9 +390,9 @@ Parameters:
353
390
  - `distribution` (number, optional): Fraction of proceeds (0-1)
354
391
  - `close_lp_only` (boolean, default: false): true = only burn LP, false = full close
355
392
  - `slippage` (number, default: 100): Basis points, 100 = 1%
356
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
393
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
357
394
 
358
- ### write.account.automations
395
+ ### write_account_automations
359
396
 
360
397
  Configure an account's automations from a list of intents and return the unsigned setAssetManagers transaction. The backend resolves which asset managers each intent needs, validates the combination, encodes the metadata and builds the calldata, so you describe the desired outcome rather than the contracts.
361
398
 
@@ -373,26 +410,26 @@ Parameters:
373
410
  - `intents` (object[], required): Complete desired automation state, at least one intent
374
411
  - `mode` (enum, default: "save"): save diffs against on-chain state and returns a signable transaction that also disables anything omitted; preview resolves and validates only, returning a plan and no transaction
375
412
  - `position_id` (number, optional): LP position id. Supply it and the backend fetches protocol, staked flag, tokens and reward tokens
376
- - `protocol` (enum, optional): Only needed without position_id. Accepts slipstream_v1 | slipstream_v2 | slipstream_v3 | uniswap_v3 | uniswap_v4, or the dex_protocol spellings (slipstream, staked_slipstream_v3, uniV3, ...) which imply is_staked
413
+ - `protocol` (enum, optional): Only needed without position_id. Accepts slipstream_v1 | slipstream_v2 | slipstream_v3 | uniswap_v3 | uniswap_v4 | metadexcl_v1, or the dex_protocol spellings (slipstream, staked_slipstream_v3, metadexcl_v1, staked_metadexcl_v1, uniV3, ...) which imply is_staked
377
414
  - `is_staked` (boolean, optional): Whether the LP position is staked
378
415
  - `token0` / `token1` (string, optional): Pool token addresses
379
416
  - `reward_tokens` (string[], optional): Staking reward token addresses
380
417
  - `owner` (string, optional): Account owner EOA, used to resolve wallet payout targets
381
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
418
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
382
419
 
383
- ### write.account.automations_delta
420
+ ### write_account_automations_delta
384
421
 
385
422
  Apply an explicit change to an account's automations and return the unsigned setAssetManagers transaction. A delta, not a full desired state: automations not mentioned are left untouched. Superseded managers still set on the account are force-disabled regardless.
386
423
 
387
424
  Parameters:
388
425
  - `account_address` (string, required): Arcadia account address
389
- - `enable` (object[], default: []): Intents to switch on, same shapes as write.account.automations
390
- - `disable` (string[], default: []): Asset-manager addresses to switch off, as returned by read.asset_manager.current
391
- - position context params and `chain_id`: same as write.account.automations
426
+ - `enable` (object[], default: []): Intents to switch on, same shapes as write_account_automations
427
+ - `disable` (string[], default: []): Asset-manager addresses to switch off, as returned by read_asset_manager_current
428
+ - position context params and `chain_id`: same as write_account_automations
392
429
 
393
430
  ## Dev Tools (1)
394
431
 
395
- ### dev.send
432
+ ### dev_send
396
433
 
397
434
  Sign and broadcast an unsigned transaction using a local private key (PK env var). Dev only.
398
435
 
@@ -400,7 +437,7 @@ Parameters:
400
437
  - `to` (string, required): Target contract address
401
438
  - `data` (string, required): Encoded calldata (hex)
402
439
  - `value` (string, default: "0"): Value in wei
403
- - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), or 10 (Optimism)
440
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base), 130 (Unichain), 10 (Optimism), or 4663 (Robinhood)
404
441
 
405
442
  ## Links
406
443
 
package/llms.txt CHANGED
@@ -1,10 +1,10 @@
1
1
  # Arcadia Finance MCP Server
2
2
 
3
- > MCP server for Arcadia Finance, a DeFi protocol for concentrated liquidity (Uniswap v3/v4, Aerodrome/Slipstream, Velodrome) with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Supported chains: Base (8453), Unichain (130), Optimism (10).
3
+ > MCP server for Arcadia Finance, a DeFi protocol for concentrated liquidity (Uniswap v3/v4, Aero CL, Aerodrome/Slipstream, Velodrome) with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Supported chains: Base (8453), Unichain (130), Optimism (10), Robinhood (4663).
4
4
 
5
5
  ## Overview
6
6
 
7
- Arcadia lets users deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools to earn borrower interest. This MCP server exposes the full protocol as 35 tools:
7
+ Arcadia lets users deploy concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage, or provide single-sided liquidity to lending pools to earn borrower interest. This MCP server exposes the full protocol as 38 tools:
8
8
 
9
9
  - **Account management**: health factor, collateral, debt, positions, PnL, history
10
10
  - **Wallet**: ERC20 balances, allowances, owned accounts, points
@@ -24,51 +24,54 @@ npx -y @arcadia-finance/mcp-server
24
24
 
25
25
  Or connect to the remote server: `https://mcp.arcadia.finance/mcp`
26
26
 
27
- ## Tools (35 total)
28
-
29
- ### Read (18)
30
-
31
- - read.account.info: account overview with health factor, collateral, debt, positions, liquidation price, automation status
32
- - read.account.history: historical account value over time
33
- - read.account.pnl: PnL and yield data for an account
34
- - read.wallet.accounts: list all Arcadia accounts owned by a wallet
35
- - read.wallet.balances: ERC20 and native ETH balances for a wallet
36
- - read.wallet.allowances: check ERC20 token allowances for a spender
37
- - read.wallet.points: Arcadia points balance for a wallet
38
- - read.asset.list: supported collateral assets with addresses, types, decimals
39
- - read.asset.prices: USD prices for asset addresses
40
- - read.pool.list: all lending pools with TVL, APY, utilization, liquidity
41
- - read.pool.info: single pool detail with APY history
42
- - read.point_leaderboard: paginated points leaderboard
43
- - read.strategy.list: LP strategies with APY, underlyings, pool info
44
- - read.strategy.info: full detail for a specific LP strategy
45
- - read.strategy.recommendation: rebalancing recommendation for an account
46
- - read.guides: reference guides for automation, strategies, addresses
47
- - read.asset_manager.intents: automation intents and their params; pass account_address for live per-account availability
48
- - read.asset_manager.current: automations enabled on an account, with decoded per-manager config, mapped intents, Merkl state, and superseded managers
49
-
50
- ### Write (16)
51
-
52
- - write.wallet.approve: approve ERC20/ERC721 for spending
53
- - write.pool.deposit: deposit the pool's underlying asset into an ERC-4626 tranche to earn lender yield
54
- - write.pool.redeem: burn tranche shares and redeem the underlying asset (lender exit)
55
- - write.account.create: create a new Arcadia account
56
- - write.account.deposit: deposit assets into an account
57
- - write.account.withdraw: withdraw assets from an account
58
- - write.account.borrow: borrow from a lending pool
59
- - write.account.repay: repay debt from wallet tokens
60
- - write.account.add_liquidity: flash-action that deposits, swaps, mints LP, and optionally leverages atomically
61
- - write.account.remove_liquidity: partially decrease LP position liquidity
62
- - write.account.swap: swap assets within an account
63
- - write.account.deleverage: repay debt by selling collateral
64
- - write.account.close: atomic close that burns LP, swaps, and repays in one tx
65
- - write.account.stake: stake, unstake, or claim LP rewards
66
- - write.account.automations: configure automations from an intents array (complete desired state), returns the unsigned setAssetManagers tx
67
- - write.account.automations_delta: switch individual automations on or off, leaving the rest untouched
27
+ ## Tools (38 total)
28
+
29
+ ### Read (19)
30
+
31
+ - read_account_info: account overview with health factor, collateral, debt, positions, liquidation price, automation status
32
+ - read_account_history: historical account value over time
33
+ - read_account_pnl: PnL and yield data for an account
34
+ - read_wallet_accounts: list all Arcadia accounts owned by a wallet
35
+ - read_wallet_balances: ERC20 and native ETH balances for a wallet
36
+ - read_wallet_allowances: check ERC20 token allowances for a spender
37
+ - read_wallet_points: Arcadia points balance for a wallet
38
+ - read_asset_list: supported collateral assets with addresses, types, decimals
39
+ - read_asset_prices: USD prices for asset addresses
40
+ - read_pool_list: all lending pools with TVL, APY, utilization, liquidity
41
+ - read_pool_info: single pool detail with APY history
42
+ - read_point_leaderboard: paginated points leaderboard
43
+ - read_strategy_list: LP strategies with APY, underlyings, pool info
44
+ - read_strategy_info: full detail for a specific LP strategy
45
+ - read_strategy_recommendation: rebalancing recommendation for an account
46
+ - read_guides: reference guides for automation, strategies, addresses
47
+ - read_asset_manager_intents: automation intents and their params; pass account_address for live per-account availability
48
+ - read_asset_manager_current: automations enabled on an account, with decoded per-manager config, mapped intents, Merkl state, and superseded managers
49
+ - read_account_aero_upgrade: what a wallet's accounts (or one account) have to upgrade to Aero, per account status and counts, no calldata
50
+
51
+ ### Write (18)
52
+
53
+ - write_wallet_approve: approve ERC20/ERC721 for spending
54
+ - write_wallet_upgrade_velo: upgrade wallet VELO on Optimism to the new AERO on Base
55
+ - write_pool_deposit: deposit the pool's underlying asset into an ERC-4626 tranche to earn lender yield
56
+ - write_pool_redeem: burn tranche shares and redeem the underlying asset (lender exit)
57
+ - write_account_create: create a new Arcadia account
58
+ - write_account_deposit: deposit assets into an account
59
+ - write_account_withdraw: withdraw assets from an account
60
+ - write_account_borrow: borrow from a lending pool
61
+ - write_account_repay: repay debt from wallet tokens
62
+ - write_account_add_liquidity: flash-action that deposits, swaps, mints LP, and optionally leverages atomically
63
+ - write_account_remove_liquidity: partially decrease LP position liquidity
64
+ - write_account_swap: swap assets within an account
65
+ - write_account_deleverage: repay debt by selling collateral
66
+ - write_account_close: atomic close that burns LP, swaps, and repays in one tx
67
+ - write_account_stake: stake, unstake, or claim LP rewards
68
+ - write_account_aero_upgrade: upgrade an account to Aero in one flashAction: Slipstream positions move to Aero CL, old AERO becomes the new AERO; returns the plan and the transaction for the items that are ready
69
+ - write_account_automations: configure automations from an intents array (complete desired state), returns the unsigned setAssetManagers tx
70
+ - write_account_automations_delta: switch individual automations on or off, leaving the rest untouched
68
71
 
69
72
  ### Dev (1)
70
73
 
71
- - dev.send: sign and broadcast using local private key (dev only)
74
+ - dev_send: sign and broadcast using local private key (dev only)
72
75
 
73
76
  ## Links
74
77
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@arcadia-finance/mcp-server",
3
3
  "mcpName": "io.github.arcadia-finance/mcp-server",
4
- "version": "0.5.1",
5
- "description": "MCP server for Arcadia Finance. Deploy concentrated liquidity on Uniswap, Aerodrome, and Velodrome with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Base, Unichain, and Optimism.",
4
+ "version": "0.6.0",
5
+ "description": "MCP server for Arcadia Finance. Deploy concentrated liquidity on Uniswap/Aero, Aerodrome and Velodrome with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Base, Optimism, Unichain and Robinhood.",
6
6
  "type": "module",
7
7
  "license": "AGPL-3.0",
8
8
  "packageManager": "yarn@4.13.0",
@@ -22,6 +22,7 @@
22
22
  "clamm",
23
23
  "liquidity",
24
24
  "uniswap",
25
+ "aero",
25
26
  "aerodrome",
26
27
  "slipstream",
27
28
  "base",
@@ -66,14 +67,17 @@
66
67
  "access": "public"
67
68
  },
68
69
  "dependencies": {
69
- "@modelcontextprotocol/sdk": "^1.12.0",
70
+ "@modelcontextprotocol/node": "^2.1.1",
71
+ "@modelcontextprotocol/server": "^2.3.1",
70
72
  "express": "^5.2.1",
71
73
  "express-rate-limit": "^8.3.1",
74
+ "posthog-node": "5.56.3",
72
75
  "viem": "^2.0.0",
73
- "zod": "^3.23.0"
76
+ "zod": "^4.2.0"
74
77
  },
75
78
  "devDependencies": {
76
79
  "@eslint/js": "^9.0.0",
80
+ "@modelcontextprotocol/client": "^2.3.1",
77
81
  "@types/express": "^5.0.6",
78
82
  "@types/node": "^22.0.0",
79
83
  "@typescript-eslint/eslint-plugin": "^8.0.0",