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

Function schema_record_compare

src/mcp/mcp.c:3733–3743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3731} mcp_schema_record_t;
3732
3733static int schema_record_compare(const void *left, const void *right) {
3734 const mcp_schema_record_t *a = left;
3735 const mcp_schema_record_t *b = right;
3736 if (a->node != b->node) {
3737 return a->node ? -1 : 1;
3738 }
3739 if (a->count != b->count) {
3740 return a->count > b->count ? -1 : 1;
3741 }
3742 return strcmp(a->name ? a->name : "", b->name ? b->name : "");
3743}
3744
3745static char *handle_get_graph_schema(cbm_mcp_server_t *srv, const char *args) {
3746 char *project = get_project_arg(args);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected