| 4487 | } |
| 4488 | |
| 4489 | static 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 | |
| 4501 | static int cbm_remove_vibe_mcp_owned(const char *binary_path, const char *config_path) { |
| 4502 | char body[CLI_BUF_8K]; |
nothing calls this directly
no test coverage detected