use fallback_service instead of nest_service for MCP router (#8566)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-03-27 16:14:47 +00:00
committed by GitHub
co-authored by Claude Opus 4.5
parent 5fd2c1a129
commit 99b0ebd677
+1 -1
View File
@@ -546,7 +546,7 @@ pub async fn setup_mcp_server(
let service =
StreamableHttpService::new(move || Ok(runner.clone()), session_manager, service_config);
let router = Router::new().nest_service("/", service);
let router = Router::new().fallback_service(service);
Ok((router, cancellation_token))
}