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

Function call_snippet

tests/test_mcp.c:2810–2815  ·  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

2808/* Call get_code_snippet and extract inner text content.
2809 * Caller must free returned string. */
2810static char *call_snippet(cbm_mcp_server_t *srv, const char *args_json) {
2811 char *raw = cbm_mcp_handle_tool(srv, "get_code_snippet", args_json);
2812 char *text = extract_text_content(raw);
2813 free(raw);
2814 return text;
2815}
2816
2817static bool is_valid_json_response(const char *json) {
2818 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