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

Function handle_atlas_flows

src/ui/http_server.c:2930–2938  ·  view source on GitHub ↗

GET /api/flows?project=X — ranked entry→terminal flows. */

Source from the content-addressed store, hash-verified

2928
2929/* GET /api/flows?project=X — ranked entry→terminal flows. */
2930static void handle_atlas_flows(cbm_http_conn_t *c, const cbm_http_req_t *req) {
2931 char project[256] = {0};
2932 cbm_store_t *store = atlas_open_project(c, req, project, sizeof(project));
2933 if (!store)
2934 return;
2935 char *json = cbm_atlas_flows_json(store, project);
2936 cbm_store_close(store);
2937 atlas_reply_json(c, json, 500, "{\"error\":\"flow computation failed\"}");
2938}
2939
2940/* GET /api/flow?project=X&id=N — one flow's steps. */
2941static void handle_atlas_flow(cbm_http_conn_t *c, const cbm_http_req_t *req) {

Callers 1

dispatch_requestFunction · 0.85

Calls 4

atlas_open_projectFunction · 0.85
cbm_atlas_flows_jsonFunction · 0.85
cbm_store_closeFunction · 0.85
atlas_reply_jsonFunction · 0.85

Tested by

no test coverage detected