/** * Standardized error handler for MCP tool responses * Provides consistent error formatting across all tools with rich diagnostic information */ import { ErrorContext, StandardizedErrorResponse } from "../types/errors.types.js"; /** * Process an error into a standardized MCP response * * @param error The error that occurred * @param context Information about where the error occurred * @returns A standardized error response object */ export declare function handleToolError(error: Error | string, context: ErrorContext): StandardizedErrorResponse;