@gala-chain/launchpad-mcp-server
Version:
MCP server for Gala Launchpad - 102 tools (pool management, event watchers, GSwap DEX trading, price history, token creation, wallet management, DEX pool discovery, liquidity positions, token locks, locked token queries, composite pool data, cross-chain b
92 lines • 3.7 kB
JavaScript
;
/**
* Token Creation Utilities Prompts
*
* Slash commands for creation utility operations
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.creationUtilityPrompts = exports.fetchLaunchTokenFeePrompt = exports.uploadTokenImagePrompt = exports.uploadProfileImagePrompt = void 0;
const mcpToolNames_js_1 = require("../constants/mcpToolNames.js");
const validation_js_1 = require("../utils/validation.js");
const handlerHelpers_js_1 = require("./utils/handlerHelpers.js");
const textTemplates_js_1 = require("./utils/textTemplates.js");
/**
* Upload Profile Image - Standalone profile image upload
*/
exports.uploadProfileImagePrompt = {
name: 'galachain-launchpad:upload-profile-image',
description: 'Upload profile image from filesystem',
arguments: [
{
name: 'imagePath',
description: 'Absolute file path to image file',
required: true,
},
{
name: 'address',
description: 'Wallet address (optional, defaults to SDK wallet)',
required: false,
},
],
handler: (args) => (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
operation: 'Upload profile image.',
parameters: {
imagePath: `Image Path: ${args.imagePath}`,
wallet: args.address ? `Address: ${args.address}` : 'Using default wallet',
},
toolName: mcpToolNames_js_1.MCP_TOOLS.UPLOAD_PROFILE_IMAGE,
actionDescription: 'upload the image file',
displayFormat: 'Display confirmation and the image URL.',
})),
};
/**
* Upload Token Image - Token image file upload
*/
exports.uploadTokenImagePrompt = {
name: 'galachain-launchpad:upload-token-image',
description: 'Upload token image from filesystem (Node.js only)',
arguments: [
{
name: 'tokenName',
description: 'Token name (e.g., anime, mytoken)',
required: true,
},
{
name: 'imagePath',
description: 'Absolute file path to image file',
required: true,
},
],
handler: (args) => {
(0, validation_js_1.validateTokenName)(args.tokenName);
return (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
operation: 'Upload token image.',
parameters: {
token: `Token: ${args.tokenName}`,
imagePath: `Image Path: ${args.imagePath}`,
},
toolName: mcpToolNames_js_1.MCP_TOOLS.UPLOAD_TOKEN_IMAGE,
actionDescription: 'upload the token image file',
displayFormat: 'This tool is Node.js only (not available in browser).\n\nDisplay confirmation and the uploaded image URL.',
}));
},
};
/**
* Fetch Launch Token Fee - Current launch fee query
*/
exports.fetchLaunchTokenFeePrompt = {
name: 'galachain-launchpad:fetch-launch-token-fee',
description: 'Get the current GALA fee required to launch a new token',
handler: () => (0, handlerHelpers_js_1.createPromptResponse)((0, textTemplates_js_1.createSimpleOperationText)({
operation: 'Check the current token launch fee.',
toolName: mcpToolNames_js_1.MCP_TOOLS.FETCH_LAUNCH_TOKEN_FEE,
actionDescription: 'retrieve the current GALA fee',
displayFormat: 'This is a dynamic value that may change. Display the current fee amount.',
})),
};
exports.creationUtilityPrompts = [
exports.uploadProfileImagePrompt,
exports.uploadTokenImagePrompt,
exports.fetchLaunchTokenFeePrompt,
];
//# sourceMappingURL=creation-utils.js.map