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

Function getSessionHandler

mcp/src/server/http.ts:349–357  ·  view source on GitHub ↗
(_req, res, params)

Source from the content-addressed store, hash-verified

347 * GET /sessions/:id - Get a session with annotations.
348 */
349const getSessionHandler: RouteHandler = async (_req, res, params) => {
350 const session = getSessionWithAnnotations(params.id);
351
352 if (!session) {
353 return sendError(res, 404, "Session not found");
354 }
355
356 sendJson(res, 200, session);
357};
358
359/**
360 * POST /sessions/:id/annotations - Add annotation to session.

Callers

nothing calls this directly

Calls 3

sendErrorFunction · 0.85
sendJsonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…