-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Support custo 8000 m httpx client creation #752
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
# Conflicts: # src/mcp/client/sse.py # src/mcp/client/streamable_http.py
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.
Thank you! Would be great to add instruction to README as well
It would have been better to pass the client itself... |
Agree with this |
A new unit test would have been nice too. |
And now I notice that the |
it's not in sse, but in general is there, am I missing something? |
Ah, I missed that, sorry. That said, on the sse, we use the client, so you can actually pass the timeout to the client before using the |
yes, we should, I can just add this as there were a couple of PRs and issues about it |
Motivation and Context
Currently the SDK defaults imply certain properties for httpx clients, two notable ones are redirect policies as well as proxies. To support various security configurations instead make the client wholly injectable. This avoids clients needing to fork the entire transport method.
How Has This Been Tested?
Tested locally with a fake client.
Breaking Changes
None.
Types of changes
Checklist
Additional context
N/A