You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Address API design improvements in StreamableHTTP client
This commit addresses two API design concerns:
1. Remove private module usage in examples: Examples no longer import from
the private mcp.shared._httpx_utils module. Instead, they create httpx
clients directly using the public httpx library.
2. Rename httpx_client parameter to http_client: The 'httpx_client' parameter
name was redundant since the type annotation already specifies it's an
httpx.AsyncClient. Renaming to 'http_client' provides a cleaner, more
concise API.
Changes:
- Updated oauth_client.py and simple-auth-client examples to use public APIs
- Renamed httpx_client to http_client in function signatures
- Updated all internal callers and tests
- Updated deprecated streamablehttp_client wrapper function
0 commit comments