MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getSession

Method getSession

server/src/db/si-db.ts:201–209  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

199 }
200
201 async getSession(sessionId: string): Promise<SiSession | null> {
202 const result = await query(
203 "SELECT * FROM si_sessions WHERE session_id = $1",
204 [sessionId]
205 );
206
207 if (result.rows.length === 0) return null;
208 return this.deserializeSession(result.rows[0]);
209 }
210
211 async updateSessionActivity(sessionId: string): Promise<void> {
212 await query(

Callers 6

handleSiUiResourceMethod · 0.80
createSiChatRoutesFunction · 0.80
sendMessageMethod · 0.80
sendMessageStreamMethod · 0.80
terminateSessionMethod · 0.80
createSiHostToolHandlersFunction · 0.80

Calls 2

deserializeSessionMethod · 0.95
queryFunction · 0.85

Tested by

no test coverage detected