@gala-chain/launchpad-mcp-server 1.2.14 → 1.2.15

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +88 -18
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,13 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.2.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix memory leaks and enable incremental builds
8
+ - Fix WebSocket onAny listener cleanup
9
+ - Fix HTTP interceptor cleanup
10
+ - Enable incremental TypeScript builds (50% faster rebuilds)
11
+ - Add comprehensive performance documentation
12
+
13
+ - Updated dependencies
14
+ - @gala-chain/launchpad-sdk@3.7.1
15
+
3
16
  All notable changes to the Gala Launchpad MCP Server will be documented in this file.
4
17
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
18
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project
19
+ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
20
 
8
21
  ## [1.2.4] - 2025-10-02
9
22
 
10
23
  ### Changed
24
+
11
25
  - **Internal code quality improvements** - Schema consolidation across all 37 MCP tools
12
26
  - Created centralized `common-schemas.ts` with 15+ reusable schema definitions
13
27
  - Updated all tools to use shared schemas (TOKEN_NAME_SCHEMA, PRIVATE_KEY_SCHEMA, etc.)
@@ -17,6 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
31
  - Updated SDK dependency from ^3.5.1 to ^3.5.2
18
32
 
19
33
  ### Benefits
34
+
20
35
  - ✅ Improved code maintainability and consistency
21
36
  - ✅ Single source of truth for all schema definitions
22
37
  - ✅ Easier to maintain and update validation rules
@@ -25,9 +40,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
25
40
  ## [1.2.3] - 2025-10-01
26
41
 
27
42
  ### Documentation
43
+
28
44
  - **Enhanced trading workflow documentation** - Critical updates to prevent transaction failures
29
45
  - Added new Gotcha #1: Missing reverseBondingCurveFee Parameter with real-world failure examples
30
- - Updated trading workflows (buy & sell) to emphasize BOTH expectedAmount AND reverseBondingCurveFee requirements
46
+ - Updated trading workflows (buy & sell) to emphasize BOTH expectedAmount AND
47
+ reverseBondingCurveFee requirements
31
48
  - Updated tool descriptions for `gala_launchpad_buy_tokens` and `gala_launchpad_sell_tokens`
32
49
  - Changed `maxAcceptableReverseBondingCurveFee` description from "Optional" to "RECOMMENDED"
33
50
  - Added explicit warning: "Omitting this may cause transaction failures"
@@ -35,30 +52,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
35
52
  - Fixed type parameter references from 'token' to 'exact' throughout documentation
36
53
 
37
54
  ### Benefits
55
+
38
56
  - ✅ AI agents will now include reverseBondingCurveFee parameter by default
39
57
  - ✅ Reduced transaction failures due to missing fee parameter
40
58
  - ✅ Clearer workflow examples with complete parameter extraction
41
59
  - ✅ Better troubleshooting guidance with real failure examples
42
60
 
43
61
  ### Context
44
- This update addresses a recurring issue where AI agents forgot to pass the `reverseBondingCurveFee` parameter, causing "FAILED" transaction statuses. The documentation now treats this parameter as critical rather than optional.
62
+
63
+ This update addresses a recurring issue where AI agents forgot to pass the `reverseBondingCurveFee`
64
+ parameter, causing "FAILED" transaction statuses. The documentation now treats this parameter as
65
+ critical rather than optional.
45
66
 
46
67
  ## [1.2.2] - 2025-10-01
47
68
 
48
69
  ### Changed
70
+
49
71
  - **Tool parameter standardization** - Renamed `walletAddress` to `address` in 6 MCP tools
50
- - Updated tools: `gala_launchpad_fetch_gala_balance`, `gala_launchpad_fetch_token_balance`, `gala_launchpad_fetch_profile`, `gala_launchpad_update_profile`, `gala_launchpad_upload_profile_image`
72
+ - Updated tools: `gala_launchpad_fetch_gala_balance`, `gala_launchpad_fetch_token_balance`,
73
+ `gala_launchpad_fetch_profile`, `gala_launchpad_update_profile`,
74
+ `gala_launchpad_upload_profile_image`
51
75
  - All tools now accept both `0x...` (Ethereum) and `eth|...` (GalaChain) formats
52
76
  - Address formats automatically normalized by SDK
