Skip to content

Commit d691200

Browse files
Increase rate limits on client registration (hit while debugging client, I suspect others will also)
1 parent 93c9396 commit d691200

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ const options: AuthRouterOptions = {
8282
windowMs: 5 * 1000,
8383
limit: 100,
8484
}
85-
}
85+
},
86+
clientRegistrationOptions: {
87+
rateLimit: {
88+
windowMs: 60 * 1000, // 1 minute
89+
limit: 10, // Limit to 10 registrations per minute
90+
},
91+
},
8692
};
8793
app.use(mcpAuthRouter(options));
8894
const bearerAuth = requireBearerAuth(options);

0 commit comments

Comments
 (0)