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

Function validate_search_args

src/mcp/mcp.c:15925–15933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15923}
15924
15925static bool validate_search_args(const char *root_path, const char *file_pattern) {
15926 if (!validate_search_path_arg(root_path)) {
15927 return false;
15928 }
15929 if (file_pattern && !validate_search_path_arg(file_pattern)) {
15930 return false;
15931 }
15932 return true;
15933}
15934
15935/* Private scratch for one search_code scan: the grep -f pattern file and the
15936 * scoped file list.

Callers 1

handle_search_codeFunction · 0.85

Calls 1

validate_search_path_argFunction · 0.85

Tested by

no test coverage detected