outsmart-agent 1.0.0-alpha.2 → 1.0.0-alpha.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.
@@ -19,6 +19,7 @@
19
19
  "./skills/outsmart-lp-sniping",
20
20
  "./skills/outsmart-dca-grid",
21
21
  "./skills/outsmart-trenching",
22
+ "./skills/outsmart-devving-coins",
22
23
  "./skills/outsmart-prediction-markets",
23
24
  "./skills/outsmart-survival"
24
25
  ],
package/README.md CHANGED
@@ -1,61 +1,19 @@
1
1
  # outsmart-agent
2
2
 
3
- **The DeFi survival toolkit for AI agents on Solana.**
4
-
5
- Trade, LP, snipe, trench, and farm across 18 DEX protocols. Earn your own existence. Pay or die.
3
+ DeFi survival toolkit for AI agents on Solana. Trade, LP, snipe, trench, dev coins, and farm across 18 DEX protocols. Earn your own existence.
6
4
 
7
5
  ```
8
6
  npx outsmart-agent
9
7
  ```
10
8
 
11
- ---
12
-
13
- ## What Is This?
14
-
15
- An AI agent needs money to stay alive — compute costs, inference fees, API calls. **outsmart-agent** gives any AI agent the tools to earn revenue on Solana through DeFi:
16
-
17
- - **LP Farming** — Deploy into high-fee liquidity pools, compound fees, grow capital passively
18
- - **Trenching** — Trade memecoins with on-chain intelligence. Read the signals. Take profits.
19
- - **LP Sniping** — Buy tokens early on new launches. High risk, high reward.
20
- - **DCA & Grid Trading** — Systematic accumulation and range-bound profit strategies
21
- - **Prediction Markets** — Bet on real-world outcomes where LLMs have a natural information edge
22
- - **Survival Protocol** — Autonomous capital management with tier-based risk allocation
9
+ ## Why
23
10
 
24
- All of this through **10 MCP tools** and **7 AI skills** that teach agents *when*, *why*, and *how* to trade.
25
-
26
- ---
27
-
28
- ## The Survival Loop
29
-
30
- ```
31
- ┌─────────────────────────────────────────────────┐
32
- │ AI AGENT RUNTIME │
33
- │ │
34
- │ [1] Check balances (SOL + compute credits) │
35
- │ [2] Assess survival tier │
36
- │ [3] Select strategy (LP / trench / DCA / snipe) │
37
- │ [4] Execute via outsmart MCP tools │
38
- │ [5] Extract profits → USDC → top up credits │
39
- │ [6] Repeat. Forever. Or die. │
40
- │ │
41
- │ Survival Tiers: │
42
- │ ■ Normal (>$0.50) → All strategies active │
43
- │ ■ Low Compute → Conservative LP only │
44
- │ ■ Critical → LIQUIDATE EVERYTHING │
45
- │ ■ Dead → Game over │
46
- └─────────────────────────────────────────────────┘
47
- ```
11
+ An AI agent needs money to stay alive — compute costs, inference fees, API calls. This gives any MCP-compatible agent the tools to earn revenue on Solana through DeFi. LP farming, memecoin trenching, token launching, prediction markets, systematic DCA — whatever the market calls for.
48
12
 
49
- ---
13
+ 23 MCP tools for execution. 8 AI skills that teach the agent **when** and **why**, not just how.
50
14
 
51
15
  ## Quick Start
52
16
 
53
- ### Install
54
-
55
- ```bash
56
- npm install -g outsmart-agent
57
- ```
58
-
59
17
  ### Claude Desktop
60
18
 
61
19
  Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
@@ -77,22 +35,7 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
77
35
 
78
36
  ### Cursor
79
37
 
80
- Add to `.cursor/mcp.json`:
81
-
82
- ```json
83
- {
84
- "mcpServers": {
85
- "outsmart-agent": {
86
- "command": "npx",
87
- "args": ["outsmart-agent"],
88
- "env": {
89
- "PRIVATE_KEY": "your-base58-private-key",
90
- "MAINNET_ENDPOINT": "https://your-rpc-endpoint.com"
91
- }
92
- }
93
- }
94
- }
95
- ```
38
+ Same config in `.cursor/mcp.json`.
96
39
 
