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

Function auto_watch_enabled

src/mcp/mcp.c:11177–11182  ·  view source on GitHub ↗

auto_watch config: gates background watcher registration (default on). * Multi-project users can contain a session to its own project with * `config set auto_watch false`. */

Source from the content-addressed store, hash-verified

11175 * Multi-project users can contain a session to its own project with
11176 * `config set auto_watch false`. */
11177static bool auto_watch_enabled(cbm_mcp_server_t *srv) {
11178 if (!srv->config) {
11179 return true; /* default on */
11180 }
11181 return cbm_config_get_bool(srv->config, CBM_CONFIG_AUTO_WATCH, true);
11182}
11183
11184/* Register the session project with the background watcher for ongoing
11185 * change detection — unless auto_watch is disabled. */

Callers 1

Calls 1

cbm_config_get_boolFunction · 0.85

Tested by

no test coverage detected