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

Function authenticate

apps/cloud/src/mcp/agent-handler.ts:78–83  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

76};
77
78const 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

Callers 1

makeCloudMcpAgentHandlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected