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

52 lines 1.17 kB
"use strict"; /** * Response Formatter Utility * * Formats SDK responses for MCP protocol */ Object.defineProperty(exports, "__esModule", { value: true }); exports.formatSuccess = formatSuccess; exports.formatBoolean = formatBoolean; exports.formatText = formatText; /** * Format successful response */ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- SDK responses are dynamically typed function formatSuccess(data) { return { content: [ { type: 'text', text: JSON.stringify(data, null, 2), }, ], }; } /** * Format boolean response */ function formatBoolean(result, message) { const text = message || `Result: ${result}`; return { content: [ { type: 'text', text: JSON.stringify({ success: result, message: text }, null, 2), }, ], }; } /** * Format simple text response */ function formatText(text) { return { content: [ { type: 'text', text, }, ], }; } //# sourceMappingURL=response-formatter.js.map