mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-05 22:14:12 +00:00
No code change needed: the server side (`FastMCP`, `@mcp.tool`, `get_http_headers`, `http_app`) and the client side (`Client`, `BearerAuth`, the three transports, and the `mcp.client.auth` / `mcp.shared.auth` OAuth types imported directly) all kept their signatures. Verified beyond the suite by driving the real `/mcp` mount over a live uvicorn socket with the fastmcp client: tool discovery, a `search_docs` call and bearer-token extraction all round-trip, with the token reaching `search()` intact. fastmcp 4 and mcp 2.2 also moved to httpx2, so the retry tuple's comment now places them on that side of the split.