Watch
0
0
Fork
You've already forked hyperhive
0

hive-matrix-mcp: surface the inviter and topic in list_invites

This commit is contained in:
damocles 2026-10-04 20:11:24 +02:00 • committed by mara
commit 8b6b735a20
3 changed files with 30 additions and 12 deletions

View file

@ -384,7 +384,8 @@ impl MatrixMcp {
#[tool(
description = "List rooms this agent has been invited to but not yet joined. \
Each row has the room id, canonical alias (when set), and display name. \
Each row has the room id, canonical alias (when set), display name, inviting \
user id, and topic (when set) — enough to judge an invite before accepting. \
Use `resolve_invite` to accept or reject an invite."
)]
async fn list_invites(&self, Parameters(args): Parameters<ListInvitesArgs>) -> String {
@ -392,7 +393,7 @@ impl MatrixMcp {
Ok(c) => c,
Err(e) => return format!("matrix error: {e}"),
};
render(handlers::list_invites(client))
render(handlers::list_invites(client).await)
}
#[tool(