π The fast, Pythonic way to build MCP servers and clients.
Make InMemoryOAuthProvider keyword-only like its parent
Jeremiah Lowina7248480e217
diff --git a/fastmcp_slim/fastmcp/server/auth/providers/in_memory.py b/fastmcp_slim/fastmcp/server/auth/providers/in_memory.pyindex ed748361c..67068bd58 100644--- a/fastmcp_slim/fastmcp/server/auth/providers/in_memory.py+++ b/fastmcp_slim/fastmcp/server/auth/providers/in_memory.py@@ -36,6 +36,7 @@ class InMemoryOAuthProvider(OAuthProvider):def __init__(self,+ *,base_url: AnyHttpUrl | str | None = None,resource_base_url: AnyHttpUrl | str | None = None,issuer_url: AnyHttpUrl | str | None = None,diff --git a/tests/server/auth/test_static_token_verifier.py b/tests/server/auth/test_static_token_verifier.pyindex bfa0f3dbb..8a7f0507b 100644--- a/tests/server/auth/test_static_token_verifier.py+++ b/tests/server/auth/test_static_token_verifier.py@@ -103,7 +103,7 @@ class TestStaticTokenVerifier:"""Test that server raises error when both OAuth and TokenVerifier provided."""from fastmcp.server.auth.providers.in_memory import InMemoryOAuthProvider- oauth_provider = InMemoryOAuthProvider("http://test.com")+ oauth_provider = InMemoryOAuthProvider(base_url="http://test.com")token_verifier = StaticTokenVerifier({"token": {"client_id": "test"}})# This should work - OAuth provider