53
77
  - Error messages updated to reference `address` field
54
78
  - Updated SDK dependency from ^3.5.0 to ^3.5.1
55
79
 
56
80
  ### Documentation
81
+
57
82
  - Updated AI-AGENT-PATTERNS.md with new `address` parameter examples
58
83
  - Updated validation patterns table with address auto-normalization info
59
84
  - Error handler now references `address` instead of `walletAddress`
60
85
 
61
86
  ### Benefits
87
+
62
88
  - ✅ AI agents can use natural `0x...` addresses without manual conversion
63
89
  - ✅ Consistent parameter naming across all tools
64
90
  - ✅ Better developer experience with automatic format handling
@@ -66,11 +92,14 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
66
92
  ## [1.2.0] - 2025-10-01
67
93
 
68
94
  ### Added
69
- - **Multi-wallet support via privateKey override** - All signing operations now accept optional `privateKey` parameter
95
+
96
+ - **Multi-wallet support via privateKey override** - All signing operations now accept optional
97
+ `privateKey` parameter
70
98
  - Enables AI agents to execute operations from different wallets without restarting the MCP server
71
99
  - Added `privateKey` parameter to 9 MCP tools:
72
100
  - Trading: `gala_launchpad_buy_tokens`, `gala_launchpad_sell_tokens`
73
- - Token Creation: `gala_launchpad_launch_token`, `gala_launchpad_upload_token_image`, `gala_launchpad_upload_profile_image`
101
+ - Token Creation: `gala_launchpad_launch_token`, `gala_launchpad_upload_token_image`,
102
+ `gala_launchpad_upload_profile_image`
74
103
  - Transfers: `gala_launchpad_transfer_gala`, `gala_launchpad_transfer_token`
75
104
  - Social & Profile: `gala_launchpad_post_comment`, `gala_launchpad_update_profile`
76
105
  - `privateKey` must be in format: `'0x' + 64 hexadecimal characters`
@@ -78,9 +107,11 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
78
107
  - Powered by SDK v3.5.0 multi-wallet support
79
108
 
80
109
  ### Changed
110
+
81
111
  - Updated SDK dependency from ^3.3.4 to ^3.5.0
82
112
 
83
113
  ### Benefits
114
+
84
115
  - ✅ Test multi-wallet trading scenarios in AI agents
85
116
  - ✅ Build multi-user trading bots with Claude Desktop
86
117
  - ✅ Simulate different user behaviors without server restart
@@ -88,6 +119,7 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
88
119
  - ✅ Operate multiple wallets from single MCP server instance
89
120
 
90
121
  ### Documentation
122
+
91
123
  - Added comprehensive multi-wallet section to MCP README
92
124
  - Included security considerations for privateKey usage
93
125
  - Added multi-wallet trading scenario examples
@@ -95,13 +127,16 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
95
127
  ## [1.1.11] - 2025-10-01
96
128
 
97
129
  ### Changed
98
- - **Disabled auto-validation on startup** - Removed unnecessary GALA balance check when MCP server starts
130
+
131
+ - **Disabled auto-validation on startup** - Removed unnecessary GALA balance check when MCP server
132
+ starts
99
133
  - Changed `autoValidate: false` to prevent startup warnings for wallets with zero balance
100
134
  - SDK still functions perfectly for all read operations (pools, prices, comments, etc.)
101
135
  - Validation only needed when performing transactions (which require GALA anyway)
102
136
  - Eliminates confusing "SDK not ready" warnings on server initialization
103
137
 
104
138
  ### Fixed
139
+
105
140
  - Misleading "Failed to fetch GALA balance: No balance returned" warning on startup
106
141
  - Now only validates balance when actually needed for transactions
107
142
  - Cleaner startup experience for read-only MCP usage
@@ -109,12 +144,14 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
109
144
  ## [1.1.10] - 2025-10-01
110
145
 
111
146
  ### Changed
147
+
112
148
  - Updated SDK dependency from ^3.3.3 to ^3.3.4
113
149
  - Benefits from SDK v3.3.4 launchpad token precision fixes (18 decimals preserved)
114
150
 
115
151
  ## [1.1.9] - 2025-09-30
116
152
 
117
153
  ### Added
