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

Function call_snippet

tests/test_mcp.c:7928–7933  ·  view source on GitHub ↗

Call get_code_snippet and extract inner text content. * Caller must free returned string. */

Source from the content-addressed store, hash-verified

7926/* Call get_code_snippet and extract inner text content.
7927 * Caller must free returned string. */
7928static char *call_snippet(cbm_mcp_server_t *srv, const char *args_json) {
7929 char *raw = cbm_mcp_handle_tool(srv, "get_code_snippet", args_json);
7930 char *text = extract_text_content(raw);
7931 free(raw);
7932 return text;
7933}
7934
7935static bool is_valid_json_response(const char *json) {
7936 if (!json) {

Callers 1

test_mcp.cFile · 0.85

Calls 2

cbm_mcp_handle_toolFunction · 0.85
extract_text_contentFunction · 0.85

Tested by

no test coverage detected