@arcadia-finance/mcp-server 0.6.1 → 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/README.md CHANGED
@@ -4,10 +4,11 @@
4
4
  [![npm downloads](https://img.shields.io/npm/dm/@arcadia-finance/mcp-server)](https://www.npmjs.com/package/@arcadia-finance/mcp-server)
5
5
  [![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-blue)](LICENSE.md)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.5-blue)](https://www.typescriptlang.org/)
7
- [![MCP](https://img.shields.io/badge/MCP-2025--11--25-green)](https://modelcontextprotocol.io/)
7
+ [![MCP](https://img.shields.io/badge/MCP-2026--07--28-green)](https://modelcontextprotocol.io/)
8
8
  [![Smithery](https://img.shields.io/badge/Smithery-listed-6b46c1)](https://smithery.ai/servers/arcadia-finance/mcp-server)
9
9
  [![MCP Badge](https://lobehub.com/badge/mcp/arcadia-finance-mcp-server)](https://lobehub.com/mcp/arcadia-finance-mcp-server)
10
10
  [![arcadia-finance-mcp-server MCP server](https://glama.ai/mcp/servers/arcadia-finance/mcp-server/badges/score.svg)](https://glama.ai/mcp/servers/arcadia-finance/mcp-server)
11
+ [![mcptry](https://mcptry.com/badge/io.github.arcadia-finance/mcp-server)](https://mcptry.com/servers/io.github.arcadia-finance/mcp-server)
11
12
 
12
13
  MCP server for [Arcadia Finance](https://arcadia.finance), a platform for concentrated liquidity on Uniswap and Aero with automated rebalancing, compounding, yield optimization, and leverage, or single-sided liquidity into lending pools. Read protocol data and build unsigned transactions for LP management, borrowing, deposits, and more.
13
14
 
@@ -243,7 +244,8 @@ Pull requests for documentation fixes are welcome from agents and humans alike.
243
244
  - **PulseMCP:** [pulsemcp.com](https://www.pulsemcp.com/servers/arcadia-finance)
244
245
  - **MCP Market:** [mcpmarket.com](https://mcpmarket.com/server/arcadia-finance)
245
246
  - **Glama:** [glama.ai](https://glama.ai/mcp/servers/arcadia-finance/mcp-server)
246
- - **awesome-mcp-servers:** [github.com/TensorBlock/awesome-mcp-servers](https://github.com/TensorBlock/awesome-mcp-servers)
247
+ - **mcp.so:** [mcp.so](https://mcp.so/server/arcadia-finance/mcp-server)
248
+ - **awesome-mcp-servers:** [github.com/punkpeye/awesome-mcp-servers](https://github.com/punkpeye/awesome-mcp-servers)
247
249
 
248
250
  ## Development
249
251
 
@@ -254,3 +256,11 @@ yarn test # Run tests
254
256
  yarn lint # Lint with ESLint
255
257
  yarn format # Check formatting with Prettier
256
258
  ```
259
+
260
+ ## Privacy
261
+
262
+ When `POSTHOG_KEY` is set on an HTTP deployment, the server records one analytics event per tool call in PostHog (EU ingestion host by default): the tool name, its arguments (which can include public wallet and account addresses), whether the call failed, the duration, and the client name and version. Events carry no person profile. Running the server locally over stdio sends no analytics, and neither does an HTTP deployment without `POSTHOG_KEY`. Tool calls never carry private keys. The development-only `dev_send` tool signs with a `PK` set in the server's own environment; the hosted server has none. Questions: legal@arcadia.finance.
263
+
264
+ ## License
265
+
266
+ Copyright (C) 2026 Pragma Labs. Licensed under the [GNU Affero General Public License v3.0](LICENSE.md).
@@ -14,8 +14,8 @@ const unichain = defineChain({
14
14
  multicall3: { address: "0xcA11bde05977b3631167028862bE2a173976CA11" },
15
15
  },
16
16
  });
17
- // Robinhood is not in viem/chains either. multicall3 sits at the canonical address (3808 bytes on
18
- // chain) and is declared with no blockCreated, so no historical gating applies.
17
+ // multicall3 sits at the canonical address (3808 bytes on chain) and is declared with no
18
+ // blockCreated, so no historical gating applies.
19
19
  const robinhood = defineChain({
20
20
  id: 4663,
21
21
  name: "Robinhood",
@@ -27,7 +27,7 @@ const robinhood = defineChain({
27
27
  multicall3: { address: "0xcA11bde05977b3631167028862bE2a173976CA11" },
28
28
  },
29
29
  });
30
- const viemChains = {
30
+ export const viemChains = {
31
31
  8453: base,
32
32
  10: optimism,
33
33
  130: unichain,
@@ -0,0 +1,10 @@
1
+ const FIVE_MINUTES_MS = 5 * 60 * 1000;
2
+ const staticPublic = { ttlMs: FIVE_MINUTES_MS, cacheScope: "public" };
3
+ export const CACHE_HINTS = {
4
+ "server/discover": staticPublic,
5
+ "tools/list": staticPublic,
6
+ "prompts/list": staticPublic,
7
+ "resources/list": staticPublic,
8
+ "resources/templates/list": staticPublic,
9
+ "resources/read": staticPublic,
10
+ };
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ catch {
11
11
  import { createRequire } from "module";
12
12
  import { McpServer } from "@modelcontextprotocol/server";
13
13
  import { ArcadiaApiClient } from "./clients/api.js";
14
+ import { CACHE_HINTS } from "./config/cache-hints.js";
14
15
  import { getChainConfigs } from "./config/chains.js";
15
16
  import { registerAllTools } from "./tools/index.js";
16
17
  import { registerAllResources } from "./resources/index.js";
@@ -28,7 +29,7 @@ function buildServer() {
28
29
  name: "arcadia-finance",
29
30
  version: pkg.version,
30
31
  description: "Arcadia Finance. Manage concentrated liquidity positions on Uniswap and Aero with automated rebalancing, compounding, yield optimization, and leverage. Base, Optimism, Unichain and Robinhood.",
31
- });
32
+ }, { cacheHints: CACHE_HINTS });
32
33
  const target = analytics
33
34
  ? withAnalytics(server, server, analytics, {
34
35
  transport: transportMode,
@@ -48,8 +48,8 @@ export function registerWorkflowPrompts(server) {
48
48
  `Find the best yield strategy on Arcadia (chain ${chain_id ?? "8453"})${deposit_token ? ` for depositing ${deposit_token}` : ""}.`,
49
49
  "",
50
50
  "Steps:",
51
- "1. Call read_strategy_list(featured_only: true) to see top LP strategies with fee APY",
52
- "2. Call read_strategy_info(strategy_id: <id>) for promising ones to see APY per range width",
51
+ "1. Call read_strategy_list(featured_only: true) to see top LP strategies with fee APY over the last 24 hours at the featured range width",
52
+ "2. Call read_strategy_info(strategy_id: <id>) for promising ones to see APY per range width over the last 24 hours",
53
53
  "3. Call read_pool_list to check borrow APY for leveraged strategies",
54
54
  "4. Evaluate: net_APY = fee_APY - (leverage - 1) * borrow_APY > 0?",
55
55
  "",
@@ -1,15 +1,10 @@
1
1
  import { z } from "zod";
2
2
  import { createWalletClient, createPublicClient, http } from "viem";
3
3
  import { privateKeyToAccount } from "viem/accounts";
4
- import { base, optimism, unichain } from "viem/chains";
4
+ import { viemChains } from "../../clients/chain.js";
5
5
  import { CHAIN_ID_DESCRIPTION } from "../../config/chains.js";
6
6
  import { DevSendOutput } from "../output-schemas.js";
7
7
  import { validateAddress, validateHexCalldata, parseWeiDecimalString, } from "../../utils/validation.js";
8
- const VIEM_CHAINS = {
9
- 8453: base,
10
- 130: unichain,
11
- 10: optimism,
12
- };
13
8
  export function registerSendTool(server, chains) {
14
9
  server.registerTool("dev_send", {
15
10
  annotations: {
@@ -44,7 +39,7 @@ export function registerSendTool(server, chains) {
44
39
  const validTo = validateAddress(params.to, "to");
45
40
  const calldata = validateHexCalldata(params.data, "data");
46
41
  const valueWei = parseWeiDecimalString(params.value, "value");
47
- const chain = VIEM_CHAINS[params.chain_id];
42
+ const chain = viemChains[params.chain_id];
48
43
  const chainConfig = chains[params.chain_id];
49
44
  if (!chainConfig) {
50
45
  return {
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { CHAIN_ID_DESCRIPTION } from "../../config/chains.js";
2
3
  import { validateAddress, validateChainId } from "../../utils/validation.js";
3
4
  import { AutomationsStateOutput, IntentsListOutput } from "../output-schemas.js";
4
5
  const INTENT_CATALOG = [
@@ -70,10 +71,7 @@ export function registerAssetManagerTools(server, api) {
70
71
  .int()
71
72
  .optional()
72
73
  .describe("LP position (NFT) id to scope availability to. Requires account_address."),
73
- chain_id: z
74
- .number()
75
- .default(8453)
76
- .describe("Chain id: 8453 Base, 130 Unichain, 10 Optimism"),
74
+ chain_id: z.number().default(8453).describe(CHAIN_ID_DESCRIPTION),
77
75
  }),
78
76
  }, async (params) => {
79
77
  try {
@@ -149,10 +147,7 @@ export function registerAssetManagerTools(server, api) {
149
147
  outputSchema: AutomationsStateOutput,
150
148
  inputSchema: z.object({
151
149
  account_address: z.string().describe("Arcadia account address"),
152
- chain_id: z
153
- .number()
154
- .default(8453)
155
- .describe("Chain id: 8453 Base, 130 Unichain, 10 Optimism"),
150
+ chain_id: z.number().default(8453).describe(CHAIN_ID_DESCRIPTION),
156
151
  }),
157
152
  }, async (params) => {
158
153
  try {
@@ -60,7 +60,7 @@ export function registerAssetTools(server, api) {
60
60
  idempotentHint: true,
61
61
  openWorldHint: true,
62
62
  },
63
- description: "Get USD prices for one or more asset addresses. Pass a single address or comma-separated addresses. Returns a price map keyed by address.",
63
+ description: "Get USD prices for one or more asset addresses on one chain. Pass a single address or comma-separated addresses. Returns a price map keyed by address. Unknown or unpriced addresses return 0, not an error. Prices are scoped to chain_id (default 8453, Base), so pass the chain the addresses live on. Read-only. To find asset addresses, use read_asset_list.",
64
64
  inputSchema: z.object({
65
65
  asset_addresses: z
66
66
  .string()
@@ -11,7 +11,7 @@ export function registerStrategyTools(server, api) {
11
11
  idempotentHint: true,
12
12
  openWorldHint: true,
13
13
  },
14
- description: "Get Arcadia LP strategies. Use featured_only=true for curated top strategies (recommended first call). Returns a paginated list with 7d avg APY for each strategy's default range. Increase limit or use offset for pagination. All APY values are decimal fractions (1.0 = 100%, 0.05 = 5%). For full detail on a specific strategy (APY per range width), use read_strategy_info.",
14
+ description: "Get Arcadia LP strategies. Use featured_only=true for curated top strategies (recommended first call); their apy is measured over the last 24 hours at the featured range width, and is 0.0 when that measurement fails. Otherwise returns a paginated list where strategy_apy_7d is the 7-day average APY at each strategy's default range. Increase limit or use offset for pagination. All APY values are decimal fractions (1.0 = 100%, 0.05 = 5%). For APY per range width over the last 24 hours, use read_strategy_info.",
15
15
  inputSchema: z.object({
16
16
  featured_only: z
17
17
  .boolean()
@@ -118,7 +118,7 @@ export function registerStrategyTools(server, api) {
118
118
  idempotentHint: true,
119
119
  openWorldHint: true,
120
120
  },
121
- description: "Get full detail for a specific LP strategy by ID: includes APY per range width (narrower range = higher APY but more rebalancing cost/risk), pool info, and configuration. Use read_strategy_list to discover strategy IDs. All APY values are decimal fractions (1.0 = 100%, 0.05 = 5%).",
121
+ description: "Get full detail for a specific concentrated-liquidity LP strategy by ID: includes APY per range width over the last 24 hours, each range anchored on the current price (narrower range = higher APY but more rebalancing cost/risk), the 7-day average APY at the default range in the yield field, pool info, and configuration. For basic (constant-product) pools, use strategy_apy_7d from read_strategy_list. Use read_strategy_list to discover strategy IDs. All APY values are decimal fractions (1.0 = 100%, 0.05 = 5%).",
122
122
  inputSchema: z.object({
123
123
  strategy_id: z.number().describe("Strategy ID"),
124
124
  chain_id: z.number().default(8453).describe(CHAIN_ID_DESCRIPTION),
@@ -152,7 +152,7 @@ export function registerStrategyTools(server, api) {
152
152
  idempotentHint: true,
153
153
  openWorldHint: true,
154
154
  },
155
- description: "Get a rebalancing recommendation for an Arcadia account: suggests asset changes to optimize yield. Uses 1d APY (not 7d like read_strategy_list), so recommended strategies may differ from the list ranking. APY values are decimal fractions (0.05 = 5%). weekly_earning_difference is in USD.",
155
+ description: "Get a rebalancing recommendation for an Arcadia account: suggests asset changes to optimize yield. current_apy and proposed_apy are measured over the last 24 hours where possible (the account's positions at their own ranges, the proposal at its ranges), not the 7-day average of read_strategy_list, so recommended strategies may differ from the list ranking. APY values are decimal fractions (0.05 = 5%). weekly_earning_difference is in USD.",
156
156
  inputSchema: z.object({
157
157
  account_address: z.string().describe("Arcadia account address"),
158
158
  chain_id: z.number().default(8453).describe(CHAIN_ID_DESCRIPTION),
@@ -195,7 +195,7 @@ export function registerWalletTools(server, chains, api) {
195
195
  idempotentHint: true,
196
196
  openWorldHint: true,
197
197
  },
198
- description: "Get Arcadia points balance for a specific wallet address.",
198
+ description: "Get the Arcadia points balance for one wallet address. Returns points and wallet_address. A wallet with no points returns points 0 and wallet_address 'unknown', not an error. Read-only, no authentication. For the ranked list of wallets, use read_point_leaderboard.",
199
199
  inputSchema: z.object({
200
200
  wallet_address: z.string().describe("Wallet address to get points for"),
201
201
  }),
package/llms-full.txt CHANGED
@@ -80,7 +80,7 @@ Parameters:
80
80
 
81
81
  ### read_wallet_points
82
82
 
83
- Get Arcadia points balance for a specific wallet address.
83
+ Get the Arcadia points balance for one wallet address. Returns points and wallet_address. A wallet with no points returns points 0 and wallet_address 'unknown', not an error. Read-only, no authentication. For the ranked list of wallets, use read_point_leaderboard.
84
84
 
85
85
  Parameters:
86
86
  - `wallet_address` (string, required): Wallet address to get points for
@@ -95,7 +95,7 @@ Parameters:
95
95
 
96
96
  ### read_asset_prices
97
97
 
98
- Get USD prices for one or more asset addresses.
98
+ Get USD prices for one or more asset addresses on one chain. Pass a single address or comma-separated addresses. Returns a price map keyed by address. Unknown or unpriced addresses return 0, not an error. Prices are scoped to chain_id (default 8453, Base), so pass the chain the addresses live on. Read-only. To find asset addresses, use read_asset_list.
99
99
 
100
100
  Parameters:
101
101
  - `asset_addresses` (string, required): Single address or comma-separated addresses
@@ -127,7 +127,7 @@ Parameters:
127
127
 
128
128
  ### read_strategy_list
129
129
 
130
- Get Arcadia LP strategies with 7d avg APY for each strategy's default range.
130
+ Get Arcadia LP strategies: the 7-day average APY at each strategy's default range, or for featured strategies the last 24 hours at the featured range width.
131
131
 
132
132
  Parameters:
133
133
  - `featured_only` (boolean, default: false): Return only featured/curated strategies
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arcadia-finance/mcp-server",
3
3
  "mcpName": "io.github.arcadia-finance/mcp-server",
4
- "version": "0.6.1",
4
+ "version": "0.7.0",
5
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",
@@ -67,27 +67,28 @@
67
67
  "access": "public"
68
68
  },
69
69
  "dependencies": {
70
- "@modelcontextprotocol/node": "^2.1.1",
71
- "@modelcontextprotocol/server": "^2.3.1",
72
- "express": "^5.2.1",
73
- "express-rate-limit": "^8.3.1",
74
- "posthog-node": "5.56.3",
75
- "viem": "^2.0.0",
70
+ "@modelcontextprotocol/node": "^2.1.2",
71
+ "@modelcontextprotocol/server": "^2.4.0",
72
+ "express": "^5.3.0",
73
+ "express-rate-limit": "^8.7.3",
74
+ "posthog-node": "5.63.2",
75
+ "viem": "^2.57.17",
76
76
  "zod": "^4.2.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@eslint/js": "^9.0.0",
80
- "@modelcontextprotocol/client": "^2.3.1",
79
+ "@eslint/js": "^10",
80
+ "@modelcontextprotocol/client": "^2.4.0",
81
81
  "@types/express": "^5.0.6",
82
82
  "@types/node": "^22.0.0",
83
- "@typescript-eslint/eslint-plugin": "^8.0.0",
84
- "@typescript-eslint/parser": "^8.0.0",
85
- "eslint": "^9.0.0",
86
- "eslint-config-prettier": "^10.0.0",
83
+ "@typescript-eslint/eslint-plugin": "^8.72.1",
84
+ "@typescript-eslint/parser": "^8.72.1",
85
+ "eslint": "^10",
86
+ "eslint-config-prettier": "^10.1.8",
87
87
  "prettier": "^3.0.0",
88
- "tsx": "^4.0.0",
89
- "typescript": "^5.5.0",
90
- "typescript-eslint": "^8.0.0",
91
- "vitest": "^3.0.0"
88
+ "tsx": "^4.23.15",
89
+ "typescript": "~6.0.3",
90
+ "typescript-eslint": "^8.72.1",
91
+ "vite": "^8.3.6",
92
+ "vitest": "^5.1.0"
92
93
  }
93
94
  }
package/server.json CHANGED
@@ -3,8 +3,15 @@
3
3
  "name": "io.github.arcadia-finance/mcp-server",
4
4
  "title": "Arcadia Finance",
5
5
  "description": "Concentrated liquidity on Uniswap/Aero (rebalance, compound, leverage) or single-sided lending.",
6
- "version": "0.6.1",
6
+ "version": "0.7.0",
7
7
  "websiteUrl": "https://arcadia.finance",
8
+ "icons": [
9
+ {
10
+ "src": "https://arcadia.finance/arcadia_logo_green_bg_2.svg",
11
+ "mimeType": "image/svg+xml",
12
+ "sizes": ["any"]
13
+ }
14
+ ],
8
15
  "repository": {
9
16
  "url": "https://github.com/arcadia-finance/mcp-server",
10
17
  "source": "github"
@@ -13,7 +20,7 @@
13
20
  {
14
21
  "registryType": "npm",
15
22
  "identifier": "@arcadia-finance/mcp-server",
16
- "version": "0.6.1",
23
+ "version": "0.7.0",
17
24
  "transport": {
18
25
  "type": "stdio"
19
26
  },
@@ -14,6 +14,7 @@ Arcadia is a platform for managing concentrated liquidity positions with automat
14
14
  - **Automation strategy config** (tick range, rebalance thresholds) is not currently settable via MCP — this requires Arcadia platform access.
15
15
  - **Health factor** = `1 - (used_margin / liquidation_value)`. Higher is safer. `1` = no debt, `>0` = healthy, `0` = liquidation threshold, `<0` = past liquidation. Keep above 0.5 for leveraged positions; act immediately below 0.2.
16
16
  - **Minimum margin**: each lending pool enforces a fixed minimum margin denominated in the pool's numeraire (e.g. WETH for the WETH pool, USDC for the USDC pool), typically a few dollars in value. This gets **added to the debt** when computing `used_margin` (i.e. `used_margin = open_debt + minimum_margin`). It ensures liquidations remain profitable (covering gas costs) and prevents dust attacks. For small positions the fixed minimum margin dominates the used margin, pushing health factor lower than the leverage ratio alone would suggest (e.g. HF ~0.3 at 2× leverage). Increase position size for a healthier starting HF. `write_account_add_liquidity` also validates deposits against per-asset minimum amounts from strategy risk factors.
17
+ - **Price warnings**: if `write_account_add_liquidity` finds a pool price off market or a token with no price, it returns the warnings, an `accept_price_checks` list and no transaction. Show the warnings to the user and call again with that list only after the user explicitly confirms. Never set `accept_price_checks` on the first call. New warnings on a rebuild need a new confirmation. The acknowledgement never bypasses a backend refusal.
17
18
  - **`asset_id`** is always an integer (NFT token ID for LP positions, 0 for ERC20 tokens).
18
19
  - **Wrapping ETH** — ETH must be wrapped to WETH before depositing. Call WETH's `deposit()` function (payable) with the ETH amount. No MCP tool for this, use your wallet.
19
20
 
@@ -51,27 +52,27 @@ Arcadia's flash-action tools can batch multiple DeFi operations into a single at
51
52
 
52
53
  ### Read Tools
53
54
 
54
- | Tool | When to use |
55
- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
56
- | `read_account_info` | Account overview + liquidation price. Pass `account_address` for detail (returns positions with `asset_address`/`asset_id`/`dex_protocol`, collateral, debt). |
57
- | `read_account_history` | Historical account value over time. Optional `days` param (default 14). |
58
- | `read_account_pnl` | PnL and yield earned: use to check if a strategy is still profitable. |
59
- | `read_asset_list` | List supported collateral assets (symbol, address, decimals). Use `search` to filter by symbol substring. |
60
- | `read_asset_prices` | USD prices for one or more assets by address. Pass `asset_addresses` (single or comma-separated). |
61
- | `read_wallet_balances` | On-chain ERC20 balances and native ETH for a wallet. Use to pre-check if the wallet has enough tokens before depositing or adding liquidity. |
62
- | `read_wallet_allowances` | Check ERC20 token allowances for a spender. Use before `write_wallet_approve` to avoid redundant approvals: skip if the current allowance is already sufficient. |
63
- | `read_wallet_accounts` | List all Arcadia accounts owned by a wallet address. |
64
- | `read_wallet_points` | Points earned by a wallet address. |
65
- | `read_pool_list` | Lending pool TVL, APY, utilization, liquidity. Pass `pool_address` for detail + APY history (optional `days`, default 14). |
66
- | `read_pool_info` | Detail + APY history for a specific lending pool. Pass `pool_address`. |
67
- | `read_strategy_list` | LP strategies with fee APY, underlyings, pool protocol. List view shows 7d avg APY for the strategy's default range (e.g. ±7.5% for volatile pairs). **Pass `strategy_id` to see APY per range width** (very_narrow → full_range): narrower range = higher APY but more rebalancing cost/risk. Use `featured_only: true` for curated top strategies. |
68
- | `read_strategy_info` | Detail for a specific strategy by `strategy_id`, including range-width APY breakdown. |
69
- | `read_point_leaderboard` | Points leaderboard. No `chain_id` needed: points are cross-chain. |
70
- | `read_strategy_recommendation` | Rebalancing recommendation for an account. Uses 1d APY (not 7d like `read_strategy_list`), so numbers may differ. |
71
- | `read_asset_manager_intents` | List the automation intents and their params. Pass `account_address` for live per-account availability plus the rule blocking anything unavailable. |
72
- | `read_asset_manager_current` | What is enabled on an account now: decoded per-manager config, the intents it maps to, Merkl claim state, and superseded managers to clear. |
73
- | `read_account_aero_upgrade` | Aero upgrade check: what a wallet's accounts (or one account) still have to move to Aero, with status and counts and no calldata. Empty accounts and failed_accounts lists mean nothing to do. |
74
- | `read_guides` | Reference guides: `automation` (AM setup), `selection` (pool evaluation), `strategies` (step-by-step templates). |
55
+ | Tool | When to use |
56
+ | ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
57
+ | `read_account_info` | Account overview + liquidation price. Pass `account_address` for detail (returns positions with `asset_address`/`asset_id`/`dex_protocol`, collateral, debt). |
58
+ | `read_account_history` | Historical account value over time. Optional `days` param (default 14). |
59
+ | `read_account_pnl` | PnL and yield earned: use to check if a strategy is still profitable. |
60
+ | `read_asset_list` | List supported collateral assets (symbol, address, decimals). Use `search` to filter by symbol substring. |
61
+ | `read_asset_prices` | USD prices for one or more assets by address. Pass `asset_addresses` (single or comma-separated). |
62
+ | `read_wallet_balances` | On-chain ERC20 balances and native ETH for a wallet. Use to pre-check if the wallet has enough tokens before depositing or adding liquidity. |
63
+ | `read_wallet_allowances` | Check ERC20 token allowances for a spender. Use before `write_wallet_approve` to avoid redundant approvals: skip if the current allowance is already sufficient. |
64
+ | `read_wallet_accounts` | List all Arcadia accounts owned by a wallet address. |
65
+ | `read_wallet_points` | Points earned by a wallet address. |
66
+ | `read_pool_list` | Lending pool TVL, APY, utilization, liquidity. Pass `pool_address` for detail + APY history (optional `days`, default 14). |
67
+ | `read_pool_info` | Detail + APY history for a specific lending pool. Pass `pool_address`. |
68
+ | `read_strategy_list` | LP strategies with fee APY, underlyings, pool protocol. List view shows 7d avg APY for the strategy's default range (e.g. ±7.5% for volatile pairs). **Call `read_strategy_info` to see 24h APY per range width** (very_narrow → very_wide): narrower range = higher APY but more rebalancing cost/risk. Use `featured_only: true` for curated top strategies. |
69
+ | `read_strategy_info` | Detail for a concentrated-liquidity strategy by `strategy_id`: APY per range width over the last 24 hours, and the 7-day average at the default range in `yield`. For basic pools, use the 7d APY from `read_strategy_list`. |
70
+ | `read_point_leaderboard` | Points leaderboard. No `chain_id` needed: points are cross-chain. |
71
+ | `read_strategy_recommendation` | Rebalancing recommendation for an account. Uses 24h APY where possible (not the 7d average of `read_strategy_list`), so numbers may differ. |
72
+ | `read_asset_manager_intents` | List the automation intents and their params. Pass `account_address` for live per-account availability plus the rule blocking anything unavailable. |
73
+ | `read_asset_manager_current` | What is enabled on an account now: decoded per-manager config, the intents it maps to, Merkl claim state, and superseded managers to clear. |
74
+ | `read_account_aero_upgrade` | Aero upgrade check: what a wallet's accounts (or one account) still have to move to Aero, with status and counts and no calldata. Empty accounts and failed_accounts lists mean nothing to do. |
75
+ | `read_guides` | Reference guides: `automation` (AM setup), `selection` (pool evaluation), `strategies` (step-by-step templates). |
75
76
 
76
77
  ### Preferred Write Tools (atomic/multi-step — use these first)
77
78
 
@@ -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, check `read_strategy_list` APY breakdown
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 `read_strategy_list(strategy_id: <id>)` to see APY broken down by range width (very_narrow, narrow, balanced, wide, very_wide, full_range). The net return after rebalancing costs, IL, and gas determines the optimal width: see the model below.
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; call with strategy_id for per-range APY)
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)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: arcadia-finance
3
- version: 1.4.0
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.4.0"}}'
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() {