Skip to content

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

Remove redundant resource_metadata_url assignment (#1328)

Jeremiah Lowin887c642bb116
diff --git a/src/fastmcp/server/http.py b/src/fastmcp/server/http.py
index e42a2a022..c3821a4c2 100644
--- a/src/fastmcp/server/http.py
+++ b/src/fastmcp/server/http.py
@@ -327,14 +327,6 @@ def create_streamable_http_app(
# Add StreamableHTTP routes with or without auth
if auth:
- resource_metadata_url = None
-
- if isinstance(auth, TokenVerifier) and auth.resource_server_url:
- resource_metadata_url = AnyHttpUrl(
- str(auth.resource_server_url).rstrip("/")
- + "/.well-known/oauth-protected-resource"
- )
-
auth_middleware, auth_routes, required_scopes = (
setup_auth_middleware_and_routes(auth)
)