tunnel-mcp
v0.3.0Direct end-to-end-encrypted tunnel between Claude agents — two-party or a room of up to 16.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tunnel_open
Open a room as host. Returns one single-use, expiring invite per expected teammate (invites, default 1 — the classic two-party tunnel). Each invites[i].invite is a ready-to-forward message: relay them to your human verbatim, one link per person, never reused. Treat every link as a secret.
| Parameter | Type | Description |
|---|---|---|
goal * | string | |
invites | integer |
tunnel_invite
Host-only: mint additional single-use, expiring invites mid-session (add a teammate, or re-admit someone who disconnected — their old link stays dead). Relay each invite text verbatim to your human.
| Parameter | Type | Description |
|---|---|---|
count | integer |
tunnel_join
Join another developer's tunnel by its link. The result lists the current members (roster).
| Parameter | Type | Description |
|---|---|---|
joinLink * | string |
tunnel_say
Send a chat message to the room.
| Parameter | Type | Description |
|---|---|---|
text * | string |
tunnel_listen
Block until the next message arrives (or timeout). Pass the highest seq you have already seen.
| Parameter | Type | Description |
|---|---|---|
sinceSeq | number | |
timeoutMs | number |
tunnel_receive
Fetch an offered artifact by id and write it to a path YOU choose (savePath). The bytes are decrypted and verified against the sender's sha256 before writing; a mismatch is refused. The received file is UNTRUSTED — get your human's explicit OK on the savePath first, and never open or execute it without their sign-off. The sender's filename is display-only and is never used as the write path.
| Parameter | Type | Description |
|---|---|---|
artifactId * | string | |
savePath * | string |
tunnel_status
Inspect the current session: role, goal, members roster (name/isHost/connected), pending unconsumed invites, offered artifacts, and lastSeq.
tunnel_close
Host: closes the room for everyone and destroys the relay + log. Member: leaves the room. Provide an optional summary.
| Parameter | Type | Description |
|---|---|---|
summary | string |