pub const DCR_MAX_CLIENTS: usize = 1000;Expand description
Maximum number of dynamically-registered (RFC 7591) clients held in
state.clients. The DCR endpoint is unauthenticated by design (the
whole point is bootstrapping new clients), so a hard cap bounds the
memory amplifier even when an attacker pummels POST /oauth/register.
CIMD clients are NOT counted here — they live in cimd_cache, which
has its own capacity bound.
1000 is comfortable for an operator with a handful of MCP clients per user and the occasional dev/test churn. Operators expecting more can override via configuration in a future change.