UNPKG

mcp-wayback-machine

Version:

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

29 lines 908 B
/** * Common validation schemas and formatting utilities. */ import * as z from "zod"; /** * Validates YYYYMMDDHHmmss timestamps. */ export declare const Timestamp: z.ZodString; /** /** * Validates an http(s) URL. Rejects javascript:, file:, data:, ftp:, etc. */ export declare const HttpUrl: z.ZodURL; /** * Maximum bytes of archived snapshot content to return to the LLM. * Caps memory use and token blowup; large snapshots are truncated with a * clearly visible marker. */ export declare const MAX_SNAPSHOT_BYTES = 200000; /** * Truncate a snapshot body to MAX_SNAPSHOT_BYTES with a clear marker. */ export declare function capContent(body: string): string; /** * Format a YYYYMMDDHHmmss timestamp to human-readable form. * Returns the input unchanged if it's not 14 characters. */ export declare function formatTimestamp(timestamp: string): string; //# sourceMappingURL=validation.d.ts.map