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

Source from the content-addressed store, hash-verified

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