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

Function mcp_command_hook_probe

tests/test_mcp.c:203–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203static bool mcp_command_hook_probe(void *context, const char *command) {
204 mcp_command_hook_probe_t *probe = context;
205 if (!probe || !command) {
206 return false;
207 }
208 if (strstr(command, "merge-base")) {
209 probe->merge_base_calls++;
210 return !probe->reject_merge_base;
211 }
212 probe->diff_calls++;
213 return true;
214}
215
216static bool mcp_search_command_hook_probe(void *context, const char *command) {
217 mcp_search_command_probe_t *probe = context;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected