We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900c2dd commit 1a638adCopy full SHA for 1a638ad
src/mcp/server/fastmcp/server.py
@@ -838,9 +838,22 @@ async def handle_streamable_http(
838
_alt_path = _main_path + "/"
839
if _alt_path != _main_path:
840
if self._auth_server_provider:
841
- routes.append(Mount(_alt_path, app=RequireAuthMiddleware(handle_streamable_http, required_scopes)))
+ routes.append(
842
+ Mount(
843
+ _alt_path,
844
+ app=RequireAuthMiddleware(
845
+ handle_streamable_http,
846
+ required_scopes,
847
+ ),
848
+ )
849
850
else:
- routes.append(Mount(_alt_path, app=handle_streamable_http))
851
852
853
854
+ app=handle_streamable_http,
855
856
857
858
routes.extend(self._custom_starlette_routes)
859
0 commit comments