/** * Abuse guard for /mcp. * * A lightweight in-memory token bucket keyed by client IP that throttles * clients sending many unauthenticated requests. Prevents key-guessing and * cheap session-init DoS from one source. Single-replica only — move to Redis * if the MCP service ever scales out. */ export type AbuseCheck = { blocked: false; } | { blocked: true; retryAfterSeconds: number; }; export declare function checkAbuse(ip: string, now?: number): AbuseCheck; export declare function recordAuthFailure(ip: string, now?: number): void; export declare function resetAbuse(ip: string): void; //# sourceMappingURL=abuse-guard.d.ts.map