| 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) { |
| 4324 | char block[CLI_BUF_8K]; |
| 4325 | if (!config_path || !section_key || |
| 4326 | cbm_build_yaml_stdio_mcp_block(binary_path, goose_schema, block, sizeof(block)) != CLI_OK) { |
| 4327 | return CLI_ERR; |
| 4328 | } |
| 4329 | return cbm_yaml_remove_owned_mapping_entry(config_path, section_key, "codebase-memory-mcp", |
| 4330 | block); |
| 4331 | } |
| 4332 | |
| 4333 | static int cbm_upsert_hermes_mcp(const char *binary_path, const char *config_path) { |
| 4334 | return cbm_upsert_yaml_stdio_mcp(binary_path, config_path, "mcp_servers", false); |
no test coverage detected