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

Function append_csv_mcp_tools

src/cli/agent_profiles.c:350–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350static bool append_csv_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect,
351 cbm_graph_tier_t tier) {
352 const profile_tool_t *tools = NULL;
353 size_t count = 0U;
354 tier_tool_set(tier, &tools, &count);
355 for (size_t i = 0U; i < count; i++) {
356 char identifier[160];
357 if (!tool_identifier(dialect, tools[i], identifier, sizeof(identifier)) ||
358 (i > 0U && !profile_buffer_append(buffer, ",")) ||
359 !profile_buffer_append(buffer, identifier)) {
360 return false;
361 }
362 }
363 return true;
364}
365
366static bool append_toml_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect,
367 cbm_graph_tier_t tier, bool leading_items) {

Callers 1

render_profile_textFunction · 0.85

Calls 3

tier_tool_setFunction · 0.85
tool_identifierFunction · 0.85
profile_buffer_appendFunction · 0.85

Tested by

no test coverage detected