()
| 409 | // the provider's OAuth discovery docs. If this required McpSessionStore it |
| 410 | // would not compile, so the build itself is part of the assertion. |
| 411 | const discoveryHandler = (): ((request: Request) => Promise<Response>) => |
| 412 | HttpRouter.toWebHandler( |
| 413 | McpDiscoveryRoutes.pipe( |
| 414 | Layer.provide(AuthProviderLive), |
| 415 | Layer.provideMerge(HttpServer.layerServices), |
| 416 | ), |
| 417 | ).handler; |
| 418 | |
| 419 | it("serves the provider discovery document on GET", async () => { |
| 420 | const handler = discoveryHandler(); |