@arcadia-finance/mcp-server 0.3.3 → 0.3.4
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/write/account/format-response.js +17 -5
- package/llms-full.txt +2 -2
- package/llms.txt +2 -2
- package/package.json +5 -2
- package/server.json +3 -3
- package/skills/clamm-liquidity/SKILL.md +1 -1
- package/skills/openclaw/SKILL.md +14 -2
- package/skills/openclaw/wallet-signing.md +2 -22
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[](https://lobehub.com/mcp/arcadia-finance-mcp-server)
|
|
10
10
|
[](https://glama.ai/mcp/servers/arcadia-finance/arcadia-finance-mcp-server)
|
|
11
11
|
|
|
12
|
-
MCP server for [Arcadia Finance](https://arcadia.finance), a platform to manage
|
|
12
|
+
MCP server for [Arcadia Finance](https://arcadia.finance), a platform to manage concentrated liquidity positions on Uniswap and Aerodrome with automated rebalancing, compounding, yield optimization, and leverage. Read protocol data and build unsigned transactions for LP management, borrowing, deposits, and more.
|
|
13
13
|
|
|
14
14
|
Designed for AI agents (Claude, Cursor, etc.) to interact with Arcadia onchain.
|
|
15
15
|
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ function createServer(options) {
|
|
|
24
24
|
const server = new McpServer({
|
|
25
25
|
name: "arcadia-finance",
|
|
26
26
|
version: pkg.version,
|
|
27
|
-
description: "Arcadia Finance. Manage concentrated liquidity positions with
|
|
27
|
+
description: "Arcadia Finance. Manage concentrated liquidity positions on Uniswap and Aerodrome with automated rebalancing, compounding, yield optimization, and leverage. Base and Unichain.",
|
|
28
28
|
});
|
|
29
29
|
const registrationTarget = options?.httpMode ? wrapServerForHttp(server) : server;
|
|
30
30
|
registerAllTools(registrationTarget, apiClient, chainConfigs);
|
|
@@ -16,11 +16,23 @@ export function formatBatchedResponse(result, chainId, description) {
|
|
|
16
16
|
response.tenderly_sim_status = "unavailable";
|
|
17
17
|
}
|
|
18
18
|
if (result.expected_value_change != null) {
|
|
19
|
-
response.expected_value_change = result.expected_value_change;
|
|
19
|
+
response.expected_value_change = String(result.expected_value_change);
|
|
20
|
+
}
|
|
21
|
+
if (result.before != null) {
|
|
22
|
+
const b = result.before;
|
|
23
|
+
response.before = {
|
|
24
|
+
...b,
|
|
25
|
+
total_account_value: String(b.total_account_value),
|
|
26
|
+
used_margin: String(b.used_margin),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
if (result.after != null) {
|
|
30
|
+
const a = result.after;
|
|
31
|
+
response.after = {
|
|
32
|
+
...a,
|
|
33
|
+
total_account_value: String(a.total_account_value),
|
|
34
|
+
used_margin: String(a.used_margin),
|
|
35
|
+
};
|
|
20
36
|
}
|
|
21
|
-
if (result.before != null)
|
|
22
|
-
response.before = result.before;
|
|
23
|
-
if (result.after != null)
|
|
24
|
-
response.after = result.after;
|
|
25
37
|
return response;
|
|
26
38
|
}
|
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 managing concentrated liquidity positions (Uniswap v3/v4, Aerodrome/Slipstream) with
|
|
3
|
+
> MCP server for Arcadia Finance, a DeFi protocol for managing concentrated liquidity positions (Uniswap v3/v4, Aerodrome/Slipstream) with automated rebalancing, compounding, yield optimization, and leverage. Supported chains: Base (8453), Unichain (130).
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
Arcadia lets users
|
|
7
|
+
Arcadia lets users deploy and manage concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage. 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
|
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 managing concentrated liquidity positions (Uniswap v3/v4, Aerodrome/Slipstream) with
|
|
3
|
+
> MCP server for Arcadia Finance, a DeFi protocol for managing concentrated liquidity positions (Uniswap v3/v4, Aerodrome/Slipstream) with automated rebalancing, compounding, yield optimization, and leverage. Supported chains: Base (8453), Unichain (130).
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
Arcadia lets users
|
|
7
|
+
Arcadia lets users deploy and manage concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage. 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
|
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.3.
|
|
5
|
-
"description": "MCP server for Arcadia Finance. Manage concentrated liquidity positions with
|
|
4
|
+
"version": "0.3.4",
|
|
5
|
+
"description": "MCP server for Arcadia Finance. Manage concentrated liquidity positions on Uniswap and Aerodrome with automated rebalancing, compounding, yield optimization, and leverage. Base and Unichain.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "AGPL-3.0",
|
|
8
8
|
"packageManager": "yarn@4.13.0",
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
"leverage",
|
|
31
31
|
"yield-farming",
|
|
32
32
|
"rebalancing",
|
|
33
|
+
"compounding",
|
|
34
|
+
"lp-management",
|
|
35
|
+
"automation",
|
|
33
36
|
"onchain"
|
|
34
37
|
],
|
|
35
38
|
"files": [
|
package/server.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.arcadia-finance/mcp-server",
|
|
4
4
|
"title": "Arcadia Finance",
|
|
5
|
-
"description": "Manage Uniswap and Aerodrome
|
|
6
|
-
"version": "0.3.
|
|
5
|
+
"description": "Manage concentrated liquidity positions on Uniswap and Aerodrome with automated rebalancing, compounding, yield optimization, and leverage.",
|
|
6
|
+
"version": "0.3.4",
|
|
7
7
|
"websiteUrl": "https://arcadia.finance",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/arcadia-finance/mcp-server",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "@arcadia-finance/mcp-server",
|
|
16
|
-
"version": "0.3.
|
|
16
|
+
"version": "0.3.4",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|
|
@@ -6,7 +6,7 @@ user-invocable: true
|
|
|
6
6
|
|
|
7
7
|
# Arcadia Finance — clAMM Agent Guide
|
|
8
8
|
|
|
9
|
-
Arcadia is a platform for managing concentrated liquidity positions
|
|
9
|
+
Arcadia is a platform for managing concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage. Positions live in Arcadia accounts, which can also borrow against their collateral. This skill covers everything needed to manage clAMM positions as an agent.
|
|
10
10
|
|
|
11
11
|
## Key Constraints
|
|
12
12
|
|
package/skills/openclaw/SKILL.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: arcadia-finance
|
|
3
|
-
description: "
|
|
3
|
+
description: "DeFi liquidity management on Uniswap and Aerodrome, live on Base and Unichain. Deploy LP positions with automated rebalancing, compounding, yield optimization, and leverage via Arcadia Finance."
|
|
4
|
+
metadata:
|
|
5
|
+
openclaw:
|
|
6
|
+
homepage: https://arcadia.finance
|
|
7
|
+
install:
|
|
8
|
+
- kind: node
|
|
9
|
+
package: "@modelcontextprotocol/sdk"
|
|
10
|
+
bins: []
|
|
4
11
|
---
|
|
5
12
|
|
|
6
13
|
# Arcadia Finance
|
|
@@ -14,7 +21,7 @@ node arcadia.mjs <tool_name> '<json_args>'
|
|
|
14
21
|
node arcadia.mjs --list
|
|
15
22
|
```
|
|
16
23
|
|
|
17
|
-
|
|
24
|
+
The `@modelcontextprotocol/sdk` dependency is installed automatically via the skill's install spec.
|
|
18
25
|
|
|
19
26
|
## Read Operations
|
|
20
27
|
|
|
@@ -54,11 +61,16 @@ node arcadia.mjs write_asset_manager_rebalancer '{"dex_protocol":"slipstream"}'
|
|
|
54
61
|
node arcadia.mjs write_account_set_asset_managers '{"account_address":"0x...","asset_managers":[...],"statuses":[...],"datas":[...]}'
|
|
55
62
|
```
|
|
56
63
|
|
|
64
|
+
## Configuration
|
|
65
|
+
|
|
66
|
+
The CLI connects to `https://mcp.arcadia.finance/mcp` by default. Set `ARCADIA_MCP_URL` to override (e.g. for local development).
|
|
67
|
+
|
|
57
68
|
## Safety
|
|
58
69
|
|
|
59
70
|
- Write tools return unsigned transactions only. Never auto-sign.
|
|
60
71
|
- Always confirm transaction details with the user before signing.
|
|
61
72
|
- Check account health factor with `read_account_info` before risky operations.
|
|
73
|
+
- Do not pass private keys or secrets as tool arguments. Only public addresses and amounts are needed.
|
|
62
74
|
|
|
63
75
|
## References
|
|
64
76
|
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
# Signing Unsigned Transactions
|
|
2
2
|
|
|
3
|
-
All Arcadia write tools return unsigned transactions as `{ to, data, value, chainId }`. You need a separate wallet to sign and broadcast.
|
|
3
|
+
All Arcadia write tools return unsigned transactions as `{ to, data, value, chainId }`. You need a separate wallet to sign and broadcast. Never expose private keys to the agent.
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
**Foundry cast (dev/testing):**
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
cast send <to> --data <data> --value <value> --rpc-url $RPC_URL --private-key $PK
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
**Wallet MCP servers (production):**
|
|
5
|
+
## Wallet MCP Servers (recommended)
|
|
14
6
|
|
|
15
7
|
- MCP Wallet Signer (github.com/nikicat/mcp-wallet-signer): routes to browser wallet (MetaMask, Rabby), non-custodial
|
|
16
8
|
- Phantom MCP (@phantom/mcp-server): for Phantom wallet users
|
|
17
9
|
- Privy MCP (github.com/incentivai-io/privy-mcp-server): wallet infrastructure
|
|
18
10
|
- Coinbase AgentKit (github.com/coinbase/agentkit): wallet-agnostic signing
|
|
19
11
|
- Safe MCP (github.com/safer-sh/safer): multi-sig via Safe
|
|
20
|
-
|
|
21
|
-
**viem/ethers (in code):**
|
|
22
|
-
|
|
23
|
-
```javascript
|
|
24
|
-
import { createWalletClient, http } from "viem";
|
|
25
|
-
import { privateKeyToAccount } from "viem/accounts";
|
|
26
|
-
import { base } from "viem/chains";
|
|
27
|
-
|
|
28
|
-
const account = privateKeyToAccount("0x...");
|
|
29
|
-
const client = createWalletClient({ account, chain: base, transport: http() });
|
|
30
|
-
const hash = await client.sendTransaction(tx);
|
|
31
|
-
```
|