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

Function tool_identifier

src/cli/agent_profiles.c:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323static bool tool_identifier(cbm_graph_profile_dialect_t dialect, profile_tool_t tool, char *output,
324 size_t output_size) {
325 const char *prefix = dialect_tool_prefix(dialect);
326 if (!prefix || tool < PROFILE_TOOL_SEARCH_GRAPH || tool >= PROFILE_TOOL_COUNT || !output ||
327 output_size == 0U) {
328 return false;
329 }
330 int written = snprintf(output, output_size, "%s%s", prefix, tool_base_names[tool]);
331 return written >= 0 && (size_t)written < output_size;
332}
333
334static bool append_yaml_mcp_tools(profile_buffer_t *buffer, cbm_graph_profile_dialect_t dialect,
335 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