mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 10:48:20 +00:00
Split the PR along the line the review asked for. The request timing and transport fields stay: every mcp.request log line carries handler_duration_ms, response_serialization_ms, cancelled and timed_out, and a search that reaches its deadline logs status=timeout. The behaviour changes go back to the base text and need a separate maintainer decision: stricter jsonrpc/id parsing, dropping "result":null, NULL returns from the response formatters, leaving the stdio loop on a missing response or an input/output failure, the removed blocking-poll fallback, the HTTP 500 path, the daemon session end on a missing response, and the update-notice warning. Their tests go with them. The list_projects sort guard is dropped as well (main has the same fix). cbm_mcp_server_handle formats its three responses with cbm_jsonrpc_format_response directly; a NULL reply still marks the request as an error. The cbm_log_mcp_request checks in tests/test_log.c are back with the new signature, plus checks for the new fields and for status=timeout. clang-format on the new lines. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>