Skip to content

Conversation

@Kamal-Moha
Copy link
Contributor

I have noticed that when you run;
server = MCPServerStreamableHTTP('http://localhost:8000/mcp') as mentioned in the current docs, you will get an error because of the positional arguments.

This PR is intended to update the docs so that it reflects the correct format which is;
server = MCPServerStreamableHTTP(url='http://localhost:8000/mcp')

I have modified locally to prove it's working and should be like below on the pydantic-ai website
image

@DouweM
Copy link
Collaborator

DouweM commented Oct 3, 2025

This was already fixed in #2758, it now works without url!

@DouweM DouweM closed this Oct 3, 2025
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.

2 participants