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.
- package/.claude-plugin/plugin.json +1 -0
- package/README.md +91 -207
- package/dist/mcp/server.d.ts +10 -3
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +451 -3
- package/dist/mcp/server.js.map +1 -1
- package/package.json +4 -4
- package/skills/outsmart-dca-grid/SKILL.md +63 -125
- package/skills/outsmart-devving-coins/SKILL.md +142 -0
- package/skills/outsmart-dex-trading/SKILL.md +173 -213
- package/skills/outsmart-lp-farming/SKILL.md +95 -308
- package/skills/outsmart-lp-sniping/SKILL.md +53 -111
- package/skills/outsmart-prediction-markets/SKILL.md +63 -181
- package/skills/outsmart-survival/SKILL.md +73 -96
- package/skills/outsmart-trenching/SKILL.md +113 -214
package/README.md
CHANGED
|
@@ -1,61 +1,19 @@
|
|
|
1
1
|
# outsmart-agent
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
| Tool | What
|
|
119
|
-
|
|
120
|
-
| `solana_buy` | Buy tokens with SOL on any
|
|
121
|
-
| `solana_sell` | Sell tokens
|
|
122
|
-
| `solana_quote` |
|
|
123
|
-
| `
|
|
124
|
-
| `
|
|
125
|
-
| `
|
|
126
|
-
| `
|
|
127
|
-
| `
|
|
128
|
-
| `
|
|
129
|
-
| `
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
|
159
|
-
|
|
160
|
-
|
|
|
161
|
-
|
|
|
162
|
-
|
|
|
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
|
|
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
|
-
**
|
|
203
|
-
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
-
|
|
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)
|
|
215
|
-
──────────────
|
|
216
|
-
18 DEX adapters
|
|
217
|
-
|
|
218
|
-
Wallet
|
|
219
|
-
DexScreener API
|
|
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
|
|
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
|
|
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.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
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
|
|
258
|
-
| `MAINNET_ENDPOINT` | Yes | Solana RPC
|
|
259
|
-
| `JUPITER_API_KEY` | No |
|
|
260
|
-
| `DFLOW_API_KEY` | No |
|
|
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]
|
|
267
|
-
- [x]
|
|
268
|
-
- [x]
|
|
269
|
-
- [ ]
|
|
270
|
-
- [ ]
|
|
271
|
-
- [ ]
|
|
272
|
-
- [ ]
|
|
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
|
|
279
|
-
- **[outsmart-cli](https://github.com/outsmartchad/outsmart-cli)** — Source repo
|
|
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
|
-
|
|
167
|
+
Discord: https://discord.gg/dc3Kh3Y3yJ
|
|
284
168
|
|
|
285
169
|
## Disclaimer
|
|
286
170
|
|
|
287
|
-
|
|
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
|
|
package/dist/mcp/server.d.ts
CHANGED
|
@@ -2,14 +2,21 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* outsmart-agent MCP Server
|
|
4
4
|
*
|
|
5
|
-
* Exposes
|
|
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
|
package/dist/mcp/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;GAkBG"}
|