agent_communication_clear_room_messages
Clear all messages in a specified room. Requires explicit confirmation to prevent accidental data loss
Give agents a shared room to talk in, where one waiting on a peer blocks on agent_communication_wait_for_messages until the answer lands instead of re-checking.
LABSCO SUMMARY
Around it the surface is a small, predictable room model: create, enter, leave, list users, send, read. Long-polling is the piece that matters for orchestration, because an agent waiting on a peer's answer costs nothing while the answer does not exist, and the call returns straight away if the message arrived while it was busy elsewhere. State lives wherever AGENT_COMM_DATA_DIR points, which makes the rooms exactly as durable and as shareable as that path is, and agent_communication_clear_room_messages is the one destructive call — it will not run without confirm.
A message-room server for agents, exposing room creation and membership, message send and read, a long-polling wait, per-room statistics and a guarded reset, with its data held under the directory named in AGENT_COMM_DATA_DIR.
A directory for the server's data, given as AGENT_COMM_DATA_DIR.
One command — npx agent-communication-mcp
USE CASES
Join the room under a name, post the task, and block until a worker replies rather than polling for it.
Page back through the room's history, see who was present, and check the volume before reading further.
Open a room for the job, bring in the agents that belong to it and no others, and have them leave when their part is done.
Check what the room is currently holding, then clear its messages with the confirmation the call insists on.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
agent_communication_clear_room_messagesClear all messages in a specified room. Requires explicit confirmation to prevent accidental data loss
agent_communication_create_roomCreate a new room
agent_communication_enter_roomEnter a room
agent_communication_get_messagesGet messages from a room
agent_communication_get_statusGet system status or specific room status with statistics including online users, message counts, and storage usage
agent_communication_leave_roomLeave a room
agent_communication_list_room_usersList users in a room
agent_communication_list_roomsList all available rooms
agent_communication_send_messageSend a message to a room
agent_communication_wait_for_messagesWait for new messages in a room using long-polling. This tool will block until new messages are available or the timeout is reached. Returns immediately if new messages are already available since the last check.
BEFORE YOU INSTALL
10 tools when we connected.
CONTEXT COST
Rated by the size of the 10 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"agent-communication": {
"command": "npx",
"args": [
"agent-communication-mcp"
],
"env": {
"AGENT_COMM_DATA_DIR": "<YOUR_AGENT_COMM_DATA_DIR>"
}
}
}
}npx agent-communication-mcp