UNPKG

google-search-console-mcp-server

Version:

Model Context Protocol server for Google Search Console API - integrate with Claude Code and Claude Desktop

32 lines 1.05 kB
/** * Error handling utilities for Google Search Console API */ /** * Custom error class for Google Search Console API errors */ export declare class SearchConsoleError extends Error { code?: number | undefined; details?: string | undefined; constructor(message: string, code?: number | undefined, details?: string | undefined); } /** * Handle Google API errors and convert to user-friendly messages */ export declare function handleApiError(error: any, context: string): never; /** * Retry function with exponential backoff */ export declare function retryWithBackoff<T>(fn: () => Promise<T>, maxRetries?: number, initialDelay?: number): Promise<T>; /** * Validate site URL format */ export declare function validateSiteUrl(siteUrl: string): void; /** * Validate date format (YYYY-MM-DD) */ export declare function validateDate(date: string, fieldName: string): void; /** * Validate date range */ export declare function validateDateRange(startDate: string, endDate: string): void; //# sourceMappingURL=error-handler.d.ts.map