Skip to content

Support for registry server API pagination #3069

@danbarr

Description

@danbarr

Overview

thv registry list [--refresh] returns only the first page of servers from an upstream registry - 100 servers - and there is no mechanism to list more. Also, there's no indication that the result is truncated. Since the ToolHive registry itself is at exactly 100 servers now, using it plus any other source in the toolhive-registry-server leads to this scenario.

Related, thv search <keyword> only searches the partial list.

But thv registry info <some-server> does return server info even if it's not in the first page.

Proposal

  1. Implement pagination support for thv registry list - perhaps a flag like --page-size or -n/--number
  2. Show the total # of servers in the registry and an indication of how many were actually listed (ex, "Listing 100 of 237 servers")
  3. Fix thv search to search over the entire registry

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliChanges that impact CLI functionalityenhancementNew feature or requestregistry

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions