import type { CallToolResult, ContentBlock } from "@modelcontextprotocol/sdk/types.js"; /** * Utility functions for formatting MCP responses * * This is a global utility module that should not import domain-specific classes. * It provides generic response formatting for any MCP tool. */ export interface McpErrorResponse { code?: string | number; error: string; operation?: string; reason?: string; meta?: Record; } interface SuccessData { success?: boolean; message?: string; instructions?: string | any[]; } /** * Generic error data interface for MCP error responses */ interface ErrorData { success?: boolean; code?: string | number; message: string; operation?: string; } export declare function mergeResponsesContent(content: any): ContentBlock[]; export declare function formatSuccessResponse(successData: SuccessData, content?: any): CallToolResult; /** * Format an error response for MCP tools using generic error data */ export declare function formatErrorResponse(errorData: ErrorData | Error | string | unknown, operation?: string, meta?: Record): CallToolResult; export {};