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
{{ message }}
Repository navigation
V2: Redesign HTTP client lifecycle management with MCPClient/Client approach #1773
Following discussion in #1177, @Kludex raised concerns about the current API approach for HTTP client handling.
Problem
The current pattern of accepting an HTTP client directly may not be the cleanest long-term approach. While many LLM providers do this, there are concerns about API sustainability.
Proposed Direction
Create an MCPClient/Client class that manages the lifecycle of the HTTP client internally, rather than accepting it as a parameter. This is similar to how Starlette's TestClient works.
Update: This is being addressed as part of #1728 (ergonomic test client). We're creating a unified Client class that handles both in-memory testing and HTTP production use cases.
Activity
maxisbey commentedon Feb 19, 2026
Closing as completed by #1870
pls reopen if you think we should @felixweinberger