Skip to main content

Module http_server

Module http_server 

Source
Expand description

HTTP search server for semantic-memory-mcp.

A minimal HTTP server that exposes the most-used semantic-memory operations over a local TCP port. Runs alongside the stdio MCP transport so the same warm process serves both MCP clients and HTTP clients (hooks, benchmarks, scripts).

Endpoints: POST /search {“query”: “…”, “top_k”: 10} -> search results POST /stats {} -> DB stats POST /add {“content”: “…”, “namespace”: “…”, “source”: “…”} -> authority receipt GET /health -> {“ok”: true}

Functions§

start_http_server