MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / adr_sections_cb

Function adr_sections_cb

src/mcp/mcp.c:19638–19643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19636} adr_sections_ctx_t;
19637
19638static void adr_sections_cb(void *ctx, const cbm_adr_heading_t *h) {
19639 adr_sections_ctx_t *c = (adr_sections_ctx_t *)ctx;
19640 char hdr[CBM_SZ_1K];
19641 snprintf(hdr, sizeof(hdr), "## %.*s", h->name_len, h->name);
19642 yyjson_mut_arr_add_strcpy(c->doc, c->arr, hdr);
19643}
19644
19645/* ADR "sections" mode: list the section headings of the ADR.
19646 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected