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

Function cbm_agent_registry_env_path

src/cli/cli.c:8108–8117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8106} cbm_agent_registry_context_t;
8107
8108static const char *cbm_agent_registry_env_path(const char *env_name, const char *home,
8109 char *resolved, size_t resolved_size) {
8110 char value[CLI_BUF_1K];
8111 resolved[0] = '\0';
8112 const char *configured = cbm_safe_getenv(env_name, value, sizeof(value), NULL);
8113 return configured && configured[0] &&
8114 cbm_expand_user_path(home, configured, resolved, resolved_size)
8115 ? resolved
8116 : NULL;
8117}
8118
8119static bool cbm_agent_registry_path_exists(const char *path, const void *context) {
8120 (void)context;

Callers 1

Calls 2

cbm_safe_getenvFunction · 0.85
cbm_expand_user_pathFunction · 0.85

Tested by

no test coverage detected