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

Function application_index_run_sync

src/daemon/application.c:2721–2730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2719 "index finished (client cancel, call deadline or disconnect). " CBM_MCP_INDEX_ASYNC_HINT
2720
2721static char *application_index_run_sync(cbm_daemon_application_session_t *session,
2722 const char *root_path, const char *args_json) {
2723 char *project_key = application_index_project_key(root_path, args_json);
2724 bool notice =
2725 project_key && application_index_take_cut_short(session->application, project_key);
2726 safe_free(project_key);
2727 char *response = application_index_execute_sync(session, root_path, args_json);
2728 return notice ? cbm_mcp_tool_result_add_notice(response, APPLICATION_CUT_SHORT_NOTICE)
2729 : response;
2730}
2731
2732static char *application_index_async_response(const char *project_key, const char *state,
2733 bool joined) {

Callers 1

Tested by

no test coverage detected