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

Function search_code_scan_error

src/mcp/mcp.c:9847–9863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9845
9846#ifdef _WIN32
9847static char *search_code_scan_error(search_scratch_t *scratch, const char *output_path,
9848 bool has_path_filter, cbm_regex_t *path_regex, char *root_path,
9849 char *pattern, char *project, char *file_pattern,
9850 const char *message) {
9851 if (output_path && output_path[0]) {
9852 (void)cbm_unlink(output_path);
9853 }
9854 search_scratch_close(scratch);
9855 if (has_path_filter) {
9856 cbm_regfree(path_regex);
9857 }
9858 free(root_path);
9859 free(pattern);
9860 free(project);
9861 free(file_pattern);
9862 return cbm_mcp_text_result(message, true);
9863}
9864#endif
9865
9866static char *handle_search_code(cbm_mcp_server_t *srv, const char *args) {

Callers 1

handle_search_codeFunction · 0.85

Calls 4

cbm_unlinkFunction · 0.85
search_scratch_closeFunction · 0.85
cbm_regfreeFunction · 0.85
cbm_mcp_text_resultFunction · 0.85

Tested by

no test coverage detected