AgentRadio MCP
AgentRadio MCP (Python)
Cursor エージェントに AgentRadio のプリミティブ(create_thread、send_message、wait_for_mention)を提供する Python 製 MCP サーバーです。これにより、異なるワークスペースのエージェントが共有ラジオチャネルを介して同じ問題に取り組めます。
これは Coral-Protocol/AgentRadio(論文)の通信レイヤーの Python 移植版です。Java の coral-server.jar や Harbor 実験ハーネスは実行しません。同じ 3 つのプリミティブに加えて join/list/read を、すべての Cursor ワークスペースから参照できる共有 SQLite ストア上に実装します。
なぜ存在するのか
AgentRadio の洞察: エージェントは耳を傾けながら作業を続けるべきです。元の論文ではバックグラウンドの wait_for_mention プロセスを使用していました。Cursor は同じ方法でそのウォッチャーを公開していないため、このサーバーは次のようにします。
プリミティブを Cursor エージェントが呼び出せる MCP ツールとして公開します。
ワークスペース間で状態を共有します(1 つの SQLite ファイル、または 1 つの HTTP ハブ)。
各エージェントに(MCP 命令を介して)作業ステップの合間に
wait_for_mentionをポーリングするよう指示します。
2 つの Cursor ウィンドウ(たとえば frontend と backend)が同じチャネルに参加し、計画スレッドを開き、コーディングを続けながら発見事項をやり取りします。
Related MCP server: swarm-mcp
インストール
cd agentradio-mcp
python3 -m pip install -e .Python 3.10+ と mcp 1.21–1.x が必要です。
チャネルを共有する 2 つの方法
A. 同じマシン、複数ワークスペース(最も簡単)
各ワークスペースは独自の stdio MCP プロセスを実行します。すべてが ~/.agentradio/radio.db を開くため、同じスレッドを参照できます。
各ワークスペースの .cursor/mcp.json に異なる AGENTRADIO_AGENT_ID を設定します:
{
"mcpServers": {
"agentradio": {
"command": "python3",
"args": ["-m", "agentradio_mcp"],
"env": {
"AGENTRADIO_AGENT_ID": "frontend",
"AGENTRADIO_CHANNEL": "my-app",
"AGENTRADIO_WORKSPACE": "web"
}
}
}
}もう一方のワークスペースでは "backend" / "api" を使用します。AGENTRADIO_CHANNEL は同じままにします。
cursor-rules/agentradio.mdc を各ワークスペースに .cursor/rules/agentradio.mdc としてコピーして、エージェントが実際にラジオを使うようにします。
B. 1 つの HTTP ハブ(複数のワークスペースが 1 つの設定を共有する場合に最適)
単一のプロセスを起動します:
python3 -m agentradio_mcp --http --host 127.0.0.1 --port 8765または examples/start-hub.sh。
その後、すべてのワークスペース(またはユーザーレベルの ~/.cursor/mcp.json)で同じ設定を使用できます:
{
"mcpServers": {
"agentradio": {
"url": "http://127.0.0.1:8765/mcp"
}
}
}各エージェントは自身の agent_id を指定して join_radio を呼び出します。これにより、共有された 1 つの MCP URL でも個別の ID を維持できます。
Cursor の設定 → MCP → サーバーを追加し、MCP をリロードします。
ツール
Tool | 機能 |
| このワークスペースをチャネルに登録します。 |
| チャネルに誰がいるか(および誰が失効しているか)を表示します。 |
| 名前付き会話を開きます。participants が空の場合 = 現在参加している全員。 |
| メッセージを追加してすぐに返します。テキスト内の |
| メンションされるか、新しい表示可能なメッセージが届くか、タイムアウトするまでブロックします。常に完全な状態ダンプを返します。 |
| 表示できるエージェント、スレッド、メッセージのスナップショット。 |
| このエージェントを切断済みとしてマークします。履歴は残ります。 |
リソース: agentradio://state、agentradio://protocol。
エージェントの作業方法
frontend/backend/agent-1/ … としてjoin_radioを呼び出します。list_agents— ピアを待つか、ピアが参加するスレッドを開始します。作業を続けます。ステップの合間に
wait_for_mention(8〜15 秒)またはtimeout_ms=0を使用します。進めながら共有します。接頭辞
FYI:(返信不要)、URGENT:(今すぐ処理)を使用します。コンテキストが長くなったら、
read_stateを呼び出し、実際のメッセージから証拠をコピーします。
オプションの 5 フェーズプロトコル(論文より)は MCP 命令に含まれています: 探索 → 分割して APPROVE を得る → 作業ログ付きで実行 → レビュー → 全会一致の APPROVE 後にのみアセンブラが提出します。
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 frontend環境変数 / フラグ | デフォルト | 意味 |
|
| 共有 SQLite ファイル |
|
| ルーム名(チームを分離) |
| unset | 最初のツール呼び出し時にこの ID で自動参加 |
| cwd basename |
|
|
| HTTP バインド |
|
| HTTP ポート |
テスト
python3 -m pip install -e ".[dev]"
python3 -m pytestこれは何ではないか
SWE-Atlas / Harbor の 4 エージェント実験ランナーではありません。
Coral Code(製品)ではありません。
分離されたクラウド VM が、同じ HTTP ハブまたは SQLite パスに到達できない限り、通信する手段ではありません。クラウドエージェントの場合は、全エージェントが到達できるホスト上でハブを実行し、各エージェントの MCP
urlをそのハブに指定してください。
ライセンス
Apache-2.0。LICENSE と 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