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

Function cbm_daemon_bootstrap_endpoint_new

src/daemon/bootstrap.c:244–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244cbm_daemon_ipc_endpoint_t *cbm_daemon_bootstrap_endpoint_new(const char *runtime_parent) {
245 char key[CBM_DAEMON_KEY_SIZE];
246 if (!cbm_daemon_rendezvous_key(key)) {
247 return NULL;
248 }
249 /* An explicit parent keeps precedence: it carries the compile-time test
250 * seam and the lifecycle guards' isolated namespace. The override is
251 * resolved HERE, the one function every product endpoint goes through
252 * (daemon, MCP client, local CLI, index worker, activation), so no call
253 * site can silently keep the default. */
254 char override_parent[BOOTSTRAP_PATH_CAP];
255 const char *parent =
256 runtime_parent
257 ? runtime_parent
258 : bootstrap_runtime_parent_override(override_parent, sizeof(override_parent));
259 return cbm_daemon_ipc_endpoint_new(key, parent);
260}
261
262bool cbm_daemon_bootstrap_launch_spec_init(const char *executable_path,
263 cbm_daemon_bootstrap_launch_spec_t *spec_out) {

Callers 9

main_daemon_endpoint_newFunction · 0.85
mainFunction · 0.85
test_cli.cFile · 0.85
cli_scope_host_childFunction · 0.85
cli_scope_fixture_startFunction · 0.85

Tested by 4

cli_scope_host_childFunction · 0.68
cli_scope_fixture_startFunction · 0.68