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

Function deleteAnnotationHandler

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

Source from the content-addressed store, hash-verified

416 * DELETE /annotations/:id - Delete an annotation.
417 */
418const deleteAnnotationHandler: RouteHandler = async (_req, res, params) => {
419 const annotation = deleteAnnotation(params.id);
420
421 if (!annotation) {
422 return sendError(res, 404, "Annotation not found");
423 }
424
425 sendJson(res, 200, { deleted: true, annotationId: params.id });
426};
427
428/**
429 * GET /sessions/:id/pending - Get pending annotations for a session.

Callers

nothing calls this directly

Calls 3

sendErrorFunction · 0.85
sendJsonFunction · 0.85
deleteAnnotationFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…