Skip to content

fix: handle GitHub API rate limiting with retry and backoff #80

Description

@BryanFRD

Describe the bug
`github.ts` makes unauthenticated requests by default (GITHUB_TOKEN is optional). The unauthenticated rate limit is 60 requests/hour.

Tools like `read_config`, `read_changelog`, and `list_release_tags` will silently fail once the limit is hit. Add rate-limit header checking and exponential backoff, and surface a clear error when the limit is reached.

Package
Which package is affected? [ ] server [x] tools [ ] docs

To Reproduce
Not provided in the original issue — to be filled in.

Expected behavior
Not specified explicitly — see description.

Environment

  • Package version: main
  • Browser/OS (if frontend): n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium prioritybugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions