()
| 350 | // the provider's OAuth discovery docs. If this required McpSessionStore it |
| 351 | // would not compile, so the build itself is part of the assertion. |
| 352 | const discoveryHandler = (): ((request: Request) => Promise<Response>) => |
| 353 | HttpRouter.toWebHandler( |
| 354 | McpDiscoveryRoutes.pipe( |
| 355 | Layer.provide(AuthProviderLive), |
| 356 | Layer.provideMerge(HttpServer.layerServices), |
| 357 | ), |
| 358 | ).handler; |
| 359 | |
| 360 | it("serves the provider discovery document on GET", async () => { |
| 361 | const handler = discoveryHandler(); |