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

Function build_missing_project_error

src/mcp/mcp.c:1200–1205  ·  view source on GitHub ↗

Distinct from "unknown project": the caller omitted the project argument * entirely (no recognized key). Name the literal "project" key so the fix is * obvious (#640). Caller must free() result. */

Source from the content-addressed store, hash-verified

1198 * entirely (no recognized key). Name the literal "project" key so the fix is
1199 * obvious (#640). Caller must free() result. */
1200static char *build_missing_project_error(void) {
1201 return heap_strdup("{\"error\":\"missing required argument: project\",\"hint\":\"Pass "
1202 "the project as the \\\"project\\\" argument, e.g. "
1203 "{\\\"project\\\":\\\"<name from list_projects>\\\"}. Run "
1204 "list_projects to see indexed projects.\"}");
1205}
1206
1207/* Pick the right no-store error: a NULL project means the argument was missing
1208 * (clearer message); a non-NULL project that didn't resolve means it's

Callers 1

build_no_store_errorFunction · 0.85

Calls 1

heap_strdupFunction · 0.70

Tested by

no test coverage detected