MCPcopy Create free account
hub / github.com/benjitaylor/agentation / createOrganization

Function createOrganization

mcp/src/server/sqlite.ts:698–712  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

696 return {
697 // Organizations
698 createOrganization(name: string): Organization {
699 const org: Organization = {
700 id: `org_${generateId()}`,
701 name,
702 createdAt: new Date().toISOString(),
703 };
704
705 tenantStmts.insertOrg.run({
706 id: org.id,
707 name: org.name,
708 createdAt: org.createdAt,
709 });
710
711 return org;
712 },
713
714 getOrganization(id: string): Organization | undefined {
715 const row = tenantStmts.getOrg.get(id) as Record<string, unknown> | undefined;

Callers

nothing calls this directly

Calls 1

generateIdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…