@gala-chain/launchpad-mcp-server 1.1.1 → 1.1.3

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,20 @@ 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.3] - 2025-09-30
9
+
10
+ ### Fixed
11
+ - **postComment tool** - Simplified to use standard MCP tool parameter pattern
12
+ - Tool parameters should be simple JSON Schema types (string, not content blocks)
13
+ - Content blocks format is for tool results/prompts/resources, not input parameters
14
+ - Removed unnecessary content extraction logic from handler
15
+ - Clean, simple implementation: string parameter → SDK string parameter
16
+
17
+ ## [1.1.2] - 2025-09-30 [DEPRECATED]
18
+
19
+ ### Fixed (Incorrect Approach)
20
+ - ~~postComment tool schema - Used overly complex oneOf schema~~ (reverted in 1.1.3)
21
+
8
22
  ## [1.1.1] - 2025-09-30
9
23
 
10
24
  ### Fixed
@@ -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,OA2C7B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,OAiC/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,EAAyC,CAAC"}
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,OA0B7B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,OAiC/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,EAAyC,CAAC"}
@@ -27,26 +27,9 @@ exports.postCommentTool = {
27
27
  required: ['tokenName', 'content'],
28
28
  },
29
29
  handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
30
- // Extract text from MCP content blocks format
31
- let contentText;
32
- if (typeof args.content === 'string') {
33
- // Direct string (fallback for backward compatibility)
34
- contentText = args.content;
35
- }
36
- else if (Array.isArray(args.content) && args.content.length > 0) {
37
- // MCP content blocks format: [{ type: "text", text: "..." }]
38
- const textBlock = args.content.find((block) => block.type === 'text');
39
- if (!textBlock || !textBlock.text) {
40
- throw new Error('No text content found in content blocks');
41
- }
42
- contentText = textBlock.text;
43
- }
44
- else {
45
- throw new Error('Invalid content format - expected string or MCP content blocks array');
46
- }
47
30
  const result = await sdk.postComment({
48
31
  tokenName: args.tokenName,
49
- content: contentText,
32
+ content: args.content,
50
33
  });
51
34
  return (0, response_formatter_js_1.formatSuccess)(result);
52
35
  }),
@@ -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,iBAAiB;aAC/B;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC;KACnC;IACD,OAAO,EAAE,IAAA,oCAAiB,EAAC,KAAK,EAAE,GAAG,EAAE,IAAI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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gala-chain/launchpad-mcp-server",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "MCP server for Gala Launchpad SDK with 28 tools - AI agents can interact with Gala Launchpad",
5
5
  "main": "dist/index.js",
6
6
  "bin": {