From d691200555d257574f97e41ca5c1d68f0d54d6ad Mon Sep 17 00:00:00 2001 From: Jerome Date: Tue, 10 Jun 2025 21:47:20 +0100 Subject: [PATCH] Increase rate limits on client registration (hit while debugging client, I suspect others will also) --- src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4fc70ab..2886489 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,7 +82,13 @@ const options: AuthRouterOptions = { windowMs: 5 * 1000, limit: 100, } - } + }, + clientRegistrationOptions: { + rateLimit: { + windowMs: 60 * 1000, // 1 minute + limit: 10, // Limit to 10 registrations per minute + }, + }, }; app.use(mcpAuthRouter(options)); const bearerAuth = requireBearerAuth(options);