@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
27 lines • 1.09 kB
JavaScript
;
/**
* Cleanup Tool
*
* Cleans up SDK resources including HTTP interceptors and WebSocket connections.
* Call this when shutting down to prevent memory leaks and ensure proper resource management.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.cleanupTool = void 0;
const error_handler_js_1 = require("../../utils/error-handler.js");
const response_formatter_js_1 = require("../../utils/response-formatter.js");
exports.cleanupTool = {
name: 'gala_launchpad_cleanup',
description: 'Clean up SDK resources (HTTP interceptors, WebSocket connections). Call when done using the SDK to prevent memory leaks.',
inputSchema: {
type: 'object',
properties: {},
},
handler: (0, error_handler_js_1.withErrorHandling)(async (sdk) => {
await sdk.cleanup();
return (0, response_formatter_js_1.formatSuccess)({
message: 'SDK cleanup completed successfully',
cleanedResources: ['HTTP interceptors', 'WebSocket connections'],
});
}),
};
//# sourceMappingURL=cleanup.js.map