Skip to content

Add list_forks tool to repos toolset #3992

Backlog

Description

@bukowa

Describe the feature or problem you'd like to solve

The server provides fork_repository to create forks, but lacks a corresponding tool to list forks of a given repository.

In #207 / PR #250, fork listing was directed to search_repositories. While qualifiers like fork:only work for listing a specific user's forks (user:X fork:only), GitHub's Search API has no parent:owner/repo qualifier. As a result, search_repositories cannot reliably list downstream forks of an arbitrary repository without brittle keyword matching against repo names.

Proposed solution

Add a list_forks tool under the repos toolset backed by GET /repos/{owner}/{repo}/forks via go-github's client.Repositories.ListForks:

  • Inputs: owner, repo, optional sort (newest, oldest, stargazers, watchers), direction (asc, desc), page, perPage.
  • Output: []MinimalRepository (matching list_starred_repositories and search_repositories).

Example prompts or workflows

  • "Find active or top-starred community forks of owner/repo."
  • "List recent forks of owner/repo to see if contributors have started working on patches."

Additional context

Implementation is straightforward with client.Repositories.ListForks. I can open a PR with unit tests and doc updates if you're open to this addition.

Activity

  1. added
    enhancement
    on Dec 1, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions