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

Function cbm_remove_yaml_stdio_mcp

src/cli/cli.c:4322–4331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4320}
4321
4322static 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
4333static 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);

Callers 2

Tested by

no test coverage detected