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

Function normalize_project_arg

src/mcp/mcp.c:1416–1428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1414}
1415
1416static char *normalize_project_arg(char *project) {
1417 if (!project || (!strchr(project, '/') && !strchr(project, '\\'))) {
1418 return project;
1419 }
1420
1421 project = canonicalize_repo_path_if_exists(project);
1422 char *normalized = cbm_project_name_from_path(project);
1423 if (normalized) {
1424 free(project);
1425 return normalized;
1426 }
1427 return project;
1428}
1429
1430/* Forward decls — defined below alongside store resolution. */
1431static const char *cache_dir(char *buf, size_t bufsz);

Callers 1

get_project_argFunction · 0.85

Calls 2

Tested by

no test coverage detected