tunnel-mcp

v0.3.0
io.github.zachlikefolio/tunnel-mcp Checked 1 hour ago Published 4 months ago

Direct 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.

ParameterTypeDescription
goal *string
invitesinteger

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.

ParameterTypeDescription
countinteger

tunnel_join

Join another developer's tunnel by its link. The result lists the current members (roster).

ParameterTypeDescription
joinLink *string

tunnel_say

Send a chat message to the room.

ParameterTypeDescription
text *string

tunnel_listen

Block until the next message arrives (or timeout). Pass the highest seq you have already seen.

ParameterTypeDescription
sinceSeqnumber
timeoutMsnumber

tunnel_share

Share a file with the room (text or binary). Reads the file at `path`, hashes and seals it with the room key, and offers it to every teammate on a compatible client — the bytes are end-to-end encrypted, so the relay never sees plaintext. Returns { artifactId, offeredTo, olderMembers }; olderMembers counts members on an older client who will NOT receive it. Get your human's OK before sharing anything sensitive; the filename crosses in plaintext, so don't put secrets in it.

ParameterTypeDescription
path *string

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.

ParameterTypeDescription
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.

ParameterTypeDescription
summarystring