mcp-wayback-machine
Version:
MCP server and CLI tool for interacting with the Wayback Machine without API keys
34 lines • 1.11 kB
TypeScript
/**
* Compare tool ΓÇö diffs two archived snapshots using Wayback Changes.
* Fetches raw content of both snapshots and provides a visual diff URL.
*/
import * as z from "zod";
import type { ToolContext } from "./context.ts";
export declare const CompareSnapshots: z.ZodObject<{
url: z.ZodURL;
timestampA: z.ZodOptional<z.ZodString>;
timestampB: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type CompareSnapshots = z.output<typeof CompareSnapshots>;
interface SnapshotInfo {
timestamp: string;
date: string;
url: string;
}
interface CompareResult {
success: boolean;
message: string;
snapshotA?: SnapshotInfo;
snapshotB?: SnapshotInfo;
changesUrl?: string;
contentA?: string;
contentB?: string;
}
/**
* Compare two archived snapshots of a URL.
* Fetches the snapshot content for both timestamps and returns them
* for comparison. Also provides the Wayback Changes visual diff URL.
*/
export declare function compareSnapshots(input: CompareSnapshots, ctx: ToolContext): Promise<CompareResult>;
export {};
//# sourceMappingURL=compare.d.ts.map