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

Function listSessionsForUser

mcp/src/server/sqlite.ts:833–836  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

831 },
832
833 listSessionsForUser(userId: string): Session[] {
834 const rows = tenantStmts.listSessionsForUser.all(userId) as Record<string, unknown>[];
835 return rows.map(rowToSession);
836 },
837
838 getSessionForUser(userId: string, sessionId: string): Session | undefined {
839 const row = tenantStmts.getSessionForUser.get(sessionId, userId) as Record<string, unknown> | undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…