feat(#2659): serve hive-matrix-mcp over persistent streamable-http, drop stdio bridge

This commit is contained in:
damocles 2026-07-23 20:20:51 +02:00 committed by mara
commit a66b7ab298
21 changed files with 411 additions and 856 deletions

View file

@ -1,14 +1,17 @@
//! `hive-matrix-mcp` library: shared types + helpers used by both the
//! `hive-matrix-daemon` binary (long-running matrix-sdk Client) and the
//! `hive-matrix-mcp` binary (stdio MCP bridge claude spawns per turn).
//!
//! The wire protocol between the two binaries lives in [`protocol`].
//! Path helpers (token file, daemon socket) live in [`paths`].
//! Shared library for the `hive-matrix-daemon` binary — the only binary
//! this crate produces. The daemon owns the per-account matrix-sdk
//! `Client` registry (built at startup, one per configured account) and
//! serves its MCP tools directly over streamable-http (see [`mcp`]) —
//! no stdio bridge, no per-turn respawn, no round-trip unix socket.
//!
//! Architecture rationale and tool surface mirror the existing
//! `damocles-daemon` v0 set.
pub mod accounts;
pub mod client;
pub mod handlers;
pub mod mcp;
pub mod paths;
pub mod protocol;
pub mod timeline;
pub mod wake;