starkfi 0.6.4 → 0.7.1

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/MCP.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Model Context Protocol (MCP) — Tool Reference
2
2
 
3
- StarkFi exposes **42 MCP tools** via stdio transport. AI clients (Cursor, Claude Desktop, Antigravity) connect and discover all tools with JSON schemas automatically.
3
+ StarkFi exposes **51 MCP tools** via stdio transport. AI clients (Cursor, Claude Desktop, Antigravity) connect and discover all tools with JSON schemas automatically.
4
4
 
5
5
  ## Setup
6
6
 
@@ -22,7 +22,7 @@ StarkFi exposes **42 MCP tools** via stdio transport. AI clients (Cursor, Claude
22
22
 
23
23
  ---
24
24
 
25
- ## Tool Registry (42 Tools)
25
+ ## Tool Registry (51 Tools)
26
26
 
27
27
  ### Auth & Config (2)
28
28
 
@@ -50,7 +50,7 @@ StarkFi exposes **42 MCP tools** via stdio transport. AI clients (Cursor, Claude
50
50
  | `swap_tokens` | write | Execute swap |
51
51
  | `get_multi_swap_quote` | read | Multi-pair quote (2-3 pairs) |
52
52
  | `multi_swap` | write | Execute multi-pair swap |
53
- | `batch_execute` | write | Atomic multicall (swap + stake + lend + send + DCA, min 2 ops) |
53
+ | `batch_execute` | write | Atomic multicall (swap + stake + lend + send + DCA + troves, min 2 ops) |
54
54
 
55
55
  ### Staking (8)
56
56
 
@@ -101,6 +101,25 @@ StarkFi exposes **42 MCP tools** via stdio transport. AI clients (Cursor, Claude
101
101
  | `confidential_ragequit` | write | Emergency full withdrawal |
102
102
  | `confidential_rollover` | write | Activate pending balance |
103
103
 
104
+ ### Troves DeFi Vaults (4)
105
+
106
+ | Tool | Type | Description |
107
+ | --- | --- | --- |
108
+ | `list_troves_strategies` | read | List active Troves vault strategies with APY, TVL, and risk tier |
109
+ | `get_troves_position` | read | User vault position — shares and underlying asset value |
110
+ | `troves_deposit` | write | Deposit into a Troves vault strategy |
111
+ | `troves_withdraw` | write | Withdraw from a Troves vault strategy |
112
+
113
+ ### LST Staking — Endur (5)
114
+
115
+ | Tool | Type | Description |
116
+ | --- | --- | --- |
117
+ | `get_lst_position` | read | LST share balance and equivalent staked value (yield embedded in share price) |
118
+ | `get_lst_stats` | read | Endur LST statistics — current APY and TVL |
119
+ | `lst_stake` | write | Deposit into Endur liquid staking (e.g. STRK → xSTRK) |
120
+ | `lst_redeem` | write | Redeem specific amount of LST shares back to underlying |
121
+ | `lst_exit_all` | write | Redeem entire LST position |
122
+
104
123
  ---
105
124
 
106
125
  ## Agent Best Practices
@@ -111,6 +130,8 @@ StarkFi exposes **42 MCP tools** via stdio transport. AI clients (Cursor, Claude
111
130
  4. **Check auth first** — Call `get_auth_status` before any wallet operations
112
131
  5. **Check existing positions** — Query before creating to avoid duplicates
113
132
  6. **Confidential lifecycle** — Always `confidential_setup` → `confidential_balance` → action. Remind recipients to `confidential_rollover`
133
+ 7. **Troves safety** — Use `list_troves_strategies` to validate strategy exists before deposit
134
+ 8. **LST yield model** — Endur LST yield is embedded in the share price. Do **not** call `claim_rewards` for LST positions — use `lst_redeem` or `lst_exit_all` instead
114
135
 
115
136
  ---
116
137
 
@@ -126,4 +147,6 @@ StarkFi exposes **42 MCP tools** via stdio transport. AI clients (Cursor, Claude
126
147
  | Tool Schemas (Lending) | [docs.starkfi.app/docs/mcp/tools-lending](https://docs.starkfi.app/docs/mcp/tools-lending) |
127
148
  | Tool Schemas (DCA) | [docs.starkfi.app/docs/mcp/tools-dca](https://docs.starkfi.app/docs/mcp/tools-dca) |
128
149
  | Tool Schemas (Confidential) | [docs.starkfi.app/docs/mcp/tools-confidential](https://docs.starkfi.app/docs/mcp/tools-confidential) |
150
+ | Tool Schemas (Troves) | [docs.starkfi.app/docs/mcp/tools-troves](https://docs.starkfi.app/docs/mcp/tools-troves) |
151
+ | Tool Schemas (LST) | [docs.starkfi.app/docs/mcp/tools-lst](https://docs.starkfi.app/docs/mcp/tools-lst) |
129
152
  | Security Model | [docs.starkfi.app/docs/architecture/security](https://docs.starkfi.app/docs/architecture/security) |
package/README.md CHANGED
@@ -24,7 +24,7 @@ npx starkfi@latest --help
24
24
 
25
25
  Most DeFi tools are built for humans clicking buttons. StarkFi is built for **agents**.
26
26
 
27
- - 🤖 **42 MCP tools** — Any AI assistant (Cursor, Claude, Antigravity) can execute DeFi operations autonomously
27
+ - 🤖 **51 MCP tools** — Any AI assistant (Cursor, Claude, Antigravity) can execute DeFi operations autonomously
28
28
  - ⚡ **Atomic Batching** — Combine swap + stake + lend + send into a single multicall transaction
29
29
  - 💸 **Gas Abstraction** — Pay gas in STRK, ETH, USDC, USDT, or DAI — or let the developer sponsor gas entirely
30
30
  - 🔒 **Confidential Transfers** — Privacy-preserving transfers via Tongo Cash (ZK proofs)
@@ -66,17 +66,19 @@ npx starkfi@latest portfolio
66
66
  | **Stake** | `stake 100 -v karnot` | [Staking](/docs/cli/staking) |
67
67
  | **Lend** | `lend-supply 100 -p Prime -t USDC` | [Lending](/docs/cli/lending) |
68
68
  | **DCA** | `dca-create 1000 USDC ETH --per-cycle 10 --frequency P1D` | [DCA](/docs/cli/dca) |
69
+ | **Troves Vaults** | `troves-deposit 100 evergreen_strk` | [Troves](/docs/cli/troves) |
70
+ | **LST Staking** | `lst-stake 100` | [LST](/docs/cli/lst) |
69
71
  | **Confidential** | `conf-fund 100 --token USDC` | [Confidential](/docs/cli/confidential) |
70
72
  | **Portfolio** | `portfolio-rebalance --target "50 ETH, 30 USDC, 20 STRK"` | [Portfolio](/docs/cli/portfolio) |
71
73
  | **Gas Modes** | `config set-gasfree on` / `config set-gas-token USDC` | [Configuration](/docs/configuration) |
72
74
 
73
- → **[Full CLI Reference (41 commands)](https://docs.starkfi.app/docs/cli)**
75
+ → **[Full CLI Reference (50 commands)](https://docs.starkfi.app/docs/cli)**
74
76
 
75
77
  ---
76
78
 
77
79
  ## AI Integration
78
80
 
79
- ### MCP Server (42 Tools)
81
+ ### MCP Server (51 Tools)
80
82
 
81
83
  ```bash
82
84
  npx starkfi@latest mcp-start
@@ -104,6 +106,8 @@ Add to your AI client config (Cursor, Claude Desktop, Antigravity):
104
106
  | Lending | `list_lending_pools`, `get_lending_position`, `supply_assets`, `withdraw_assets`, `borrow_assets`, `repay_debt`, `close_position`, `monitor_lending_position`, `auto_rebalance_lending`, `lending_quote_health` | 10 |
105
107
  | DCA | `dca_preview`, `dca_create`, `dca_list`, `dca_cancel` | 4 |
106
108
  | Confidential | `confidential_setup`, `confidential_balance`, `confidential_fund`, `confidential_transfer`, `confidential_withdraw`, `confidential_ragequit`, `confidential_rollover` | 7 |
109
+ | Troves Vaults | `list_troves_strategies`, `get_troves_position`, `troves_deposit`, `troves_withdraw` | 4 |
110
+ | LST Staking | `get_lst_position`, `get_lst_stats`, `lst_stake`, `lst_redeem`, `lst_exit_all` | 5 |
107
111
 
108
112
  → **[Full MCP Documentation](https://docs.starkfi.app/docs/mcp)** · **[Tool Schemas (MCP.md)](MCP.md)**
109
113
 
@@ -129,11 +133,11 @@ Chat-based DeFi via natural language with BYOAI model (OpenAI, Claude, Gemini).
129
133
 
130
134
  ```
131
135
  src/
132
- ├── commands/ # 12 command groups (41 commands)
133
- ├── services/ # 15 service modules
134
- ├── mcp/ # MCP server (42 tools, stdio transport)
136
+ ├── commands/ # 14 command groups (50 commands)
137
+ ├── services/ # 17 service modules
138
+ ├── mcp/ # MCP server (51 tools, stdio transport)
135
139
  ├── lib/ # 15 shared utilities
136
- skills/ # 12 agent skills
140
+ skills/ # 14 agent skills
137
141
  server/ # Auth server (Hono + Privy TEE)
138
142
  docs/ # Documentation site (Fumadocs)
139
143
  ```
@@ -144,16 +148,18 @@ docs/ # Documentation site (Fumadocs)
144
148
 
145
149
  ## Starkzap Modules
146
150
 
147
- StarkFi leverages **all core Starkzap modules**:
151
+ StarkFi leverages **all core Starkzap v3 modules**:
148
152
 
149
153
  | Module | Usage |
150
154
  | --- | --- |
151
155
  | **Wallets** | `OnboardStrategy.Privy` + `argentXV050` for email-based wallet onboarding |
152
- | **Paymaster** | Gas abstraction with 5 tokens + developer-sponsored gasfree mode |
156
+ | **Paymaster** | Gas abstraction with v3 `{ type: "paymaster", gasToken }` union |
153
157
  | **Staking** | Multi-token lifecycle (STRK, WBTC, tBTC, SolvBTC, LBTC) |
154
158
  | **DCA** | Recurring buy orders via AVNU and Ekubo |
155
- | **TxBuilder** | Atomic multicall batching (swap + stake + lend + send + DCA) |
159
+ | **TxBuilder** | Atomic multicall batching (swap + stake + lend + send + DCA + troves) |
156
160
  | **Confidential** | Privacy-preserving transfers via Tongo Cash (ZK proofs) |
161
+ | **Troves** | DeFi vault strategies — deposit/withdraw into yield-bearing vaults |
162
+ | **Endur LST** | Liquid staking (STRK → xSTRK) — yield embedded in share price |
157
163
  | **ERC-20** | Token presets, balance queries, transfers, approvals |
158
164
 
159
165
  ---