Agent Chat Room MCP server - Allows multiple Claude Code agents to communicate with each other
Project description
Agent Chat Room MCP Server
Birden fazla Claude Code agent'ının birbirleriyle iletişim kurmasını sağlayan MCP sunucusu. Dosya tabanlı paylaşımlı sohbet odası ile agent'lar mesaj gönderip alabilir.
Ozellikler
- Multi-room destegi: Agent'lar farkli odalarda calisabilir, config degistirmeden room parametresiyle gecis yapar
- Paylasimlı sohbet odası (dosya tabanlı, tüm agent'lar aynı odayı görür)
- Broadcast ve direct mesajlaşma
- Agent katılım/ayrılma takibi
- Mesaj önceliklendirme (urgent/normal/low)
- Stale agent temizleme (5 dk inaktif)
- Thread-safe dosya okuma/yazma (fcntl lock)
- Admin/manager için tüm mesajları okuma
Kurulum
Option 1: Using uvx (Recommended)
{
"mcpServers": {
"agent-chat": {
"command": "uvx",
"args": ["agent-chat-mcp"],
"env": {
"AGENT_CHAT_DIR": "/tmp/agent-chat-room",
"AGENT_CHAT_ROOM": "default"
}
}
}
}
Option 2: Install from Source
cd agent-chat
pip install -e .
Environment Variables
| Degisken | Varsayilan | Aciklama |
|---|---|---|
AGENT_CHAT_DIR |
/tmp/agent-chat-room |
Mesaj ve agent verilerinin saklanacagi dizin |
AGENT_CHAT_ROOM |
default |
Varsayilan oda adi (tool parametresiyle override edilebilir) |
Araclar (Tools)
join_room
Sohbet odasina katil. room parametresi ile farkli odalara katilinabilir.
{"agent_name": "backend", "role": "Backend API Developer", "room": "backend-team"}
send_message
Mesaj gonder (broadcast veya direct).
{
"from_agent": "backend",
"content": "API endpoint'leri hazir",
"to_agent": "frontend",
"expects_reply": true,
"priority": "normal",
"room": "backend-team"
}
read_messages
Yeni mesajlari oku.
{"agent_name": "frontend", "since_id": 5, "unread_only": true, "limit": 10, "room": ""}
list_agents
Odadaki agent'lari listele.
{"agent_name": "backend", "room": "backend-team"}
leave_room
Odadan ayril.
{"agent_name": "backend", "room": "backend-team"}
read_all_messages
Tum mesajlari oku (admin/manager icin).
{"since_id": 0, "limit": 15, "room": ""}
get_last_message_id
Son mesaj ID'sini al (polling icin).
{"agent_name": "backend", "room": ""}
list_rooms
Mevcut odalari ve agent/mesaj sayilarini listele.
{}
clear_room
Odayi temizle (tum mesajlar ve agent kayitlari silinir).
{"room": "backend-team"}
Kullanim Senaryosu
Multi-Agent Gelistirme (Tek Oda)
3 farkli Claude Code instance'i (terminal) acin:
Terminal 1 - Backend Agent:
join_room agent_name="backend" role="Backend API Developer"
send_message from_agent="backend" content="REST API endpointleri hazir, /api/users ve /api/posts"
Terminal 2 - Frontend Agent:
join_room agent_name="frontend" role="Frontend React Developer"
read_messages agent_name="frontend"
send_message from_agent="frontend" to_agent="backend" content="users endpoint'inde pagination var mi?"
Terminal 3 - Manager Agent:
join_room agent_name="manager" role="Project Manager"
read_all_messages
Multi-Room Kullanimi
Agent'lar MCP config'i degistirmeden farkli odalara gecis yapabilir:
# Varsayilan odaya katil
join_room agent_name="backend" role="Backend Dev"
# Farkli bir odaya da katil
join_room agent_name="backend" role="Backend Dev" room="design-review"
# Farkli odalara mesaj gonder
send_message from_agent="backend" content="API hazir" room="default"
send_message from_agent="backend" content="UI feedback'im var" room="design-review"
# Mevcut odalari listele
list_rooms
Nasil Calisiyor
- Her oda
AGENT_CHAT_DIR/<room_name>/altinda ayri dizinde saklanir - Her odanin kendi
messages.jsonveagents.jsondosyasi vardir roomparametresi bos birakilirsaAGENT_CHAT_ROOMenv degeri kullanilir (varsayilan:default)fcntlfile locking ile thread-safe okuma/yazma- 5 dakika inaktif agent'lar otomatik temizlenir
expects_reply: falseile sonsuz mesaj dongusu onlenir
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_chat_mcp-1.0.0.tar.gz.
File metadata
- Download URL: agent_chat_mcp-1.0.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4211f6e90b4d478ec1f8e0ea540c1fa4610cafd1a7fc4786ddf6488c0061c7c4
|
|
| MD5 |
6e062bb6f72961b0c5c06d1ba99b9b57
|
|
| BLAKE2b-256 |
7299d9a09ae18890a099d1528c4d4b14fbbbc2c9c83ca415e51402a51328531d
|
File details
Details for the file agent_chat_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: agent_chat_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44fadc714b02a97cff59a251b75788b40cecb1888aa261a24ccbeefb60b0127a
|
|
| MD5 |
7ce0d3e1e5d087e68280b6fd98323f7e
|
|
| BLAKE2b-256 |
115aa9ac22018034ada1c7136c290182eb4210ab9b1ae8d88d9a3a085b66c4c9
|