Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds authentication scheme information to the endpoint listing functionality. The listEndpoints tool now returns both user-defined endpoints and authentication configuration from the OpenAPI schema, providing better API introspection capabilities.
Key Changes:
- Modified
listEndpointstool to return structured response containing both endpoints and authentication schemes - Updated tool description to reflect new authentication strategy functionality
- Added logic to extract security schemes from OpenAPI components
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| fastapi_mcp_openapi/core.py | Modified list_endpoints function to extract authentication schemes from OpenAPI and return structured response with endpoints and authentication data |
| tests/test_mcp_tools.py | Updated tests to handle new response structure and added comprehensive authentication scheme tests |
| tests/test_mcp_tool_execution.py | Updated endpoint parsing to extract endpoints from new structured response format |
| tests/test_integration.py | Updated integration tests to parse new response structure |
| tests/test_http_handling.py | Updated tool description assertion and response parsing |
| pyproject.toml | Bumped version from 0.1.0 to 0.1.4 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8 +/- ##
==========================================
- Coverage 96.25% 95.90% -0.35%
==========================================
Files 2 2
Lines 160 171 +11
==========================================
+ Hits 154 164 +10
- Misses 6 7 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.