@auth0/auth0-mcp-server
Version:
Auth0 Model Context Protocol (MCP) Server (Beta) — A secure and extendable implementation of an MCP server that provides AI assistants with controlled access to the Auth0 Management API through natural language. This project is in beta and not intended fo
10 lines (9 loc) • 395 B
TypeScript
/**
* Returns a per-key rate-limit function. Each call returns `{ allowed, retryAfterMs }`.
* Timestamps older than `windowMs` are pruned on every check, so the limit is
* enforced over a rolling window rather than a fixed clock interval.
*/
export declare function createRateLimiter(maxCalls: number, windowMs: number): (key: string) => {
allowed: boolean;
retryAfterMs: number;
};