154
+
118
155
  - **Token Class Key Resolution Tool** - GalaChain utility for direct blockchain operations
119
156
  - `gala_launchpad_resolve_token_class_key` - Convert token name to GalaChain TokenClassKey
120
157
  - Returns complete TokenClassKey structure: `{collection, category, type, additionalKey}`
@@ -123,17 +160,20 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
123
160
  - AI agents can now access both utility methods for complete GalaChain integration
124
161
 
125
162
  ### Changed
163
+
126
164
  - Updated SDK dependency from ^3.3.1 to ^3.3.2
127
165
  - Tool count increased from 31 to 32 tools
128
166
  - Pool tools increased from 11 to 12 tools
129
167
 
130
168
  ### Documentation
169
+
131
170
  - SDK v3.3.2 now exports TokenClassKey types for downstream consumers
132
171
  - Both `resolveTokenClassKey()` and `resolveVaultAddress()` are official public SDK APIs
133
172
 
134
173
  ## [1.1.8] - 2025-09-30
135
174
 
136
175
  ### Added
176
+
137
177
  - **Spot Price Tools** - Complete price discovery for tokens (3 new tools)
138
178
  - `gala_launchpad_fetch_token_spot_price` - General DEX tokens (single or array)
139
179
  - Fetch USD spot prices for tokens like GALA, SILK, MUSIC, etc.
@@ -148,11 +188,13 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
148
188
  - AI agents can now make price-informed trading decisions
149
189
 
150
190
  ### Changed
191
+
151
192
  - Updated SDK dependency from ^3.3.0 to ^3.3.1
152
193
  - Tool count increased from 28 to 31 tools
153
194
  - Pool tools increased from 8 to 11 tools
154
195
 
155
196
  ### Fixed
197
+
156
198
  - **fetchPoolDetails response** - Now returns clean data structure
157
199
  - SDK v3.3.1 fix removes Status wrapper from response
158
200
  - MCP now receives `PoolDetailsData` directly instead of `{ Status: 1, Data: {...} }`
@@ -161,6 +203,7 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
161
203
  ## [1.1.7] - 2025-09-30
162
204
 
163
205
  ### Fixed
206
+
164
207
  - **BREAKING:** Trading type parameter values corrected from 'token' to 'exact'
165
208
  - SDK expects `type: 'native' | 'exact'` but MCP was using `'native' | 'token'`
166
209
  - Affected tools: calculateBuyAmount, calculateSellAmount, buy, sell, calculateInitialBuy
@@ -173,11 +216,13 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
173
216
  - Affected tool: fetchPools
174
217
 
175
218
  ### Changed
219
+
176
220
  - Updated SDK dependency from ^3.2.0 to ^3.3.0
177
221
  - All type enums now use `Object.values(TRADING_TYPES)` and `Object.values(POOL_TYPES)`
178
222
  - Ensures MCP tool schemas always match SDK type definitions
179
223
 
180
224
  ### Benefits
225
+
181
226
  - Type safety via SDK constants import
182
227
  - Prevents future type mismatches
183
228
  - Auto-completion shows correct values
@@ -186,17 +231,20 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
186
231
  ## [1.1.6] - 2025-09-30
187
232
 
188
233
  ### Fixed
234
+
189
235
  - **postComment tool response** - Fixed MCP response validation error
190
236
  - SDK's `postComment()` returns `Promise<void>` (no data)
191
237
  - Handler was passing `undefined` to `formatSuccess()`
192
238
  - This created invalid MCP response: `{ content: [{ type: 'text', text: undefined }] }`
193
239
  - MCP SDK requires `text` field to be a string, not undefined
194
- - Now returns explicit success message: `{ success: true, message: 'Comment posted successfully' }`
240
+ - Now returns explicit success message:
241
+ `{ success: true, message: 'Comment posted successfully' }`
195
242
  - Resolves: "Required" validation error on `content[0].text` path
196
243
 
197
244
  ## [1.1.5] - 2025-09-30
198
245
 
199
246
  ### Fixed
247
+
200
248
  - **postComment tool** - Renamed parameter from "content" to "message"
201
249
  - **BREAKING CHANGE:** Parameter renamed to avoid MCP reserved word collision