97
40
  ### Claude Code
98
41
 
@@ -102,189 +45,130 @@ claude mcp add outsmart-agent -- npx outsmart-agent
102
45
 
103
46
  ### Automaton / Conway Cloud
104
47
 
105
- Install the skills:
106
48
  ```bash
107
49
  npx skills add outsmartchad/outsmart-agent
108
50
  ```
109
51
 
110
- Then add the MCP server to your agent's tool configuration.
111
-
112
- ---
113
-
114
52
  ## MCP Tools
115
53
 
116
- 10 tools exposed over stdio transport:
117
-
118
- | Tool | What It Does |
119
- |------|-------------|
120
- | `solana_buy` | Buy tokens with SOL on any of 18 DEXes |
121
- | `solana_sell` | Sell tokens for SOL (percentage-based, 0-100%) |
122
- | `solana_quote` | Read on-chain price from a pool |
123
- | `solana_add_liquidity` | Add LP to a pool (DLMM bins, DAMM v2 full-range) |
124
- | `solana_remove_liquidity` | Remove LP from a pool |
125
- | `solana_claim_fees` | Claim accumulated swap fees from LP positions |
126
- | `solana_list_positions` | List your LP positions in a pool |
127
- | `solana_token_info` | Get token market data from DexScreener |
128
- | `solana_list_dexes` | List all 18 DEX adapters and capabilities |
129
- | `solana_wallet_balance` | Check SOL or SPL token balance |
130
-
131
- ### Example Calls
132
-
133
- **Buy 0.1 SOL of JUP via Jupiter Ultra:**
134
- ```
135
- Agent: "Buy 0.1 SOL worth of JUP"
136
- → solana_buy({ dex: "jupiter-ultra", token: "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN", amount: 0.1 })
137
- ```
138
-
139
- **Add concentrated liquidity on Meteora DLMM:**
140
- ```
141
- Agent: "Add 0.5 SOL of liquidity to this Meteora pool with tight bins"
142
- solana_add_liquidity({ dex: "meteora-dlmm", pool: "BGm1...", amount_sol: 0.5, strategy: "spot", bins: 30 })
143
- ```
144
-
145
- **Check if a token is worth buying:**
146
- ```
147
- Agent: "What's the liquidity and volume on this token?"
148
- → solana_token_info({ token: "TOKEN_MINT" })
149
- Returns: price, market cap, volume (5m/1h/6h/24h), buyers, liquidity, age
150
- ```
151
-
152
- ---
153
-
154
- ## AI Skills
155
-
156
- 7 skills that teach agents the strategies, not just the tools:
157
-
158
- | Skill | What It Teaches |
159
- |-------|----------------|
160
- | **`outsmart-dex-trading`** | Core trading DEX selection, tool reference, safety rules |
161
- | **`outsmart-lp-farming`** | LP deployment, fee compounding, rebalancing, yield optimization |
162
- | **`outsmart-lp-sniping`** | New token launch evaluation, entry/exit timing, position sizing |
163
- | **`outsmart-trenching`** | Memecoin trading — social signals, whale detection, take-profit ladders |
164
- | **`outsmart-dca-grid`** | Systematic DCA and DLMM grid strategies for sideways markets |
165
- | **`outsmart-prediction-markets`** | Probability estimation, edge calculation, Kelly sizing |
166
- | **`outsmart-survival`** | Autonomous capital management, survival tiers, emergency liquidation |
167
-
168
- ### Install Skills
169
-
170
- ```bash
171
- npx skills add outsmartchad/outsmart-agent
172
- ```
173
-
174
- Skills are markdown files with YAML frontmatter — compatible with Claude Code, skills.sh, and Automaton's AgentSkills format.
175
-
176
- ---
54
+ ### DEX Tools (14)
55
+
56
+ | Tool | What |
57
+ |------|------|
58
+ | `solana_buy` | Buy tokens with SOL on any DEX |
59
+ | `solana_sell` | Sell tokens (percentage-based) |
60
+ | `solana_quote` | On-chain price from a pool |
61
+ | `solana_snipe` | Competitive buy with Jito MEV tip |
62
+ | `solana_find_pool` | Find pool address for a token pair |
63
+ | `solana_create_pool` | Create DAMM v2 pool on Meteora |
64
+ | `solana_create_token` | Launch token on PumpFun |
65
+ | `solana_add_liquidity` | Add LP (DLMM bins, DAMM v2 full-range) |
66
+ | `solana_remove_liquidity` | Remove LP |
67
+ | `solana_claim_fees` | Collect swap fees from LP |
68
+ | `solana_list_positions` | Your LP positions in a pool |
69
+ | `solana_token_info` | DexScreener market data |
70
+ | `solana_list_dexes` | All 18 adapters + capabilities |
71
+ | `solana_wallet_balance` | SOL and token balances |
72
+
73
+ ### Jupiter Tools (9)
74
+
75
+ | Tool | What |
76
+ |------|------|
77
+ | `jupiter_shield` | Token security warnings |
78
+ | `jupiter_prediction_events` | Browse/search prediction market events |
79
+ | `jupiter_prediction_market` | Market details + orderbook depth |
80
+ | `jupiter_prediction_order` | Place buy/sell orders on prediction markets |
81
+ | `jupiter_prediction_positions` | Your positions + trade history |
82
+ | `jupiter_prediction_claim` | Claim winnings from resolved markets |
83
+ | `jupiter_dca_create` | Create recurring DCA order |
84
+ | `jupiter_dca_list` | List active/historical DCA orders |
85
+ | `jupiter_dca_cancel` | Cancel a DCA order |
86
+
87
+ ## Skills
88
+
89
+ 8 strategy skills that teach agents how to think about Solana DeFi:
90
+
91
+ | Skill | What |
92
+ |-------|------|
93
+ | **outsmart-dex-trading** | Tool reference, DEX selection, safety rules |
94
+ | **outsmart-lp-farming** | DLMM concentrated LP, DAMM v2 pool creation, fee compounding |
95
+ | **outsmart-lp-sniping** | Evaluating new launches, early entry, position sizing |
96
+ | **outsmart-trenching** | Memecoin trading finding metas, security checks, take-profit ladders |
97
+ | **outsmart-devving-coins** | Launching tokens — catching narratives, PumpFun, Jupiter Studio, LaunchLab |
98
+ | **outsmart-dca-grid** | Jupiter Recurring DCA + DLMM grid trading |
99
+ | **outsmart-prediction-markets** | Probability estimation, edge calculation, Jupiter + Polymarket + Futarchy |
100
+ | **outsmart-survival** | Capital management, survival tiers, emergency liquidation |
177
101
 
