Skip to content

Conversation

@GuanyiLi-Craig
Copy link
Contributor

add category endpoint

Copilot AI review requested due to automatic review settings January 3, 2026 11:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new /categories endpoint to the API that provides a list of all available tool categories with their tool counts and optional skill information.

Key changes:

  • Added CategoryInfo and ListCategoriesResponse schema classes for the new endpoint response
  • Implemented GET /categories endpoint that returns sorted categories with tool counts and skill metadata
  • Added comprehensive test coverage for the new endpoint

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/humcp/schemas.py Added CategoryInfo and ListCategoriesResponse schemas to define the structure of the new endpoint's response
src/humcp/routes.py Implemented the /categories endpoint that aggregates category data with tool counts and skill information
tests/humcp/test_routes.py Added test case verifying the endpoint returns correct categories, tool counts, and sorted results

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GuanyiLi-Craig GuanyiLi-Craig merged commit a2212fd into main Jan 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants