@gala-chain/launchpad-mcp-server 1.7.9 → 1.7.11

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
@@ -1,5 +1,62 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.7.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Add dynamic version tools and fix CommonJS uuid bundling conflict
8
+
9
+ **SDK Changes:**
10
+ - Added `getVersion()` method to LaunchpadSDK class that returns the SDK version dynamically read
11
+ from package.json
12
+ - Created `src/constants/version.ts` with SDK_VERSION constant that reads from package.json at
13
+ module load
14
+ - Version is read using require() with proper error handling for different environments
15
+ - **Fixed CommonJS build**: Updated `rollup.config.mjs` to bundle uuid only in CommonJS format
16
+ - Conditional externals: uuid excluded from CJS externals but included in ESM/UMD externals
17
+ - Resolves "ERR_REQUIRE_ESM" error when requiring uuid v13.0.0 (ESM-only package) in CommonJS
18
+ environments
19
+ - UMD/ESM bundles remain optimized with uuid external (~34KB)
20
+ - CJS bundle includes uuid (~44KB) for complete self-contained CommonJS compatibility
21
+
22
+ **MCP Server Changes:**
23
+ - Created version injection script (`scripts/inject-version.ts`) that runs as a prebuild step
24
+ - Added `build:version` npm script that injects MCP server version into `src/generated/version.ts`
25
+ - Updated `.gitignore` to exclude auto-generated version file
26
+ - Created `getVersionTool` MCP tool that returns both SDK and MCP server versions with timestamp
27
+
28
+ Both versions are now dynamically read from their respective package.json files, ensuring they
29
+ always stay in sync without manual version management in code. The CommonJS bundle now
30
+ self-contains uuid to resolve ESM-only module conflicts in Node.js require() scenarios.
31
+
32
+ - Updated dependencies
33
+ - @gala-chain/launchpad-sdk@3.12.2
34
+
35
+ ## 1.7.10
36
+
37
+ ### Patch Changes
38
+
39
+ - Comprehensive documentation for CommonJS support and module formats
40
+
41
+ **SDK Updates:**
42
+ - Document all three module formats (ESM, CommonJS, UMD)
43
+ - Add module resolution table showing automatic format selection
44
+ - Clarify when to use each format with concrete examples
45
+ - Explain package.json exports configuration
46
+
47
+ **MCP Server Updates:**
48
+ - Document CommonJS module format
49
+ - Explain integration with SDK's multi-format support
50
+ - Clarify automatic format selection by Node.js
51
+
52
+ **Project Configuration (CLAUDE.md):**
53
+ - Enhanced Build System section with detailed format breakdown
54
+ - Added comprehensive "Launchpad SDK Module Formats (v3.12.0+)" section
55
+ - Include size monitoring metrics for all three bundles
56
+
57
+ - Updated dependencies
58
+ - @gala-chain/launchpad-sdk@3.12.1
59
+
3
60
  ## 1.7.9
4
61
 
5
62
  ### Patch Changes
package/README.md CHANGED
@@ -18,6 +18,16 @@ MCP (Model Context Protocol) server for Gala Launchpad SDK - Enables AI agents t
18
18
  npm install -g @gala-chain/launchpad-mcp-server
