hive-matrix-mcp: surface the inviter and topic in list_invites
This commit is contained in:
parent
d81fb2236f
commit
8b6b735a20
3 changed files with 30 additions and 12 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue