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

Function getAllPendingHandler

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

Source from the content-addressed store, hash-verified

437 * GET /pending - Get all pending annotations across all sessions.
438 */
439const getAllPendingHandler: RouteHandler = async (_req, res) => {
440 const sessions = listSessions();
441 const allPending = sessions.flatMap((session) => getPendingAnnotations(session.id));
442 sendJson(res, 200, { count: allPending.length, annotations: allPending });
443};
444
445/**
446 * POST /sessions/:id/action - Request agent action on annotations.

Callers

nothing calls this directly

Calls 3

sendJsonFunction · 0.85
listSessionsFunction · 0.70
getPendingAnnotationsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…