/** * Shared Error Response Fields for Output Schemas * * Defines the ErrorFieldsMixin Zod schema fragment that gets extended into * every output schema. This ensures formatHandlerError() responses pass * output schema validation (MCP SDK enforces additionalProperties: false). * * SSoT location: src/utils/errors/error-response-fields.ts * All output schemas should import from here. */ import { z } from 'zod'; /** * Standard error response fields returned by formatHandlerError(). * Extend this into every output schema: * export const MyOutputSchema = z.object({ ... }).extend(ErrorFieldsMixin.shape); */ export declare const ErrorFieldsMixin: z.ZodObject<{ error: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; aggregated_errors: z.ZodOptional>>>; details: z.ZodOptional>; }, z.core.$strip>; //# sourceMappingURL=error-response-fields.d.ts.map