@gala-chain/launchpad-mcp-server 1.1.4 → 1.1.6
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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,36 @@ All notable changes to the Gala Launchpad MCP Server will be documented in this
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.1.6] - 2025-09-30
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **postComment tool response** - Fixed MCP response validation error
|
|
12
|
+
- SDK's `postComment()` returns `Promise<void>` (no data)
|
|
13
|
+
- Handler was passing `undefined` to `formatSuccess()`
|
|
14
|
+
- This created invalid MCP response: `{ content: [{ type: 'text', text: undefined }] }`
|
|
15
|
+
- MCP SDK requires `text` field to be a string, not undefined
|
|
16
|
+
- Now returns explicit success message: `{ success: true, message: 'Comment posted successfully' }`
|
|
17
|
+
- Resolves: "Required" validation error on `content[0].text` path
|
|
18
|
+
|
|
19
|
+
## [1.1.5] - 2025-09-30
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
- **postComment tool** - Renamed parameter from "content" to "message"
|
|
23
|
+
- **BREAKING CHANGE:** Parameter renamed to avoid MCP reserved word collision
|
|
24
|
+
- MCP SDK treats "content" as special parameter requiring content blocks format
|
|
25
|
+
- New signature: `postComment(tokenName: string, message: string)`
|
|
26
|
+
- Old signature: `postComment(tokenName: string, content: string)` ❌
|
|
27
|
+
- Internal: MCP parameter "message" maps to SDK parameter "content"
|
|
28
|
+
|
|
29
|
+
### Migration
|
|
30
|
+
```typescript
|
|
31
|
+
// Before (v1.1.4 and earlier)
|
|
32
|
+
gala_launchpad_post_comment({ tokenName: "anime", content: "Great token!" })
|
|
33
|
+
|
|
34
|
+
// After (v1.1.5+)
|
|
35
|
+
gala_launchpad_post_comment({ tokenName: "anime", message: "Great token!" })
|
|
36
|
+
```
|
|
37
|
+
|
|
8
38
|
## [1.1.4] - 2025-09-30
|
|
9
39
|
|
|
10
40
|
### Changed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/social/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAKlD,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/social/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAKlD,eAAO,MAAM,eAAe,EAAE,OA2B7B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,OAiC/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,EAAyC,CAAC"}
|
|
@@ -18,20 +18,21 @@ exports.postCommentTool = {
|
|
|
18
18
|
pattern: '^[a-z0-9_-]{2,20}$',
|
|
19
19
|
description: 'Token name',
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
message: {
|
|
22
22
|
type: 'string',
|
|
23
23
|
maxLength: 500,
|
|
24
|
-
description: 'Comment
|
|
24
|
+
description: 'Comment message text',
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
|
-
required: ['tokenName', '
|
|
27
|
+
required: ['tokenName', 'message'],
|
|
28
28
|
},
|
|
29
29
|
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
30
|
-
|
|
30
|
+
await sdk.postComment({
|
|
31
31
|
tokenName: args.tokenName,
|
|
32
|
-
content: args.content
|
|
32
|
+
content: args.message, // MCP parameter "message" → SDK parameter "content"
|
|
33
33
|
});
|
|
34
|
-
|
|
34
|
+
// postComment returns void, so return success message
|
|
35
|
+
return (0, response_formatter_js_1.formatSuccess)({ success: true, message: 'Comment posted successfully' });
|
|
35
36
|
}),
|
|
36
37
|
};
|
|
37
38
|
// 2. Fetch Comments
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/social/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,6EAAkE;AAClE,mEAAiE;AAEjE,kBAAkB;AACL,QAAA,eAAe,GAAY;IACtC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oBAAoB;gBAC7B,WAAW,EAAE,YAAY;aAC1B;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,GAAG;gBACd,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/social/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,6EAAkE;AAClE,mEAAiE;AAEjE,kBAAkB;AACL,QAAA,eAAe,GAAY;IACtC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oBAAoB;gBAC7B,WAAW,EAAE,YAAY;aAC1B;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,GAAG;gBACd,WAAW,EAAE,sBAAsB;aACpC;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;KACnC;IACD,OAAO,EAAE,IAAA,oCAAiB,EAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC7C,MAAM,GAAG,CAAC,WAAW,CAAC;YACpB,SAAS,EAAE,IAA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