@gala-chain/launchpad-mcp-server 1.2.26 → 1.4.0

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 CHANGED
@@ -5,10 +5,12 @@ MCP (Model Context Protocol) server for Gala Launchpad SDK - Enables AI agents t
5
5
  ## 🚀 Features
6
6
 
7
7
  - **47 AI-accessible tools** for complete Gala Launchpad integration
8
+ - **14 slash commands** (prompts) for quick access to common workflows
8
9
  - **Type-safe** - Full TypeScript support with validated inputs
9
10
  - **Production-ready** - Built on [@gala-chain/launchpad-sdk ](https://www.npmjs.com/package/@gala-chain/launchpad-sdk)
10
11
  - **Easy setup** - Works with Claude Desktop and other MCP clients
11
12
  - **Comprehensive** - Pool management, trading, balances, token creation, comments, transfers
13
+ - **Optimized** - Local bonding curve calculations for instant results
12
14
 
13
15
  ## 📦 Installation
14
16
 
@@ -112,6 +114,82 @@ Add to your `claude_desktop_config.json`:
112
114
  - Always use `graduate_token` for convenience - it handles calculations internally
113
115
  - Pool status changes from "Ongoing" to "Completed" upon successful graduation
114
116
 
117
+ #### ⚡ Performance Optimization for AI Agents
118
+
119
+ The following tools now support optional performance parameters to reduce network calls by **66%** and speed up operations by **~70%**:
120
+
121
+ - `gala_launchpad_fetch_launchpad_token_spot_price`
122
+ - `gala_launchpad_calculate_buy_amount_for_graduation`
123
+ - `gala_launchpad_graduate_token`
124
+
125
+ **New Optional Parameters:**
126
+ - `calculateAmountMode` (enum: `'local'` | `'external'`) - Calculation strategy
127
+ - `currentSupply` (string) - Pre-fetched current token supply
128
+
129
+ **Optimization Pattern:**
130
+
131
+ ```javascript
132
+ // ❌ WITHOUT OPTIMIZATION (3 network calls)
133
+ const spotPrice1 = await gala_launchpad_fetch_launchpad_token_spot_price({ tokenName: "tinyevil" });
134
+ // → Network call #1
135
+
136
+ const graduation1 = await gala_launchpad_calculate_buy_amount_for_graduation({ tokenName: "tinyevil" });
137
+ // → Network call #2
138
+
139
+ const result1 = await gala_launchpad_graduate_token({ tokenName: "tinyevil" });
140
+ // → Network call #3
141
+
142
+ // ✅ WITH OPTIMIZATION (1 network call + instant local calculations)
143
+ // Step 1: Fetch pool details once
144
+ const poolDetails = await gala_launchpad_fetch_pool_details_for_calculation({ tokenName: "tinyevil" });
145
+ const currentSupply = poolDetails.currentSupply;
146
+
147
+ // Step 2: Reuse currentSupply for instant local calculations
148
+ const spotPrice2 = await gala_launchpad_fetch_launchpad_token_spot_price({
149
+ tokenName: "tinyevil",
150
+ calculateAmountMode: "local",
151
+ currentSupply: currentSupply
152
+ });
153
+ // → Instant (no network call)
154
+
155
+ const graduation2 = await gala_launchpad_calculate_buy_amount_for_graduation({
156
+ tokenName: "tinyevil",
157
+ calculateAmountMode: "local",
158
+ currentSupply: currentSupply
159
+ });
160
+ // → Instant (no network call)
161
+
162
+ const result2 = await gala_launchpad_graduate_token({
163
+ tokenName: "tinyevil",
164
+ calculateAmountMode: "local",
165
+ currentSupply: currentSupply,
166
+ slippageToleranceFactor: 0.01
167
+ });
168
+ // → Uses local calculation (no redundant pool fetch)
169
+ ```
170
+
171
+ **Performance Impact:**
172
+ | Pattern | Network Calls | Speed | Best For |
173
+ |---------|--------------|-------|----------|
174
+ | Without optimization | 3 calls | ~600-900ms | One-off operations |
175
+ | With optimization | 1 call | ~200ms | Batch operations, analytics |
176
+ | **Reduction** | **66% fewer** | **~70% faster** | |
177
+
178
+ **When to Use Optimization:**
179
+ - ✅ Multiple calculations on the same token
180
+ - ✅ Price discovery and analytics
181
+ - ✅ Trading bot logic with frequent calculations
182
+ - ✅ Simulations and backtests
183
+ - ❌ Single one-off calculations (not worth the complexity)
184
+
185
+ **Accuracy:** Local calculations match external (network) with <0.01% difference.
186
+
187
+ ### Pricing & Spot Price (5 tools)
188
+ - `gala_launchpad_fetch_token_spot_price` - Fetch USD spot price for DEX tokens (GALA, SILK, MUSIC, etc.)
189
+ - `gala_launchpad_fetch_gala_spot_price` - Fetch current GALA USD spot price (convenience)
190
+ - `gala_launchpad_fetch_launchpad_token_spot_price` - Fetch USD spot price for launchpad token (supports performance params)
191
+ - `gala_launchpad_resolve_token_class_key` - Get GalaChain TokenClassKey for launchpad token
192
+
115
193
  ### Balance & Portfolio (6 tools)
116
194
  - `gala_launchpad_fetch_gala_balance` - Get GALA balance
117
195
  - `gala_launchpad_fetch_token_balance` - Get token balance
@@ -153,6 +231,132 @@ Ask Claude (or your AI assistant):
153
231
 
154
232
  > "Show me all tokens I'm holding"
155
233
 
234
+ ## ⚡ Slash Commands (Prompts)
235
+
236
+ The MCP server exposes **14 slash commands** that provide quick access to common Launchpad workflows. These appear as `/galachain-launchpad:<<method>>` in Claude Desktop.
237
+
238
+ ### Trading Commands (4 commands)
239
+
240
+ **`/galachain-launchpad:analyze-token`**
241
+ - Comprehensive token analysis (pool details, spot price, graduation cost)
242
+ - **Arguments**: `tokenName` (required)
243
+ - **Example**: `/galachain-launchpad:analyze-token tokenName=anime`
244
+ - Uses optimized LOCAL calculations for speed
245
+
246
+ **`/galachain-launchpad:buy-tokens`**
247
+ - Guided token purchase with slippage protection
248
+ - **Arguments**: `tokenName` (required), `galaAmount` (required), `slippage` (optional, default 1%)
249
+ - **Example**: `/galachain-launchpad:buy-tokens tokenName=anime galaAmount=100 slippage=2`
250
+ - Shows breakdown and asks for confirmation before executing
251
+
252
+ **`/galachain-launchpad:sell-tokens`**
253
+ - Guided token sale with slippage protection
254
+ - **Arguments**: `tokenName` (required), `tokenAmount` (required), `slippage` (optional, default 1%)
255
+ - **Example**: `/galachain-launchpad:sell-tokens tokenName=anime tokenAmount=1000`
256
+ - Checks balance and shows breakdown before executing
257
+
258
+ **`/galachain-launchpad:graduate-token`**
259
+ - One-step pool graduation workflow
260
+ - **Arguments**: `tokenName` (required), `slippage` (optional, default 1%)
261
+ - **Example**: `/galachain-launchpad:graduate-token tokenName=anime`
262
+ - Checks if already graduated, calculates cost, and executes with confirmation
263
+
264
+ ### Portfolio Commands (5 commands)
265
+
266
+ **`/galachain-launchpad:portfolio`**
267
+ - Complete portfolio analysis with USD values
268
+ - **Arguments**: None
269
+ - Shows GALA balance, all token holdings, total portfolio value, and top holdings
270
+
271
+ **`/galachain-launchpad:tokens-held`**
272
+ - List all tokens currently held
273
+ - **Arguments**: `search` (optional fuzzy filter), `limit` (optional, default 20)
274
+ - **Example**: `/galachain-launchpad:tokens-held search=dragon limit=10`
275
+
276
+ **`/galachain-launchpad:tokens-created`**
277
+ - Show tokens created by the user with status
278
+ - **Arguments**: `search` (optional), `limit` (optional, default 20)
279
+ - Shows graduation status and progress for each token
280
+
281
+ **`/galachain-launchpad:balance`**
282
+ - Check GALA and optional token balance
283
+ - **Arguments**: `tokenName` (optional)
284
+ - **Example**: `/galachain-launchpad:balance tokenName=anime`
285
+ - Displays both token amounts and USD values
286
+
287
+ **`/galachain-launchpad:profile`**
288
+ - Show user profile and activity summary
289
+ - **Arguments**: None
290
+ - Displays profile info, wallet addresses, activity metrics, and current balance
291
+
292
+ ### Analysis Commands (5 commands)
293
+
294
+ **`/galachain-launchpad:compare-tokens`**
295
+ - Side-by-side comparison of two tokens
296
+ - **Arguments**: `token1` (required), `token2` (required)
297
+ - **Example**: `/galachain-launchpad:compare-tokens token1=anime token2=test216253`
298
+ - Shows comparison table with metrics, holders, and investment analysis
299
+
300
+ **`/galachain-launchpad:graduation-status`**
301
+ - Check graduation readiness for multiple tokens
302
+ - **Arguments**: `tokens` (required, comma-separated)
303
+ - **Example**: `/galachain-launchpad:graduation-status tokens=anime,test216253,dragnrkti`
304
+ - Shows progress table and identifies graduation opportunities
305
+
306
+ **`/galachain-launchpad:spot-prices`**
307
+ - Batch spot price lookup for multiple tokens
308
+ - **Arguments**: `tokens` (required, comma-separated)
309
+ - **Example**: `/galachain-launchpad:spot-prices tokens=anime,test216253`
310
+ - Uses optimized LOCAL calculations for instant results
311
+
312
+ **`/galachain-launchpad:pool-details`**
313
+ - Comprehensive pool information with badges and distribution
314
+ - **Arguments**: `tokenName` (required)
315
+ - **Example**: `/galachain-launchpad:pool-details tokenName=anime`
316
+ - Shows complete pool metrics, achievements, and recent activity
317
+
318
+ **`/galachain-launchpad:trade-history`**
319
+ - View recent trades with filtering
320
+ - **Arguments**: `tokenName` (optional), `userAddress` (optional), `tradeType` (optional: BUY/SELL), `limit` (optional, default 20)
321
+ - **Example**: `/galachain-launchpad:trade-history tokenName=anime tradeType=BUY limit=10`
322
+
323
+ ### Slash Command Benefits
324
+
325
+ ✅ **Quick access** - Type `/galachain-launchpad:` to see all available commands
326
+ ✅ **Guided workflows** - Each command provides step-by-step execution
327
+ ✅ **Optimized** - Uses LOCAL calculations for maximum performance
328
+ ✅ **Safe** - Asks for confirmation before executing transactions
329
+ ✅ **Educational** - Shows what MCP tools are being used behind the scenes
330
+
331
+ ### Example Slash Command Usage
332
+
333
+ ```
334
+ User: /galachain-launchpad:analyze-token tokenName=anime
335
+
336
+ Claude: I'll analyze the token "anime" using the Gala Launchpad MCP server:
337
+
338
+ 1. Fetching optimized pool details...
339
+ ✅ Current supply: 510,379.79
340
+ ✅ Remaining tokens: 9,489,620.21
341
+ ✅ Max supply: 10,000,000
342
+
343
+ 2. Calculating USD spot price (LOCAL mode - instant!)...
344
+ ✅ Spot price: $0.000153
345
+
346
+ 3. Calculating graduation cost (LOCAL mode - instant!)...
347
+ ✅ GALA required: 1,640,974.33 GALA
348
+ ✅ Transaction fee: 1,640.97 GALA
349
+ ✅ Total cost: 1,642,615.30 GALA
350
+
351
+ 4. Pool progress: 5.10% complete
352
+
353
+ Analysis:
354
+ - Current price is relatively low (early stage token)
355
+ - Requires significant GALA (~1.6M) to graduate
356
+ - Only 5% through bonding curve - high risk, high potential reward
357
+ - Good opportunity for early entry if you believe in the project
358
+ ```
359
+
156
360
  ## 📚 SDK Usage Reference
157
361
 
158
362
  The MCP server includes a built-in SDK documentation tool that provides complete, runnable code examples for using the SDK directly instead of through MCP tools. This is perfect for developers who want to integrate the SDK into their applications.
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Analysis Prompts
3
+ *
4
+ * Slash commands for token analysis and comparison on Gala Launchpad
5
+ */
6
+ import type { MCPPrompt } from '../types/mcp.js';
7
+ /**
8
+ * Compare Tokens - Side-by-side comparison
9
+ */
10
+ export declare const compareTokensPrompt: MCPPrompt;
11
+ /**
12
+ * Graduation Status - Check multiple tokens for graduation readiness
13
+ */
14
+ export declare const graduationStatusPrompt: MCPPrompt;
15
+ /**
16
+ * Spot Prices - Batch spot price lookup
17
+ */
18
+ export declare const spotPricesPrompt: MCPPrompt;
19
+ /**
20
+ * Pool Details - Comprehensive pool information
21
+ */
22
+ export declare const poolDetailsPrompt: MCPPrompt;
23
+ /**
24
+ * Trade History - Recent trades with filters
25
+ */
26
+ export declare const tradeHistoryPrompt: MCPPrompt;
27
+ /**
28
+ * Export all analysis prompts
29
+ */
30
+ export declare const analysisPrompts: MCPPrompt[];
31
+ //# sourceMappingURL=analysis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analysis.d.ts","sourceRoot":"","sources":["../../src/prompts/analysis.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,SA4DjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAiDpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAyC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,SA4D/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,SA6DhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,EAMtC,CAAC"}
@@ -0,0 +1,310 @@
1
+ "use strict";
2
+ /**
3
+ * Analysis Prompts
4
+ *
5
+ * Slash commands for token analysis and comparison on Gala Launchpad
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.analysisPrompts = exports.tradeHistoryPrompt = exports.poolDetailsPrompt = exports.spotPricesPrompt = exports.graduationStatusPrompt = exports.compareTokensPrompt = void 0;
9
+ /**
10
+ * Compare Tokens - Side-by-side comparison
11
+ */
12
+ exports.compareTokensPrompt = {
13
+ name: 'galachain-launchpad:compare-tokens',
14
+ description: 'Compare two Launchpad tokens side-by-side with detailed metrics',
15
+ arguments: [
16
+ {
17
+ name: 'token1',
18
+ description: 'First token to compare (e.g., anime)',
19
+ required: true,
20
+ },
21
+ {
22
+ name: 'token2',
23
+ description: 'Second token to compare (e.g., test216253)',
24
+ required: true,
25
+ },
26
+ ],
27
+ handler: (args) => [
28
+ {
29
+ role: 'user',
30
+ content: {
31
+ type: 'text',
32
+ text: `Compare two Launchpad tokens side-by-side:
33
+
34
+ Token 1: ${args.token1}
35
+ Token 2: ${args.token2}
36
+
37
+ For EACH token, use the optimized pattern:
38
+
39
+ 1. Fetch pool details using gala_launchpad_fetch_pool_details_for_calculation
40
+
41
+ 2. Calculate metrics using LOCAL mode:
42
+ - Spot price: gala_launchpad_fetch_launchpad_token_spot_price
43
+ - Graduation cost: gala_launchpad_calculate_buy_amount_for_graduation
44
+ - Is graduated: gala_launchpad_is_token_graduated
45
+
46
+ 3. Get additional data:
47
+ - Full pool details: gala_launchpad_fetch_pool_details
48
+ - Token distribution: gala_launchpad_fetch_token_distribution
49
+ - Badges: gala_launchpad_fetch_token_badges
50
+
51
+ Present a comparison table:
52
+
53
+ | Metric | ${args.token1} | ${args.token2} |
54
+ |--------|--------|--------|
55
+ | Spot Price (USD) | ... | ... |
56
+ | Market Cap Estimate | ... | ... |
57
+ | Pool Status | ... | ... |
58
+ | Progress to Graduation | ... | ... |
59
+ | Remaining Tokens | ... | ... |
60
+ | GALA to Graduate | ... | ... |
61
+ | Holder Count | ... | ... |
62
+ | Creator Status | ... | ... |
63
+
64
+ Provide analysis:
65
+ - Which token is closer to graduation?
66
+ - Which has better liquidity?
67
+ - Which might be a better investment and why?
68
+ - Any notable badges or achievements?`,
69
+ },
70
+ },
71
+ ],
72
+ };
73
+ /**
74
+ * Graduation Status - Check multiple tokens for graduation readiness
75
+ */
76
+ exports.graduationStatusPrompt = {
77
+ name: 'galachain-launchpad:graduation-status',
78
+ description: 'Check graduation status and readiness for multiple tokens',
79
+ arguments: [
80
+ {
81
+ name: 'tokens',
82
+ description: 'Comma-separated token names (e.g., anime,test216253,dragnrkti)',
83
+ required: true,
84
+ },
85
+ ],
86
+ handler: (args) => [
87
+ {
88
+ role: 'user',
89
+ content: {
90
+ type: 'text',
91
+ text: `Check graduation status for multiple tokens:
92
+
93
+ Tokens: ${args.tokens}
94
+
95
+ For EACH token in the list:
96
+
97
+ 1. Check if graduated: gala_launchpad_is_token_graduated
98
+
99
+ 2. If not graduated, use optimized pattern:
100
+ a. Fetch pool details: gala_launchpad_fetch_pool_details_for_calculation
101
+ b. Calculate graduation cost: gala_launchpad_calculate_buy_amount_for_graduation (LOCAL mode)
102
+ c. Calculate progress: (currentSupply / maxSupply * 100)
103
+
104
+ 3. Get full pool details: gala_launchpad_fetch_pool_details
105
+
106
+ Present a table:
107
+
108
+ | Token | Status | Progress | Remaining Tokens | GALA to Graduate | Frontend URL |
109
+ |-------|--------|----------|------------------|------------------|--------------|
110
+ | ... | ... | ... | ... | ... | ... |
111
+
112
+ Summary:
113
+ - Total tokens analyzed: [count]
114
+ - Already graduated: [count]
115
+ - Close to graduation (>90%): [count]
116
+ - Mid-progress (50-90%): [count]
117
+ - Early stage (<50%): [count]
118
+
119
+ Provide recommendations:
120
+ - Which tokens are good graduation opportunities?
121
+ - Which tokens might be undervalued?`,
122
+ },
123
+ },
124
+ ],
125
+ };
126
+ /**
127
+ * Spot Prices - Batch spot price lookup
128
+ */
129
+ exports.spotPricesPrompt = {
130
+ name: 'galachain-launchpad:spot-prices',
131
+ description: 'Get spot prices for multiple Launchpad tokens efficiently',
132
+ arguments: [
133
+ {
134
+ name: 'tokens',
135
+ description: 'Comma-separated token names (e.g., anime,test216253,dragnrkti)',
136
+ required: true,
137
+ },
138
+ ],
139
+ handler: (args) => [
140
+ {
141
+ role: 'user',
142
+ content: {
143
+ type: 'text',
144
+ text: `Get spot prices for multiple Launchpad tokens:
145
+
146
+ Tokens: ${args.tokens}
147
+
148
+ Use the optimized batch pattern for EACH token:
149
+
150
+ 1. Fetch pool details: gala_launchpad_fetch_pool_details_for_calculation
151
+ 2. Calculate spot price: gala_launchpad_fetch_launchpad_token_spot_price (LOCAL mode)
152
+
153
+ Also get GALA spot price: gala_launchpad_fetch_gala_spot_price
154
+
155
+ Present results:
156
+
157
+ **GALA Spot Price:** $[price]
158
+
159
+ **Launchpad Token Prices:**
160
+ | Token | USD Price | GALA Price | Market Cap Est. |
161
+ |-------|-----------|------------|-----------------|
162
+ | ... | ... | ... | ... |
163
+
164
+ Performance note: Using LOCAL calculations - instant results with <0.01% difference from external!
165
+
166
+ Sort by USD price (highest to lowest).`,
167
+ },
168
+ },
169
+ ],
170
+ };
171
+ /**
172
+ * Pool Details - Comprehensive pool information
173
+ */
174
+ exports.poolDetailsPrompt = {
175
+ name: 'galachain-launchpad:pool-details',
176
+ description: 'Get comprehensive pool information including distribution and badges',
177
+ arguments: [
178
+ {
179
+ name: 'tokenName',
180
+ description: 'Token to analyze (e.g., anime)',
181
+ required: true,
182
+ },
183
+ ],
184
+ handler: (args) => [
185
+ {
186
+ role: 'user',
187
+ content: {
188
+ type: 'text',
189
+ text: `Get comprehensive pool information for "${args.tokenName}":
190
+
191
+ 1. Full pool details: gala_launchpad_fetch_pool_details
192
+ 2. Token distribution: gala_launchpad_fetch_token_distribution
193
+ 3. Achievement badges: gala_launchpad_fetch_token_badges
194
+ 4. Recent volume data (last 24h): gala_launchpad_fetch_volume_data with 1h resolution
195
+ 5. Check if graduated: gala_launchpad_is_token_graduated
196
+ 6. Frontend URL: gala_launchpad_get_url_by_token_name
197
+
198
+ Display organized sections:
199
+
200
+ **Basic Info:**
201
+ - Token name and symbol
202
+ - Pool status
203
+ - Created by
204
+ - Frontend URL
205
+
206
+ **Supply Metrics:**
207
+ - Current supply
208
+ - Maximum supply
209
+ - Remaining tokens
210
+ - Progress percentage
211
+
212
+ **Distribution:**
213
+ - Total holders
214
+ - Top holders (if available)
215
+ - Distribution metrics
216
+
217
+ **Achievements:**
218
+ - Volume badges
219
+ - Engagement badges
220
+ - Other achievements
221
+
222
+ **Recent Activity (24h):**
223
+ - Trading volume
224
+ - Price movement
225
+ - Number of trades
226
+
227
+ **Reverse Bonding Curve:**
228
+ - Max fee factor
229
+ - Min fee factor
230
+ - Current fee structure`,
231
+ },
232
+ },
233
+ ],
234
+ };
235
+ /**
236
+ * Trade History - Recent trades with filters
237
+ */
238
+ exports.tradeHistoryPrompt = {
239
+ name: 'galachain-launchpad:trade-history',
240
+ description: 'View recent trades for a token or user with filtering options',
241
+ arguments: [
242
+ {
243
+ name: 'tokenName',
244
+ description: 'Token to view trades for (optional)',
245
+ required: false,
246
+ },
247
+ {
248
+ name: 'userAddress',
249
+ description: 'User address to filter by (optional)',
250
+ required: false,
251
+ },
252
+ {
253
+ name: 'tradeType',
254
+ description: 'Trade type filter: BUY or SELL (optional)',
255
+ required: false,
256
+ },
257
+ {
258
+ name: 'limit',
259
+ description: 'Number of trades to show (default: 20)',
260
+ required: false,
261
+ },
262
+ ],
263
+ handler: (args) => [
264
+ {
265
+ role: 'user',
266
+ content: {
267
+ type: 'text',
268
+ text: `Show recent trade history:
269
+
270
+ ${args.tokenName ? `Token: ${args.tokenName}` : 'All tokens'}
271
+ ${args.userAddress ? `User: ${args.userAddress}` : 'All users'}
272
+ ${args.tradeType ? `Type: ${args.tradeType}` : 'All trade types'}
273
+ Limit: ${args.limit || '20'}
274
+
275
+ Use gala_launchpad_fetch_trades with:
276
+ ${args.tokenName ? `- tokenName: "${args.tokenName}"` : ''}
277
+ ${args.userAddress ? `- userAddress: "${args.userAddress}"` : ''}
278
+ ${args.tradeType ? `- tradeType: "${args.tradeType}"` : ''}
279
+ - limit: ${args.limit || '20'}
280
+ - sortOrder: "DESC" (newest first)
281
+
282
+ For each trade, display:
283
+ - Timestamp (formatted)
284
+ - Token name
285
+ - Trade type (BUY/SELL)
286
+ - Amount (tokens)
287
+ - Price (GALA)
288
+ - User address (truncated)
289
+ - Transaction ID
290
+
291
+ Calculate summary:
292
+ - Total trades shown
293
+ - Total volume (GALA)
294
+ - Average trade size
295
+ - Buy vs Sell ratio (if not filtered)`,
296
+ },
297
+ },
298
+ ],
299
+ };
300
+ /**
301
+ * Export all analysis prompts
302
+ */
303
+ exports.analysisPrompts = [
304
+ exports.compareTokensPrompt,
305
+ exports.graduationStatusPrompt,
306
+ exports.spotPricesPrompt,
307
+ exports.poolDetailsPrompt,
308
+ exports.tradeHistoryPrompt,
309
+ ];
310
+ //# sourceMappingURL=analysis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analysis.js","sourceRoot":"","sources":["../../src/prompts/analysis.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH;;GAEG;AACU,QAAA,mBAAmB,GAAc;IAC5C,IAAI,EAAE,oCAAoC;IAC1C,WAAW,EAAE,iEAAiE;IAC9E,SAAS,EAAE;QACT;YACE,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,IAAI;SACf;QACD;YACE,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,IAAI;SACf;KACF;IACD,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;QACjB;YACE,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE;;WAEH,IAAI,CAAC,MAAM;WACX,IAAI,CAAC,MAAM;;;;;;;;;;;;;;;;;;aAkBT,IAAI,CAAC,MAAM,MAAM,IAAI,CAAC,MAAM;;;;;;;;;;;;;;;sCAeH;aAC/B;SACF;KACF;CACF,CAAC;AAEF;;GAEG;AACU,QAAA,sBA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CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,EAAE;WAC/C,IAAI,CAAC,KAAK,IAAI,IAAI;;;;;;;;;;;;;;;;sCAgBS;aAC/B;SACF;KACF;CACF,CAAC;AAEF;;GAEG;AACU,QAAA,eAAe,GAAgB;IAC1C,2BAAmB;IACnB,8BAAsB;IACtB,wBAAgB;IAChB,yBAAiB;IACjB,0BAAkB;CACnB,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Gala Launchpad MCP Prompts (Slash Commands)
3
+ *
4
+ * Provides user-friendly slash commands for common Launchpad workflows
5
+ */
6
+ import { tradingPrompts } from './trading.js';
7
+ import { portfolioPrompts } from './portfolio.js';
8
+ import { analysisPrompts } from './analysis.js';
9
+ import type { MCPPrompt } from '../types/mcp.js';
10
+ /**
11
+ * All available prompts
12
+ */
13
+ export declare const prompts: MCPPrompt[];
14
+ /**
15
+ * Get prompt by name
16
+ */
17
+ export declare function getPrompt(name: string): MCPPrompt | undefined;
18
+ /**
19
+ * Get all prompt names
20
+ */
21
+ export declare function getPromptNames(): string[];
22
+ /**
23
+ * Export individual prompt categories for documentation
24
+ */
25
+ export { tradingPrompts, portfolioPrompts, analysisPrompts };
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,SAAS,EAI9B,CAAC;AAEF;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAE7D;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAEzC;AAED;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * Gala Launchpad MCP Prompts (Slash Commands)
4
+ *
5
+ * Provides user-friendly slash commands for common Launchpad workflows
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.analysisPrompts = exports.portfolioPrompts = exports.tradingPrompts = exports.prompts = void 0;
9
+ exports.getPrompt = getPrompt;
10
+ exports.getPromptNames = getPromptNames;
11
+ const trading_js_1 = require("./trading.js");
12
+ Object.defineProperty(exports, "tradingPrompts", { enumerable: true, get: function () { return trading_js_1.tradingPrompts; } });
13
+ const portfolio_js_1 = require("./portfolio.js");
14
+ Object.defineProperty(exports, "portfolioPrompts", { enumerable: true, get: function () { return portfolio_js_1.portfolioPrompts; } });
15
+ const analysis_js_1 = require("./analysis.js");
16
+ Object.defineProperty(exports, "analysisPrompts", { enumerable: true, get: function () { return analysis_js_1.analysisPrompts; } });
17
+ /**
18
+ * All available prompts
19
+ */
20
+ exports.prompts = [
21
+ ...trading_js_1.tradingPrompts,
22
+ ...portfolio_js_1.portfolioPrompts,
23
+ ...analysis_js_1.analysisPrompts,
24
+ ];
25
+ /**
26
+ * Get prompt by name
27
+ */
28
+ function getPrompt(name) {
29
+ return exports.prompts.find((p) => p.name === name);
30
+ }
31
+ /**
32
+ * Get all prompt names
33
+ */
34
+ function getPromptNames() {
35
+ return exports.prompts.map((p) => p.name);
36
+ }
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAmBH,8BAEC;AAKD,wCAEC;AA1BD,6CAA8C;AA+BrC,+FA/BA,2BAAc,OA+BA;AA9BvB,iDAAkD;AA8BzB,iGA9BhB,+BAAgB,OA8BgB;AA7BzC,+CAAgD;AA6BL,gGA7BlC,6BAAe,OA6BkC;AA1B1D;;GAEG;AACU,QAAA,OAAO,GAAgB;IAClC,GAAG,2BAAc;IACjB,GAAG,+BAAgB;IACnB,GAAG,6BAAe;CACnB,CAAC;AAEF;;GAEG;AACH,SAAgB,SAAS,CAAC,IAAY;IACpC,OAAO,eAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AAC9C,CAAC;AAED;;GAEG;AACH,SAAgB,cAAc;IAC5B,OAAO,eAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Portfolio Prompts
3
+ *
4
+ * Slash commands for portfolio management on Gala Launchpad
5
+ */
6
+ import type { MCPPrompt } from '../types/mcp.js';
7
+ /**
8
+ * Portfolio - Complete portfolio analysis
9
+ */
10
+ export declare const portfolioPrompt: MCPPrompt;
11
+ /**
12
+ * Tokens Held - List all token holdings
13
+ */
14
+ export declare const tokensHeldPrompt: MCPPrompt;
15
+ /**
16
+ * Tokens Created - Show tokens created by user
17
+ */
18
+ export declare const tokensCreatedPrompt: MCPPrompt;
19
+ /**
20
+ * Balance - Check GALA and specific token balances
21
+ */
22
+ export declare const balancePrompt: MCPPrompt;
23
+ /**
24
+ * Profile - Show user profile information
25
+ */
26
+ export declare const profilePrompt: MCPPrompt;
27
+ /**
28
+ * Export all portfolio prompts
29
+ */
30
+ export declare const portfolioPrompts: MCPPrompt[];
31
+ //# sourceMappingURL=portfolio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portfolio.d.ts","sourceRoot":"","sources":["../../src/prompts/portfolio.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,SAqC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAqC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,SA2CjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,SAyC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,SAgC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,EAMvC,CAAC"}