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

Function i1690_search

tests/test_mcp.c:9359–9363  ·  view source on GitHub ↗

#1690: the installed skill tells an agent to pass its absolute working * directory (or the list_projects name whose root_path contains it) as * `project`, never a guessed repo or folder name. A path-shaped project used to * be turned into the path-DERIVED name only, so it missed a checkout indexed * under an explicit name and every directory below an indexed root: the agent * got "project not

Source from the content-addressed store, hash-verified

9357 * called; the deepest owning root wins, and two owners of one root are never
9358 * guessed between. */
9359static char *i1690_search(cbm_mcp_server_t *srv, const char *project) {
9360 char args[CBM_SZ_4K];
9361 snprintf(args, sizeof(args), "{\"project\":\"%s\",\"name_pattern\":\".*_fn_1690\"}", project);
9362 return cbm_mcp_handle_tool(srv, "search_graph", args);
9363}
9364
9365static char *i1690_index(cbm_mcp_server_t *srv, const char *repo, const char *name) {
9366 char args[CBM_SZ_4K];

Callers 1

test_mcp.cFile · 0.85

Calls 1

cbm_mcp_handle_toolFunction · 0.85

Tested by

no test coverage detected