| 4307 | #endif |
| 4308 | |
| 4309 | static int cbm_upsert_yaml_stdio_mcp(const char *binary_path, const char *config_path, |
| 4310 | const char *section_key, bool goose_schema) { |
| 4311 | char block[CLI_BUF_8K]; |
| 4312 | if (!config_path || !section_key || |
| 4313 | cbm_build_yaml_stdio_mcp_block(binary_path, goose_schema, block, sizeof(block)) != CLI_OK) { |
| 4314 | return CLI_ERR; |
| 4315 | } |
| 4316 | return cbm_yaml_upsert_owned_mapping_entry(config_path, section_key, "codebase-memory-mcp", |
| 4317 | block) == CBM_YAML_IDENTITY_EDIT_OK |
| 4318 | ? CLI_OK |
| 4319 | : CLI_ERR; |
| 4320 | } |
| 4321 | |
| 4322 | static int cbm_remove_yaml_stdio_mcp(const char *binary_path, const char *config_path, |
| 4323 | const char *section_key, bool goose_schema) { |
no test coverage detected