UNPKG

mcp-wayback-machine

Version:

MCP server and CLI tool for interacting with the Wayback Machine without API keys

51 lines (49 loc) 1.52 kB
/** * Search Archives tool — Searches the Wayback Machine CDX API. * Supports match types, collapsing, filtering, pagination, and duplicate counting. */ import * as z from "zod"; import type { ToolContext } from "./context.ts"; export declare const SearchArchives: z.ZodObject<{ url: z.ZodURL; matchType: z.ZodOptional<z.ZodEnum<{ exact: "exact"; prefix: "prefix"; host: "host"; domain: "domain"; }>>; from: z.ZodOptional<z.ZodString>; to: z.ZodOptional<z.ZodString>; limit: z.ZodDefault<z.ZodInt>; offset: z.ZodOptional<z.ZodInt>; collapse: z.ZodOptional<z.ZodString>; filter: z.ZodOptional<z.ZodArray<z.ZodString>>; resolveRevisits: z.ZodOptional<z.ZodBoolean>; showDupeCount: z.ZodOptional<z.ZodBoolean>; page: z.ZodOptional<z.ZodInt>; pageSize: z.ZodOptional<z.ZodInt>; }, z.core.$strip>; export type SearchArchives = z.input<typeof SearchArchives>; interface ArchiveResult { url: string; archivedUrl: string; timestamp: string; date: string; statusCode: string; mimeType: string; digest?: string; duplicateCount?: number; } interface SearchResult { success: boolean; message: string; totalResults: number; results?: ArchiveResult[]; resumeKey?: string; } /** * * Search for archived versions of a URL using the CDX API. */ export declare function searchArchives(input: SearchArchives, ctx: ToolContext): Promise<SearchResult>; export {}; //# sourceMappingURL=search.d.ts.map