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

Function tool_identifier

src/cli/agent_profiles.c:319–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319static bool tool_identifier(cbm_graph_profile_dialect_t dialect, profile_tool_t tool, char *output,
320 size_t output_size) {
321 const char *prefix = dialect_tool_prefix(dialect);
322 if (!prefix || tool < PROFILE_TOOL_SEARCH_GRAPH || tool >= PROFILE_TOOL_COUNT || !output ||
323 output_size == 0U) {
324 return false;
325 }
326 int written = snprintf(output, output_size, "%s%s", prefix, tool_base_names[tool]);
327 return written >= 0 && (size_t)written < output_size;
328}
329
330static bool append_yaml_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect,
331 cbm_graph_tier_t tier) {

Callers 5

append_yaml_mcp_toolsFunction · 0.85
append_csv_mcp_toolsFunction · 0.85
append_toml_mcp_toolsFunction · 0.85
render_kiro_profileFunction · 0.85

Calls 1

dialect_tool_prefixFunction · 0.85

Tested by

no test coverage detected