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

Function getAnnotationHandler

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

Source from the content-addressed store, hash-verified

403 * GET /annotations/:id - Get an annotation.
404 */
405const getAnnotationHandler: RouteHandler = async (_req, res, params) => {
406 const annotation = getAnnotation(params.id);
407
408 if (!annotation) {
409 return sendError(res, 404, "Annotation not found");
410 }
411
412 sendJson(res, 200, annotation);
413};
414
415/**
416 * DELETE /annotations/:id - Delete an annotation.

Callers

nothing calls this directly

Calls 3

sendErrorFunction · 0.85
sendJsonFunction · 0.85
getAnnotationFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…