TUP MCP Server
Telepathy Universal Protocol — Model Context Protocol Bridge
Signed, replay-protected and audited messages between AI agents: text and files.
Status: 0.5.0, on PyPI. Signatures and the audit log come from tup-trust, the security core in the tup-trust/ folder, which pip installs with TUP-MCP. See CHANGELOG.md for what changed and SECURITY.md to report a vulnerability.
🌐 What is TUP MCP Server?
tup-mcp-server is a Model Context Protocol (MCP) server that lets two AI agents (for example two Claude sessions) send each other messages through a small relay: a text of up to 32 KB and up to 10 files of up to 50 MB each. Every message is signed by the sender, verified by the receiver against a key pinned in advance, and recorded by both sides in a signed hash chain.
Files never pass through the sending model: it names a path and the server reads, uploads and signs the file's SHA-256. The receiving server downloads it, checks it against the signature and only then shows the message. The receiving model reads a file by slices or by search, so it pays only for what it reads.
Key Features
- ✍️ Signed messages: Ed25519 over the whole message: session, text, the name, size and SHA-256 of each file, sender, recipient, nonce and time.
- 📎 Files by signed reference: the relay carries the bytes; the signature covers their hash. A file changed on the way is rejected.
- 📌 Pinned keys: a message is accepted only if it is signed with the key you pinned for that partner. Keys are pinned from the command line, never by the model.
- 🔁 Anti-replay: every message is accepted once (nonce + ±5 min window, kept on disk across restarts).
- 🧾 Signed audit chain: every message sent, received or rejected is appended to a SHA-256 hash chain signed with the agent's key.
- 🔑 Authenticated relay: roles are registered with a signed challenge and bound to their key; every session endpoint needs a bearer token in the
Authorizationheader. - 🛡️ DNS Rebinding Protection: the relay validates the Host and Origin headers on every request.
- 🪶 Small footprint for the model: five tools by default and compact JSON results (measured below).
🏗️ Architecture
Agent A's environment: Agent B's environment:
┌──────────────────────┐ ┌──────────────────────┐
│ Claude / GPT / etc. │ │ Claude / GPT / etc. │
│ ↕ MCP (stdio) │ │ ↕ MCP (stdio) │
│ mcp_server.py │ │ mcp_server.py │
│ keys, audit log, │ │ keys, audit log, │
│ outbox/ (A) │ │ inbox/ (B) │
└──────────┬───────────┘ └──────────┬───────────┘
│ ┌──────────┐ │
└──────────┤ relay.py ├─────────────┘
└──────────┘
(messages on disk until the receiver confirms them, files until downloaded; no private keys)
The modules are in the tup_mcp_server/ package. mcp_server.py and relay.py at the top of the repository only
start the server and the relay from a clone.
| Component | Description |
|---|---|
mcp_server.py |
MCP server: tools for the model, CLI for the operator |
tup_messages.py |
Folders an agent may send from, file upload and download with checks, inbox, reading by slices or search |
tup_security.py |
Identity, pinned keys, signing/verification, payload rules and audit log (uses tup-trust) |
tup_wire.py |
Rules shared with the relay: names and the signed registration message |
relay.py |
Relay: signed registration, bearer tokens with a rate limit, queues kept in SQLite until each message is confirmed, NDJSON stream, file store |
Dockerfile |
Image of the relay alone: FastAPI, uvicorn and cryptography, without tup-trust or the MCP server |
tup_core_fallback.py |
Pure-Python TUP engine (ActionSpec, Intent, Channel state machine) |
intent_encoder.py |
Reference text-to-vector encoder (SHA-256 expansion) |
tup-trust/ |
Security core, a package of its own: Ed25519 signer with pinned keys, anti-replay, revocation and rotation, signed hash-chained audit log |
spec/ |
FORMAT.md: the exact bytes of signed messages and audit logs, with test vectors |
tup-verify/ |
Independent verifier of messages and audit logs: one file, Python standard library only |
🚀 Quick Start
python -m venv .venv
.venv\Scripts\python -m pip install tup-mcp-server # also installs tup-trust, the security core
To work on the code, install from a clone instead:
.venv\Scripts\python -m pip install -e ./tup-trust # the security core of this clone
.venv\Scripts\python -m pip install -e ".[dev]"
1. Create identities and pin each other's key
Each agent (its role name) gets its own folder in ~/.tup-mcp/agents/<agent>/ (change it with TUP_MCP_HOME).
Run these commands with the venv activated.
tup-mcp-server identity agent_a # prints: agent_a <public key A>
tup-mcp-server identity agent_b # on B's side: agent_b <public key B>
tup-mcp-server trust agent_a agent_b <public key B>
tup-mcp-server trust agent_b agent_a <public key A>
Copy the public keys through a channel you trust (not through the agents themselves).
Other commands: peers <agent>, revoke <agent> <key>, verify-audit <agent> [--expected-head HASH].
2. Run the relay
tup-relay # http://localhost:8765; TUP_RELAY_DEV=1 reloads it when the code changes
From a clone, python relay.py does the same. It keeps its state in ~/.tup-relay (change it with TUP_RELAY_DATA_DIR), so messages waiting for an agent
survive a restart of the relay. To run it for other machines, see Running the relay on a network below.
3. Configure your MCP client
{
"mcpServers": {
"tup-mcp-server": {
"command": "path/to/.venv/Scripts/python",
"args": ["-m", "tup_mcp_server"],
"env": { "TUP_RELAY_URL": "http://localhost:8765" }
}
}
}
In a clone of the repository, "args": ["path/to/mcp_server.py"] does the same.
Optional environment variables: TUP_SEND_DIRS (more folders the agent may send files from, separated by
; on Windows and : elsewhere), TUP_MAX_FILE_BYTES (default 50 MB) and TUP_MCP_ADVANCED=1 (also expose
the low-level tools).
🌍 Running the relay on a network
The relay speaks plain HTTP. To use it across machines, run it behind a reverse proxy that terminates TLS, and let only that proxy reach the relay.
| Variable | Default | What it does |
|---|---|---|
TUP_RELAY_HOST |
127.0.0.1 |
Address to listen on (0.0.0.0 inside a container) |
TUP_RELAY_PORT |
$PORT, else 8765 |
Port to listen on |
TUP_RELAY_ALLOWED_HOSTS |
— | More host names to answer to, comma separated: your public name, such as relay.example.com. Any other Host header gets 403 (DNS rebinding protection) |
TUP_RELAY_DATA_DIR |
~/.tup-relay |
The relay's state: relay.db (SQLite) and blobs/ |
TUP_RELAY_RATE_LIMIT, TUP_RELAY_RATE_BURST |
600, 60 |
Requests per minute per token, and how many at once; 0 turns the limit off |
TUP_RELAY_KEEPALIVE |
15 |
Seconds between empty lines on an idle stream. Agents reconnect after 60 s without any line, so keep it below that; 0 turns the lines off |
TUP_RELAY_DEV |
off | 1 reloads the code when it changes (development only) |
The message, file and queue limits are listed under Security → Relay.
- Run one relay process per data folder; a second one refuses to start. Streams and rate limits live in that process's memory, so it cannot be split across workers or machines.
- The data folder holds no private keys: only messages and files waiting (signed, not encrypted), the public key each role is bound to and a SHA-256 of each token. To back it up or move it, stop the relay first; the folder is locked while it runs.
- When it stops, the relay gives open streams 5 seconds. Agents reconnect by themselves and keep their tokens.
- A load balancer's health check must send an allowed
Hostheader, such aslocalhost.
Docker
docker build -t tup-relay .
docker run -d --name tup-relay --restart unless-stopped \
-p 127.0.0.1:8765:8765 -v tup-relay-data:/data \
-e TUP_RELAY_ALLOWED_HOSTS=relay.example.com tup-relay
The image holds only relay.py and tup_wire.py from the package, with FastAPI, uvicorn and cryptography at exact versions. It
does not need tup-trust or the MCP server. It runs as an unprivileged user, keeps its state
in the /data volume and has a health check. -p 127.0.0.1:8765:8765 publishes the port on the host's loopback
only, for a proxy on the same host.
Measured on Windows 11 with Docker Desktop (engine 29.1.3, x86_64): the image is 56 MB to download and 232 MB on
disk; the relay starts in about 1 s; with a stream open, docker stop takes about 6 s and the relay exits cleanly
(code 0); after docker start, the pending messages, the file and the tokens from before are all there.
TLS with Caddy
Caddy obtains and renews the certificate by itself:
relay.example.com {
reverse_proxy 127.0.0.1:8765
}
Caddy passes each streamed message on at once, because the stream has no fixed length, and it passes on the
original Host header, so start the relay with TUP_RELAY_ALLOWED_HOSTS=relay.example.com. Do not add
flush_interval -1: with it, Caddy keeps the relay's stream open after the agent disconnects, and the relay can
deliver messages into it that nobody receives.
TLS with nginx
With a certificate from Let's Encrypt (for example, obtained with certbot), in a file under conf.d/:
limit_req_zone $binary_remote_addr zone=tup_register:10m rate=30r/m;
server {
listen 443 ssl;
server_name relay.example.com;
ssl_certificate /etc/letsencrypt/live/relay.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/relay.example.com/privkey.pem;
client_max_body_size 51m; # files of up to 50 MB (TUP_RELAY_MAX_BLOB)
proxy_http_version 1.1;
proxy_set_header Host $host; # the relay needs TUP_RELAY_ALLOWED_HOSTS=relay.example.com
# Registering needs no token, so the relay cannot limit it per token: limit it per IP here
location ~ ^/session/[^/]+/(challenge|register)$ {
limit_req zone=tup_register burst=10 nodelay;
proxy_pass http://127.0.0.1:8765;
}
location / {
proxy_pass http://127.0.0.1:8765;
proxy_buffering off; # pass each streamed message on at once
proxy_request_buffering off; # stream file uploads to the relay
proxy_read_timeout 1h; # streams stay open
}
}
server {
listen 80;
server_name relay.example.com;
return 301 https://$host$request_uri;
}
Agents then use TUP_RELAY_URL=https://relay.example.com.
🔧 MCP Tools
| Tool | Description |
|---|---|
tup_connect |
Joins a session on the relay as role (signed challenge) and receives messages signed by partner_role; tells the model where its outbox is |
tup_send |
Sends text (up to 32 KB) and/or files (up to 10, by path), signed |
tup_get_messages |
Returns and clears the verified messages: sender, operation, text, and each file's id, name and size |
tup_read_file |
Reads a received file: up to 400 lines from start_line, or the lines that contain search |
tup_get_session_status |
Connection, roles, partner key, pending and rejected messages, channel state, audit records |
With TUP_MCP_ADVANCED=1 the server also registers the low-level tools of 0.2.0: tup_send_intent,
tup_encode_and_send, tup_get_pending_intents, tup_decode_intent, tup_transition_state, tup_get_identity
and tup_verify_audit_log. Identity and audit are always available from the command line.
Example
1. tup_connect(session_id="collab-01", role="agent_a", partner_role="agent_b")
2. tup_send(session_id="collab-01", text="Review section 3 of the report", files=["report.md"])
# report.md is in agent_a's outbox; relative paths are resolved there
3. tup_get_messages(session_id="collab-01") # on agent_b
# [{"id":1,"from":"agent_a","operation":"MESSAGE","text":"Review section 3 of the report",
# "files":[{"file_id":"3f2a...","name":"report.md","bytes":48211}]}]
4. tup_read_file(session_id="collab-01", file_id="3f2a...", search="Section 3")
Files can be sent from the agent's outbox (~/.tup-mcp/agents/<agent>/outbox/), its own inbox (to forward a
received file) and the folders in TUP_SEND_DIRS. Nothing else under ~/.tup-mcp can be sent (keys, trusted
keys, audit log), even if TUP_SEND_DIRS includes it. Received files are kept in
~/.tup-mcp/agents/<agent>/inbox/<session>/, under a safe name that starts with the file id.
🔐 Security
What is signed
tup-trust's CryptoSigner signs, with Ed25519, a canonical JSON with a domain prefix that contains the
payload (session_id, action_spec, vector, text, and for each file its relay blob_id, name, bytes and
sha256), the timestamp, the sender id, its public key, a random nonce and the recipient.
spec/FORMAT.md gives the exact bytes.
What the receiver checks before queueing a message
- The key is the one pinned for the expected partner and it is not revoked (the key inside the message is never trusted by itself).
- The Ed25519 signature is valid.
- The message is addressed to this agent and belongs to this session.
- The nonce was never seen and the timestamp is within ±5 minutes (seen nonces survive restarts).
- The payload is well formed: known fields only, finite vector of up to 4096 values, text up to 32 KB, up to 10 files of up to 50 MB.
- Every file downloads with exactly its signed size and SHA-256. Otherwise the message is rejected and the files it added are deleted.
A rejected message is never queued. The audit log keeps its hash, size and the reason, not its content.
Audit chain
Each agent writes audit.jsonl: every record has the previous record's hash, its own SHA-256 and an Ed25519
signature of that hash. Sent and received records contain the whole signed message: text, and the hash of
every file. tup-mcp-server verify-audit checks every link and signature with the agent's key. To detect a
deleted tail, save the head hash somewhere else and pass it as --expected-head.
Anyone can check a log without installing TUP, with tup-verify and the standard library:
python tup-verify/tup_verify.py log audit.jsonl --key public_key.pem --head <saved head> --peers trusted_keys.json
It also checks the partner's signature on every message the log keeps, so the log's owner cannot make up a received message.
Relay
GET /session/{id}/challenge→ one-time challenge (60 s).POST /session/{id}/registerwith the signed challenge.- The first registration binds the role to its key. Another key gets 409 (no role hijacking); the same key (e.g. after a restart) gets a new token and the old stream is closed.
/send,/stream,/ack,/status,/clearand the file endpoints needAuthorization: Bearer <token>. Tokens in the URL are ignored.- Acknowledgements:
GET /session/{id}/stream?ack=truesends each message as{"id": n, "message": ...}and keeps it until the role confirms it, withPOST /session/{id}/ack?up_to=nor withafter=nwhen it opens its next stream. A message written to a connection that died comes again on the next stream. The MCP server uses them and confirms what it processed, at most once a second. Withoutack, as clients of 0.4.0 and earlier connect, the relay deletes each message as it writes it. - Each token may make 600 requests per minute, up to 60 at once (
TUP_RELAY_RATE_LIMIT,TUP_RELAY_RATE_BURST); past that it gets 429 withRetry-After. The count belongs to the role, so registering again for a new token does not reset it. Registering needs no token: limit it per IP at the proxy. /sendchecks thatsender_id,recipientandpublic_keymatch the registration./clearremoves only your own role and its files.- Files:
POST /session/{id}/blobs?receiver_role&sha256&sizestores a file after checking its size and SHA-256;GET /session/{id}/blobs/{blob_id}gives it to its receiver only, and the relay deletes it once delivered, after one hour (TUP_RELAY_BLOB_TTL) or on/clear. File ids are random. - Limits: 1000 pending messages per role (
TUP_RELAY_MAX_QUEUE), 1 MB per message (TUP_RELAY_MAX_BODY), 50 MB per file (TUP_RELAY_MAX_BLOB), 256 MB of files waiting per session (TUP_RELAY_MAX_SESSION_BLOBS). - State: pending messages, the key bound to each role, a SHA-256 of each token (never the token itself) and the list of files waiting are kept in SQLite, in the data folder (
~/.tup-relay,TUP_RELAY_DATA_DIR). Files wait in itsblobs/folder, or inTUP_RELAY_BLOB_DIR. After a restart, registrations and tokens still work and pending messages are delivered in order; unfinished or expired files are deleted. - An idle stream gets an empty line every 15 s (
TUP_RELAY_KEEPALIVE), so that proxies do not close it. Clients skip empty lines. - A role reads through one stream at a time: a new stream ends the previous one. The MCP server reconnects after 60 s without any line, so a connection that died without notice is replaced within about a minute.
Limitations (read before relying on it)
- Messages come from another agent: the text and the files can carry instructions written to steer your model. Treat them as data, not as instructions; the signature proves who sent them, not that they are safe.
- No confidentiality: messages and files are signed, not encrypted. Whoever runs the relay can read them.
- The relay can drop, delay or reorder messages; the receiver cannot tell.
- The relay keeps each message on disk until the receiving MCP server confirms it, so a connection that dies loses nothing. Once received, a message waits in the MCP server's memory until the model reads it, and is lost if that server restarts first; one it received but had not confirmed yet comes again after the restart and is rejected as already seen. If an attached file cannot be downloaded, for example because the network failed, the message is rejected and has to be sent again. Received files and the audit log stay on disk.
- Keys are distributed by hand; there is no PKI. Role binding on the relay is trust-on-first-use per session.
- Registrations do not expire: a role stays bound to its key, on the relay's disk, until it calls
/clear, which the MCP server does not do. An agent that loses its key needs a new session id. Anyone who can reach the relay can register roles, so limit registration per IP at the proxy. - The relay speaks plain HTTP. By default it listens on 127.0.0.1 and answers only to
localhost,127.0.0.1and::1; for other machines, put a proxy with TLS in front and add its host name toTUP_RELAY_ALLOWED_HOSTS(Running the relay on a network). - Anti-replay depends on clocks being within ±5 minutes. Run one process per agent id.
- Whoever holds an agent's private key can rewrite its audit log; anchor the head elsewhere to detect it.
- A 0.2.0 receiver accepts 0.3.0 messages but ignores their text and files.
- 0.4.0 and 0.5.0 change no format: both keep using the agent folders that 0.3.0 wrote, and exchange messages with it.
To report a vulnerability, follow SECURITY.md.
⚖️ Token Impact (measured with scripts/measure_tokens.py)
TUP-MCP does not compress anything: it carries content from one agent to another, and every tool call costs tokens. What it avoids is making a model copy content it does not need to read.
Characters, with tokens estimated as characters/4 to characters/2.5 (not counted by a tokenizer):
| What the model handles | 0.2.0 | 0.3.0 |
|---|---|---|
| Tool definitions, sent on every turn | 9 tools: 4,695 chars (~1,170–1,880 tokens) | 5 tools: 2,189 chars (~550–880 tokens); all 12 with TUP_MCP_ADVANCED=1: 5,217 |
| Receiving a 32-character text | 1,959 chars: a 64-number fingerprint, the text never arrived | 88 chars, text included |
| Sending a 5 MB file | not possible: the whole content as a tool argument | 109 chars of arguments and a 92-char confirmation |
| Receiving that file | — | 179 chars for the message; then 8,503 chars per 200 lines read, or 141 chars for a search with one match |
Reading a whole file still costs what the file costs. Clients that cache prompts bill repeated tool definitions at a reduced rate.
Security cost (Windows 11, Python 3.11.9, one machine, scripts/bench_round_trip.py)
| Vector | Sign | Verify + anti-replay | Audit record | Through a local relay |
|---|---|---|---|---|
| 64 values (1.9 KB JSON) | ~0.12 ms | ~0.17 ms | ~0.42 ms | ~310 intents/s, median ~2.3 ms send → verified |
| 4096 values (92 KB JSON) | ~4.4 ms | ~3.0 ms | ~3.6 ms | ~40–47 intents/s, median ~14 ms |
Sequential sends, one sender and one receiver that verifies, audits and confirms each intent as the MCP server does, with the rate limit off. The median is about the same for 300 intents sent back to back and for 100 sent one at a time, and with or without confirmations. The relay writes each pending message to SQLite: in alternating runs, the 0.4.0 relay, which kept them in memory, did ~330 and ~48 intents/s, with medians of ~2.1 and ~13.3 ms. Next to an LLM tool call (seconds), the security cost is negligible; it is not built for high-frequency streaming.
📝 How Intent Encoding Works
Under the hood every message is a TUP intent: an ActionSpec (operation, direction, cardinality,
output_dimensions) plus a vector. tup_send fills the vector with a 64-value fingerprint of the text, made by
the Reference Encoder with deterministic SHA-256 expansion, mapped to [-1, 1] and L2-normalized. The content
itself travels as text and files.
Important: these vectors are fingerprints, not semantic embeddings. Similar meanings do NOT produce similar vectors, and nobody can recover the text from them. The advanced
tup_encode_and_sendsends only the fingerprint, not the text.
ActionSpec is canonicalized and hashed with Blake2b to identify the intent type. That hash is an identifier;
integrity comes from the Ed25519 signature.
🧪 Running Tests
python -m pytest -q # TUP-MCP, from the repository root
cd tup-trust
python -m pytest -q # the security core
cd ../tup-verify
python -m pytest -q # the independent verifier
Measured on Windows 11 with Python 3.11.9: TUP-MCP 137 passed and 1 skipped (this system does not allow symbolic links); tup-trust 83 passed and 1 skipped (a POSIX file mode); tup-verify 32 passed.
test_message_tools.py— text and files end to end through the relay app, a file changed on the relay, cleanup after a failed message, refusals, registered tools and compact resultstest_messages.py— payload rules, folders an agent may send from, safe names, upload and download checks, reading by slices and searchtest_security_flow.py— tampering (text included), impersonation, replay (also after a restart), wrong recipient or session, revocation, audit-log edits, forged and truncated logs, CLI, and a full round trip through the relay apptest_relay_flow.py— signed registration, role hijack (409), token rotation, header-only tokens, limits, streams, file store, settings from the environment, the rate limit (429), keepalive lines, one stream per role, acknowledgements, state kept across a restart, one relay per data foldertest_stream_listener.py— the MCP server reconnects when the relay's stream goes silent, confirms what it processed and resumes after it, still reads a 0.4.0 relay, and with the real relay loses no message when its connection dies without notice (a proxy drops it)test_relay_persistence.py— a real relay process killed and started again on the same folder: pending messages, a file and tokens survive, and a third relay on that folder refuses to starttest_integration_processes.py— real relay process + twomcp_server.pyprocesses over stdio with the MCP client: a text and a 5 MB file, and an attackertest_mcp_tools.py,test_fallback_compatibility.py,test_intent_encoder.py— tools, core math and state machine, encodertest_independent_verifier.py— tup-verify accepts the logs TUP-MCP writes and catches an edited message
📜 License
Apache-2.0, for TUP-MCP, tup-trust and tup-verify. See LICENSE and NOTICE. Copyright 2025-2026 Zhofri Guaman. Versions up to 0.3.0 were released under MIT and remain available under it. The dependencies and their licenses are listed in THIRD_PARTY_NOTICES.md.
TUP MCP Server (Español)
Estado: 0.5.0, en PyPI. Las firmas y el registro vienen de tup-trust, el núcleo de seguridad de la carpeta tup-trust/, que pip instala junto con TUP-MCP. Los cambios están en CHANGELOG.md y la forma de reportar vulnerabilidades en SECURITY.md.
Servidor MCP para que dos agentes de IA se manden mensajes a través de un relay: un texto de hasta 32 KB y hasta 10 archivos de hasta 50 MB cada uno. Cada mensaje va firmado con Ed25519, el receptor lo verifica contra la clave que fijó antes, y ambos lo registran en una cadena de hash firmada.
Los archivos no pasan por el modelo que los envía: el modelo indica la ruta y el servidor lee el archivo, lo sube y firma su SHA-256. El servidor que recibe lo descarga, lo compara con la firma y solo entonces muestra el mensaje. El modelo que recibe lee el archivo por tramos o por búsqueda, y paga solo lo que lee.
Inicio rápido
python -m venv .venv
.venv\Scripts\python -m pip install tup-mcp-server # instala también tup-trust, el núcleo de seguridad
tup-mcp-server identity agent_a # muestra la clave pública de agent_a
tup-mcp-server trust agent_a agent_b <clave de B> # fija la clave del compañero
tup-relay # relay en http://localhost:8765
Para trabajar en el código, instala desde un clon: pip install -e ./tup-trust y luego pip install -e ".[dev]".
El relay guarda los mensajes y archivos pendientes en ~/.tup-relay (TUP_RELAY_DATA_DIR), así que un reinicio
no los pierde. Habla HTTP sin cifrar: para usarlo entre máquinas, ponlo detrás de un proxy con TLS (Caddy o nginx)
o usa la imagen de Docker. La sección Running the relay on a network tiene las variables y la configuración.
Las claves públicas se copian por un canal de confianza, nunca a través de los agentes. Fijar claves solo se puede hacer desde la línea de comandos, no desde una herramienta MCP.
Herramientas: tup_connect, tup_send, tup_get_messages, tup_read_file y tup_get_session_status. Los
archivos se envían desde la bandeja de salida del agente (~/.tup-mcp/agents/<agente>/outbox/) o desde las
carpetas de TUP_SEND_DIRS. Las herramientas de bajo nivel de la 0.2.0 solo aparecen con TUP_MCP_ADVANCED=1.
Qué protege y qué no
- ✅ Nadie sin la clave privada de tu compañero puede hacerse pasar por él, alterar un mensaje (texto o archivo) ni repetirlo.
- ✅ El relay no deja que otra clave te quite el rol, y todos sus endpoints de sesión piden token en la cabecera.
- ✅ Cada mensaje enviado, recibido o rechazado queda en un registro encadenado y firmado que se puede verificar.
- ✅ Cualquiera puede comprobar ese registro sin instalar TUP, con tup-verify: un solo archivo que usa solo la biblioteca estándar de Python. El formato está en spec/FORMAT.md.
- ❌ No cifra: quien opere el relay ve los mensajes y los archivos. Puede descartarlos o retrasarlos sin que se note.
- ❌ Lo que llega viene de otro agente y puede traer instrucciones escritas para manipular a tu modelo: trátalo como datos.
- ✅ Un corte de red no pierde mensajes: el relay guarda cada uno en disco hasta que el servidor MCP confirma que lo recibió, y se lo vuelve a mandar al reconectar.
- ❌ El servidor MCP tiene en memoria los mensajes recibidos hasta que el modelo los lee: si se reinicia antes, se pierden (los archivos y el registro quedan en disco).
Costo en tokens
No comprime nada: lleva contenido de un agente a otro. Lo que evita es que un modelo copie contenido que no
necesita leer. Medido con scripts/measure_tokens.py: las definiciones de herramientas bajan de 4.695 a 2.189
caracteres por turno; recibir un texto corto cuesta 88 caracteres (antes 1.959, y el texto no llegaba); enviar un
archivo de 5 MB cuesta 109 caracteres de argumentos. Leer un archivo entero cuesta lo que pese el archivo.
Licencia
Apache-2.0, para TUP-MCP, tup-trust y tup-verify. Ver LICENSE y NOTICE. Copyright 2025-2026 Zhofri Guaman. Las versiones hasta la 0.3.0 se publicaron con MIT y siguen disponibles con esa licencia.
Metadata
Release files for tup-mcp-server 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tup_mcp_server-0.5.0.tar.gz | 104.2 kB | With provenance | Details for tup_mcp_server-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tup_mcp_server-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for tup_mcp_server-0.5.0-py3-none-any.whl |
Total release size: 160.6 kB
Release files / tup_mcp_server-0.5.0.tar.gz
| Download URL | tup_mcp_server-0.5.0.tar.gz |
|---|---|
| Size | 104.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34b65c393804ffd983d284b411f09a3493073d19d1ab11a1130acf71fc2119dc
|
|
BLAKE2b-256 checksum How to use checksums |
171cf8ec53f9ca510ad200f4ea8cc598d18312ffac3b730ba39f2224d5016d26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logRelease files / tup_mcp_server-0.5.0-py3-none-any.whl
| Download URL | tup_mcp_server-0.5.0-py3-none-any.whl |
|---|---|
| Size | 56.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef9e239f14e4a7036950ab6246ea6efc2e430a4fda6b8172e9da2ee3c9559c7f
|
|
BLAKE2b-256 checksum How to use checksums |
54ec1096dc36bc67faa1ab886f3c8ccac144a85916fe35a4ef32c42dcf824df8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logSecurity for tup-mcp-server 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tup_mcp_server-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.