UNPKG

@kaminaduck/scryfall-mcp-server

Version:

A Model Context Protocol (MCP) server that provides access to the Scryfall API for Magic: The Gathering card data

41 lines 1.49 kB
/** * Database-related MCP tools for the Scryfall server. */ export interface DatabaseResult { status: 'success' | 'error'; message?: string; total_records?: number; missing_files?: number; integrity?: boolean; total_files?: number; added_to_db?: number; directory?: string; records_removed?: number; records_to_remove?: number; executed?: boolean; sets?: Record<string, number>; set_directories?: number; total_images?: number; database_coverage?: number; } /** * Verify database integrity by checking if all referenced files exist. * Returns response structure matching Python implementation. */ export declare function mcpVerifyDatabase(): Promise<DatabaseResult>; /** * Scan a directory for image files and optionally add them to the database. * Returns response structure matching Python implementation. */ export declare function mcpScanDirectory(directory: string, updateDb?: boolean): Promise<DatabaseResult>; /** * Clean the database by removing records for files that no longer exist. * Returns response structure matching Python implementation. */ export declare function mcpCleanDatabase(execute?: boolean): Promise<DatabaseResult>; /** * Generate a comprehensive report on the database status. * Returns response structure matching Python implementation with same statistics and formatting. */ export declare function mcpDatabaseReport(): Promise<DatabaseResult>; //# sourceMappingURL=databaseTools.d.ts.map