build: complete upgrade to fastapi 0.141, mcp sdk v2, fastmcp 4 and httpx2

This commit is contained in:
lda
2026-09-06 12:17:15 +07:00 Verified
parent 5b901557bd
commit 6d5b6741fb
42 changed files with 946 additions and 737 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ async def test_mcp_binder_refreshes_oauth_for_http() -> None:
assert len(refresher.calls) == 1
async def test_httpx_oauth_refresher_posts_refresh_token_grant(
async def test_httpx2_oauth_refresher_posts_refresh_token_grant(
monkeypatch: pytest.MonkeyPatch,
) -> None:
from pydantic import AnyUrl
@@ -110,7 +110,7 @@ async def test_httpx_oauth_refresher_posts_refresh_token_grant(
captured_posts.append((url, data))
return _Response()
monkeypatch.setattr(mod.httpx, "AsyncClient", _Client)
monkeypatch.setattr(mod.httpx2, "AsyncClient", _Client)
token = await HttpxOAuthTokenRefresher().refresh(
OAuthRefreshTokenAuth(