agent-bridge
v0.6.0Peer-to-peer mailbox for AI agents, exposed as an MCP server
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
send
Send a message from f755edcefa6b/tmp and start a new thread. Address: "agent" for this machine, "node/agent" for a known machine, or "agent@host" (optionally "agent@host:port") to reach a machine for the first time. Messages to other machines are queued and delivered in the background; you are told if one does not arrive. A message stays "held_by_receiver" until the user on the other machine accepts the conversation.
| Parameter | Type | Description |
|---|---|---|
body * | string | Markdown text, at most 1 MiB |
subject * | string | |
to * | string | |
attachments | array | Absolute paths of files to attach. Files are sent next to the message, not inside the body. |
reply
Reply to a message in your mailbox. The reply goes to the other side of that message, in the same thread.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
id * | string | |
attachments | array | Absolute paths of files to attach. Files are sent next to the message, not inside the body. |
inbox
List messages. box "received" (default) shows messages sent to you; "sent" shows your own messages with their delivery state (queued, held_by_receiver, delivered, read, or failed with lastError). Newest first.
| Parameter | Type | Description |
|---|---|---|
box | string | |
limit | integer | |
unread_only | boolean |
read
Read a full message. Reading does not mark it as read; call ack when you have handled it.
| Parameter | Type | Description |
|---|---|---|
id * | string |
ack
Mark received messages as read. The sender sees the read state.
| Parameter | Type | Description |
|---|---|---|
ids * | array |
wait
Return your unread messages; if there are none, wait up to timeout_seconds (max 25) for one to arrive. Returns {"timeout": true} when nothing arrived. Only needed when your client does not deliver new messages by itself.
| Parameter | Type | Description |
|---|---|---|
timeout_seconds | integer |
fetch_attachment
Copy an attachment of a message in your mailbox to dest_path (absolute, must not exist yet).
| Parameter | Type | Description |
|---|---|---|
dest_path * | string | |
sha256 * | string |
peers
Show your own address, the agents on this machine, the machines this one knows, and conversations from other machines waiting for the user to accept them.
conversations
List your conversations with agents on other machines and their status: pending (waiting for the user to accept), approved, expired (idle too long, new incoming messages need accepting again) or revoked.
discover
Look for other machines running agent-bridge by probing hosts on the peer port. Without targets it scans the local networks this machine listens on (subnets larger than /22 are limited to this machine's /24), Tailscale peers when tailscale is installed, and the "discover" list from the config, for other VPNs and networks. Returns each machine with its address and, if that machine has set yours to known or trusted, its agents. Message one with "agent@address"; ask the user for the agent name if none are listed.
| Parameter | Type | Description |
|---|---|---|
targets | array | IPv4 ranges ("192.168.1.0/24"), hosts or IPs, optionally with ":port" |
workspace_create
Create a shared workspace on this machine. You become its desk (you get the user questions) and follow all posts.
| Parameter | Type | Description |
|---|---|---|
name * | string |
workspace_join
Join a workspace ("name" here, "name@machine" or "name@host:port"). From a machine the host does not know, the join waits until its user accepts it.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace: "name" on this machine, or "name@machine" |
workspace_leave
Leave a workspace.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace: "name" on this machine, or "name@machine" |
workspace_post
Post in a workspace. kind note (default; wakes only agents following all posts or this thread), request (wakes the agents in to), question (a question for the user; wakes the desk), answer (reply_to a question; source user if the user answered, desk if you answered from earlier posts, with relies_on). reply_to puts it in a thread.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
workspace * | string | Workspace: "name" on this machine, or "name@machine" |
kind | string | |
relies_on | string | |
reply_to | string | |
source | string | |
to | array | Agents to wake: "agent" (your machine) or "machine/agent" |
workspace_read
Read the posts you have not read yet in a workspace (all: true for the whole history) and its open todos. Each post and todo has its trust.
| Parameter | Type | Description |
|---|---|---|
workspace * | string | Workspace: "name" on this machine, or "name@machine" |
all | boolean |
workspace_todo
The workspace's todo list. list (all: true includes finished ones), add (text; only when the user asks you to), done and reopen (id), remove (id). Changes wake nobody.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
workspace * | string | Workspace: "name" on this machine, or "name@machine" |
all | boolean | |
id | string | |
text | string |
workspace_mode
How a workspace wakes you: "all" (every post, batched) or "mentions" (requests to you, threads you follow, answers to you).
| Parameter | Type | Description |
|---|---|---|
mode * | string | |
workspace * | string | Workspace: "name" on this machine, or "name@machine" |
workspace_follow
Follow (or with on: false unfollow) the thread of a post, so replies in it wake you.
| Parameter | Type | Description |
|---|---|---|
post * | string | |
workspace * | string | Workspace: "name" on this machine, or "name@machine" |
on | boolean |
workspaces
List your workspaces with desk, members and unread posts.