Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

small pr feedback

William Eastona9b4f7f6ee9b
diff --git a/src/fastmcp/client/auth/oauth.py b/src/fastmcp/client/auth/oauth.py
index 9a369bf4d..eda685c58 100644
--- a/src/fastmcp/client/auth/oauth.py
+++ b/src/fastmcp/client/auth/oauth.py
@@ -3,7 +3,7 @@ from __future__ import annotations
import asyncio
import json
import webbrowser
-from _asyncio import Future
+from asyncio import Future
from pathlib import Path
from typing import Any, Literal
from urllib.parse import urlparse
@@ -285,4 +285,4 @@ class OAuth(OAuthClientProvider):
await asyncio.sleep(0.1) # Allow server to shutdown gracefully
tg.cancel_scope.cancel()
- raise RuntimeError("OAuth callback handler could not be started")
\ No newline at end of file
+ raise RuntimeError("OAuth callback handler could not be started")