202
250
  - MCP SDK treats "content" as special parameter requiring content blocks format
@@ -205,22 +253,25 @@ This update addresses a recurring issue where AI agents forgot to pass the `reve
205
253
  - Internal: MCP parameter "message" maps to SDK parameter "content"
206
254
 
207
255
  ### Migration
256
+
208
257
  ```typescript
209
258
  // Before (v1.1.4 and earlier)
210
- gala_launchpad_post_comment({ tokenName: "anime", content: "Great token!" })
259
+ gala_launchpad_post_comment({ tokenName: 'anime', content: 'Great token!' });
211
260
 
212
261
  // After (v1.1.5+)
213
- gala_launchpad_post_comment({ tokenName: "anime", message: "Great token!" })
262
+ gala_launchpad_post_comment({ tokenName: 'anime', message: 'Great token!' });
214
263
  ```
215
264
 
216
265
  ## [1.1.4] - 2025-09-30
217
266
 
218
267
  ### Changed
268
+
219
269
  - Version bump for update verification (no code changes)
220
270
 
221
271
  ## [1.1.3] - 2025-09-30
222
272
 
223
273
  ### Fixed
274
+
224
275
  - **postComment tool** - Simplified to use standard MCP tool parameter pattern
225
276
  - Tool parameters should be simple JSON Schema types (string, not content blocks)
226
277
  - Content blocks format is for tool results/prompts/resources, not input parameters
@@ -230,11 +281,13 @@ gala_launchpad_post_comment({ tokenName: "anime", message: "Great token!" })
230
281
  ## [1.1.2] - 2025-09-30 [DEPRECATED]
231
282
 
232
283
  ### Fixed (Incorrect Approach)
284
+
233
285
  - ~~postComment tool schema - Used overly complex oneOf schema~~ (reverted in 1.1.3)
234
286
 
235
287
  ## [1.1.1] - 2025-09-30
236
288
 
237
289
  ### Fixed
290
+
238
291
  - **postComment tool** - Fixed content format handling for MCP protocol
239
292
  - Now correctly extracts text from MCP content blocks array
240
293
  - Handles both direct string and MCP content blocks format
@@ -244,28 +297,38 @@ gala_launchpad_post_comment({ tokenName: "anime", message: "Great token!" })
244
297
  - Ensures all 28 MCP tools are functional
245
298
 
246
299
  ### Dependencies
300
+
247
301
  - Updated `@gala-chain/launchpad-sdk` from ^3.1.0 to ^3.2.0
248
302
 
249
303
  ## [1.1.0] - 2025-09-30
250
304
 
251
305
  ### Added
252
- - **AI-AGENT-PATTERNS.md** - Comprehensive AI agent guide with common workflows, gotchas, and best practices
306
+
307
+ - **AI-AGENT-PATTERNS.md** - Comprehensive AI agent guide with common workflows, gotchas, and best
308
+ practices
253
309
  - **CONSTRAINTS-REFERENCE.md** - Technical reference for SDK-to-MCP constraint mappings
254
- - **Central constraints utility** (`src/utils/constraints.ts`) - Single source of truth for pagination limits
310
+ - **Central constraints utility** (`src/utils/constraints.ts`) - Single source of truth for
311
+ pagination limits
255
312
  - **AI-friendly error messages** - Enhanced error handler with contextual tips for common errors
256
313
  - **Workflow documentation** - Added detailed workflow comments to trading and creation tools
257
314
 
258
315
  ### Fixed
316
+
259
317
  - **BREAKING:** Fixed constraint mismatches between MCP tool schemas and SDK validation
260
318
  - `fetchTrades`: Reduced limit from 100 → 20 (matches `TRADE_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
