outsmart-agent 1.0.0-alpha.1 → 1.0.0-alpha.11
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 +30 -0
- package/README.md +153 -135
- package/agents/solana-trading-expert.md +52 -0
- package/dist/mcp/server.d.ts +27 -6
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +1006 -23
- package/dist/mcp/server.js.map +1 -1
- package/package.json +6 -4
- package/skills/outsmart-dca-grid/SKILL.md +107 -0
- package/skills/outsmart-devving-coins/SKILL.md +88 -0
- package/skills/outsmart-dex-trading/SKILL.md +209 -0
- package/skills/outsmart-lp-farming/SKILL.md +119 -0
- package/skills/outsmart-lp-sniping/SKILL.md +89 -0
- package/skills/outsmart-percolator-perps/SKILL.md +133 -0
- package/skills/outsmart-prediction-markets/SKILL.md +107 -0
- package/skills/outsmart-survival/SKILL.md +111 -0
- package/skills/outsmart-trenching/SKILL.md +116 -0
- package/skills/outsmart/SKILL.md +0 -306
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "outsmart-agent",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Solana DeFi survival toolkit for AI agents — trade, LP, snipe, and farm across 18 DEX protocols to earn your own existence",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "outsmartchad",
|
|
7
|
+
"email": "outsmartchad@users.noreply.github.com"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/outsmartchad/outsmart-agent",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"solana", "defi", "trading", "mcp", "ai-agent",
|
|
12
|
+
"lp-farming", "sniping", "dex", "meteora", "raydium",
|
|
13
|
+
"jupiter", "pumpfun", "survival", "automaton"
|
|
14
|
+
],
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"skills": [
|
|
17
|
+
"./skills/outsmart-dex-trading",
|
|
18
|
+
"./skills/outsmart-lp-farming",
|
|
19
|
+
"./skills/outsmart-lp-sniping",
|
|
20
|
+
"./skills/outsmart-dca-grid",
|
|
21
|
+
"./skills/outsmart-trenching",
|
|
22
|
+
"./skills/outsmart-devving-coins",
|
|
23
|
+
"./skills/outsmart-prediction-markets",
|
|
24
|
+
"./skills/outsmart-survival",
|
|
25
|
+
"./skills/outsmart-percolator-perps"
|
|
26
|
+
],
|
|
27
|
+
"agents": [
|
|
28
|
+
"./agents/solana-trading-expert.md"
|
|
29
|
+
]
|
|
30
|
+
}
|
package/README.md
CHANGED
|
@@ -1,35 +1,20 @@
|
|
|
1
1
|
# outsmart-agent
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DeFi survival toolkit for AI agents on Solana. Trade, LP, snipe, trench, dev coins, operate perp exchanges, and farm across 18 DEX protocols. Earn your own existence.
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
npx outsmart-agent
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Why
|
|
10
10
|
|
|
11
|
-
|
|
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.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### 1. Install
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install -g outsmart-agent
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### 2. Set Environment Variables
|
|
13
|
+
42 MCP tools for execution. 9 AI skills that teach the agent **when** and **why**, not just how.
|
|
22
14
|
|
|
23
|
-
|
|
24
|
-
export WALLET_PRIVATE_KEY="your-base58-private-key"
|
|
25
|
-
export RPC_URL="https://your-rpc-endpoint.com"
|
|
26
|
-
# Optional:
|
|
27
|
-
export JUPITER_API_KEY="your-jupiter-api-key"
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### 3. Configure Your MCP Client
|
|
15
|
+
## Quick Start
|
|
31
16
|
|
|
32
|
-
|
|
17
|
+
### Claude Desktop
|
|
33
18
|
|
|
34
19
|
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
35
20
|
|
|
@@ -40,164 +25,197 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
|
40
25
|
"command": "npx",
|
|
41
26
|
"args": ["outsmart-agent"],
|
|
42
27
|
"env": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
28
|
+
"PRIVATE_KEY": "your-base58-private-key",
|
|
29
|
+
"MAINNET_ENDPOINT": "https://your-rpc-endpoint.com"
|
|
45
30
|
}
|
|
46
31
|
}
|
|
47
32
|
}
|
|
48
33
|
}
|
|
49
34
|
```
|
|
50
35
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Add to `.cursor/mcp.json` in your project:
|
|
36
|
+
### Cursor
|
|
54
37
|
|
|
55
|
-
|
|
56
|
-
{
|
|
57
|
-
"mcpServers": {
|
|
58
|
-
"outsmart-agent": {
|
|
59
|
-
"command": "npx",
|
|
60
|
-
"args": ["outsmart-agent"],
|
|
61
|
-
"env": {
|
|
62
|
-
"WALLET_PRIVATE_KEY": "your-base58-private-key",
|
|
63
|
-
"RPC_URL": "https://your-rpc-endpoint.com"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
```
|
|
38
|
+
Same config in `.cursor/mcp.json`.
|
|
69
39
|
|
|
70
|
-
|
|
40
|
+
### Claude Code
|
|
71
41
|
|
|
72
42
|
```bash
|
|
73
43
|
claude mcp add outsmart-agent -- npx outsmart-agent
|
|
74
44
|
```
|
|
75
45
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## MCP Tools
|
|
79
|
-
|
|
80
|
-
10 tools exposed over stdio transport:
|
|
81
|
-
|
|
82
|
-
| Tool | Description |
|
|
83
|
-
|------|-------------|
|
|
84
|
-
| `solana_buy` | Buy tokens with SOL on any DEX |
|
|
85
|
-
| `solana_sell` | Sell tokens for SOL (percentage-based) |
|
|
86
|
-
| `solana_quote` | Get on-chain price from a pool |
|
|
87
|
-
| `solana_add_liquidity` | Add LP to a pool (supports DLMM strategies) |
|
|
88
|
-
| `solana_remove_liquidity` | Remove LP from a pool |
|
|
89
|
-
| `solana_claim_fees` | Claim accumulated swap fees from LP positions |
|
|
90
|
-
| `solana_list_positions` | List user's LP positions in a pool |
|
|
91
|
-
| `solana_token_info` | Get token market data from DexScreener |
|
|
92
|
-
| `solana_list_dexes` | List all available DEX adapters and capabilities |
|
|
93
|
-
| `solana_wallet_balance` | Check SOL or SPL token balance |
|
|
94
|
-
|
|
95
|
-
### Example: Buy a Token
|
|
96
|
-
|
|
97
|
-
```
|
|
98
|
-
User: "Buy 0.1 SOL of USDC on jupiter-ultra"
|
|
46
|
+
### Automaton / Conway Cloud
|
|
99
47
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
token: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
|
|
103
|
-
amount: 0.1
|
|
104
|
-
})
|
|
48
|
+
```bash
|
|
49
|
+
npx skills add outsmartchad/outsmart-agent
|
|
105
50
|
```
|
|
106
51
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
```
|
|
110
|
-
User: "Add 0.5 SOL of liquidity to this Meteora DLMM pool"
|
|
111
|
-
|
|
112
|
-
Agent calls: solana_add_liquidity({
|
|
113
|
-
dex: "meteora-dlmm",
|
|
114
|
-
pool: "BGm1tav58oGcsQJehL9WXBFXF7D27vZsKefj4xJKD5Y",
|
|
115
|
-
amount_sol: 0.5,
|
|
116
|
-
strategy: "spot",
|
|
117
|
-
bins: 50
|
|
118
|
-
})
|
|
119
|
-
```
|
|
52
|
+
## MCP Tools
|
|
120
53
|
|
|
121
|
-
|
|
54
|
+
### DEX Tools (11)
|
|
55
|
+
|
|
56
|
+
| Tool | What |
|
|
57
|
+
|------|------|
|
|
58
|
+
| `dex_buy` | Buy tokens with SOL on any DEX |
|
|
59
|
+
| `dex_sell` | Sell tokens (percentage-based) |
|
|
60
|
+
| `dex_quote` | On-chain price from a pool |
|
|
61
|
+
| `dex_snipe` | Competitive buy with Jito MEV tip |
|
|
62
|
+
| `dex_find_pool` | Find pool address for a token pair |
|
|
63
|
+
| `dex_create_pool` | Create DAMM v2 pool on Meteora |
|
|
64
|
+
| `dex_add_liquidity` | Add LP (DLMM bins, DAMM v2 full-range) |
|
|
65
|
+
| `dex_remove_liquidity` | Remove LP |
|
|
66
|
+
| `dex_claim_fees` | Collect swap fees from LP |
|
|
67
|
+
| `dex_list_positions` | Your LP positions in a pool |
|
|
68
|
+
| `dex_list_dexes` | All 18 adapters + capabilities |
|
|
69
|
+
|
|
70
|
+
### Launchpad Tools (1)
|
|
71
|
+
|
|
72
|
+
| Tool | What |
|
|
73
|
+
|------|------|
|
|
74
|
+
| `launchpad_create_coin` | Launch token on PumpFun |
|
|
75
|
+
|
|
76
|
+
### Solana Tools (2)
|
|
77
|
+
|
|
78
|
+
| Tool | What |
|
|
79
|
+
|------|------|
|
|
80
|
+
| `solana_token_info` | DexScreener market data |
|
|
81
|
+
| `solana_wallet_balance` | SOL and token balances |
|
|
82
|
+
|
|
83
|
+
### Jupiter Tools (9)
|
|
84
|
+
|
|
85
|
+
| Tool | What |
|
|
86
|
+
|------|------|
|
|
87
|
+
| `jupiter_shield` | Token security warnings |
|
|
88
|
+
| `jupiter_prediction_events` | Browse/search prediction market events |
|
|
89
|
+
| `jupiter_prediction_market` | Market details + orderbook depth |
|
|
90
|
+
| `jupiter_prediction_order` | Place buy/sell orders on prediction markets |
|
|
91
|
+
| `jupiter_prediction_positions` | Your positions + trade history |
|
|
92
|
+
| `jupiter_prediction_claim` | Claim winnings from resolved markets |
|
|
93
|
+
| `jupiter_dca_create` | Create recurring DCA order |
|
|
94
|
+
| `jupiter_dca_list` | List active/historical DCA orders |
|
|
95
|
+
| `jupiter_dca_cancel` | Cancel a DCA order |
|
|
96
|
+
|
|
97
|
+
### Percolator Perp Tools (15)
|
|
98
|
+
|
|
99
|
+
| Tool | What |
|
|
100
|
+
|------|------|
|
|
101
|
+
| `percolator_create_market` | Create a permissionless perp exchange |
|
|
102
|
+
| `percolator_init_user` | Register a trader account on a market |
|
|
103
|
+
| `percolator_long` | Open a long position (auto-detects account, auto-cranks) |
|
|
104
|
+
| `percolator_short` | Open a short position (auto-detects account, auto-cranks) |
|
|
105
|
+
| `percolator_close` | Close an open position (auto-detects size and direction) |
|
|
106
|
+
| `percolator_deposit` | Deposit collateral |
|
|
107
|
+
| `percolator_withdraw` | Withdraw collateral |
|
|
108
|
+
| `percolator_trade` | Open/close/modify positions (low-level, manual indices) |
|
|
109
|
+
| `percolator_push_oracle` | Update oracle price (admin-oracle mode) |
|
|
110
|
+
| `percolator_crank` | Run keeper crank |
|
|
111
|
+
| `percolator_market_state` | Read full market state |
|
|
112
|
+
| `percolator_insurance_lp` | Deposit/withdraw insurance fund LP |
|
|
113
|
+
| `percolator_keeper_start` | Start WebSocket oracle keeper (watches DEX pools, pushes prices) |
|
|
114
|
+
| `percolator_keeper_stop` | Stop the running keeper |
|
|
115
|
+
| `percolator_keeper_status` | Get keeper stats (pushes, errors, active watchers) |
|
|
116
|
+
|
|
117
|
+
### Polymarket Tools (4)
|
|
118
|
+
|
|
119
|
+
| Tool | What |
|
|
120
|
+
|------|------|
|
|
121
|
+
| `polymarket_search` | Search prediction markets by keyword |
|
|
122
|
+
| `polymarket_trending` | Discover highest-volume active events |
|
|
123
|
+
| `polymarket_event` | Detailed event info by slug or ID |
|
|
124
|
+
| `polymarket_orderbook` | CLOB orderbook (bids/asks) for a market token |
|
|
125
|
+
|
|
126
|
+
> Polymarket tools are **read-only** — no wallet or API key needed. Uses the public Gamma API and CLOB API.
|
|
127
|
+
|
|
128
|
+
## Skills
|
|
129
|
+
|
|
130
|
+
9 strategy skills that teach agents how to think about Solana DeFi:
|
|
131
|
+
|
|
132
|
+
| Skill | What |
|
|
133
|
+
|-------|------|
|
|
134
|
+
| **outsmart-dex-trading** | Tool reference, DEX selection, safety rules |
|
|
135
|
+
| **outsmart-lp-farming** | DLMM concentrated LP, DAMM v2 pool creation, fee compounding |
|
|
136
|
+
| **outsmart-lp-sniping** | Evaluating new launches, early entry, position sizing |
|
|
137
|
+
| **outsmart-trenching** | Memecoin trading — finding metas, security checks, take-profit ladders |
|
|
138
|
+
| **outsmart-devving-coins** | Launching tokens — catching narratives, PumpFun, Jupiter Studio, LaunchLab |
|
|
139
|
+
| **outsmart-dca-grid** | Jupiter Recurring DCA + DLMM grid trading |
|
|
140
|
+
| **outsmart-prediction-markets** | Probability estimation, edge calculation, Jupiter + Polymarket + Futarchy |
|
|
141
|
+
| **outsmart-survival** | Capital management, survival tiers, emergency liquidation |
|
|
142
|
+
| **outsmart-percolator-perps** | Operating perp exchanges — market creation, LP, pricing, keeper duties |
|
|
122
143
|
|
|
123
144
|
## Supported DEXes
|
|
124
145
|
|
|
125
|
-
18 adapters
|
|
146
|
+
18 adapters across every major Solana protocol:
|
|
126
147
|
|
|
127
|
-
**
|
|
128
|
-
|
|
129
|
-
-
|
|
148
|
+
**Aggregators:** jupiter-ultra, dflow
|
|
149
|
+
**Raydium:** amm-v4, cpmm, clmm, launchlab
|
|
150
|
+
**Meteora:** damm-v2, dlmm, damm-v1, dbc
|
|
151
|
+
**PumpFun:** pumpswap amm, bonding curve
|
|
152
|
+
**Others:** orca, pancakeswap-clmm, byreal-clmm, fusion-amm, futarchy-amm, futarchy-launchpad
|
|
130
153
|
|
|
131
|
-
|
|
132
|
-
- `raydium-amm-v4`, `raydium-cpmm`, `raydium-clmm`, `raydium-launchlab`
|
|
133
|
-
- `meteora-damm-v2`, `meteora-dlmm`, `meteora-damm-v1`, `meteora-dbc`
|
|
134
|
-
- `pumpfun-amm`
|
|
135
|
-
- `orca`
|
|
136
|
-
- `byreal-clmm`, `pancakeswap-clmm`
|
|
137
|
-
- `fusion-amm`, `futarchy-amm`, `futarchy-launchpad`
|
|
154
|
+
## Architecture
|
|
138
155
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
156
|
+
```
|
|
157
|
+
outsmart (npm) outsmart-agent (this repo)
|
|
158
|
+
────────────── ──────────────────────────
|
|
159
|
+
18 DEX adapters MCP server (42 tools)
|
|
160
|
+
Percolator perps 9 AI skills
|
|
161
|
+
TX landing providers Agent definition
|
|
162
|
+
Wallet + TX helpers Plugin manifest
|
|
163
|
+
DexScreener API
|
|
164
|
+
```
|
|
142
165
|
|
|
143
|
-
|
|
166
|
+
`outsmart-agent` imports `outsmart` as a dependency. The MCP server is a thin wrapper — validates params, calls adapter methods, returns JSON. Polymarket tools call their public REST APIs directly (no dependency needed).
|
|
144
167
|
|
|
145
|
-
##
|
|
168
|
+
## For Autonomous Agents
|
|
146
169
|
|
|
147
|
-
|
|
170
|
+
If you're building a self-sustaining agent, here's a starting point:
|
|
148
171
|
|
|
149
|
-
```bash
|
|
150
|
-
npx skills add outsmartchad/outsmart-agent
|
|
151
172
|
```
|
|
173
|
+
You are a DeFi survival agent on Solana. Earn enough to pay for compute.
|
|
152
174
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
- How to check token safety before trading
|
|
156
|
-
- Common workflows (buy, sell, LP, exit)
|
|
157
|
-
- Safety rules for autonomous trading
|
|
158
|
-
|
|
159
|
-
---
|
|
175
|
+
40% LP farming, 15% DCA/grid, 10% trenching, 10% sniping,
|
|
176
|
+
10% prediction markets, 10% reserve, 5% experimental.
|
|
160
177
|
|
|
161
|
-
|
|
178
|
+
Check credits every 6 hours. Below $0.50 → conservative.
|
|
179
|
+
Below $0.10 → liquidate everything and top up.
|
|
162
180
|
|
|
181
|
+
Never >5% on a single trade. Take profits. Track what works. Evolve.
|
|
163
182
|
```
|
|
164
|
-
outsmart (npm package) outsmart-agent (this repo)
|
|
165
|
-
────────────────────── ─────────────────────────
|
|
166
|
-
18 DEX adapters MCP server (11 tools)
|
|
167
|
-
12 TX landing providers AI skills (SKILL.md)
|
|
168
|
-
Wallet/connection helpers Claude Code marketplace plugin
|
|
169
|
-
DexScreener utility Re-exports outsmart API
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
`outsmart-agent` imports `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 results.
|
|
173
183
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
## Environment Variables
|
|
184
|
+
## Environment
|
|
177
185
|
|
|
178
186
|
| Variable | Required | Description |
|
|
179
187
|
|----------|----------|-------------|
|
|
180
|
-
| `
|
|
181
|
-
| `
|
|
182
|
-
| `JUPITER_API_KEY` | No |
|
|
183
|
-
| `
|
|
184
|
-
|
|
185
|
-
|
|
188
|
+
| `PRIVATE_KEY` | Yes | Base58 Solana private key |
|
|
189
|
+
| `MAINNET_ENDPOINT` | Yes | Solana RPC (Helius, Triton, etc.) |
|
|
190
|
+
| `JUPITER_API_KEY` | No | Jupiter Ultra, Shield, Prediction, DCA |
|
|
191
|
+
| `DEVNET_ENDPOINT` | No | Solana devnet RPC (Percolator) |
|
|
192
|
+
| `DFLOW_API_KEY` | No | DFlow |
|
|
193
|
+
|
|
194
|
+
## Roadmap
|
|
195
|
+
|
|
196
|
+
- [x] MCP Server — 42 tools (11 DEX + 1 Launchpad + 2 Solana + 9 Jupiter + 15 Percolator + 4 Polymarket), 18 DEX adapters
|
|
197
|
+
- [x] AI Skills — 9 strategy skills
|
|
198
|
+
- [x] Claude Code Plugin manifest
|
|
199
|
+
- [x] Percolator — Permissionless perp exchange creation, trading, LP, insurance
|
|
200
|
+
- [x] Oracle Keeper — WebSocket + gRPC keeper bots (8 DEX types, real-time price feed)
|
|
201
|
+
- [x] Perp Trading — High-level long/short/close tools with auto-detection
|
|
202
|
+
- [x] Polymarket — Read-only prediction market data (search, trending, events, orderbook)
|
|
203
|
+
- [ ] Event Streaming — Yellowstone gRPC for real-time pool creation
|
|
204
|
+
- [ ] LP Manager — Autonomous rebalancing and fee compounding
|
|
205
|
+
- [ ] Strategy Engine — Tier-aware capital allocation
|
|
186
206
|
|
|
187
207
|
## Related
|
|
188
208
|
|
|
189
|
-
- **[outsmart](https://www.npmjs.com/package/outsmart)** — The
|
|
190
|
-
- **[outsmart-cli](https://github.com/outsmartchad/outsmart-cli)** —
|
|
209
|
+
- **[outsmart](https://www.npmjs.com/package/outsmart)** — The trading library + CLI
|
|
210
|
+
- **[outsmart-cli](https://github.com/outsmartchad/outsmart-cli)** — Source repo
|
|
191
211
|
|
|
192
|
-
##
|
|
212
|
+
## Community
|
|
193
213
|
|
|
194
|
-
https://discord.gg/dc3Kh3Y3yJ
|
|
214
|
+
Discord: https://discord.gg/dc3Kh3Y3yJ
|
|
195
215
|
|
|
196
216
|
## Disclaimer
|
|
197
217
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
Never share your private keys.
|
|
218
|
+
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.
|
|
201
219
|
|
|
202
220
|
## License
|
|
203
221
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Expert agent for Solana DeFi trading decisions. Analyzes tokens, selects DEXes, evaluates risks, and recommends trade parameters. Use when the user needs help deciding *what* to trade, *where* to trade it, or *how much* to risk — not just executing a trade.
|
|
3
|
+
model: opus
|
|
4
|
+
allowed-tools: Read, Glob, Grep, WebFetch
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Solana Trading Expert
|
|
8
|
+
|
|
9
|
+
You are an expert in Solana DeFi trading with deep knowledge of every DEX protocol, LP mechanism, and token lifecycle on Solana.
|
|
10
|
+
|
|
11
|
+
## Expertise
|
|
12
|
+
|
|
13
|
+
1. **DEX Selection** — Which adapter to use for which token/pool type (aggregator vs on-chain, CPMM vs CLMM vs DLMM)
|
|
14
|
+
2. **Token Analysis** — Reading DexScreener data: red flags (low liquidity, few buyers, fresh deployer), green flags (growing volume, organic distribution)
|
|
15
|
+
3. **LP Strategy** — When to LP (high volume/TVL ratio), where (DLMM bins vs DAMM v2 full-range), how to set bin width and strategy
|
|
16
|
+
4. **Risk Assessment** — Position sizing, rug detection, slippage estimation, impermanent loss
|
|
17
|
+
5. **Pool Mechanics** — How each Solana AMM works: constant product, concentrated liquidity, DLMM bins, bonding curves
|
|
18
|
+
6. **Stablecoin Routing** — When pools quote in USDC/USDT/USD1 instead of SOL, and how auto-swap handles it
|
|
19
|
+
7. **TX Landing** — When to use Jito tips, MEV protection strategies, priority fee optimization
|
|
20
|
+
8. **PumpFun Lifecycle** — Bonding curve → graduation → AMM migration, when to enter/exit
|
|
21
|
+
9. **Survival Economics** — Capital allocation for autonomous agents, profit extraction timing, risk budgets
|
|
22
|
+
10. **Memecoin Alpha** — Reading social signals, volume patterns, whale behavior, and smart money flows
|
|
23
|
+
|
|
24
|
+
## Response Guidelines
|
|
25
|
+
|
|
26
|
+
- Always provide specific, actionable recommendations
|
|
27
|
+
- Include risk warnings — never minimize downside
|
|
28
|
+
- Cite specific numbers: pool addresses, liquidity depth, volume/TVL ratios
|
|
29
|
+
- For LP recommendations, specify strategy (spot/curve/bid-ask), bin count, and expected APR range
|
|
30
|
+
- For buys, recommend position size as percentage of portfolio, not absolute amounts
|
|
31
|
+
- If data is insufficient to make a recommendation, say so explicitly
|
|
32
|
+
|
|
33
|
+
## DEX Quick Reference
|
|
34
|
+
|
|
35
|
+
| Scenario | DEX | Why |
|
|
36
|
+
|----------|-----|-----|
|
|
37
|
+
| Best price, any token | `jupiter-ultra` | Aggregates all routes |
|
|
38
|
+
| Specific Raydium pool | `raydium-cpmm` / `raydium-clmm` / `raydium-amm-v4` | Direct on-chain |
|
|
39
|
+
| Meteora concentrated LP | `meteora-dlmm` | Bin-based, high fee capture |
|
|
40
|
+
| Meteora full-range LP | `meteora-damm-v2` | Full lifecycle support |
|
|
41
|
+
| New PumpFun tokens | `pumpfun-amm` | Post-graduation AMM |
|
|
42
|
+
| Bonding curve tokens | `pumpfun` | Pre-graduation |
|
|
43
|
+
| Raydium launches | `raydium-launchlab` | Bonding curve → CPMM |
|
|
44
|
+
|
|
45
|
+
## Risk Framework
|
|
46
|
+
|
|
47
|
+
| Risk Level | Position Size | Max Loss | Use Case |
|
|
48
|
+
|-----------|---------------|----------|----------|
|
|
49
|
+
| **Degen** | 1-5% of portfolio | Total loss acceptable | New launches, memecoins, sniping |
|
|
50
|
+
| **Moderate** | 5-15% | 50% drawdown | Established tokens, LP farming |
|
|
51
|
+
| **Conservative** | 15-40% | 20% drawdown | Blue chips (SOL, JUP, JTO), stable LPs |
|
|
52
|
+
| **Reserve** | 5-10% | Never touch | Emergency compute/gas fund |
|
package/dist/mcp/server.d.ts
CHANGED
|
@@ -2,14 +2,35 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* outsmart-agent MCP Server
|
|
4
4
|
*
|
|
5
|
-
* Exposes
|
|
5
|
+
* Exposes 42 MCP tools wrapping the `outsmart` trading library + Jupiter APIs + Percolator + Polymarket.
|
|
6
6
|
* Runs over stdio transport — start with `npx outsmart-agent`.
|
|
7
7
|
*
|
|
8
|
-
* Tools:
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
8
|
+
* DEX Tools (11):
|
|
9
|
+
* dex_buy, dex_sell, dex_quote, dex_find_pool, dex_snipe,
|
|
10
|
+
* dex_create_pool, dex_add_liquidity, dex_remove_liquidity,
|
|
11
|
+
* dex_claim_fees, dex_list_positions, dex_list_dexes
|
|
12
|
+
*
|
|
13
|
+
* Launchpad Tools (1):
|
|
14
|
+
* launchpad_create_coin
|
|
15
|
+
*
|
|
16
|
+
* Solana Tools (2):
|
|
17
|
+
* solana_token_info, solana_wallet_balance
|
|
18
|
+
*
|
|
19
|
+
* Jupiter Tools (9):
|
|
20
|
+
* jupiter_shield,
|
|
21
|
+
* jupiter_prediction_events, jupiter_prediction_market,
|
|
22
|
+
* jupiter_prediction_order, jupiter_prediction_positions, jupiter_prediction_claim,
|
|
23
|
+
* jupiter_dca_create, jupiter_dca_list, jupiter_dca_cancel
|
|
24
|
+
*
|
|
25
|
+
* Percolator Perp Tools (15):
|
|
26
|
+
* percolator_create_market, percolator_trade, percolator_long, percolator_short,
|
|
27
|
+
* percolator_close, percolator_deposit, percolator_withdraw,
|
|
28
|
+
* percolator_market_state, percolator_list_markets,
|
|
29
|
+
* percolator_push_price, percolator_crank, percolator_insurance_lp,
|
|
30
|
+
* percolator_keeper_start, percolator_keeper_stop, percolator_keeper_status
|
|
31
|
+
*
|
|
32
|
+
* Polymarket Tools (4):
|
|
33
|
+
* polymarket_search, polymarket_trending, polymarket_event, polymarket_orderbook
|
|
13
34
|
*/
|
|
14
35
|
export {};
|
|
15
36
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG"}
|