UNPKG

@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

75 lines (68 loc) 3.15 kB
"use strict"; /** * Utility Prompts * * Slash commands for utility and information operations on Gala Launchpad */ Object.defineProperty(exports, "__esModule", { value: true }); exports.utilityPrompts = exports.switchEnvironmentPrompt = exports.getVersionPrompt = void 0; const handlerHelpers_js_1 = require("./utils/handlerHelpers.js"); /** * Get Version - Display SDK and MCP server version information * * Shows the current versions of both the Gala Launchpad SDK and the MCP server, * useful for debugging version mismatch issues or verifying installed versions. */ exports.getVersionPrompt = { name: 'galachain-launchpad:version', description: 'Get SDK and MCP server version information', handler: () => { return (0, handlerHelpers_js_1.createPromptResponse)(`Get version information for the Gala Launchpad SDK and MCP server. Use the gala_launchpad_get_version tool to fetch the version details. Display the results in a clear, formatted response showing: 1. SDK Version 2. MCP Server Version 3. Timestamp This is helpful for debugging version compatibility issues or confirming installed versions.`); }, }; /** * Switch Environment - Dynamically change the MCP server environment * * Allows switching between production, development, and testing environments * while preserving wallet configuration. Useful for testing against different * backends or performing administrative operations. */ exports.switchEnvironmentPrompt = { name: 'galachain-launchpad:switch-environment', description: 'Switch the MCP server to a different environment (production, development, or testing)', arguments: [ { name: 'environment', description: 'Target environment: production, development, or testing', required: false, }, ], handler: (args) => { const targetEnv = args.environment?.toLowerCase() || ''; const validEnvs = ['production', 'development', 'testing']; const isValidEnv = validEnvs.includes(targetEnv); return (0, handlerHelpers_js_1.createPromptResponse)(`Switch the Gala Launchpad MCP server to a different environment. Current task: Switch to the ${isValidEnv ? targetEnv : 'specified'} environment Steps: 1. First, get the current environment using the gala_launchpad_get_environment tool to see what we're currently on 2. If switching is needed, use the gala_launchpad_switch_environment tool with environment="${targetEnv || 'production'}" 3. After switching, verify the change by calling gala_launchpad_get_environment again 4. Confirm the environment switch was successful and display the results Available environments: - production: Production environment (default) - development: Development environment for testing features - testing: Testing environment for local/staging tests Wallet Preservation: The wallet configuration will be preserved during the switch, maintaining your current signing capabilities if configured.`); }, }; /** * All utility prompts */ exports.utilityPrompts = [exports.getVersionPrompt, exports.switchEnvironmentPrompt]; //# sourceMappingURL=utility.js.map