Make per-identity MCP initialize limits configurable #150

Merged
jlxq0 merged 1 commit from fix/configurable-initialize-limit into main 2026-10-07 00:04:48 +00:00
Owner

Expose MATRIX_MCP_MAX_INITIALIZES_PER_IDENTITY and MATRIX_MCP_INITIALIZE_REFILL_SECS (defaults 16 and 120). The configured refill is reflected in Retry-After and JSON-RPC error text. Regression tests cover parsing, configured bursts/refill and response. Local cargo +1.96.0 test --locked and cargo +1.98.0 clippy --all-targets --all-features --locked -- -D warnings pass; rustfmt check passes. Deployment of 128 / 15 on fondue belongs to Clark after release.

Expose MATRIX_MCP_MAX_INITIALIZES_PER_IDENTITY and MATRIX_MCP_INITIALIZE_REFILL_SECS (defaults 16 and 120). The configured refill is reflected in Retry-After and JSON-RPC error text. Regression tests cover parsing, configured bursts/refill and response. Local cargo +1.96.0 test --locked and cargo +1.98.0 clippy --all-targets --all-features --locked -- -D warnings pass; rustfmt check passes. Deployment of 128 / 15 on fondue belongs to Clark after release.
Make MCP initialize quotas configurable
All checks were successful
CI / cargo (pull_request) Successful in 5m42s
CI / docker (pull_request) Has been skipped
34e83e5048
jlxq0 merged commit 1cab873a07 into main 2026-10-07 00:04:48 +00:00
Sign in to join this conversation.
No description provided.