19
19
  ```
20
20
 
21
+ ### Module Format
22
+
23
+ The MCP server is built with **CommonJS** (`dist/index.js`) and works seamlessly with the SDK's dual-format support:
24
+
25
+ - **MCP Server**: CommonJS (Node.js native)
26
+ - **Underlying SDK**: Supports ESM, CommonJS, and UMD
27
+ - **Compatibility**: Full support for both modern and legacy environments
28
+
29
+ The MCP server automatically uses the correct SDK format for your Node.js version - no configuration needed!
30
+
21
31
  ## 🏁 Quick Start
22
32
 
23
33
  ### Claude Desktop Configuration
@@ -0,0 +1,7 @@
1
+ /**
2
+ * AUTO-GENERATED VERSION FILE
3
+ * This file is generated by scripts/inject-version.ts during build
4
+ * DO NOT EDIT MANUALLY
5
+ */
6
+ export declare const MCP_SERVER_VERSION = "1.7.11";
7
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB,WAAW,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * AUTO-GENERATED VERSION FILE
4
+ * This file is generated by scripts/inject-version.ts during build
5
+ * DO NOT EDIT MANUALLY
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.MCP_SERVER_VERSION = void 0;
9
+ exports.MCP_SERVER_VERSION = '1.7.11';
10
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/generated/version.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,kBAAkB,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Get Version Tool
3
+ *
4
+ * Returns version information for both the SDK and MCP server.
5
+ * Both versions are dynamically read from their respective package.json files.
6
+ */
7
+ export declare const getVersionTool: import("../../types/mcp.js").MCPTool;
8
+ //# sourceMappingURL=getVersion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVersion.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/getVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,eAAO,MAAM,cAAc,sCAczB,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /**
3
+ * Get Version Tool
4
+ *
5
+ * Returns version information for both the SDK and MCP server.
6
+ * Both versions are dynamically read from their respective package.json files.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.getVersionTool = void 0;
10
+ const tool_factory_js_1 = require("../../utils/tool-factory.js");
11
+ const version_js_1 = require("../../generated/version.js");
12
+ exports.getVersionTool = (0, tool_factory_js_1.createNoParamTool)({
13
+ name: 'gala_launchpad_get_version',
14
+ description: 'Get SDK and MCP server version information. Returns both versions which are dynamically read from package.json files.',
15
+ handler: async (sdk) => {
16
+ const sdkVersion = sdk.getVersion();
17
+ const mcpVersion = version_js_1.MCP_SERVER_VERSION;
18
+ const timestamp = new Date().toISOString();
19
+ return {
20
+ sdk: sdkVersion,
21
+ mcpServer: mcpVersion,
22
+ timestamp,
23
+ };
24
+ },
25
+ });
26
+ //# sourceMappingURL=getVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVersion.js","sourceRoot":"","sources":["../../../src/tools/utils/getVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,iEAAgE;AAChE,2DAAgE;AAEnD,QAAA,cAAc,GAAG,IAAA,mCAAiB,EAAC;IAC9C,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,uHAAuH;IACpI,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;QACrB,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,EAAE,CAAC;QACpC,MAAM,UAAU,GAAG,+BAAkB,CAAC;QACtC,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QAE3C,OAAO;YACL,GAAG,EAAE,UAAU;YACf,SAAS,EAAE,UAAU;YACrB,SAAS;SACV,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAYH,eAAO,MAAM,YAAY,wCAUxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAaH,eAAO,MAAM,YAAY,wCAWxB,CAAC"}
@@ -13,6 +13,7 @@ const explainSdkUsage_js_1 = require("./explainSdkUsage.js");
13
13
  const isTokenGraduated_js_1 = require("./isTokenGraduated.js");
14
14
  const getCacheInfo_js_1 = require("./getCacheInfo.js");
15
15
  const clearCache_js_1 = require("./clearCache.js");
16
+ const getVersion_js_1 = require("./getVersion.js");
16
17
  exports.utilityTools = [
17
18
  createWallet_js_1.createWalletTool,
18
19
  getAddress_js_1.getAddressTool,
@@ -23,5 +24,6 @@ exports.utilityTools = [
23
24
  isTokenGraduated_js_1.isTokenGraduatedTool,
24
25
  getCacheInfo_js_1.getCacheInfoTool,
25
26
  clearCache_js_1.clearCacheTool,
27
+ getVersion_js_1.getVersionTool,
26
28
  ];
27
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/utils/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uDAAqD;AACrD,mDAAiD;AACjD,mEAAiE;AACjE,iDAA+C;AAC/C,iEAA+D;AAC/D,6DAA2D;AAC3D,+DAA6D;AAC7D,uDAAqD;AACrD,mDAAiD;AAEpC,QAAA,YAAY,GAAG;IAC1B,kCAAgB;IAChB,8BAAc;IACd,8CAAsB;IACtB,4BAAa;IACb,4CAAqB;IACrB,wCAAmB;IACnB,0CAAoB;IACpB,kCAAgB;IAChB,8BAAc;CACf,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/utils/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uDAAqD;AACrD,mDAAiD;AACjD,mEAAiE;AACjE,iDAA+C;AAC/C,iEAA+D;AAC/D,6DAA2D;AAC3D,+DAA6D;AAC7D,uDAAqD;AACrD,mDAAiD;AACjD,mDAAiD;AAEpC,QAAA,YAAY,GAAG;IAC1B,kCAAgB;IAChB,8BAAc;IACd,8CAAsB;IACtB,4BAAa;IACb,4CAAqB;IACrB,wCAAmB;IACnB,0CAAoB;IACpB,kCAAgB;IAChB,8BAAc;IACd,8BAAc;CACf,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@gala-chain/launchpad-mcp-server",
3
- "version": "1.7.9",
3
+ "version": "1.7.11",
4
4
  "description": "MCP server for Gala Launchpad SDK with 50 tools + 14 slash commands - Production-grade AI agent integration with comprehensive validation, optimized performance, and 80%+ test coverage",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
7
7
  "gala-launchpad-mcp": "./dist/index.js"
8
8
  },
9
9
  "scripts": {
10
- "build": "tsc && chmod +x dist/index.js",
10
+ "build": "npm run build:version && tsc && chmod +x dist/index.js",
11
+ "build:version": "tsx scripts/inject-version.ts",
11
12
  "dev": "tsx src/index.ts",
12
13
  "watch": "tsc --watch",
13
14
  "test": "jest --passWithNoTests",
@@ -62,7 +63,7 @@
62
63
  "dependencies": {
63
64
  "@gala-chain/api": "^2.4.3",
64
65
  "@gala-chain/connect": "^2.4.3",
65
- "@gala-chain/launchpad-sdk": "^3.11.8",
66
+ "@gala-chain/launchpad-sdk": "^3.12.2",
66
67
  "@modelcontextprotocol/sdk": "^0.5.0",
67
68
  "axios": "^1.12.2",
68
69
  "bignumber.js": "^9.1.2",
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Version Injection Script
3
+ *
4
+ * Reads the MCP server version from package.json and generates a version constant file.
5
+ * This runs as a prebuild step to ensure version is always in sync.
6
+ */
7
+
8
+ import { readFileSync, writeFileSync, mkdirSync } from 'fs';
9
+ import { dirname, join } from 'path';
10
+
11
+ // Get package version from package.json
12
+ const packageJsonPath = join(dirname(__filename), '../package.json');
13
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
14
+ const mcpVersion = packageJson.version;
15
+
16
+ // Create the generated constants file
17
+ const generatedDir = join(dirname(__filename), '../src/generated');
18
+ mkdirSync(generatedDir, { recursive: true });
19
+
20
+ const versionFile = join(generatedDir, 'version.ts');
21
+ const versionContent = `/**
22
+ * AUTO-GENERATED VERSION FILE
23
+ * This file is generated by scripts/inject-version.ts during build
24
+ * DO NOT EDIT MANUALLY
25
+ */
26
+
27
+ export const MCP_SERVER_VERSION = '${mcpVersion}';
28
+ `;
29
+
30
+ writeFileSync(versionFile, versionContent, 'utf-8');
31
+ console.log(`✓ Injected MCP version ${mcpVersion} to ${versionFile}`);