agentic-community/mcp-gateway-registry
View on GitHubtech debt: implement proper frontend pagination for servers, agents, and skills
Open
#880 opened on Apr 23, 2026
enhancementgood first issuetechnical-debt
Description
Context
Issue #879 raised the API limit from 100 to 500 as a quick fix, but this is a ceiling that will eventually be hit. The frontend currently fetches a single page of results and has no mechanism to load more.
Current State
- Backend endpoints (
/api/servers,/api/agents,/api/skills) supportlimitandoffsetquery parameters and returntotal_countin the response - Frontend calls each endpoint once with
?limit=500and renders whatever comes back - No "load more", infinite scroll, or page navigation exists in the UI
Proposed Solution
Implement client-side pagination in the Dashboard for all three asset types (servers, agents, skills):
- Use
total_countfrom the API response to detect when more items exist - Either fetch all pages in a loop on initial load, or add a "Load More" / infinite scroll pattern
- Update
useServerStats.tsto handle multi-page fetching - Consider adding a search/filter bar that uses the backend
queryparameter to reduce payload size
Acceptance Criteria
- All servers are visible in the UI regardless of total count
- All agents are visible in the UI regardless of total count
- All skills are visible in the UI regardless of total count
- No hardcoded limit caps the number of visible items