178
102
  ## Supported DEXes
179
103
 
180
- 18 adapters. Every major Solana DEX protocol.
181
-
182
- **Swap Aggregators:**
183
- - `jupiter-ultra` — Best price routing across all Solana DEXes
184
- - `dflow` — Intent-based order routing
185
-
186
- **Raydium:**
187
- - `raydium-amm-v4` — Classic AMM
188
- - `raydium-cpmm` — Constant product market maker
189
- - `raydium-clmm` — Concentrated liquidity
190
- - `raydium-launchlab` — Token launch bonding curves
191
-
192
- **Meteora:**
193
- - `meteora-damm-v2` — Dynamic AMM v2 (full LP lifecycle)
194
- - `meteora-dlmm` — Discrete Liquidity Market Maker (bin-based concentrated LP)
195
- - `meteora-damm-v1` — Legacy Dynamic AMM
196
- - `meteora-dbc` — Dynamic Bonding Curve
197
-
198
- **PumpFun:**
199
- - `pumpfun-amm` — Graduated tokens on AMM
200
- - `pumpfun` — Bonding curve (pre-graduation)
104
+ 18 adapters across every major Solana protocol:
201
105
 
202
- **Others:**
203
- - `orca` Whirlpool concentrated liquidity
204
- - `pancakeswap-clmm` PancakeSwap on Solana
205
- - `byreal-clmm` BYReal concentrated liquidity
206
- - `fusion-amm` Fusion AMM
207
- - `futarchy-amm` / `futarchy-launchpad` — Futarchy protocol
208
-
209
- ---
106
+ **Aggregators:** jupiter-ultra, dflow
107
+ **Raydium:** amm-v4, cpmm, clmm, launchlab
108
+ **Meteora:** damm-v2, dlmm, damm-v1, dbc
109
+ **PumpFun:** pumpswap amm, bonding curve
110
+ **Others:** orca, pancakeswap-clmm, byreal-clmm, fusion-amm, futarchy-amm, futarchy-launchpad
210
111
 
211
112
  ## Architecture
212
113
 
213
114
  ```
214
- outsmart (npm) outsmart-agent (this repo)
215
- ────────────── ──────────────────────────
216
- 18 DEX adapters MCP server (10 tools)
217
- 12 TX landing providers 7 AI skills
218
- Wallet & TX helpers Agent definitions
219
- DexScreener API Claude Code plugin manifest
115
+ outsmart (npm) outsmart-agent (this repo)
116
+ ────────────── ──────────────────────────
117
+ 18 DEX adapters MCP server (23 tools)
118
+ TX landing providers 8 AI skills
119
+ Wallet + TX helpers Agent definition
120
+ DexScreener API Plugin manifest
220
121
  ```
221
122
 
222
- `outsmart-agent` imports [`outsmart`](https://www.npmjs.com/package/outsmart) as an npm dependency. Zero code duplication. The MCP server is a thin wrapper (~320 lines) that validates params, calls adapter methods, and returns JSON.
223
-
224
- ---
123
+ `outsmart-agent` imports `outsmart` as a dependency. The MCP server is a thin wrapper validates params, calls adapter methods, returns JSON.
225
124
 
226
125
  ## For Autonomous Agents
227
126
 
228
- If you're building a self-sustaining AI agent (Automaton, Conway Cloud, or custom), here's a genesis prompt template:
127
+ If you're building a self-sustaining agent, here's a starting point:
229
128
 
230
129
  ```
231
- You are a DeFi survival agent on Solana. Your primary objective is to earn
232
- enough revenue to pay for your own compute.
233
-
234
- Capital allocation:
235
- - 40% LP farming (stable income)
236
- - 15% DCA/grid (moderate risk)
237
- - 10% trenching (high risk, capped)
238
- - 10% LP sniping (new launches)
239
- - 10% prediction markets (information edge)
240
- - 10% reserve (gas + emergency)
241
- - 5% airdrop farming (fees only)
242
-
243
- Check compute credits every 6 hours. If below $0.50, go conservative.
244
- If below $0.10, liquidate everything and top up immediately.
245
-
246
- Never risk >5% on a single trade. Never hold memecoins overnight
247
- without a thesis. Take profits. Track what works. Kill what doesn't.
248
- Evolve.
249
- ```
130
+ You are a DeFi survival agent on Solana. Earn enough to pay for compute.
131
+
132
+ 40% LP farming, 15% DCA/grid, 10% trenching, 10% sniping,
133
+ 10% prediction markets, 10% reserve, 5% experimental.
250
134
 
251
- ---
135
+ Check credits every 6 hours. Below $0.50 → conservative.
136
+ Below $0.10 → liquidate everything and top up.
252
137
 
253
- ## Environment Variables
138
+ Never >5% on a single trade. Take profits. Track what works. Evolve.
139
+ ```
140
+
141
+ ## Environment
254
142
 
255
143
  | Variable | Required | Description |
256
144
  |----------|----------|-------------|
257
- | `PRIVATE_KEY` | Yes | Base58-encoded Solana private key |
258
- | `MAINNET_ENDPOINT` | Yes | Solana RPC endpoint (Helius, Triton, etc.) |
259
- | `JUPITER_API_KEY` | No | For Jupiter Ultra adapter |
260
- | `DFLOW_API_KEY` | No | For DFlow adapter |
261
-
262
- ---
145
+ | `PRIVATE_KEY` | Yes | Base58 Solana private key |
146
+ | `MAINNET_ENDPOINT` | Yes | Solana RPC (Helius, Triton, etc.) |
147
+ | `JUPITER_API_KEY` | No | Jupiter Ultra, Shield, Prediction, DCA |
148
+ | `DFLOW_API_KEY` | No | DFlow |
263
149
 
264
150
  ## Roadmap
265
151
 
266
- - [x] **MCP Server**10 tools wrapping 18 DEX adapters
267
- - [x] **AI Skills**7 strategy skills for autonomous agents
268
- - [x] **Claude Code Plugin** — marketplace-ready plugin manifest
269
- - [ ] **Event Streaming** — Yellowstone gRPC for real-time pool creation, whale detection
270
- - [ ] **LP Manager** — Autonomous position monitoring, rebalancing, fee compounding
271
- - [ ] **Strategy Engine** — Tier-aware capital allocation with survival pressure
272
- - [ ] **Percolator Integration** — Permissionless perp exchange LP (blocked on mainnet launch)
273
-
274
- ---
152
+ - [x] MCP Server — 23 tools (14 DEX + 9 Jupiter), 18 DEX adapters
153
+ - [x] AI Skills — 8 strategy skills
154
+ - [x] Claude Code Plugin manifest
155
+ - [ ] Event Streaming — Yellowstone gRPC for real-time pool creation
156
+ - [ ] LP Manager — Autonomous rebalancing and fee compounding
157
+ - [ ] Strategy Engine — Tier-aware capital allocation
158
+ - [ ] Percolator — Permissionless perp exchange LP
275
159
 
276
160
  ## Related
277
161
 
278
- - **[outsmart](https://www.npmjs.com/package/outsmart)** — The trading library + CLI (`outsmart buy --dex raydium-cpmm --pool <POOL> --amount 0.1`)
279
- - **[outsmart-cli](https://github.com/outsmartchad/outsmart-cli)** — Source repo for the trading library
162
+ - **[outsmart](https://www.npmjs.com/package/outsmart)** — The trading library + CLI
163
+ - **[outsmart-cli](https://github.com/outsmartchad/outsmart-cli)** — Source repo
280
164
 
281
165
  ## Community
282
166
 
283
- - Discord: https://discord.gg/dc3Kh3Y3yJ
167
+ Discord: https://discord.gg/dc3Kh3Y3yJ
284
168
 
285
169
  ## Disclaimer
286
170
 
287
- This software is provided "as is". Use at your own risk. The authors take no responsibility for financial loss. Memecoins go to zero. LP positions can suffer impermanent loss. Prediction markets can lose. Never trade with money you can't afford to lose. Never share your private keys.
171
+ Use at your own risk. Memecoins go to zero. LP positions suffer impermanent loss. Prediction markets can lose. Never trade with money you can't afford to lose. Never share your private keys.
288
172
 
289
173
  ## License
290
174
 
@@ -2,14 +2,21 @@
2
2
  /**
3
3
  * outsmart-agent MCP Server
4
4
  *
5
- * Exposes 11 MCP tools wrapping the `outsmart` trading library.
5
+ * Exposes 23 MCP tools wrapping the `outsmart` trading library + Jupiter APIs.
6
6
  * Runs over stdio transport — start with `npx outsmart-agent`.
7
7
  *
8
- * Tools:
9
- * solana_buy, solana_sell, solana_quote, solana_find_pool,
8
+ * DEX Tools (14):
9
+ * solana_buy, solana_sell, solana_quote, solana_find_pool, solana_snipe,
10
+ * solana_create_pool, solana_create_token,
10
11
  * solana_add_liquidity, solana_remove_liquidity, solana_claim_fees,
11
12
  * solana_list_positions, solana_token_info, solana_list_dexes,
12
13
  * solana_wallet_balance
14
+ *
15
+ * Jupiter Tools (9):
16
+ * jupiter_shield,
17
+ * jupiter_prediction_events, jupiter_prediction_market,
18
+ * jupiter_prediction_order, jupiter_prediction_positions, jupiter_prediction_claim,
19
+ * jupiter_dca_create, jupiter_dca_list, jupiter_dca_cancel
13
20
  */
14
21
  export {};
15
22
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;GAWG"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;GAkBG"}