MCPcopy
hub / github.com/codeaashu/claude-code / getAllSessions

Method getAllSessions

src/server/web/session-manager.ts:104–110  ·  view source on GitHub ↗

All sessions in the shape expected by the admin dashboard.

()

Source from the content-addressed store, hash-verified

102
103 /** All sessions in the shape expected by the admin dashboard. */
104 getAllSessions(): Array<{ id: string; userId: string; createdAt: number }> {
105 return this.store.getAll().map((s) => ({
106 id: s.token,
107 userId: s.userId,
108 createdAt: s.createdAt.getTime(),
109 }));
110 }
111
112 /** Sessions owned by a specific user — used by the per-user API. */
113 getUserSessions(userId: string) {

Callers 2

createAdminRouterFunction · 0.80
pty-server.tsFile · 0.80

Calls 1

getAllMethod · 0.80

Tested by

no test coverage detected