MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / authenticate

Function authenticate

apps/cloud/src/mcp/agent-handler.ts:145–150  ·  view source on GitHub ↗
(request: Request, authProvider: Layer.Layer<McpAuthProvider>)

Source from the content-addressed store, hash-verified

143};
144
145const 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`

Callers 2

handleFunction · 0.70
makeCloudMcpAgentHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected