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

Function makeMcpOrganizationAuthServices

apps/cloud/src/mcp/auth.ts:193–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191// call gives each request its own request-scoped socket. `CoreSharedServices`
192// (WorkOS, no per-request socket) stays shared.
193const makeMcpOrganizationAuthServices = () => {
194 const dbLive = makeDbLayer();
195 const userStoreLive = makeUserStoreLayer().pipe(Layer.provide(dbLive));
196 return Layer.mergeAll(dbLive, userStoreLive, CoreSharedServices);
197};
198
199// A URL slug resolves through the mirror to its org id before the membership
200// check; an unknown slug authorizes nothing. Ids pass straight through —

Callers 1

auth.tsFile · 0.85

Calls 2

makeDbLayerFunction · 0.90
makeUserStoreLayerFunction · 0.90

Tested by

no test coverage detected