From eb34ab7c72293de667f2553d0f2fd231fa3992df Mon Sep 17 00:00:00 2001 From: Rocky Haotian Du <2712479005@qq.com> Date: Tue, 14 Oct 2025 15:21:15 +0800 Subject: [PATCH] fix: Remove unnecessary constructor from ResourceServerSettings (#1424) Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com> --- examples/servers/simple-auth/mcp_simple_auth/server.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/examples/servers/simple-auth/mcp_simple_auth/server.py b/examples/servers/simple-auth/mcp_simple_auth/server.py index c0a456cd..5d885057 100644 --- a/examples/servers/simple-auth/mcp_simple_auth/server.py +++ b/examples/servers/simple-auth/mcp_simple_auth/server.py @@ -45,11 +45,6 @@ class ResourceServerSettings(BaseSettings): # RFC 8707 resource validation oauth_strict: bool = False - # TODO(Marcelo): Is this even needed? I didn't have time to check. - def __init__(self, **data: Any): - """Initialize settings with values from environment variables.""" - super().__init__(**data) - def create_resource_server(settings: ResourceServerSettings) -> FastMCP: """