MCPcopy
hub / github.com/benjitaylor/agentation / getTenantStore

Function getTenantStore

mcp/src/server/tenant-store.ts:37–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 * Get the tenant store instance. Lazily initializes on first access.
36 */
37export function getTenantStore(): import("./sqlite.js").TenantStore {
38 if (!_tenantStore) {
39 _tenantStore = initializeTenantStore();
40 }
41 return _tenantStore;
42}
43
44/**
45 * Initialize the tenant store.

Callers 15

createOrganizationFunction · 0.85
getOrganizationFunction · 0.85
createUserFunction · 0.85
getUserFunction · 0.85
getUserByEmailFunction · 0.85
getUsersByOrgFunction · 0.85
createApiKeyFunction · 0.85
getApiKeyByHashFunction · 0.85
listApiKeysFunction · 0.85
deleteApiKeyFunction · 0.85
updateApiKeyLastUsedFunction · 0.85
createSessionForUserFunction · 0.85

Calls 1

initializeTenantStoreFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…