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

Function makeMcpOrganizationAuthServices

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

Source from the content-addressed store, hash-verified

204// call gives each request its own request-scoped socket. `CoreSharedServices`
205// (WorkOS, no per-request socket) stays shared.
206const makeMcpOrganizationAuthServices = () => {
207 const dbLive = makeDbLayer();
208 const userStoreLive = makeUserStoreLayer().pipe(Layer.provide(dbLive));
209 return Layer.mergeAll(dbLive, userStoreLive, CoreSharedServices);
210};
211
212// A URL slug resolves through the mirror to its org id before the membership
213// 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