Skip to content

Configure global rate limits on MCPServer #4551

Closed

Description

@jerm-dro

User Story

As a cluster admin,
I want to configure global rate limits on MCPServer,
so that total throughput stays within safe bounds for downstream services.

Context

See THV-0057: Rate Limiting for MCP Servers for full design details.

Acceptance Criteria

  • MCPServerSpec includes a rateLimiting.global field with maxTokens and refillPeriod
  • Per-tool global limits supported via rateLimiting.tools[].global
  • Unit: Total requests across all users exceed maxTokens — next request is rejected with JSON-RPC error -32029
  • Unit: Retry-After is computed from the global bucket's refill rate
  • Unit: Per-tool global limit hit on one tool doesn't affect other tools
  • Unit: Request must pass both server-level global and per-tool global limits
  • E2E: Deploy MCPServer with global rate limit, send traffic from multiple users, verify rejection after global limit exceeded
  • E2E: Deploy MCPServer with both global and perUser — request must pass both

Out of Scope

  • Per-user rate limits (STORY-001)
  • VirtualMCPServer (STORY-003)
  • Observability (STORY-004)

Activity

  1. added
    enhancement
    go
    kubernetes
    api
    on Apr 4, 2026
  2. 24 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apienhancementgokubernetesoperator

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions