@gala-chain/launchpad-mcp-server
Version:
MCP server for Gala Launchpad SDK with 55 tools + 14 slash commands - Production-grade AI agent integration with comprehensive validation, optimized performance, and 80%+ test coverage
76 lines • 2.39 kB
JavaScript
;
/**
* Tool Registry
*
* Enhanced tool registry with auto-validation and metadata.
* Uses tool-registry system for robust tool management.
*
* @see src/utils/tool-registry.ts
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.tools = exports.registry = void 0;
const index_js_1 = require("./pools/index.js");
const index_js_2 = require("./trading/index.js");
const index_js_3 = require("./balance/index.js");
const index_js_4 = require("./creation/index.js");
const index_js_5 = require("./social/index.js");
const index_js_6 = require("./transfers/index.js");
const index_js_7 = require("./utils/index.js");
const tool_registry_js_1 = require("../utils/tool-registry.js");
/**
* Tool categories with metadata
*/
const toolCategories = [
{
name: 'pools',
description: 'Pool management, pricing, and token availability checks',
tools: index_js_1.poolTools,
},
{
name: 'trading',
description: 'Token trading operations (buy, sell, calculate amounts)',
tools: index_js_2.tradingTools,
},
{
name: 'balance',
description: 'Balance queries and portfolio management',
tools: index_js_3.balanceTools,
},
{
name: 'creation',
description: 'Token creation and launch operations',
tools: index_js_4.creationTools,
},
{
name: 'social',
description: 'Comments and social interactions',
tools: index_js_5.socialTools,
},
{
name: 'transfers',
description: 'Token and GALA transfer operations',
tools: index_js_6.transferTools,
},
{
name: 'utils',
description: 'Utility tools (wallet, config, SDK documentation)',
tools: index_js_7.utilityTools,
},
];
/**
* Enhanced tool registry with validation (55 tools)
*/
exports.registry = (0, tool_registry_js_1.createToolRegistry)(toolCategories, 55);
/**
* Complete tool array (for backward compatibility)
*/
exports.tools = exports.registry.tools;
// Log registry statistics in debug mode
if (process.env.DEBUG === 'true') {
(0, tool_registry_js_1.logToolRegistry)(exports.registry);
}
// Throw error if registry is invalid
if (!exports.registry.isValid) {
throw new Error(`Tool registry validation failed:\n${exports.registry.errors.join('\n')}`);
}
//# sourceMappingURL=index.js.map