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

Function mcp_quarantine_hook_probe

tests/test_mcp.c:191–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189} mcp_search_cache_t;
190
191static bool mcp_quarantine_hook_probe(void *context, const char *step) {
192 mcp_quarantine_hook_probe_t *probe = context;
193 if (!probe || !step) {
194 return false;
195 }
196 int event = probe->call_count++;
197 if (event >= 0 && event < 4) {
198 snprintf(probe->steps[event], sizeof(probe->steps[event]), "%s", step);
199 }
200 return !probe->deny_step || strcmp(probe->deny_step, step) != 0;
201}
202
203static bool mcp_command_hook_probe(void *context, const char *command) {
204 mcp_command_hook_probe_t *probe = context;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected