@gala-chain/launchpad-mcp-server 1.1.2 → 1.1.4

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,14 +5,24 @@ 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.2] - 2025-09-30
8
+ ## [1.1.4] - 2025-09-30
9
+
10
+ ### Changed
11
+ - Version bump for update verification (no code changes)
12
+
13
+ ## [1.1.3] - 2025-09-30
9
14
 
10
15
  ### Fixed
11
- - **postComment tool schema** - Fixed input schema validation to accept MCP content blocks
12
- - Schema now accepts both string and MCP content blocks array format
13
- - Uses JSON Schema `oneOf` to support both input formats
14
- - Resolves validation error when MCP protocol sends content as `[{type: "text", text: "..."}]`
15
- - Handler already supported both formats, now schema matches
16
+ - **postComment tool** - Simplified to use standard MCP tool parameter pattern
17
+ - Tool parameters should be simple JSON Schema types (string, not content blocks)
18
+ - Content blocks format is for tool results/prompts/resources, not input parameters
19
+ - Removed unnecessary content extraction logic from handler
20
+ - Clean, simple implementation: string parameter SDK string parameter
21
+
22
+ ## [1.1.2] - 2025-09-30 [DEPRECATED]
23
+
24
+ ### Fixed (Incorrect Approach)
25
+ - ~~postComment tool schema - Used overly complex oneOf schema~~ (reverted in 1.1.3)
16
26
 
17
27
  ## [1.1.1] - 2025-09-30
18
28
 
@@ -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,OA0D7B,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"}
@@ -19,49 +19,17 @@ exports.postCommentTool = {
19
19
  description: 'Token name',
20
20
  },
21
21
  content: {
22
- oneOf: [
23
- {
24
- type: 'string',
25
- maxLength: 500,
26
- },
27
- {
28
- type: 'array',
29
- items: {
30
- type: 'object',
31
- properties: {
32
- type: { type: 'string' },
33
- text: { type: 'string', maxLength: 500 },
34
- },
35
- required: ['type', 'text'],
36
- },
37
- },
38
- ],
39
- description: 'Comment content (string or MCP content blocks array)',
22
+ type: 'string',
23
+ maxLength: 500,
24
+ description: 'Comment content',
40
25
  },
41
26
  },
42
27
  required: ['tokenName', 'content'],
43
28
  },
44
29
  handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
45
- // Extract text from MCP content blocks format
46
- let contentText;
47
- if (typeof args.content === 'string') {
48
- // Direct string (fallback for backward compatibility)
49
- contentText = args.content;
50
- }
51
- else if (Array.isArray(args.content) && args.content.length > 0) {
52
- // MCP content blocks format: [{ type: "text", text: "..." }]
53
- const textBlock = args.content.find((block) => block.type === 'text');
54
- if (!textBlock || !textBlock.text) {
55
- throw new Error('No text content found in content blocks');
56
- }
57
- contentText = textBlock.text;
58
- }
59
- else {
60
- throw new Error('Invalid content format - expected string or MCP content blocks array');
61
- }
62
30
  const result = await sdk.postComment({
63
31
  tokenName: args.tokenName,
64
- content: contentText,
32
+ content: args.content,
65
33
  });
66
34
  return (0, response_formatter_js_1.formatSuccess)(result);
67
35
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"index.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AW,EAAE,+BAA+B;IAC5C,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,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,0BAA0B;aACxC;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,EAAE,EAAE,oDAAoD;gBACjE,WAAW,EAAE,6CAA6C;aAC3D;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,OAAO,EAAE,IAAA,oCAAiB,EAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC7C,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,aAAa,CAAC;YACrC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC;YACpB,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,EAAE;SACxB,CAAC,CAAC;QACH,OAAO,IAAA,qCAAa,EAAC,MAAM,CAAC,CAAC;IAC/B,CAAC,CAAC;CACH,CAAC;AAEW,QAAA,WAAW,GAAc,CAAC,uBAAe,EAAE,yBAAiB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gala-chain/launchpad-mcp-server",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
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": {