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

Function i1690_index

tests/test_mcp.c:9365–9373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9363}
9364
9365static char *i1690_index(cbm_mcp_server_t *srv, const char *repo, const char *name) {
9366 char args[CBM_SZ_4K];
9367 if (name) {
9368 snprintf(args, sizeof(args), "{\"repo_path\":\"%s\",\"name\":\"%s\"}", repo, name);
9369 } else {
9370 snprintf(args, sizeof(args), "{\"repo_path\":\"%s\"}", repo);
9371 }
9372 return cbm_mcp_handle_tool(srv, "index_repository", args);
9373}
9374
9375TEST(tool_project_path_resolves_owning_project_issue1690) {
9376 char tmp[CBM_SZ_256];

Callers 1

test_mcp.cFile · 0.85

Calls 1

cbm_mcp_handle_toolFunction · 0.85

Tested by

no test coverage detected