-
Couldn't load subscription status.
- Fork 1.3k
Support OpenAI and Anthropic native MCP support via MCPServerTool builtin tool
#3101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@DouweM can you check it again, when you have a moment? Thanks! |
|
I have also updated docs now |
|
@Artui Thanks Artur, I'll review today! |
|
@DouweM i think I addressed most of the comments. I'm a bit unsure regarding passing things back to API - BuiltinToolCallPart/BuiltinToolReturnPart only has args/content passed to it, but MCP calls have additional fields on it, like server_label and such. I'm pushing an entire serialised calls there, not sure if that's correct though, but seems okay |
|
@DouweM this is once again ready for review. Sorry for constant pings - I really want to start using it :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Artui Nice work! Feel free to join our public Slack in case there's something you want to discuss more directly
|
@Artui Check out the docs changes in https://github.com/pydantic/pydantic-ai/pull/2784/files as well - this may make sense as a third item on the list of MCP "client"s. |
c68416d to
20a4a6a
Compare
|
@DouweM I don't think |
MCPServerTool builtin tool
Closes #3100