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

Function authenticate

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

Source from the content-addressed store, hash-verified

74 ) as unknown as McpAgentSessionStub;
75
76const authenticate = (request: Request) =>
77 Effect.gen(function* () {
78 const auth = yield* McpAuthProvider;
79 const outcome = yield* auth.authenticate(request);
80 return { auth, outcome };
81 }).pipe(Effect.provide(cloudMcpAuth));
82
83// The MCP resource the request targets. `server.ts` routes both the bare `/mcp`
84// 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