From 705cf29df389d13918f3a3aa3dcb2ff19ddfc362 Mon Sep 17 00:00:00 2001 From: Taylor Wilsdon Date: Fri, 22 Aug 2025 10:13:13 -0400 Subject: [PATCH] update base uri per fastmcp #1387 --- auth/oauth_common_handlers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auth/oauth_common_handlers.py b/auth/oauth_common_handlers.py index 0e3d594..e8eab91 100644 --- a/auth/oauth_common_handlers.py +++ b/auth/oauth_common_handlers.py @@ -241,7 +241,8 @@ async def handle_oauth_protected_resource(request: Request): # For streamable-http transport, the MCP server runs at /mcp # This is the actual resource being protected - resource_url = f"{base_url}/mcp/" + # As of August, /mcp is now the proper base - prior was /mcp/ + resource_url = f"{base_url}/mcp" # Build metadata response per RFC 9449 metadata = { @@ -416,4 +417,4 @@ async def handle_oauth_register(request: Request): "error": str(e) }, request) error = OAuthConfigurationError("Internal server error") - return create_oauth_error_response(error, origin) \ No newline at end of file + return create_oauth_error_response(error, origin)