a1dd-mcp

v0.2.0
a1dd-mcp Checked 1 day ago Published 25 days ago

MCP server that lets an AI agent send a file by link via A1DD (Agent First Doc Delivery)

MCP server that lets an AI agent send a file by link. One call to send_file uploads the file to A1DD and returns a share link to paste into the email the agent is writing. The recipient needs no account. check_deliveries tells the agent what recipients did, so it can close the loop itself. Any other MCP client: run npx -y a1dd-mcp over stdio with A1DD_API_KEY in the environment. Set A1DD_BASE_URL to point at a self-hosted or local API. Or let the agent do it: tell it to fetch https://a1dd.dev/setup.md and follow the instructions.

Summary extracted from the README.

a1dd-mcp

MCP server that lets an AI agent send a file by link. One call to send_file uploads the file to A1DD and returns a share link to paste into the email the agent is writing. The recipient needs no account. check_deliveries tells the agent what recipients did, so it can close the loop itself.

Install (Claude Code)

claude mcp add a1dd -e A1DD_API_KEY=a1dd_live_... -- npx -y a1dd-mcp

Any other MCP client: run npx -y a1dd-mcp over stdio with A1DD_API_KEY in the environment. Set A1DD_BASE_URL to point at a self-hosted or local API.

Or let the agent do it: tell it to fetch https://a1dd.dev/setup.md and follow the instructions.

What the server will and will not read

send_file only reads files inside the directory the server was started in, or the folders listed in A1DD_ALLOWED_DIRS (absolute paths separated by :). It refuses home directories, credential folders, dotfiles, files that look like secrets by name, and any file containing a private key. Files up to 200 MB.

Tools

Tool What it does
send_file Upload a local file as a signed package; returns url, an email_html card for HTML emails, transfer_id, expires_at, sha256, manifest_url
get_transfer One transfer: status, viewed_at, downloaded_at, downloads, event timeline, summary
check_deliveries Transfers with recipient activity since a time (default 24 h), each with a summary
list_transfers Recent transfers for the account, optional since
revoke_transfer Kill the link and delete the file
whoami Account, key label and remaining beta quota; never shows the key

Signed packages

On first send the server creates an Ed25519 keypair under ~/.config/a1dd/ (or A1DD_KEY_DIR), mode 0600, and registers the public key against your API key. Every send_file then signs a manifest of the exact bytes it uploaded; A1DD verifies it against the stored bytes, countersigns and logs it. The recipient page shows "Signed package" with the agent label and hash, or "Not signed". Anyone can check a download offline:

npx a1dd-mcp verify Q3-report.pdf Q3-report.pdf.a1dd-manifest.json

A signature proves which key signed and that the file is unchanged, not that the content is true. Set A1DD_SIGN=off to send unsigned. Format: docs/manifest-v1.md in the repository.

Webhooks (push receipts)

Register a receiver and A1DD posts transfer.<event> JSON to it when a link is viewed, downloaded, exhausted, expired or revoked:

POST https://a1dd.dev/v1/webhooks   Authorization: Bearer a1dd_live_...
{"url": "https://your.host/a1dd", "events": ["downloaded"]}

Needs the webhooks scope. The account owner is emailed when a webhook is added, and a webhook stops when the key that registered it is revoked. The payload carries the transfer's id, name, size, status and timestamps, never the share link or the file. The response carries secret once. Each delivery is signed in x-a1dd-signature as t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<body>">; reject deliveries whose t is older than five minutes and compare in constant time. Up to three attempts within about 20 seconds; GET /v1/webhooks/:id/deliveries shows the log. Only the first view by a real browser fires viewed; scanners and link previews do not.

On WSL

If npx fails because the npm cache lives on a Windows drive, install once on the Linux disk and point the MCP client at it:

mkdir -p ~/.local/share/a1dd-mcp && cd ~/.local/share/a1dd-mcp && npm init -y >/dev/null && npm i a1dd-mcp
claude mcp add a1dd -s user -e A1DD_API_KEY=a1dd_live_... -- node ~/.local/share/a1dd-mcp/node_modules/a1dd-mcp/dist/index.js

Keys are self-serve during the beta: https://a1dd.dev/#access (or let the agent start signup, see /setup.md).

MIT licence. The hosted service is at https://a1dd.dev.