| 3731 | } mcp_schema_record_t; |
| 3732 | |
| 3733 | static 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 | |
| 3745 | static char *handle_get_graph_schema(cbm_mcp_server_t *srv, const char *args) { |
| 3746 | char *project = get_project_arg(args); |
nothing calls this directly
no outgoing calls
no test coverage detected