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

Function call_tool

tests/test_incremental.c:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121static char *call_tool(const char *tool, const char *args_fmt, ...) {
122 char args[1024];
123 va_list ap;
124 va_start(ap, args_fmt);
125 vsnprintf(args, sizeof(args), args_fmt, ap);
126 va_end(ap);
127 return cbm_mcp_handle_tool(g_srv, tool, args);
128}
129
130/* Parse integer from JSON response (handles nested MCP envelope) */
131static int count_in_response(const char *resp, const char *key) {

Callers 2

has_functionFunction · 0.70
count_by_labelFunction · 0.70

Calls 1

cbm_mcp_handle_toolFunction · 0.85

Tested by

no test coverage detected