()
| 210 | // the provider's OAuth discovery docs. If this required McpSessionStore it |
| 211 | // would not compile, so the build itself is part of the assertion. |
| 212 | const discoveryHandler = (): ((request: Request) => Promise<Response>) => |
| 213 | HttpRouter.toWebHandler( |
| 214 | McpDiscoveryRoutes.pipe( |
| 215 | Layer.provide(AuthProviderLive), |
| 216 | Layer.provideMerge(HttpServer.layerServices), |
| 217 | ), |
| 218 | ).handler; |
| 219 | |
| 220 | it("serves the provider discovery document on GET", async () => { |
| 221 | const handler = discoveryHandler(); |