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

Function append_toml_mcp_tools

src/cli/agent_profiles.c:362–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {
364 const profile_tool_t *tools = NULL;
365 size_t count = 0U;
366 tier_tool_set(tier, &tools, &count);
367 for (size_t i = 0U; i < count; i++) {
368 char identifier[160];
369 if (!tool_identifier(dialect, tools[i], identifier, sizeof(identifier)) ||
370 ((leading_items || i > 0U) && !profile_buffer_append(buffer, ", ")) ||
371 !profile_buffer_append(buffer, "\"") || !profile_buffer_append(buffer, identifier) ||
372 !profile_buffer_append(buffer, "\"")) {
373 return false;
374 }
375 }
376 return true;
377}
378
379static bool append_permission_mcp_tools(profile_buffer_t *buffer,
380 cbm_graph_profile_dialect_t dialect,

Callers 2

append_codex_profileFunction · 0.85
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