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

Function cbm_json_mcp_owned_command

src/cli/cli.c:1899–1914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1897}
1898
1899static bool cbm_json_mcp_owned_command(const char *command, const char *expected_binary,
1900 const char *previous_managed_binary) {
1901 if (!command || command[0] == '\0') {
1902 return false;
1903 }
1904 if (expected_binary && expected_binary[0] &&
1905 cbm_json_mcp_paths_equal(command, expected_binary)) {
1906 return true;
1907 }
1908 if (previous_managed_binary && previous_managed_binary[0] &&
1909 cbm_json_mcp_paths_equal(command, previous_managed_binary)) {
1910 return true;
1911 }
1912 return strcmp(command, "codebase-memory-mcp") == 0 ||
1913 strcmp(command, "codebase-memory-mcp.exe") == 0;
1914}
1915
1916/* Ownership state beyond the config_json_like enum: the entry has exactly
1917 * OUR schema shape under OUR reserved name, but its command is a concrete

Callers 1

Calls 1

cbm_json_mcp_paths_equalFunction · 0.85

Tested by

no test coverage detected