()
| 370 | // the provider's OAuth discovery docs. If this required McpSessionStore it |
| 371 | // would not compile, so the build itself is part of the assertion. |
| 372 | const discoveryHandler = (): ((request: Request) => Promise<Response>) => |
| 373 | HttpRouter.toWebHandler( |
| 374 | McpDiscoveryRoutes.pipe( |
| 375 | Layer.provide(AuthProviderLive), |
| 376 | Layer.provideMerge(HttpServer.layerServices), |
| 377 | ), |
| 378 | ).handler; |
| 379 | |
| 380 | it("serves the provider discovery document on GET", async () => { |
| 381 | const handler = discoveryHandler(); |