Skip to content

Conversation

@whvneo
Copy link

@whvneo whvneo commented Jun 5, 2025

feat: Add custom httpx_client for sse_client call #1891

This change allows the user to provide custom httpx.AsyncClient to provide custom headers, event_hooks or anything else.

This way you have access to everything you need for the MCP call over http(s)

Andreas Cordes added 5 commits June 5, 2025 22:22
This change allows the user to provide custom httpx.AsyncClient to provide custom headers, event_hooks or anything else.

This way you have access to everything you need for the MCP call over http(s)
@mpfaffenberger
Copy link
Contributor

I believe this addresses the same problem as #1925

@whvneo
Copy link
Author

whvneo commented Jun 6, 2025

@mpfaffenberger ok, your change was a bit earlier than mine.

The time I checked if something is already present there was nothing and then it took me a bit to get the PR

@Kludex
Copy link
Member

Kludex commented Jun 6, 2025

Thanks for the contribution, but this PR changes way too much stuff.

Let's proceed on the other PR.

@Kludex Kludex closed this Jun 6, 2025
@ChuckJonas
Copy link
Contributor

@Kludex from what I can tell, the other PR doesn't actually let you modify the headers to the MCP server at runtime? I'm trying to use a to_ag_ui() and I need to pass through the client token to my MCP server so that all requests are made on behalf of the current user.

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