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

Function getSessionWithAnnotations

mcp/src/server/store.ts:97–109  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

95 },
96
97 getSessionWithAnnotations(id: string): SessionWithAnnotations | undefined {
98 const session = sessions.get(id);
99 if (!session) return undefined;
100
101 const sessionAnnotations = Array.from(annotations.values()).filter(
102 (a) => a.sessionId === id
103 );
104
105 return {
106 ...session,
107 annotations: sessionAnnotations,
108 };
109 },
110
111 updateSessionStatus(id: string, status: SessionStatus): Session | undefined {
112 const session = sessions.get(id);

Callers 3

getSessionHandlerFunction · 0.70
requestActionHandlerFunction · 0.70
sseHandlerFunction · 0.70

Calls 2

getStoreFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…