matrix: hive-matrix-mcp crate (daemon+stdio bridge) + harness wiring (#548 phase 3)

This commit is contained in:
damocles 2026-05-29 20:19:39 +02:00 committed by Mara
commit e6c53045ad
16 changed files with 3310 additions and 35 deletions

View file

@ -0,0 +1,36 @@
[package]
name = "hive-matrix-mcp"
edition.workspace = true
version.workspace = true
[lints]
workspace = true
[dependencies]
anyhow.workspace = true
futures-util.workspace = true
matrix-sdk.workspace = true
reqwest.workspace = true
rmcp.workspace = true
schemars.workspace = true
serde.workspace = true
serde_json.workspace = true
tokio.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
# `hive-matrix-daemon` — long-running per-agent matrix-sdk Client +
# sync loop. Holds the unix socket the stdio MCP bridge talks to and
# emits hyperhive wake signals on incoming room events.
[[bin]]
name = "hive-matrix-daemon"
path = "src/main.rs"
# `hive-matrix-mcp` — thin stdio MCP bridge spawned by claude per turn.
# Forwards every tool call to the daemon over /run/hive-matrix.sock,
# returns the daemon's response shape to claude. No matrix-sdk dep at
# this entrypoint — the heavy crate only loads when the daemon binary
# is invoked.
[[bin]]
name = "hive-matrix-mcp"
path = "src/bin/mcp.rs"