@arcadia-finance/mcp-server 0.7.3 → 0.7.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 +3 -0
- package/dist/tools/read/account.js +2 -2
- package/dist/tools/read/asset-managers.js +1 -0
- package/dist/tools/write/asset-managers/automations.js +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/skills/clamm-liquidity/SKILL.md +3 -3
- package/skills/clamm-liquidity/automation.md +3 -1
package/README.md
CHANGED
|
@@ -241,6 +241,9 @@ Pull requests for documentation fixes are welcome. Every PR needs a human review
|
|
|
241
241
|
- **Glama:** [glama.ai](https://glama.ai/mcp/servers/arcadia-finance/mcp-server)
|
|
242
242
|
- **mcp.so:** [mcp.so](https://mcp.so/server/arcadia-finance/mcp-server)
|
|
243
243
|
- **awesome-mcp-servers:** [github.com/punkpeye/awesome-mcp-servers](https://github.com/punkpeye/awesome-mcp-servers)
|
|
244
|
+
- **mcptry:** [mcptry.com](https://mcptry.com/servers/io.github.arcadia-finance/mcp-server)
|
|
245
|
+
- **mcprush:** [mcprush.com](https://mcprush.com/arcadia-finance/arcadia-finance-mcp)
|
|
246
|
+
- **ClawHub (OpenClaw skill):** [clawhub.ai](https://clawhub.ai/skills/arcadia-finance)
|
|
244
247
|
|
|
245
248
|
## Development
|
|
246
249
|
|
|
@@ -104,7 +104,7 @@ export function registerAccountTools(server, api, chains) {
|
|
|
104
104
|
openWorldHint: true,
|
|
105
105
|
},
|
|
106
106
|
description: "Get full overview of an Arcadia account: health factor, collateral value, debt, deposited assets, liquidation price, and automation status. Health factor = 1 - (used_margin / liquidation_value): 1 = no debt (safest), >0 = healthy, 0 = liquidation threshold, <0 = past liquidation. Higher is safer. " +
|
|
107
|
-
"The `automation` object reports which asset managers are enabled (rebalancer, compounder, yield_claimer, cow_swapper, merkl_operator, gas_relayer), each as the position's dex_protocol when protocol-specific or true when account-level, plus `inferred_intents` (the automations those managers add up to), `merkl` claim state, and `deprecated_managers` for any superseded deployment still set on the account. Superseded managers should be cleared: write_account_automations disables them as part of a save. For the full decoded per-manager config use read_asset_manager_current. " +
|
|
107
|
+
"The `automation` object reports which asset managers are enabled (rebalancer, compounder, yield_claimer, cow_swapper, merkl_operator, gas_relayer), each as the position's dex_protocol when protocol-specific or true when account-level and active, plus `inferred_intents` (the automations those managers add up to), `merkl` claim state, and `deprecated_managers` for any superseded deployment still set on the account. Superseded managers should be cleared: write_account_automations disables them as part of a save. For the full decoded per-manager config use read_asset_manager_current. " +
|
|
108
108
|
"LP positions in assets[] include a dex_protocol field (slipstream, slipstream_v2, slipstream_v3, metadexcl_v1, staked_slipstream, staked_slipstream_v2, staked_slipstream_v3, staked_metadexcl_v1, uniV3, uniV4). metadexcl_v1 is Aero CL, live on Base, Optimism and Robinhood for spot and margin accounts. Slipstream V2 is Base-only. V3 is available on Base and Optimism. Unichain supports Slipstream V1, uniV3 and uniV4. To configure automations, prefer passing the position's id as position_id to write_account_automations, which resolves the protocol and tokens for you; the dex_protocol value is also accepted directly as its `protocol` param. " +
|
|
109
109
|
"Numeric fields without a _usd suffix are in the account's numeraire token raw units (divide by 10^decimals: 6 for USDC, 18 for WETH, 8 for cbBTC). Fields ending in _usd are in USD with 18 decimals (divide by 1e18). health_factor is unitless. Asset amounts are raw token units. To list all accounts for a wallet, use read_wallet_accounts.",
|
|
110
110
|
inputSchema: z.object({
|
|
@@ -184,7 +184,7 @@ export function registerAccountTools(server, api, chains) {
|
|
|
184
184
|
if (m.deprecated)
|
|
185
185
|
continue;
|
|
186
186
|
if (!m.protocol) {
|
|
187
|
-
out[m.manager] =
|
|
187
|
+
out[m.manager] = m.active !== false;
|
|
188
188
|
continue;
|
|
189
189
|
}
|
|
190
190
|
const dexProtocol = backendProtocolToDexProtocol(m.protocol);
|
|
@@ -143,6 +143,7 @@ export function registerAssetManagerTools(server, api) {
|
|
|
143
143
|
description: "Read which asset managers are currently enabled on an account, with their decoded on-chain configuration. " +
|
|
144
144
|
"Returns the active managers (address, protocol, initiator, decoded strategy metadata, slippage and value-loss caps, fee recipient), the intents they map to, and Merkl claim state including whether reward tokens still need registering. " +
|
|
145
145
|
"Managers from superseded deployments are listed separately under `deprecated`: pass their addresses to write_account_automations_delta to clear them, or run write_account_automations which disables them as part of the save. " +
|
|
146
|
+
"A deprecated cow_swapper no longer swaps: a delta apply moves the account to the current CowSwapper and keeps its auto-swap target (buy token, sell tokens); a save keeps it only when its intents restate that target from the deprecated entry's metadata. " +
|
|
146
147
|
"read_ok is false when chain state could not be read, in which case the result is unreliable rather than empty.",
|
|
147
148
|
outputSchema: AutomationsStateOutput,
|
|
148
149
|
inputSchema: z.object({
|
|
@@ -185,7 +185,7 @@ export function registerAutomationsTools(server, api) {
|
|
|
185
185
|
},
|
|
186
186
|
description: "Apply an explicit change to an account's automations and return the unsigned setAssetManagers transaction. " +
|
|
187
187
|
"Unlike write_account_automations this is a delta, not a full desired state: automations you do not mention are left untouched. Use it to switch one automation on or off without restating the others.\n\n" +
|
|
188
|
-
"The enable array takes intents to switch on (same shapes as write_account_automations). To turn an automation OFF, call read_asset_manager_current, take the address of the manager serving it, and pass that address in the disable array: an intent with enabled: false in `enable` is rejected because the backend would ignore it. Superseded or unreadable managers still set on the account are force-disabled in the same transaction regardless.\n\n" +
|
|
188
|
+
"The enable array takes intents to switch on (same shapes as write_account_automations). To turn an automation OFF, call read_asset_manager_current, take the address of the manager serving it, and pass that address in the disable array: an intent with enabled: false in `enable` is rejected because the backend would ignore it. Superseded or unreadable managers still set on the account are force-disabled in the same transaction regardless, except a superseded cow_swapper: it is moved to the current CowSwapper with its auto-swap target (buy token, sell tokens) kept.\n\n" +
|
|
189
189
|
INTENT_REFERENCE +
|
|
190
190
|
"\n\n" +
|
|
191
191
|
CONTEXT_NOTE +
|
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.7.
|
|
4
|
+
"version": "0.7.4",
|
|
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. Live on Base, Optimism, Unichain and Robinhood.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "AGPL-3.0",
|
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.7.
|
|
6
|
+
"version": "0.7.4",
|
|
7
7
|
"websiteUrl": "https://arcadia.finance",
|
|
8
8
|
"icons": [
|
|
9
9
|
{
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
{
|
|
21
21
|
"registryType": "npm",
|
|
22
22
|
"identifier": "@arcadia-finance/mcp-server",
|
|
23
|
-
"version": "0.7.
|
|
23
|
+
"version": "0.7.4",
|
|
24
24
|
"transport": {
|
|
25
25
|
"type": "stdio"
|
|
26
26
|
},
|
|
@@ -123,17 +123,17 @@ Use as `pool_address` in `write_account_borrow` / `write_account_repay`, as `cre
|
|
|
123
123
|
|
|
124
124
|
### Asset Manager Addresses
|
|
125
125
|
|
|
126
|
-
Asset-manager addresses are resolved by the backend, not by this server, and are not passed to or returned by the automation tools. All require V3/V4 accounts. Older asset-manager versions remain on-chain for users who registered before the latest version shipped: `read_asset_manager_current` reports those as `deprecated` so they can be disabled, and reports the dex_protocol with no version suffix.
|
|
126
|
+
Asset-manager addresses are resolved by the backend, not by this server, and are not passed to or returned by the automation tools. All require V3/V4 accounts. Older asset-manager versions remain on-chain for users who registered before the latest version shipped: `read_asset_manager_current` reports those as `deprecated` so they can be disabled, and reports the dex_protocol with no version suffix. Old CowSwappers no longer swap: a delta apply moves the Account to the current CowSwapper and keeps its auto-swap target, and a save does the same when its intents restate that target.
|
|
127
127
|
|
|
128
128
|
The addresses below are for reference and orientation only. The one you may actually need is the gas relayer, for paying for extra rebalances with AAA.
|
|
129
129
|
|
|
130
|
-
Standalone AMs (not tied to a DEX protocol, same address on all supported chains):
|
|
130
|
+
Standalone AMs (not tied to a DEX protocol, same address on all supported chains). The CoW Swapper is used on Base only:
|
|
131
131
|
|
|
132
132
|
| Type | Address | Chains |
|
|
133
133
|
| -------------- | -------------------------------------------- | ------------------------ |
|
|
134
134
|
| Merkl Operator | `0x969F0251360b9Cf11c68f6Ce9587924c1B8b42C6` | Base, Optimism, Unichain |
|
|
135
135
|
| Gas Relayer | `0xD938C8d04cF91094fecAF0A2018EAac483a40137` | Base, Optimism, Unichain |
|
|
136
|
-
| CoW Swapper | `
|
|
136
|
+
| CoW Swapper | `0x3BfDff5365F325032aaDB685a580e06D61e68a42` | Base only |
|
|
137
137
|
|
|
138
138
|
Protocol-specific AMs (rebalancer, compounder, yield claimer). Slipstream V2 is Base-only. All other addresses apply to every chain where the protocol exists:
|
|
139
139
|
|
|
@@ -127,7 +127,9 @@ Three success-path cases return no `transaction`, and an agent must not treat an
|
|
|
127
127
|
|
|
128
128
|
## Superseded managers
|
|
129
129
|
|
|
130
|
-
Asset managers are redeployed over time.
|
|
130
|
+
Asset managers are redeployed over time. `read_asset_manager_current` lists superseded deployments under `deprecated` (and `read_account_info` under `automation.deprecated_managers`). They should be cleared: `write_account_automations` disables them as part of a save, or pass their addresses to `write_account_automations_delta`.
|
|
131
|
+
|
|
132
|
+
Old CowSwappers no longer swap. Any `write_account_automations_delta` call moves the Account to the current CowSwapper in the same transaction and keeps its auto-swap target (buy token and sell tokens). A save with `write_account_automations` turns the old one off in the same transaction, so restate its target in the intents: `claim_rewards` with `mode: convert_to`, or `compound_fees`, taking `buy_token` and, as `convert_tokens`, the `sell_tokens` from the deprecated cow_swapper's `metadata` in `read_asset_manager_current`. There is no need to disable an old CowSwapper by address.
|
|
131
133
|
|
|
132
134
|
---
|
|
133
135
|
|