| 1897 | } |
| 1898 | |
| 1899 | static 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 |
no test coverage detected