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

Function append_yaml_mcp_tools

src/cli/agent_profiles.c:334–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334static bool append_yaml_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect,
335 cbm_graph_tier_t tier) {
336 const profile_tool_t *tools = NULL;
337 size_t count = 0U;
338 tier_tool_set(tier, &tools, &count);
339 for (size_t i = 0U; i < count; i++) {
340 char identifier[160];
341 if (!tool_identifier(dialect, tools[i], identifier, sizeof(identifier)) ||
342 !profile_buffer_append(buffer, " - ") || !profile_buffer_append(buffer, identifier) ||
343 !profile_buffer_append(buffer, "\n")) {
344 return false;
345 }
346 }
347 return true;
348}
349
350static bool append_csv_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect,
351 cbm_graph_tier_t tier) {

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