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