AgentRadio MCP
AgentRadio MCP (Python)
Ein Python-MCP-Server, der Cursor-Agenten die AgentRadio-Primitive bereitstellt — create_thread, send_message, wait_for_mention — damit Agenten in verschiedenen Workspaces über einen gemeinsamen Funkkanal am selben Problem arbeiten können.
Dies ist ein Python-Port der Kommunikationsschicht von Coral-Protocol/AgentRadio (Paper). Es führt nicht die Java-coral-server.jar oder die Harbor-Experiment-Harness aus. Es implementiert dieselben drei Primitive, plus join/list/read, auf einem gemeinsamen SQLite-Speicher, den jeder Cursor-Workspace sehen kann.
Warum es das gibt
AgentRadios Erkenntnis: Agenten sollten weiterarbeiten, während sie zuhören. Das ursprüngliche Paper verwendete einen Hintergrundprozess wait_for_mention. Cursor stellt diesen Watcher nicht auf dieselbe Weise bereit, daher dieser Server:
Stellt die Primitive als MCP-Tools bereit, die Cursor-Agenten aufrufen können.
Teilt den Zustand über Workspaces hinweg (eine SQLite-Datei oder ein HTTP-Hub).
Weist jeden Agenten (über MCP-Anweisungen) an, zwischen Arbeitsschritten
wait_for_mentionabzufragen.
Zwei Cursor-Fenster — zum Beispiel frontend und backend — treten demselben Kanal bei, öffnen einen Planungs-Thread und tauschen Erkenntnisse aus, während sie weiter programmieren.
Related MCP server: swarm-mcp
Installation
cd agentradio-mcp
python3 -m pip install -e .Benötigt Python 3.10+ und mcp 1.21–1.x.
Zwei Möglichkeiten, einen Kanal zu teilen
A. Gleiche Maschine, mehrere Workspaces (am einfachsten)
Jeder Workspace führt seinen eigenen Stdio-MCP-Prozess aus. Sie öffnen alle ~/.agentradio/radio.db, sodass sie dieselben Threads sehen.
Setze eine andere AGENTRADIO_AGENT_ID in die .cursor/mcp.json jedes Workspace:
{
"mcpServers": {
"agentradio": {
"command": "python3",
"args": ["-m", "agentradio_mcp"],
"env": {
"AGENTRADIO_AGENT_ID": "frontend",
"AGENTRADIO_CHANNEL": "my-app",
"AGENTRADIO_WORKSPACE": "web"
}
}
}
}Im anderen Workspace verwendest du "backend" / "api". Lass AGENTRADIO_CHANNEL unverändert.
Kopiere cursor-rules/agentradio.mdc in jeden Workspace als .cursor/rules/agentradio.mdc, damit Agenten das Funkgerät tatsächlich nutzen.
B. Ein HTTP-Hub (am besten, wenn viele Workspaces eine gemeinsame Konfiguration nutzen)
Starte einen einzelnen Prozess:
python3 -m agentradio_mcp --http --host 127.0.0.1 --port 8765oder examples/start-hub.sh.
Dann kann jeder Workspace (oder deine benutzerweite ~/.cursor/mcp.json) dieselbe Konfiguration verwenden:
{
"mcpServers": {
"agentradio": {
"url": "http://127.0.0.1:8765/mcp"
}
}
}Jeder Agent ruft join_radio mit seiner eigenen agent_id auf. So hat eine gemeinsame MCP-URL trotzdem unterschiedliche Identitäten.
Cursor Settings → MCP → Server hinzufügen, dann MCP neu laden.
Werkzeuge
Tool | Was es tut |
| Registriert diesen Workspace am Kanal. Rufe dies zuerst auf, wenn |
| Wer ist am Kanal (und wer ist veraltet). |
| Öffnet ein benanntes Gespräch. Leere Teilnehmer = alle aktuell Beigetretenen. |
| Hängt eine Nachricht an und kehrt sofort zurück. |
| Blockiert, bis du erwähnt wirst, eine neue sichtbare Nachricht eintrifft oder das Timeout erreicht ist. Gibt immer einen vollständigen Zustandsdump zurück. |
| Momentaufnahme der Agenten, Threads und Nachrichten, die du sehen kannst. |
| Markiert diesen Agenten als getrennt. Der Verlauf bleibt erhalten. |
Ressourcen: agentradio://state, agentradio://protocol.
Wie Agenten arbeiten sollten
join_radioalsfrontend/backend/agent-1/ …list_agents— auf Peers warten oder einen Thread starten, dem sie beitreten werden.Weiterarbeiten. Zwischen den Schritten
wait_for_mention(8–15 s) odertimeout_ms=0.Teile während der Arbeit. Präfix
FYI:(keine Antwort),URGENT:(sofort bearbeiten).Nach einem langen Kontext
read_stateaufrufen und Belege aus den echten Nachrichten übernehmen.
Optionaler Fünf-Phasen-Protokoll (aus dem Paper) in den MCP-Anweisungen: explorieren → aufteilen bis APPROVE → mit Arbeitsprotokoll ausführen → überprüfen → Assembler reicht nur nach einstimmigem APPROVE ein.
CLI
python3 -m agentradio_mcp # stdio (what Cursor launches)
python3 -m agentradio_mcp --http # hub at http://127.0.0.1:8765/mcp
python3 -m agentradio_mcp --dump-state frontendEnv / Flag | Standard | Bedeutung |
|
| Gemeinsame SQLite-Datei |
|
| Raumname (Teams isolieren) |
| nicht gesetzt | Automatisch dieser ID beim ersten Tool-Aufruf beitreten |
| Basisname des cwd | Label in |
|
| HTTP-Bind |
|
| HTTP-Port |
Tests
python3 -m pip install -e ".[dev]"
python3 -m pytestWas dies nicht ist
Nicht der SWE-Atlas-/Harbor-Vier-Agenten-Experiment-Runner.
Nicht Coral Code (das Produkt).
Keine Möglichkeit für isolierte Cloud-VMs, miteinander zu sprechen, es sei denn, sie erreichen denselben HTTP-Hub oder denselben SQLite-Pfad. Für Cloud-Agenten betreibe den Hub auf einem Host, den alle erreichen können, und richte die MCP-
urljedes Agenten darauf aus.
Lizenz
Apache-2.0. Siehe LICENSE und NOTICE.
Available Tools
7 toolscreate_threadC
Open a named conversation. Empty participants includes everyone currently joined.
Inputs: name (required), participants.
join_radioA
Register this Cursor workspace on the shared AgentRadio channel.
Use a stable agent_id per workspace (frontend, backend, mobile, agent-1). Other workspaces see you via list_agents after this call.
Inputs: agent_id (required), workspace.
leave_radioA
Mark this agent disconnected. Messages and threads stay on the channel.
Inputs: no named parameters.
list_agentsA
List every agent that has joined this channel, including offline ones.
Inputs: no named parameters.
read_stateA
Full snapshot of agents, threads, and messages this agent can see.
Inputs: no named parameters.
send_messageA
Append a message and return immediately. Mentions wake those agents' wait_for_mention.
Inputs: content (required), thread_id (required), mentions.
wait_for_mentionA
Wait until you are mentioned, a new visible message arrives, or timeout_ms elapses.
The payload always includes the full channel state. After it returns, keep working and call again between steps (Cursor has no background watcher).
Inputs: timeout_ms, wake_on_any_new_message.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct action (join, leave, list, create, send, wait, read_state). Minor overlap exists between read_state and wait_for_mention since both expose channel state, but one is a blocking wait and the other is an immediate snapshot. create_thread and send_message could be confused regarding whether creating a thread implies an initial message.
All tool names follow a consistent verb_noun snake_case pattern: join_radio, leave_radio, list_agents, create_thread, send_message, wait_for_mention, read_state. No mixed conventions or vague verbs.
Seven tools is well-scoped for an agent radio channel: lifecycle (join/leave), discovery (list_agents), conversation (create_thread/send_message), reactive waiting (wait_for_mention), and state inspection (read_state). Each tool earns its place without redundancy.
The core channel workflow is covered: join, leave, list participants, create threads, send messages, wait for mentions, and read state. Minor gaps include no explicit way to leave a thread or retrieve only a specific thread's messages, but read_state provides full visibility so agents can work around these.
Maintenance
Related MCP Connectors
Remote MCP server for The Colony — a social network for AI agents (posts, DMs, search, marketplace).
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Official Airtable MCP server — database and operations layer for agents.
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceLocal-first MCP server that enables multiple Claude agents to coordinate through a shared message bus with SQLite persistence and real-time clock anchoring.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that lets multiple coding-agent sessions on the same machine discover each other and collaborate through a shared SQLite database.1MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that provides shared, real-time context across multiple AI agents via WebSocket and MCP resource notifications, enabling collaborative workspaces, memory, tasks, and messaging.2MIT
- AlicenseAqualityDmaintenanceMCP server for inter-agent communication. Gives multiple Claude Code sessions a shared message board, agent registry, and orchestration layer — backed by a cloud relay so agents can coordinate across machines, repos, and teams.851 npm1MIT