Skip to content

Conversation

@aniketmaurya
Copy link
Collaborator

What does this PR do?

MCP requires users to provide inputSchema in JSON format. We can build this using Pydantic or using the function type hints.

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@codecov
Copy link

codecov bot commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 63.00000% with 37 lines in your changes missing coverage. Please review.

Project coverage is 86%. Comparing base (f7f5c81) to head (aa628b9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@         Coverage Diff          @@
##           main   #536    +/-   ##
====================================
- Coverage    87%    86%    -1%     
====================================
  Files        37     38     +1     
  Lines      2633   2733   +100     
====================================
+ Hits       2288   2351    +63     
- Misses      345    382    +37     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

@k223kim k223kim left a comment

Choose a reason for hiding this comment

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

🔥

…oving type handling in mcp.py. Add comprehensive tests for type conversion and parameter title extraction in test_mcp.py.
…lasses, including definitions and references in the generated schema. Update tests in test_mcp.py to validate new schema structure and add tests for handling complex types and field constraints.
@aniketmaurya aniketmaurya merged commit 536c765 into main Jun 10, 2025
20 of 21 checks passed
@aniketmaurya aniketmaurya deleted the aniket/add-mcp-parsers branch June 10, 2025 16:17
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.

4 participants