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

Function cbm_remove_codex_mcp

src/cli/cli.c:3922–3931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3920}
3921
3922int cbm_remove_codex_mcp(const char *config_path) {
3923 /* #2228: only our table goes; foreign tables found between the markers
3924 * (Codex Desktop appends below a block that ends the file) stay. */
3925 if (!config_path ||
3926 cbm_toml_remove_managed_block_owned(config_path, CODEX_MCP_BEGIN, CODEX_MCP_END,
3927 CODEX_CMM_SECTION "\n") != 0) {
3928 return CLI_ERR;
3929 }
3930 return cbm_remove_codex_legacy_mcp(config_path) >= 0 ? CLI_OK : CLI_ERR;
3931}
3932
3933static int cbm_remove_codex_mcp_owned(const char *binary_path, const char *config_path) {
3934 (void)binary_path;

Callers 2

test_cli.cFile · 0.85

Tested by

no test coverage detected