@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
26 lines • 1.01 kB
JavaScript
;
/**
* Get Version Tool
*
* Returns version information for both the SDK and MCP server.
* Both versions are dynamically read from their respective package.json files.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getVersionTool = void 0;
const tool_factory_js_1 = require("../../utils/tool-factory.js");
const version_js_1 = require("../../generated/version.js");
exports.getVersionTool = (0, tool_factory_js_1.createNoParamTool)({
name: 'gala_launchpad_get_version',
description: 'Get SDK and MCP server version information. Returns both versions which are dynamically read from package.json files.',
handler: async (sdk) => {
const sdkVersion = sdk.getVersion();
const mcpVersion = version_js_1.MCP_SERVER_VERSION;
const timestamp = new Date().toISOString();
return {
sdk: sdkVersion,
mcpServer: mcpVersion,
timestamp,
};
},
});
//# sourceMappingURL=getVersion.js.map