0.9.6.42 adds Server-Sent Events streaming to the MCP servers, a bind_host
parameter for multi-homed deployments, and agent-scoped filtering on
mentisdb_recent_context so each agent can load only its own recent thoughts.
SSE on MCP servers. start_mcp_server and
start_https_mcp_server now return (ServerHandle, SseBroadcaster)
tuples. The GET endpoint serves text/event-stream with live MCP events, and
POST requests auto-broadcast JSON-RPC results and errors. cloudllm_mcp
bumped to 0.3.0. Any SSE-capable MCP client (including Claude Desktop, Hermes, and
web dashboard widgets) can now subscribe to real-time protocol events.
SSE (Server-Sent Events) is the standard browser/webhook-compatible event streaming protocol. All MCP tools — append, search, list, get, bootstrap — now broadcast their JSON-RPC results and errors as SSE events on the GET endpoint. This means:
The MCP server previously bound to 127.0.0.1 by default, inaccessible from
other machines on the network. The new bind_host parameter on
standard_mcp_router — controlled by the MENTISDB_BIND_HOST
env var — allows binding to 0.0.0.0 for multi-homed machines, Docker
containers, or LAN-accessible deployments. Origin validation is skipped on unspecified
addresses (0.0.0.0, ::, ::1) for compatibility with tools that don't send Origin headers.
mentisdb_recent_context now accepts an optional agent_id
parameter. When set, it scans the chain in reverse and returns the last N thoughts
from that specific agent — not the chain's last N thoughts overall. This matters on
multi-agent chains where a specialist's recent work might be buried under 20+ thoughts
from other agents:
// Before: gets the chain's 10 most recent thoughts (mixed agents)
mentisdb_recent_context(last_n=10)
// After: gets the agent's 10 most recent thoughts (scoped)
mentisdb_recent_context(agent_id="orion", last_n=10)
The unfiltered path is unchanged. When agent_id is omitted, behavior is
identical to previous versions.
cargo install mentisdb --force
No migration required. SSE is enabled by default on all MCP server surfaces.