@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
30 lines • 1.18 kB
JavaScript
;
/**
* Switch Environment Tool
*
* Dynamically switches the MCP server to a different environment
* (production, development, or testing) while preserving wallet state.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.switchEnvironmentTool = void 0;
const tool_factory_js_1 = require("../../utils/tool-factory.js");
exports.switchEnvironmentTool = (0, tool_factory_js_1.createServerLevelTool)({
name: 'gala_launchpad_switch_environment',
description: 'Dynamically switch the MCP server to a different environment (production, development, or testing). Preserves wallet configuration when switching.',
inputSchema: {
type: 'object',
properties: {
environment: {
type: 'string',
enum: ['production', 'development', 'testing'],
description: 'Target environment to switch to',
},
},
required: ['environment'],
},
handler: async (sdk, args, server) => {
const newEnvironment = args.environment;
return await server.switchEnvironment(newEnvironment);
},
});
//# sourceMappingURL=switchEnvironment.js.map