Skip to content

Feature/authentication#8

Merged
alamkanak merged 4 commits intomainfrom
feature/authentication
Oct 21, 2025
Merged

Feature/authentication#8
alamkanak merged 4 commits intomainfrom
feature/authentication

Conversation

@alamkanak
Copy link
Owner

No description provided.

@alamkanak alamkanak requested a review from Copilot October 21, 2025 04:12
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 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 listEndpoints tool 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.

alamkanak and others added 2 commits October 21, 2025 00:13
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@alamkanak alamkanak merged commit b400b44 into main Oct 21, 2025
1 check passed
@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

❌ Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.90%. Comparing base (e062a1a) to head (59776b3).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
fastapi_mcp_openapi/core.py 91.66% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant