mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-10-25 06:33:13 +08:00
The web server behind the graph UI is now a purpose-built in-house module (src/ui/httpd.c): localhost-only listener, strict HTTP/1.1 parsing with fixed request caps, a per-connection receive deadline, and Connection: close semantics. http_server.c keeps the routing and handlers, rewritten against the new transport API; the public server API and main.c are unchanged. The previously vendored third-party server is removed entirely. Comes with a new 28-test transport + routing suite (tests/test_httpd.c) covering parsing edge cases (strict CRLF, Content-Length limits, raw path matching, percent-decode rules) and live-socket behavior (CORS policy, RPC dispatch, receive deadline, clean shutdown). The security audit scripts now check the new file layout and treat any network call in vendored code as a failure.