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

Function upsert_context_fixture_node

tests/test_mcp.c:23954–23967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23952}
23953
23954static bool upsert_context_fixture_node(cbm_mcp_server_t *srv) {
23955 cbm_store_t *st = cbm_mcp_server_store(srv);
23956 if (!st) {
23957 return false;
23958 }
23959 cbm_node_t node = {.project = "test-project",
23960 .label = "Section",
23961 .name = "long",
23962 .qualified_name = "test-project.long",
23963 .file_path = "long.md",
23964 .start_line = 1,
23965 .end_line = CTX_FIXTURE_LINES};
23966 return cbm_store_upsert_node(st, &node) > 0;
23967}
23968
23969static char *search_code_with_context(cbm_mcp_server_t *srv, const char *context_value) {
23970 char req[256];

Callers 1

test_mcp.cFile · 0.85

Calls 2

cbm_mcp_server_storeFunction · 0.85
cbm_store_upsert_nodeFunction · 0.85

Tested by

no test coverage detected