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

Function cbm_upsert_yaml_stdio_mcp

src/cli/cli.c:4309–4320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4307#endif
4308
4309static 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
4322static int cbm_remove_yaml_stdio_mcp(const char *binary_path, const char *config_path,
4323 const char *section_key, bool goose_schema) {

Callers 2

cbm_upsert_hermes_mcpFunction · 0.85
cbm_upsert_goose_mcpFunction · 0.85

Tested by

no test coverage detected