Merged
Conversation
Contributor
GuanyiLi-Craig
commented
Jan 2, 2026
- improve function docs and test
- add skills to the category
- expose category in openapi
- add output schema for getting tools.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the HuMCP server with improved documentation, structured skill metadata, OpenAPI schema integration, and comprehensive testing coverage.
Key Changes:
- Added skill discovery system with SKILL.md files containing frontmatter metadata for each tool category
- Implemented Pydantic response schemas for all API endpoints with typed responses
- Integrated skill metadata and OpenAPI tags into category-based documentation
- Added extensive test coverage with pytest-cov and new test suites for skills, server, routes, and decorator modules
- Enhanced security in filesystem and data processing tools with allowlists and validation
Reviewed changes
Copilot reviewed 44 out of 45 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Added coverage 7.13.1 and pytest-cov dependencies; updated grafi version |
| tests/humcp/* | New comprehensive test suites for skills, server, routes, and decorator |
| tests/conftest.py | Shared fixtures for test isolation and sample tools |
| tests/tools/* | Formatting improvements for better readability |
| src/tools/*/SKILL.md | New skill documentation with YAML frontmatter for each category |
| src/tools/local/local_file_system.py | Added path validation security with HUMCP_ALLOW_ABSOLUTE_PATHS env var |
| src/tools/data/pandas.py | Added allowlists for safe pandas operations |
| src/tools/data/csv.py | Added SQL query validation to prevent injection |
| src/tools/google/* | Migrated from FastMCP to @tool decorator, improved docstrings |
| src/humcp/skills.py | New module for discovering and parsing SKILL.md files |
| src/humcp/schemas.py | New Pydantic models for typed API responses |
| src/humcp/routes.py | Updated to use response models and integrate skill metadata |
| src/humcp/server.py | Added OpenAPI tags generation from discovered categories |
| pyproject.toml | Added pytest-cov, coverage configuration, updated grafi |
| .pre-commit-config.yaml | Added pytest pre-push hook, Python 3.13 version, additional checks |
| .github/workflows/ci.yaml | Restructured CI with separate lint, type-check, test jobs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ayomaska18
approved these changes
Jan 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.