(request: Request)
| 76 | }; |
| 77 | |
| 78 | const authenticate = (request: Request) => |
| 79 | Effect.gen(function* () { |
| 80 | const auth = yield* McpAuthProvider; |
| 81 | const outcome = yield* auth.authenticate(request); |
| 82 | return { auth, outcome }; |
| 83 | }).pipe(Effect.provide(cloudMcpAuth)); |
| 84 | |
| 85 | // The MCP resource the request targets. `server.ts` routes both the bare `/mcp` |
| 86 | // and `/mcp/toolkits/<slug>` to this handler (`prepareMcpOrgScope` strips the org |
no outgoing calls
no test coverage detected