(request: Request, authProvider: Layer.Layer<McpAuthProvider>)
| 143 | }; |
| 144 | |
| 145 | const authenticate = (request: Request, authProvider: Layer.Layer<McpAuthProvider>) => |
| 146 | Effect.gen(function* () { |
| 147 | const auth = yield* McpAuthProvider; |
| 148 | const outcome = yield* auth.authenticate(request); |
| 149 | return { auth, outcome }; |
| 150 | }).pipe(Effect.provide(authProvider)); |
| 151 | |
| 152 | // The earlier shared envelope ran the MCP auth path inside the Effect app, whose |
| 153 | // HttpMiddleware provided the OTEL tracer — that is where the `mcp.request` |
no outgoing calls
no test coverage detected