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

Function prose_search

tests/test_mcp.c:23687–23701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23685}
23686
23687static char *prose_search(cbm_mcp_server_t *srv, const char *proj, const char *query) {
23688 char req[512];
23689 snprintf(req, sizeof(req),
23690 "{\"jsonrpc\":\"2.0\",\"id\":518,\"method\":\"tools/call\","
23691 "\"params\":{\"name\":\"search_graph\","
23692 "\"arguments\":{\"project\":\"%s\",\"query\":\"%s\",\"limit\":10}}}",
23693 proj, query);
23694 char *resp = cbm_mcp_server_handle(srv, req);
23695 if (!resp) {
23696 return NULL;
23697 }
23698 char *inner = extract_text_content(resp);
23699 free(resp);
23700 return inner;
23701}
23702
23703TEST(bm25_finds_section_by_its_prose_issue518) {
23704 cbm_mcp_server_t *srv = setup_prose_search_server("prose518");

Callers 1

test_mcp.cFile · 0.85

Calls 2

cbm_mcp_server_handleFunction · 0.85
extract_text_contentFunction · 0.85

Tested by

no test coverage detected