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:346–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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