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

Function cbm_upsert_vibe_mcp

src/cli/cli.c:4489–4499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4487}
4488
4489static int cbm_upsert_vibe_mcp(const char *binary_path, const char *config_path) {
4490 char body[CLI_BUF_8K];
4491 if (!config_path || cbm_build_vibe_mcp_body(binary_path, body, sizeof(body)) != CLI_OK) {
4492 return CLI_ERR;
4493 }
4494 return cbm_toml_upsert_owned_named_array_table(config_path, "mcp_servers", "name",
4495 "codebase-memory-mcp",
4496 body) == CBM_TOML_OWNED_EDIT_OK
4497 ? CLI_OK
4498 : CLI_ERR;
4499}
4500
4501static int cbm_remove_vibe_mcp_owned(const char *binary_path, const char *config_path) {
4502 char body[CLI_BUF_8K];

Callers

nothing calls this directly

Tested by

no test coverage detected