Skip to content

Rate-limit business API and MCP requests #49

Open

Description

@imshashank

Sign-in and email codes are rate limited, with counters stored in the database so they hold across serverless instances (packages/auth/rate-limit.ts). Business operations on /api/crm, /api/outreach and /mcp have no limit, so one token or session can issue unbounded requests. Distributed abuse limits are a production gate in docs/roadmap.md.

Done when

  • Requests are limited per user and per OAuth grant, with a stricter limit for write and send operations, reusing the database-backed approach.
  • Limited requests return 429 with Retry-After over HTTP and a matching MCP error.
  • Tests cover the limit and its reset.

Activity

  1. added
    help wanted
    area: auth
    area: mcp
    security
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: autharea: mcphelp wantedsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions