UNPKG

@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

22 lines 823 B
/** * Error Handler Utility * * Formats errors for MCP protocol responses with AI-friendly tips. * Uses centralized error templates from error-templates.ts. * * @see src/utils/error-templates.ts */ import type { MCPToolResponse } from '../types/mcp.js'; /** * Format error for MCP response with AI-friendly tips */ export declare function formatError(error: unknown): MCPToolResponse; /** * Wrap handler with error handling * * @template TArgs - Array of argument types * @param handler - Handler function to wrap with error handling * @returns Wrapped handler with automatic error formatting */ export declare function withErrorHandling<TArgs extends unknown[]>(handler: (...args: TArgs) => Promise<MCPToolResponse>): (...args: TArgs) => Promise<MCPToolResponse>; //# sourceMappingURL=error-handler.d.ts.map