@gala-chain/launchpad-mcp-server 1.0.3 → 1.0.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/README.md +5 -2
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +6 -4
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/utils/getUrlByTokenName.d.ts +6 -0
- package/dist/tools/utils/getUrlByTokenName.d.ts.map +1 -0
- package/dist/tools/utils/getUrlByTokenName.js +28 -0
- package/dist/tools/utils/getUrlByTokenName.js.map +1 -0
- package/dist/tools/utils/index.d.ts +5 -0
- package/dist/tools/utils/index.d.ts.map +1 -0
- package/dist/tools/utils/index.js +9 -0
- package/dist/tools/utils/index.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ MCP (Model Context Protocol) server for Gala Launchpad SDK - Enables AI agents t
|
|
|
4
4
|
|
|
5
5
|
## 🚀 Features
|
|
6
6
|
|
|
7
|
-
- **
|
|
7
|
+
- **28 AI-accessible tools** for complete Gala Launchpad integration
|
|
8
8
|
- **Type-safe** - Full TypeScript support with validated inputs
|
|
9
9
|
- **Production-ready** - Built on [@gala-chain/launchpad-sdk v3.0.2](https://www.npmjs.com/package/@gala-chain/launchpad-sdk)
|
|
10
10
|
- **Easy setup** - Works with Claude Desktop and other MCP clients
|
|
@@ -50,7 +50,7 @@ Add to your `claude_desktop_config.json`:
|
|
|
50
50
|
3. **Restart Claude Desktop**
|
|
51
51
|
4. **Use tools**: Ask Claude to interact with Gala Launchpad!
|
|
52
52
|
|
|
53
|
-
## 🛠️ Available Tools (
|
|
53
|
+
## 🛠️ Available Tools (28 Total)
|
|
54
54
|
|
|
55
55
|
### Pool Management (8 tools)
|
|
56
56
|
- `gala_launchpad_fetch_pools` - Fetch token pools with filtering
|
|
@@ -91,6 +91,9 @@ Add to your `claude_desktop_config.json`:
|
|
|
91
91
|
- `gala_launchpad_transfer_gala` - Transfer GALA tokens
|
|
92
92
|
- `gala_launchpad_transfer_token` - Transfer launchpad tokens
|
|
93
93
|
|
|
94
|
+
### Utility Tools (1 tool)
|
|
95
|
+
- `gala_launchpad_get_url_by_token_name` - Generate frontend URL for a token
|
|
96
|
+
|
|
94
97
|
## 💡 Example Usage
|
|
95
98
|
|
|
96
99
|
Ask Claude (or your AI assistant):
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Tool Registry
|
|
3
3
|
*
|
|
4
|
-
* All
|
|
4
|
+
* All 28 MCP tools for Gala Launchpad
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Complete tool registry (
|
|
7
|
+
* Complete tool registry (28 tools)
|
|
8
8
|
*/
|
|
9
9
|
export declare const tools: import("../types/mcp.js").MCPTool[];
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH;;GAEG;AACH,eAAO,MAAM,KAAK,qCAQjB,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Tool Registry
|
|
4
4
|
*
|
|
5
|
-
* All
|
|
5
|
+
* All 28 MCP tools for Gala Launchpad
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.tools = void 0;
|
|
@@ -12,8 +12,9 @@ const index_js_3 = require("./balance/index.js");
|
|
|
12
12
|
const index_js_4 = require("./creation/index.js");
|
|
13
13
|
const index_js_5 = require("./social/index.js");
|
|
14
14
|
const index_js_6 = require("./transfers/index.js");
|
|
15
|
+
const index_js_7 = require("./utils/index.js");
|
|
15
16
|
/**
|
|
16
|
-
* Complete tool registry (
|
|
17
|
+
* Complete tool registry (28 tools)
|
|
17
18
|
*/
|
|
18
19
|
exports.tools = [
|
|
19
20
|
...index_js_1.poolTools, // 8 tools
|
|
@@ -22,9 +23,10 @@ exports.tools = [
|
|
|
22
23
|
...index_js_4.creationTools, // 3 tools
|
|
23
24
|
...index_js_5.socialTools, // 2 tools
|
|
24
25
|
...index_js_6.transferTools, // 2 tools
|
|
26
|
+
...index_js_7.utilityTools, // 1 tool
|
|
25
27
|
];
|
|
26
28
|
// Verify tool count
|
|
27
|
-
if (exports.tools.length !==
|
|
28
|
-
console.warn(`Warning: Expected
|
|
29
|
+
if (exports.tools.length !== 28) {
|
|
30
|
+
console.warn(`Warning: Expected 28 tools, but registered ${exports.tools.length} tools`);
|
|
29
31
|
}
|
|
30
32
|
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,+CAA6C;AAC7C,iDAAkD;AAClD,iDAAkD;AAClD,kDAAoD;AACpD,gDAAgD;AAChD,mDAAqD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,+CAA6C;AAC7C,iDAAkD;AAClD,iDAAkD;AAClD,kDAAoD;AACpD,gDAAgD;AAChD,mDAAqD;AACrD,+CAAgD;AAEhD;;GAEG;AACU,QAAA,KAAK,GAAG;IACnB,GAAG,oBAAS,EAAO,UAAU;IAC7B,GAAG,uBAAY,EAAI,UAAU;IAC7B,GAAG,uBAAY,EAAI,UAAU;IAC7B,GAAG,wBAAa,EAAG,UAAU;IAC7B,GAAG,sBAAW,EAAK,UAAU;IAC7B,GAAG,wBAAa,EAAG,UAAU;IAC7B,GAAG,uBAAY,EAAI,SAAS;CAC7B,CAAC;AAEF,oBAAoB;AACpB,IAAI,aAAK,CAAC,MAAM,KAAK,EAAE,EAAE,CAAC;IACxB,OAAO,CAAC,IAAI,CACV,8CAA8C,aAAK,CAAC,MAAM,QAAQ,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUrlByTokenName.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/getUrlByTokenName.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIlD,eAAO,MAAM,qBAAqB,EAAE,OAkBnC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Get URL by Token Name Tool
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getUrlByTokenNameTool = void 0;
|
|
7
|
+
const response_formatter_js_1 = require("../../utils/response-formatter.js");
|
|
8
|
+
const error_handler_js_1 = require("../../utils/error-handler.js");
|
|
9
|
+
exports.getUrlByTokenNameTool = {
|
|
10
|
+
name: 'gala_launchpad_get_url_by_token_name',
|
|
11
|
+
description: 'Get the launchpad frontend URL for a specific token. Returns the complete URL for viewing/trading the token in the web interface.',
|
|
12
|
+
inputSchema: {
|
|
13
|
+
type: 'object',
|
|
14
|
+
properties: {
|
|
15
|
+
tokenName: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
pattern: '^[a-z0-9_-]{2,20}$',
|
|
18
|
+
description: 'Token name to generate URL for',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
required: ['tokenName'],
|
|
22
|
+
},
|
|
23
|
+
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk, args) => {
|
|
24
|
+
const url = sdk.getUrlByTokenName(args.tokenName);
|
|
25
|
+
return (0, response_formatter_js_1.formatSuccess)({ url, tokenName: args.tokenName });
|
|
26
|
+
}),
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=getUrlByTokenName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUrlByTokenName.js","sourceRoot":"","sources":["../../../src/tools/utils/getUrlByTokenName.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,6EAAkE;AAClE,mEAAiE;AAEpD,QAAA,qBAAqB,GAAY;IAC5C,IAAI,EAAE,sCAAsC;IAC5C,WAAW,EAAE,mIAAmI;IAChJ,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oBAAoB;gBAC7B,WAAW,EAAE,gCAAgC;aAC9C;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,OAAO,EAAE,IAAA,oCAAiB,EAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC7C,MAAM,GAAG,GAAG,GAAG,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAClD,OAAO,IAAA,qCAAa,EAAC,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,eAAO,MAAM,YAAY,wCAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Utility Tools
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.utilityTools = void 0;
|
|
7
|
+
const getUrlByTokenName_js_1 = require("./getUrlByTokenName.js");
|
|
8
|
+
exports.utilityTools = [getUrlByTokenName_js_1.getUrlByTokenNameTool];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/utils/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,iEAA+D;AAElD,QAAA,YAAY,GAAG,CAAC,4CAAqB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gala-chain/launchpad-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "MCP server for Gala Launchpad SDK with
|
|
3
|
+
"version": "1.0.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": {
|
|
7
7
|
"gala-launchpad-mcp": "./dist/index.js"
|