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

35 lines 1.42 kB
#!/usr/bin/env node "use strict"; /** * Gala Launchpad MCP Server Entry Point */ Object.defineProperty(exports, "__esModule", { value: true }); // Suppress verbose fabric-contract-api logging from @gala-chain/api decorators // This MUST be set before any imports that trigger decorator initialization process.env.CORE_CHAINCODE_LOGGING_LEVEL = process.env.CORE_CHAINCODE_LOGGING_LEVEL || 'ERROR'; // Suppress @gala-chain/api schema processing errors that occur during decorator initialization // These errors are harmless (just missing type metadata for Map/Object properties like bitmap, tickRangeMap) // but they go to stderr which breaks MCP's JSON-RPC communication over stdio const originalConsoleError = console.error; console.error = (...args) => { const message = String(args[0] || ''); // Filter out specific schema processing errors from @gala-chain/api if (message.includes('Error processing schema:') || message.includes('Cannot find type metadata')) { return; // Suppress these harmless errors } originalConsoleError.apply(console, args); }; const server_js_1 = require("./server.js"); async function main() { const server = new server_js_1.LaunchpadMCPServer(); try { await server.start(); } catch (error) { console.error('[MCP Server] Fatal error:', error); process.exit(1); } } main(); //# sourceMappingURL=index.js.map