@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
51 lines • 1.07 kB
JavaScript
;
/**
* 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
*/
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