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

Function call_tool

tests/test_incremental.c:136–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136static char *call_tool(const char *tool, const char *args_fmt, ...) {
137 char args[1024];
138 va_list ap;
139 va_start(ap, args_fmt);
140 vsnprintf(args, sizeof(args), args_fmt, ap);
141 va_end(ap);
142 return cbm_mcp_handle_tool(g_srv, tool, args);
143}
144
145/* Parse integer from a tool response (handles the nested MCP envelope).
146 * Matches the JSON forms "key":N / \"key\":N and the TOON scalar `key: N`

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