MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / touchSession

Function touchSession

src/server/http.ts:62–67  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

60 const sessions = new Map<string, SessionEntry>();
61
62 function touchSession(sessionId: string): void {
63 const session = sessions.get(sessionId);
64 if (session) {
65 session.lastActivity = Date.now();
66 }
67 }
68
69 function createSessionServer(): { server: Server; transport: StreamableHTTPServerTransport } {
70 const server = createServer(

Callers 1

startHttpServerFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected