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

Function build_missing_project_error

src/mcp/mcp.c:2773–2778  ·  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

2771 * entirely (no recognized key). Name the literal "project" key so the fix is
2772 * obvious (#640). Caller must free() result. */
2773static char *build_missing_project_error(void) {
2774 return heap_strdup("{\"error\":\"missing required argument: project\",\"hint\":\"Pass "
2775 "the project as the \\\"project\\\" argument, e.g. "
2776 "{\\\"project\\\":\\\"<name from list_projects>\\\"}. Run "
2777 "list_projects to see indexed projects.\"}");
2778}
2779
2780/* Pick the right no-store error: a NULL project means the argument was missing
2781 * (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