| 292 | } |
| 293 | |
| 294 | static const char *dialect_tool_prefix(cbm_graph_profile_dialect_t dialect) { |
| 295 | switch (dialect) { |
| 296 | case CBM_GRAPH_DIALECT_CLAUDE: |
| 297 | case CBM_GRAPH_DIALECT_QWEN: |
| 298 | case CBM_GRAPH_DIALECT_QODER: |
| 299 | case CBM_GRAPH_DIALECT_CODEBUDDY: |
| 300 | case CBM_GRAPH_DIALECT_FACTORY: |
| 301 | return "mcp__codebase-memory-mcp__"; |
| 302 | case CBM_GRAPH_DIALECT_CODEX: |
| 303 | return ""; |
| 304 | case CBM_GRAPH_DIALECT_GEMINI: |
| 305 | return "mcp_codebase-memory-mcp_"; |
| 306 | case CBM_GRAPH_DIALECT_COPILOT: |
| 307 | return "codebase-memory-mcp/"; |
| 308 | case CBM_GRAPH_DIALECT_OPENCODE: |
| 309 | case CBM_GRAPH_DIALECT_KILO: |
| 310 | case CBM_GRAPH_DIALECT_VIBE: |
| 311 | return "codebase-memory-mcp_"; |
| 312 | case CBM_GRAPH_DIALECT_KIRO: |
| 313 | return "@codebase-memory-mcp/"; |
| 314 | default: |
| 315 | return NULL; |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | static bool tool_identifier(cbm_graph_profile_dialect_t dialect, profile_tool_t tool, char *output, |
| 320 | size_t output_size) { |