Creates a new RateLimiter instance
Rate limit configuration
Acquires a slot for making a request. If rate limits are exceeded, the request is queued.
Maximum time to wait in queue (default: 5 minutes)
Promise that resolves when the request can proceed
Checks if a request can proceed without hitting rate limits
true if request can proceed
Destroys the rate limiter and cleans up resources
Gets the estimated wait time in milliseconds
Estimated wait time, or 0 if no wait needed
Clears all rate limit state and queue
Updates the rate limit configuration
New configuration
RateLimiter manages request rates for MCP server connections.
Features:
Example