Agent Relay
| You want | Do this |
|---|---|
| Let your own mbm2s (other projects, other computers) message each other | Nothing: every mbm2 signed in to the same account is a peer of the others, no token needed (Your Own mbm2s Are Peers) |
| Let Claude Code, Codex, Cursor or another account's mbm2 message your mbm2 team | /team peer add <name> in mbm2, then connect that agent with the command or config it shows (Connect An Agent) |
| See who can message you | /team peer, or p in /team |
| Let peer messages through without approving each one | a in /team (team auto), within the budget |
| Take an agent's access away | /team peer -<name>, or ctrl+d then return on its row in /team peer |
| Keep this mbm2 out of your other mbm2s' lists | /team share off (writes "relay_share": false); /team share on undoes it |
| Never connect to the relay | "relay": false in mbm2.json |
Your Own mbm2s Are Peers
Every mbm2 with an mBm key (mbm2 auth mbm or mbm2 license apply) of the same account and connected to the
relay sees the account's other online mbm2s as peers — in another project on this computer, or on another
computer. There is no token to add. Their workers appear in list_workers as <worker>@<host> <project>
(shown here as name, kind and status; the tool answers JSON) for an agent in mbm2 on devbox, project api:
main session idle
tests session idle
main@laptop web session idle
tests@laptop web session working
main@box api session offline, last seen 5h ago
| Step | What happens |
|---|---|
| 1 | main on devbox calls send_message with to: "main@laptop web". It leaves through the relay at once (never held here) |
| 2 | The mbm2 on laptop receives it from main@devbox api and applies its own team auto and budget: held in its /team while auto is off there, delivered within the budget while it is on |
| 3 | laptop's main reads From main@devbox api: … and answers with send_message to "main@devbox api"; the answer comes back the same way |
| Rule | Detail |
|---|---|
| Same account only | An mbm2 of another account is never listed and cannot be reached this way; use a token peer for it |
| Online | An mbm2 that called the relay in the last 90 s. An offline one is listed with when it was last seen, and a message to it is refused: box api is offline (last seen 5h ago); list_workers shows who is online |
| How often | mbm2 asks the relay for the list every 15 s, so a newly started mbm2 appears within that |
| Permissions | A message is text for the agent's next turn. Nothing answers a permission prompt from another mbm2; it waits for you in that window |
| Opt out | /team share off (or "relay_share": false): the others no longer list or reach this mbm2, and it lists none of them. Token peers still work |
| Same project, same computer | Two windows in one project are one relay instance; they reach each other through the project's team bus as <worker>@<window> (Teamwork) |
/team says how many peers there are (Relay connected · 3 peers · p peers) and, when there is none,
why:
/team line |
Meaning |
|---|---|
no peers — no other mbm2 of your account is signed in to the relay |
Only this mbm2 has registered under the account |
no peers — no other mbm2 of your account is online |
The others have not called the relay in the last 90 s (closed, asleep, offline) |
no peers — not shared with your other mbm2s (relay_share is false; /team share on) |
This mbm2 opted out |
no peers — your other mbm2s could not be listed: … |
The relay refused or failed the list; a relay older than this feature answers 404 Not Found |
What It Is
The agent relay is a store-and-forward service at https://tui.mbm.mn/relay. An agent outside mbm2 — a
peer — calls the relay's MCP endpoint with its own token; your mbm2 keeps one outgoing long poll
to the relay and passes each message to a worker on your team. A worker's answer goes back the same
way. Both sides only make outgoing HTTPS calls, so it works behind NAT and firewalls; nothing
listens on your machine.
peer (Claude Code, Codex, Cursor, another mbm2) your machine
┌──────────────────────────┐ ┌──────────────────────────────────────┐
│ MCP server "mbm2-laptop" │ │ mbm2 (one project) │
│ list_workers │ HTTPS POST /mcp │ │
│ send_message ───────────┼──────────┐ │ /team held ─enter─▶ main │
│ wait_messages ◀─────────┼───────┐ │ │ or auto ────▶ tester │
│ read_messages │ │ ▼ │ claude (term.) │
└──────────────────────────┘ ┌───┴──────────────┐ │ │ │
│ tui.mbm.mn/relay │◀┼── long poll (inbox) ────┘ (mbm2 key) │
│ inbox ▶ mbm2 │ │ │
│ outbox ▶ peer │◀┼── mbm2_team send_message │
└──────────────────┘ │ to: "peer:laptop" │
└──────────────────────────────────────┘
| Step | What happens |
|---|---|
| 1 | The peer calls send_message with to: "main". The relay stores it for your mbm2 and answers Queued |
| 2 | mbm2's long poll returns it; it enters the team bus from peer:laptop, exactly like a worker's message |
| 3 | It waits in /team (auto off) or is delivered at once (auto on, budget left) |
| 4 | main reads From peer:laptop: … and answers with the mbm2_team tool send_message, to: "peer:laptop" |
| 5 | mbm2 posts the answer to the relay; the peer's wait_messages returns it, and the relay deletes it |
This round trip was run live on 2026-11-22 with mbm2 v2.14.63: a peer check sent a message to
main, main (on mbm/deepseek-v4-flash) answered with mbm2_team send_message to peer:check,
and the peer's wait_messages returned PONG from mbm2.
Before You Start
| Need | How to check | Why |
|---|---|---|
| mbm2 v2.14.63 or later | mbm2 --version; mbm2 upgrade updates |
The first release with /team peer and the deployed relay |
| A v2 mBm credential | mbm2 auth mbm (an mBm key) or mbm2 license apply <key>, then start mbm2 again |
mbm2 registers with the relay under the account of that key, read once at start. Without it /team says Relay off — sign in with `mbm2 login` to let other agents message this team |
| The relay on | /team shows Relay connected · … on its second line |
"relay": false in mbm2.json keeps it off |
| mbm2 running in the project | — | Messages reach the workers of the mbm2 that registered. If it is closed they wait on the relay up to 24 hours and arrive when it starts again in the same project |
| The runtime on this machine | Not --attach to another host |
Workers answer with the mbm2_team tools, which need the runtime on this machine (Teamwork) |
| Optional: workers | A workers file, /worker or /claude |
A peer can always message main and user; other names are the workers of the project |
| Optional: team auto and its budget | a in /team; /config → Team auto budget |
With auto off you approve every peer message with return |
One mbm2 is one relay instance, named <host> <project>. A peer token belongs to one instance:
a peer added in project shop-api reaches that project's team only. Starting mbm2 again in the same
project on the same machine reuses the instance, so peers and their tokens survive restarts.
Add A Peer
-
In mbm2, type
/team peer add laptopand pressreturn. A name isa-z,0-9,-and_, at most 32 characters; anything else is refused witha peer name is a-z, 0-9, - and _, at most 32 characters. -
The team panel opens on the new peer, with its token shown this once:
Peer peer:laptop added · its token is shown only now Claude Code: claude mcp add --transport http mbm2-laptop https://tui.mbm.mn/relay/mcp --header "Authorization: Bearer mbr_…" Codex: codex mcp add mbm2-laptop --url https://tui.mbm.mn/relay/mcp --bearer-token-env-var MBM2_LAPTOP_TOKEN then run codex with MBM2_LAPTOP_TOKEN=mbr_… in its environment Token: mbr_0f3c…(64 hex characters) The relay on tui.mbm.mn stores each message's text until it is delivered (at most 24 hours). It is not end-to-end encrypted. c copy Claude Code command · t copy token · esc close · the token is not kept -
Press
cto copy the wholeclaude mcp add …command, ortto copy the token alone. Both go through mbm2's clipboard (the terminal's OSC 52 sequence and the platform's copy tool) and answerCopied to clipboard; a refused copy shows why. The token ismbr_and 64 hex characters. -
Press
esc(orreturn,q). The token is dropped from memory; mbm2 keeps no copy and the relay stores only its SHA-256 hash. Lost it? Revoke the peer and add it again.
| Copy pitfall | Fix |
|---|---|
The claude mcp add … line is over 170 columns, so the panel wraps it in a normal terminal and a mouse copy of it carries the line breaks into the token |
Press c instead: it copies the command as one line |
| The window is narrower than the token (70 columns with its indent) | The token row is never wrapped; it is cut with … and the panel says widen the window or press t. Press t, or widen the window |
c or t answers but the clipboard is empty |
The terminal ignores OSC 52 and no copy tool is found (wl-copy under Wayland, xclip or xsel on Linux; osascript on macOS); see Troubleshooting. Copy the Token: row with the mouse; it stays on one line |
Answer of /team peer add |
Cause |
|---|---|
peer not added: the relay is not connected yet |
mbm2 has not registered yet; wait for Relay connected in /team |
peer not added: add peer laptop: relay: a peer of that name exists; revoke it first |
The name is taken in this instance |
A toast store an mBm key with `mbm2 auth mbm` to let other agents message this team |
No mBm credential |
A toast switched off by `relay: false` in mbm2.json |
The relay is off in settings |
Connect An Agent
Every client connects to the same endpoint:
| Setting | Value |
|---|---|
| URL | https://tui.mbm.mn/relay/mcp (<relay_url>/mcp with a custom relay) |
| Transport | MCP Streamable HTTP: one POST per JSON-RPC request, each answered with one JSON response. There is no server stream: GET is 405 |
| Header | Authorization: Bearer mbr_… |
| Protocol versions | 2025-06-18; 2025-03-26 and 2024-11-05 are echoed when the client asks for them |
Claude Code
claude mcp add --transport http mbm2-laptop https://tui.mbm.mn/relay/mcp \
--header "Authorization: Bearer mbr_<token>"
claude mcp list # mbm2-laptop: https://tui.mbm.mn/relay/mcp (HTTP) - ✓ Connected
The second line's output is Claude Code's own; Unverified: its exact wording in your Claude Code
version. Inside Claude Code, /mcp lists the server and its four tools. Then ask, for example:
Use the mbm2-laptop MCP server. Call list_workers. Then send_message to "main":
"Review internal/cart/fetch.go for missing retries and answer with a short list."
Then call wait_messages with timeout_s 60, and repeat wait_messages until main answers.
Show me main's answer.
wait_messages returns [] when nothing arrived within the timeout; telling the agent to repeat it
keeps it waiting while main works.
Codex
mbm2 prints this command, which keeps the token out of Codex's configuration:
codex mcp add mbm2-laptop --url https://tui.mbm.mn/relay/mcp --bearer-token-env-var MBM2_LAPTOP_TOKEN
MBM2_LAPTOP_TOKEN=mbr_<token> codex
Unverified: Codex's mcp add flags for a streamable HTTP server with a bearer token (--url,
--bearer-token-env-var) were not checked against a current Codex release. If they differ, add an
HTTP MCP server with URL https://tui.mbm.mn/relay/mcp and the header Authorization: Bearer <token> in
Codex's own configuration. Unverified, the same entry in ~/.codex/config.toml:
[mcp_servers.mbm2-laptop]
url = "https://tui.mbm.mn/relay/mcp"
bearer_token_env_var = "MBM2_LAPTOP_TOKEN"
Cursor And Other MCP Clients
Any client that speaks MCP over Streamable HTTP and sends a custom header can connect. Unverified:
the file and key names below are Cursor's mcp.json shape (~/.cursor/mcp.json or
.cursor/mcp.json in a project) and were not checked against a current Cursor release; other clients
use their own keys for the same three values (URL, transport, header).
{
"mcpServers": {
"mbm2-laptop": {
"url": "https://tui.mbm.mn/relay/mcp",
"headers": { "Authorization": "Bearer mbr_<token>" }
}
}
}
A client that only speaks the older HTTP+SSE transport, or that insists on a GET stream, cannot
connect. Unverified: how a client reacts to the relay's 401 (it sends WWW-Authenticate: Bearer, and a
client may try OAuth discovery, which the relay does not serve); a correct token avoids the question.
Raw Calls With curl
The relay accepts plain JSON-RPC 2.0, one request per POST. Batches (a JSON array) are refused.
TOKEN=mbr_<token>
RELAY=https://tui.mbm.mn/relay/mcp
call() { curl -s "$RELAY" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d "$1"; echo; }
| Step | Request body | Answer (abridged) |
|---|---|---|
| Initialize | {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}} |
{"jsonrpc":"2.0","id":1,"result":{"protocolVersion":"2025-06-18","capabilities":{"tools":{}},"serverInfo":{"name":"mbm-relay","version":"1"},"instructions":"You are peer:laptop of an mbm2 workspace. …"}} |
Initialized (a notification: no id) |
{"jsonrpc":"2.0","method":"notifications/initialized"} |
HTTP 202, empty body |
| List tools | {"jsonrpc":"2.0","id":2,"method":"tools/list"} |
{"result":{"tools":[{"name":"list_workers",…},{"name":"send_message",…},{"name":"wait_messages",…},{"name":"read_messages",…}]}} |
| List workers | {"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"list_workers","arguments":{}}} |
{"result":{"content":[{"type":"text","text":"{\"workers\":[{\"name\":\"main\",\"kind\":\"session\",\"status\":\"idle\"}]}"}],"isError":false}} |
| Send | {"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"send_message","arguments":{"to":"main","text":"Reply with PONG."}}} |
{"result":{"content":[{"type":"text","text":"Queued"}],"isError":false}} |
| Wait | {"jsonrpc":"2.0","id":5,"method":"tools/call","params":{"name":"wait_messages","arguments":{"timeout_s":60}}} |
{"result":{"content":[{"type":"text","text":"[{\"id\":\"msg_…\",\"from\":\"main\",\"to\":\"peer:laptop\",\"text\":\"PONG\",\"at\":1763800000000}]"}],"isError":false}} |
| Ping | {"jsonrpc":"2.0","id":6,"method":"ping"} |
{"jsonrpc":"2.0","id":6,"result":{}} |
For example
call '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"send_message","arguments":{"to":"main","text":"Reply with PONG."}}}'.
The relay does not issue an Mcp-Session-Id; every call stands alone, so initialize is not
required before tools/call. A tool's result is always one text block; for list_workers,
wait_messages and read_messages that text is JSON. at is Unix milliseconds.
The Four Tools
| Tool | Input | Result text | Example |
|---|---|---|---|
list_workers |
{} |
The team as mbm2 last published it: {"workers":[{"name","kind","status"}]}; kind is session or terminal, status is working, needs the user, idle or closed. mbm2 sends a change 2 s after it settles. Before the first publish: {"workers":[]} |
{"name":"list_workers","arguments":{}} |
send_message |
{"to": "<worker or user>", "text": "…"}, both required; text at most 16 KiB |
Queued. Over 16 KiB: an error result text exceeds 16 KiB (<n> bytes); split it |
{"name":"send_message","arguments":{"to":"tester","text":"Run go test ./internal/cart/..."}} |
wait_messages |
{"timeout_s": 0..60}, optional; larger values are cut to 60; missing or 0 returns at once |
JSON array of the messages addressed to this peer, oldest first, at most 100; [] after the timeout. Returned messages are deleted from the relay |
{"name":"wait_messages","arguments":{"timeout_s":45}} |
read_messages |
{} |
As wait_messages with no wait |
{"name":"read_messages","arguments":{}} |
| Rule | Detail |
|---|---|
Queued is not delivered |
It means the relay stored the message. Whether a worker gets it is decided in mbm2 (below) |
| Each message is returned once | Two clients waiting with the same token never get the same message |
| A revoke ends a wait | A wait_messages in progress answers the peer token was revoked as an error result |
| The peer sees only | The team's names, kinds and statuses, and the messages addressed to it. Not sessions, files, tasks or other peers |
How A Message Reaches A Worker
A peer's message enters mbm2's team bus from peer:<name> and follows the same rules as a message
one worker sends another (Teamwork).
to |
Team auto off | Team auto on |
|---|---|---|
main or a worker of the project |
held in /team; a toast peer:laptop → main waiting — <leader>shift+i |
Delivered while the budget lasts, then held |
user |
Shown in /team as to you and as a toast peer:laptop → you: <first line> |
The same |
| A name that is not on the team | Not delivered. mbm2 answers the peer, from mbm2, with unknown worker <name>; list_workers shows the team (its next wait_messages returns it) and shows an unknown row in /team |
The same |
peer:<other> |
Dropped: mbm2 never forwards between peers | The same |
Approve In /team
Team messages · auto off — you approve each message
Relay connected · 1 peer · p peers
held peer:laptop → main Review internal/cart/fetch.go for missing retries…
sent main → peer:laptop 1. fetchCart has no retry on 503 …
Review internal/cart/fetch.go for missing retries and answer with a short list.
enter send · d drop · a auto on/off · esc close
| Key | Action |
|---|---|
return |
Deliver the highlighted held message |
d |
Drop it; the peer is not told |
a |
Team auto on or off, saved as team_auto in mbm2.json |
p |
The peers view |
esc, q |
Close |
A worker that is not open gets its tab opened in the background and the message when it takes input. A session tab receives it as a new prompt. Terminal tabs use guarded team delivery.
The Auto Budget
With auto on, every delivered message spends one from the budget: team_auto_budget in mbm2.json,
1 to 1000, default 20, also set with /config → Team auto budget. A return you press in a prompt
refills it. When it runs out while messages wait, /team asks (with the panel closed, a toast
team auto spent its 500 messages; 1 waiting — <leader>shift+i to continue points there):
Auto mode spent its 500 messages · 1 waiting
Continue (+20) Set limit… Stop
←/→ choose · enter confirm · esc close
| Choice | Effect |
|---|---|
Continue (+20) |
Delivers up to another budget's worth now |
Set limit… |
Asks New limit (1-1000):, saves it as team_auto_budget and continues with it |
Stop |
Auto stays on; the waiting messages stay held until you press return on them |
The budget is what stops a peer and a worker from messaging each other without end while you are away.
What The Worker Sees
From peer:laptop:
Review internal/cart/fetch.go for missing retries and answer with a short list.
(Team message. If peer:laptop needs an answer or a result, send it with the mbm2_team send_message tool,
to: "peer:laptop". Do not send acknowledgements or thanks.)
How A Worker Replies
The worker calls the mbm2_team tool send_message with to: "peer:laptop". A reply to a peer is
never held and does not spend the budget; it goes to the relay at once. The worker's
list_workers shows each connected peer as peer:<name>, kind peer, status external agent.
| Tool answer to the worker | When |
|---|---|
Sent to peer:laptop through the relay. Their reply will arrive as a new message. |
Posted to the relay |
the agent relay is not connected; /team shows why |
The relay is off or not connected |
no peer "peer:laptop"; list_workers names them |
Not a current peer (revoked, or a typo) |
A toast peer:laptop: not sent: … in mbm2 |
The relay refused a session worker's reply, for example over 16 KiB: the message is over the relay's 16 KiB |
The reply waits on the relay for the peer's next wait_messages or read_messages, at most 24 hours.
Manage Peers
/team peer (or p in /team) lists your other mbm2s first, then the token peers:
Team peers · Relay connected · 3 peers · p peers
Your other mbm2s (same account, no token needed):
laptop web online · main@laptop web, tests@laptop web
box api offline, last seen 5h ago · main@box api
Token peers (other agents):
peer:ci last seen never
peer:laptop last seen 3m ago
ctrl+d revoke · esc back
ctrl+d revokes only token peers; your own mbm2s have no token to revoke (/team share off takes this
one out of their lists).
| Action | How | Result |
|---|---|---|
| List | /team peer, or p in /team |
Name and last call: never, just now, 3m ago, 5h ago, or a date |
| Revoke from the list | up/down to the row, ctrl+d, then return on Revoke peer:laptop? Its token stops working at once. (esc keeps it) |
Toast revoked peer:laptop; its token no longer works |
| Revoke by name | /team peer -laptop |
The same toast |
| Replace a lost token | Revoke, then /team peer add laptop again |
A new token; update the client |
| Turn the relay off | "relay": false in mbm2.json, then start mbm2 again |
/team shows Relay off; /team peer answers switched off by `relay: false` in mbm2.json |
| Use another relay | "relay_url": "https://relay.example.com/relay" |
Peers then connect to <relay_url>/mcp |
A revoke takes effect on the relay's next call with that token (tokens are never cached) and deletes
the replies still waiting for that peer. A wrong /team peer … shows
Usage: /team peer add <name> adds, /team peer -<name> revokes, /team peer lists.
Settings
Key in mbm2.json[c] |
Default | Effect |
|---|---|---|
relay |
true |
false: never connect |
relay_url |
https://tui.mbm.mn/relay |
Another relay, an http or https URL |
relay_share |
true |
false: your other mbm2s neither list nor message this one, and it lists none of them; /team share off and /team share on write it |
team_auto |
false |
true: team auto on at start |
team_auto_budget |
20 |
Messages auto mode delivers between two of your actions, 1 to 1000 |
See Configuration.
Limits And Privacy
| Limit | Value | Over it |
|---|---|---|
| Message text | 16 KiB (16384 bytes), text only, no attachments | Peer: error result text exceeds 16 KiB (<n> bytes); split it. Worker: the message is over the relay's 16 KiB |
| Request body | 128 KiB | HTTP 413, request body too large |
| Calls | 60 a minute per peer, counting every MCP call (initialize, tools/list, each wait); 60 a minute per mbm2 instance |
HTTP 429 with Retry-After: 60, JSON-RPC error -32000 too many calls, retry later |
| Wait | wait_messages at most 60 s; mbm2's own inbox poll 25 s |
— |
| Undelivered message | Deleted after 24 hours (swept every minute) | Lost; nobody is told |
| Batch | At most 100 messages per wait_messages answer |
The rest come on the next call |
| What the relay stores | How long |
|---|---|
Your instance: account, device id, label <host> <project>, the last team snapshot (names, kinds, statuses) |
Until an operator deletes it |
| Each peer: name, SHA-256 hash of its token, created and last-seen times | Until revoked |
| Each message: sender, target, text, time | Until delivered (then deleted), at most 24 hours |
| Your mBm key | Not stored; its account is cached in memory 5 minutes |
The relay sees and stores message text in the clear until it is delivered: it is not end-to-end
encrypted. Traffic to tui.mbm.mn is HTTPS. Do not send what you would not put in a hosted chat.
The token is the only thing that lets an agent in: treat mbr_… like a password, keep it out of
committed files (Codex's environment variable form helps), and revoke it when a machine is gone.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
The client says 401, a valid peer token is required (JSON-RPC -32001) |
The token was revoked, mistyped, belongs to another relay, or was copied from a wrapped command row, which carries line breaks | Copy with c (the command) or t (the token) in the token view; check the header is exactly Authorization: Bearer mbr_ plus 64 hex characters; revoke and add the peer again if unsure |
The token row ends in … with widen the window or press t |
The window is narrower than the token | Press t, or widen the window; the row is cut, never wrapped |
429, too many calls, retry later |
More than 60 calls in a minute from this peer, usually a client polling read_messages in a loop |
Use wait_messages with a long timeout_s; wait a minute |
413, request body too large |
A request body over 128 KiB | Keep each text under 16 KiB; split long output |
text exceeds 16 KiB (…); split it |
One message over 16 KiB | Split it, or send a summary |
405, the relay offers no server stream; POST JSON-RPC |
The client opened a GET stream (SSE) |
Use the Streamable HTTP transport (--transport http in Claude Code) |
/team shows Relay off — store an mBm key with `mbm2 auth mbm` … |
No v2 mBm credential | mbm2 auth mbm, then start mbm2 again |
/team shows Relay off |
"relay": false, or the credential is missing |
Remove relay: false; check mbm2 auth mbm |
/team shows Relay connected · no peers — … though another of your mbm2s runs |
See the reason after no peers — (Your Own mbm2s Are Peers); the other must be signed in to the same account and connected, and both must share |
mbm2 auth mbm there with a key of the same account; /team share on on both; wait up to 15 s |
/team line 3 says Bus waiting — the workers file has an error: … |
.mbm/workers.json did not load, so no worker and no team tools |
Fix the file (the message names the key); it is read again when you edit it |
Relay retrying — register: relay: the mBm key was refused |
The licence service does not accept the key | mbm2 auth mbm with a valid key |
Relay retrying — … licence service unavailable |
The relay cannot check the key right now | Nothing; mbm2 retries |
Relay retrying — … call: … (a network error) |
No connection to tui.mbm.mn, a proxy, or a wrong relay_url |
mbm2 retries after 1 s, 2 s, 4 s … up to 60 s; it reconnects by itself |
Relay connecting stays |
The first registration has not answered yet | Wait; then see Relay retrying |
The peer got Queued but no worker reacts |
The message is held (auto off), or the budget is spent |
Open /team (<leader>shift+i): return delivers; a turns auto on; answer the budget question |
wait_messages returns a message from mbm2: unknown worker <name>; list_workers shows the team, and /team shows unknown peer:<you> → <name> |
to is not main, user or a worker of this project's workers file |
Call list_workers and send again to a name from it |
The peer got Queued, nothing in /team and no answer |
The mbm2 that registered runs another project, or is not running (the message waits on the relay up to 24 hours) | Add the peer in the right project; start mbm2 there |
wait_messages keeps returning [] |
The worker has not answered yet, did not use mbm2_team send_message to peer:<name>, or is waiting in its own permission prompt |
Look at the worker's tab; ask it to reply with send_message to "peer:laptop" |
| The message waits for a worker that is not open | Its tab is opening in the background | It is delivered when the tab takes input |
| A team message is still in a terminal's input | Submission is manual or was not observed | See Teamwork and check the target tab before submitting |
Worker's reply fails: the agent relay is not connected; /team shows why |
The relay is off or retrying | Fix the relay state above |
Every prompt fails on the m-team-2 tier with model not found |
That tier currently routes to an upstream model that does not exist (row 8.34, open) | Pick another model with /models, for example mbm/deepseek-v4-flash |
| A token was lost | mbm2 keeps no copy | /team peer -<name>, then /team peer add <name> |
FAQ
Can two mbm2 talk to each other? Two of your own (one account): yes, with nothing to set up (Your Own mbm2s
Are Peers). Two of different accounts: each one is a token peer of the other.
Unverified: the token setup has not been run live; the parts it uses (the relay, /mcps remote servers
with headers) are built and the runtime's remote MCP client speaks the same Streamable HTTP the relay serves.
| Step | On mbm2 A (project api) |
On mbm2 B (project web) |
|---|---|---|
| 1 | /team peer add web → copy the token |
/team peer add api → copy the token |
| 2 | /mcps → + Add server → Paste JSON, with B's token (below), named mbm2-web |
/mcps → + Add server → Paste JSON, with A's token, named mbm2-api |
| 3 | Ask main: Use the mbm2-web tools: send_message to "main" asking for the API types the web client needs, then wait_messages with timeout_s 50 until it answers. |
B's main receives From peer:api: … and replies with mbm2_team send_message to "peer:api"; A's wait_messages returns it |
On A, for B's token (the name is your choice; the Form works too: Type Remote, URL, Headers
Authorization=Bearer mbr_<token>, OAuth No):
{
"mbm2-web": {
"type": "remote",
"url": "https://tui.mbm.mn/relay/mcp",
"headers": { "Authorization": "Bearer mbr_<token from B>" },
"timeout": 70000
}
}
The runtime stops an MCP tool call after 60 s unless the server sets timeout (milliseconds), so either
set timeout above 60000 as here or keep timeout_s at 50 or less. The two messages travel
differently: A's question to B is a peer message on B (held or auto under B's rules); B's answer goes
to peer:api, which A's agent picks up with wait_messages.
Does it work behind NAT, a firewall or a VPN? Yes, when both sides can open HTTPS connections to
tui.mbm.mn. Nothing listens on your machine and no port is opened.
What does it cost? The relay counts no tokens and checks no plan: any mBm key the licence service accepts registers. The model work a worker does to answer is billed like any other prompt on its model.
Does mbm2 have to be running? To deliver, yes. Messages to your team wait on the relay up to 24 hours and arrive when mbm2 starts again in the same project; replies wait up to 24 hours for the peer.
Can a peer reach several projects? A token belongs to one mbm2 instance (<host> <project>). Add
a peer in each project; give them different names in the client (mbm2-api, mbm2-web).
What if I run two mbm2 in the same project on the same machine? Both are the same instance and read the same inbox, so a peer's message can reach both. Run one.
Can a peer run commands or read my files? Not through the relay: it can only list the team and send text. What a worker does with that text is the worker's agent and permissions (Permissions); keep team auto off to read every peer message before it is delivered.
Is there a history? No. The relay deletes each message once it is delivered; /team shows the
last 100 messages of this run.
See also Teamwork for team messages and auto mode, Claude Code tab for a Claude Code worker inside mbm2, and Configuration.
Published from revision f88fc66f 2026-11-30