261
319
  - `fetchTokensHeld`: Reduced limit from 100 → 20 (matches `USER_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
262
- - `fetchTokensCreated`: Reduced limit from 100 → 20 (matches `USER_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
263
- - `fetchComments`: Reduced limit from 100 → 50 (matches `COMMENT_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
320
+ - `fetchTokensCreated`: Reduced limit from 100 → 20 (matches
321
+ `USER_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
322
+ - `fetchComments`: Reduced limit from 100 → 50 (matches
323
+ `COMMENT_CONSTRAINTS.PAGINATION.MAX_LIMIT`)
264
324
  - `fetchPools`: Verified limit 100 is correct (matches `PAGINATION_CONSTRAINTS.MAX_LIMIT`)
265
325
 
266
326
  ### Improved
267
- - **expectedAmount parameter documentation** - Added critical warnings and workflow examples to prevent confusion
268
- - Clarified that `expectedAmount` must be `result.amount` from calculate functions, NOT input amount
327
+
328
+ - **expectedAmount parameter documentation** - Added critical warnings and workflow examples to
329
+ prevent confusion
330
+ - Clarified that `expectedAmount` must be `result.amount` from calculate functions, NOT input
331
+ amount
269
332
  - Added step-by-step workflow examples with actual values
270
333
  - Included common mistake examples with corrections
271
334
  - **Type parameter clarity** - Enhanced 'native' vs 'token' documentation with use-case examples
@@ -279,12 +342,14 @@ gala_launchpad_post_comment({ tokenName: "anime", message: "Great token!" })
279
342
  - Type parameter confusion (with usage examples)
280
343
 
281
344
  ### Documentation
345
+
282
346
  - Enhanced inline comments throughout tool schemas linking to SDK constraint sources
283
347
  - Added comprehensive API documentation for AI agents
284
348
  - Created quick reference cards for common patterns
285
349
  - Documented all constraint mappings with source file line numbers
286
350
 
287
351
  ### Developer Experience
352
+
288
353
  - AI agents can now self-diagnose and fix common errors using enhanced error messages
289
354
  - Reduced trial-and-error cycles with upfront workflow documentation
290
355
  - Improved discoverability with centralized documentation
@@ -293,6 +358,7 @@ gala_launchpad_post_comment({ tokenName: "anime", message: "Great token!" })
293
358
  ## [1.0.4] - 2025-09-18
294
359
 
295
360
  ### Added
361
+
296
362
  - Initial release with 28 MCP tools for Gala Launchpad
297
363
  - Support for trading, balance queries, pool management, and token creation
298
364
  - Integration with `@gala-chain/launchpad-sdk` v3.1.0
@@ -302,17 +368,21 @@ gala_launchpad_post_comment({ tokenName: "anime", message: "Great token!" })
302
368
  **Migration Guide v1.0.4 → v1.1.0:**
303
369
 
304
370
  ⚠️ **Breaking Changes:**
305
- - If your code uses `limit` values > 20 for `fetchTrades`, `fetchTokensHeld`, or `fetchTokensCreated`, reduce to ≤ 20
371
+
372
+ - If your code uses `limit` values > 20 for `fetchTrades`, `fetchTokensHeld`, or
373
+ `fetchTokensCreated`, reduce to ≤ 20
306
374
  - If your code uses `limit` values > 50 for `fetchComments`, reduce to ≤ 50
307
375
  - These limits now match the SDK's actual validation constraints
308
376
 
309
377
  ✅ **Recommended Actions:**
378
+
310
379
  1. Update any hardcoded `limit` values to respect new constraints
311
380
  2. Review trading workflows to ensure `expectedAmount` uses calculated `result.amount`
312
381
  3. Consult `docs/AI-AGENT-PATTERNS.md` for updated best practices
313
382
  4. Leverage enhanced error messages for faster debugging
314
383
 
315
384
  📚 **New Documentation:**
385
+
316
386
  - `docs/AI-AGENT-PATTERNS.md` - AI agent guide
317
387
  - `docs/CONSTRAINTS-REFERENCE.md` - Constraint mappings
318
388
  - `src/utils/constraints.ts` - Constraint constants
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gala-chain/launchpad-mcp-server",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "MCP server for Gala Launchpad SDK with 37 tools - AI agents can interact with Gala Launchpad",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -56,7 +56,7 @@
56
56
  "registry": "https://registry.npmjs.org/"
57
57
  },
58
58
  "dependencies": {
59
- "@gala-chain/launchpad-sdk": "^3.7.0",
59
+ "@gala-chain/launchpad-sdk": "^3.7.1",
60
60
  "@modelcontextprotocol/sdk": "^0.5.0",
61
61
  "ethers": "^6.15.0",
62
62
  "@gala-chain/api": "^2.4.3",