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

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.1] - 2025-09-30
9
+
10
+ ### Fixed
11
+ - **postComment tool** - Fixed content format handling for MCP protocol
12
+ - Now correctly extracts text from MCP content blocks array
13
+ - Handles both direct string and MCP content blocks format
14
+ - Fixes "validation error" when posting comments
15
+ - **SDK dependency** - Updated to ^3.2.0 to include getUrlByTokenName method
16
+ - Fixes "method not found" error on getUrlByTokenName tool
17
+ - Ensures all 28 MCP tools are functional
18
+
19
+ ### Dependencies
20
+ - Updated `@gala-chain/launchpad-sdk` from ^3.1.0 to ^3.2.0
21
+
8
22
  ## [1.1.0] - 2025-09-30
9
23
 
10
24
  ### Added
@@ -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,OA0B7B,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,OA2C7B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,OAiC/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,OAAO,EAAyC,CAAC"}
@@ -27,9 +27,26 @@ 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
+ }
30
47
  const result = await sdk.postComment({
31
48
  tokenName: args.tokenName,
32
- content: args.content,
49
+ content: contentText,
33
50
  });
34
51
  return (0, response_formatter_js_1.formatSuccess)(result);
35
52
  }),
@@ -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,EA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,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gala-chain/launchpad-mcp-server",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
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": {
@@ -56,7 +56,7 @@
56
56
  "registry": "https://registry.npmjs.org/"
57
57
  },
58
58
  "dependencies": {
59
- "@gala-chain/launchpad-sdk": "^3.1.0",
59
+ "@gala-chain/launchpad-sdk": "^3.2.0",
60
60
  "@modelcontextprotocol/sdk": "^0.5.0"
61
61
  },
62
62
  "devDependencies": {