| 360 | } |
| 361 | |
| 362 | static 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 | |
| 379 | static bool append_permission_mcp_tools(profile_buffer_t *buffer, |
| 380 | cbm_graph_profile_dialect_t dialect, |
no test coverage detected