/** * Base error class for MCP server errors */ export declare class McpError extends Error { code: string; statusCode: number; details?: unknown | undefined; constructor(message: string, code: string, statusCode?: number, details?: unknown | undefined); } /** * Validation error */ export declare class ValidationError extends McpError { constructor(message: string, details?: unknown); } /** * Tool not found error */ export declare class ToolNotFoundError extends McpError { constructor(toolName: string); } /** * Resource not found error */ export declare class ResourceNotFoundError extends McpError { constructor(uri: string); } /** * Prompt not found error */ export declare class PromptNotFoundError extends McpError { constructor(promptName: string); } /** * Rate limit error */ export declare class RateLimitError extends McpError { constructor(message?: string); } /** * Tool execution error */ export declare class ToolExecutionError extends McpError { constructor(toolName: string, originalError: Error); } /** * Task unauthorized / access denied error */ export declare class TaskUnauthorizedError extends McpError { constructor(taskId: string, message?: string); } /** * Format error for response */ export declare function formatError(error: Error): { code: string; message: string; details?: unknown; }; //# sourceMappingURL=errors.d.ts.map