Skip to content

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

Merge branch 'main' into oauth-warnings

William Eastond71f28901bd2
diff --cc src/fastmcp/server/auth/oauth_proxy.py
index d0e0994fd,2781f3516..e79df5753
--- a/src/fastmcp/server/auth/oauth_proxy.py
+++ b/src/fastmcp/server/auth/oauth_proxy.py
@@@ -388,12 -576,11 +576,11 @@@ class OAuthProxy(OAuthProvider)
self._client_storage: AsyncKeyValue = client_storage or MemoryStore()
- if isinstance(self._client_storage, MemoryStore):
- from warnings import warn
-
- warn(
- message="Using in-memory client storage is not recommended for production use -- "
- + "clients will be lost on server restart which may require manual clean-up of oauth information on the client."
+ # Warn if using MemoryStore in production
- if client_storage is None or isinstance(client_storage, MemoryStore):
++ if isinstance(client_storage, MemoryStore):
+ logger.warning(
+ "Using in-memory storage - all OAuth state will be lost on restart. "
+ "For production, configure persistent storage (Redis, PostgreSQL, etc.)."
)
self._client_store = PydanticAdapter[ProxyDCRClient](