mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-25 01:02:15 +00:00
McpError -> MCPError (new code/message/data constructor), camelCase model attributes and constructor kwargs -> snake_case, RequestResponder -> ClientSession message handler receiving ServerNotification | Exception, RequestContext -> ClientRequestContext, read_timeout_seconds -> float, server_capabilities property, JSONRPCMessage union parsed via TypeAdapter, and httpx -> httpx2 for every object handed to the SDK transports (MCPSigV4Auth, the httpx client factory, outbound_credentials auth classes and resolver return types). Helpers that serve both litellm httpx clients and the SDK's httpx2 transport accept both response types. The SDK read-timeout code is now the JSON-RPC REQUEST_TIMEOUT (-32001) instead of HTTP 408; as_mcp_read_timeout keeps the TimeoutError context discriminator. Upstream transport exceptions and responses found in exception trees are matched as httpx2 alongside httpx. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| classify.py | ||
| list_outcomes.py | ||
| render_oauth.py | ||
| traversal.py | ||
| types.py | ||