New
Apps 6,304Makers 6,283This week 13
Promote your app−30%
zas-agent screenshot 1
0views in
the last 30 days

zas-agent

MCP server that lets a coding agent send you notifications

Built with Claude Code

by soke1556 · Unclaimed · from ARArgentina · added Nov 2, 2026
no ratings0 comments

An MCP server that lets a coding agent — Claude Code, Codex, or anything that speaks MCP — send files and notes into your Zas channels, and read items back out of them.

OpenSSF Scorecard

What is Zas

Zas moves things between your devices and the people you choose: files, photos, text, code. You put something into a channel on one device and use it on another. Whatever you do not pin leaves on its own after a few days, so there is nothing to tidy up later. Everything is encrypted on the device before it is uploaded: the database and the object storage receive encrypted bytes, not filenames, content or previews.

This package is the piece that lets a coding agent use your channels the way your other devices do, under an identity of its own that you approve, that you scope to the channels you choose, and that you can revoke.

What it does

Your coding agent gets thirteen tools. It can send a file or a note into a channel you picked, send or receive a file live through Directo, list what is in that channel, pull one item back onto disk, and change what it sent: an item's title or text, or the bytes under a file, keeping the item id. Everything it sends is encrypted on your machine before it leaves, lands in your account, and is marked in the channel as sent by that agent. The agent has an identity of its own and never holds your account key: pairing mints a key pair here, you approve it from the web app, and from then on it signs a challenge to get a short-lived session.

Install

Install Node.js LTS (22 or newer) and your agent's command-line tool first. Reopen your terminal after installing. Run these commands on the computer where you use the agent.

Choose your agent and pair it. On Windows (PowerShell or CMD):

Codex

npx.cmd -y zas-agent@latest pair --profile codex

Claude Code

npx.cmd -y zas-agent@latest pair --profile claude-code

Open the printed link, approve the channels, and enter the code in the terminal if the page shows one. Leave the terminal open until pairing finishes. Then run the matching registration command:

Codex

cmd /d /c codex mcp add zas "--" npx.cmd -y zas-agent@latest --profile codex

Claude Code

cmd /d /c claude mcp add zas "--" npx.cmd -y zas-agent@latest --profile claude-code

On macOS, Linux, or WSL, use npx in place of npx.cmd and omit cmd /d /c . Pair and register in the same environment. Restart your agent and ask it to send something to Zas.

If a command is not recognized, install Node.js or the named agent's CLI and reopen the terminal. The first download needs internet access and may take a few minutes. Use @latest as shown so npm requests the published package instead of selecting an unbuilt local workspace.

What pairing does

zas-agent pair mints the key pair, registers the public halves, opens the approval page in your browser, and waits. The terminal shows:

Open this page signed in to your Zas account:
  https://zas.red/agents/pair?p=...#port=53211
Fingerprint: 1a2b 3c4d 5e6f 7a8b
Waiting for approval… (expires in 10 minutes)

Signed in, name the agent and tick the channels it may use — sending is the default, reading is a separate switch — and approve. Approval creates nothing by itself: the page hands a one-time claim code to this terminal over 127.0.0.1 (the port in the link), and the agent exists only once the terminal claims with that code and the secret it holds. A link that reached somebody else is approved on their machine, where nothing listens, and expires with nothing created.

If the browser cannot reach the terminal — the link was opened on a phone, or the browser refused the local connection — the page shows the code and the terminal asks for it. Type it there and nowhere else: with that code, another terminal that started a pairing could claim it. Pass --no-open or set ZAS_NO_OPEN=1 to keep the browser closed; the link is printed either way. The pairing is good for ten minutes before approval and five after; past that, run the command again.

You can also start the flow from the coding agent with the zas_pair tool: the first call hands back the URL, a later call says whether the approval landed, and if the page shows a code, a call with code claims with it.

Updates

Automatic updates are on by default in published installations. While serving, the agent checks npm's latest stable release in the background, at most once per day. It installs newer releases in a separate directory and verifies that the installed executable reports the expected version. The next agent launch uses that release. Restart the MCP connection (or your coding agent) to apply it; running transfers are never restarted by the updater. Pairing and channel grants stay in place, and an offline or failed update leaves the current version usable.

zas-agent updates       # show the setting and any release ready to use
zas-agent updates off   # disable automatic downloads and staged launch selection
zas-agent updates on    # enable them again
zas-agent update        # check and stage a release now

Use npx -y zas-agent@latest in place of zas-agent if you have no global installation. zas_status also reports the running version and staged update. ZAS_AGENT_AUTO_UPDATE=0 disables the built-in updater; 1 enables it, overriding the saved setting. An explicit update command can still download a release while updates are off, but it will not be selected until updates are enabled again. For a pinned installation, use an exact version in the launch command and disable automatic updates. The documented npx ...@latest command still asks npm for the latest package even when the built-in updater is off.

Updates require npm and install the official zas-agent package from https://registry.npmjs.org, including its normal dependency installation scripts and npm integrity checks. No administrator access is needed. Staged packages live under ~/.zas/agent/.updates (or ZAS_AGENT_HOME/.updates); old installations are retained and can be removed with the agent stopped. Source checkouts and prerelease builds do not update themselves. Existing installations need to upgrade once to a release containing this updater before these controls are available.

Why you can trust it

Every line here is a fact. The ones about this package you can check in this repository. Where a property is enforced by the Zas server, which is not open source, the sentence says so.

  • The agent has an identity of its own. zas-agent pair generates two key pairs on your machine — X25519 to receive channel keys, P-256 to sign sign-ins — and the private halves never leave it. The agent never holds your account key, and the key-derivation service refuses account-key derivation to an agent (server-side).
  • You approve it, and you choose the channels. Pairing never auto-approves. The approval page shows the harness, the host and the key fingerprint, and nothing exists until the terminal that started the pairing claims it with a code only the approving page received (server-side). A pairing link sent to you by someone else creates nothing on your account.
  • It holds one key per granted channel, and no key for any other. Each grant carries that channel's key sealed to the agent's X25519 public key. A channel you did not grant has no key here to decrypt with, and the server checks the live grant on every request (server-side).
  • No password and no API key. Signing in is a signed challenge traded for a one-hour token. There is no password, no API key and no refresh token on disk: the agent re-signs from its P-256 key when the token ages out.
  • Everything it sends is visible as its work. Every item carries the >_ agent mark and the agent's name, in the channel, on every device you read Zas from.
  • You can revoke it at any time. Settings → Agents → the agent → Revoke. The session stops, its refresh tokens are revoked (server-side), and the next tool call answers "the owner revoked this agent". What it already sent stays where it is. You can also drop a single channel and keep the rest.
  • Content is encrypted on your machine before it leaves, the same way the app does it. The chunking, the manifest and the envelope formats under src/shared/ are the same modules the Zas web app ships. The server stores ciphertext and never sees a channel key, a channel name or item plaintext (server-side).
  • The source is here, and the releases are built from it. Every npm release is published by the release.yml workflow in this repository, with npm provenance, so the tarball on npm can be traced back to a commit and a workflow run.

What it cannot do

The package refuses some of these on its own, before a request is made. The ones marked (server-side) are enforced by the Zas server.

  • No channel you did not grant. Not by name, not by id.
  • No shared channel you joined, unless its owner allows it. You can grant a channel you joined, but the grant stays grant_pending until that channel's owner allows this agent in Zas. The plan also caps how many of these channels one agent holds: 2 on Free (server-side).
  • No workspace channel, unless the organization allows agents. A channel an organization manages, or one you created inside its workspace, can be granted only while the organization is active and an admin turned agents on (server-side).
  • No reading unless the grant says so. read is a separate switch from send; without it, zas_list_items and zas_get_item are refused.
  • No stored sending into a view-only channel, and none into a channel in Directo mode. Both are refused before a byte is uploaded. A channel in Directo mode takes zas_send_direct, a live transfer that stores nothing.
  • No changing what it did not send. zas_edit_item and zas_replace_file act only on items carrying this agent's mark; anything else is not_yours, and the server refuses it too (server-side). A replace is for agents only: no web or mobile client gets one. An item with a public share is not replaced until the share is removed.
  • No receiving unless the grant says read. Receiving through Directo writes a file onto this machine, so zas_receive_direct takes the same read switch as listing. And it only ever runs inside a tool call: the agent never watches your channels, so nothing arrives unasked.
  • Nothing outside its allowlist. The API refuses an agent on every route that is not on a short, explicit list, and Firestore rules refuse it your account document, your devices, and any channel without an active read grant (server-side).
  • Rate limited by the server, on its own buckets, with the key-derivation budget charged to your account so ten agents are not ten times your own allowance (server-side).
  • As many agents as your plan or your organization allows (server-side).
  • Files up to 5 GiB, subject to your plan's limit. File sends and replacements hash incrementally and upload in bounded batches. A file changed during the transfer is refused before publication. Image previews still decode eligible images in memory; inputs over 80 MiB skip the preview.

The error vocabulary

The agent answers in a closed set of codes. Anything a server route says that is not in this set collapses to upload_failed or network, so no raw server string ever reaches a terminal.

Code What it means
not_paired This agent is not paired yet.
unsafe_endpoint An endpoint or emulator configuration could expose credentials.
identity_permissions A secret file is not private to its owner.
secret_store_failed The OS secret store cannot save or open this profile.
invalid_voprf_configuration The server-selected encryption key has no valid local pin.
invalid_voprf_proof The encryption service response failed verification.
identity_corrupt The identity file on disk is damaged.
agent_revoked The owner revoked this agent.
agent_forbidden Only the account owner can do that.
grant_missing This agent has no access to that channel.
grant_pending That channel belongs to somebody else, and its owner has not allowed this agent yet.
send_forbidden This agent cannot send to that channel.
read_forbidden This agent cannot read that channel.
direct_mode That channel is in Directo mode.
not_direct_mode That channel is not in Directo mode.
not_claimed Nobody received the file within ten minutes; the offer was withdrawn.
no_offer Nobody offered a file through Directo while the call waited.
offer_taken Another device received that file first.
direct_cancelled The offer was cancelled from the other side.
direct_failed The Directo transfer failed in flight.
direct_not_failed That job is not a Directo transfer that failed in flight.
file_changed The file changed during the transfer; send it again.
webrtc_unavailable The WebRTC engine could not be loaded on this machine.
fallback_unavailable Reliable delivery is not available right now.
key_stale The channel key changed; the owner refreshes it by opening Zas.
quota_exceeded The account reached its storage limit.
plan_inactive The organization's plan is inactive, so sending to its channels is paused; the owner or a billing admin reactivates it.
rate_limited Too many sends in a row.
file_too_big The file is over the plan limit.
duplicate That item is already in the channel.
not_found That item is not in the channel.
not_yours That item was not sent by this agent; it can only change its own items.
stale That item changed while this agent was working on it; read it again and retry.
not_a_note That item is a file, not a note; only its title can change.
not_a_file That item is a note, not a file.
item_shared That item has a public share; the owner removes the share first.
invalid_cap That file is no longer available.
write_failed The download destination could not be written.
pairing_expired The pairing expired; pair again.
pairing_cancelled The owner cancelled the pairing.
claim_mismatch The code does not match.
pairing_not_approved Nobody has approved this pairing yet.
pairing_claimed This pairing was already claimed; pair again.
agent_limit The account cannot take another agent; the owner deletes one from Settings → Agents.
grant_limit The plan allows fewer channels per agent than this pairing grants.
foreign_limit The plan allows this agent fewer channels of other people than this pairing asks for.
feature_disabled Agents are not enabled for this account yet.
upload_failed The upload failed.
oprf_failed Zas did not answer correctly while preparing the file.
network Zas cannot be reached.
sign_in_failed Zas did not accept this agent session.
bad_signature Zas rejected this agent's signature; pair it again.
missing_token The session token is missing; pair the agent again.
internal Something failed inside the agent.

Every code comes back as one sentence in English, never as a stack trace.

Tools

Tool What it does
zas_status Says whether this agent is paired with a Zas account, and lists the owner's channels it may send to or read from.
zas_pair Pairs this agent with a Zas account. The first call returns a URL for the owner to open; a later call says whether they approved. If the page shows a code, a call with code claims with it. In a profile that is already paired, approval replaces the old agent.
zas_send_file Sends a file from this machine into one of the owner's channels. Returns the item id, or a job id when the upload takes longer than a minute.
zas_send_note Sends a note — plain text, or a code snippet with its language — into one of the owner's channels.
zas_send_direct Sends a file through Directo: a live, device-to-device transfer into a channel in Directo mode. Nothing is stored. The owner presses Receive on another device within ten minutes; the call returns the result, or a job id after a minute.
zas_send_direct_fallback After a Directo send failed in flight, delivers the same file through reliable delivery: encrypted on this machine, stored in Cloudflare R2 for up to 24 hours, off the owner's quota. The owner's choice; the model is told to ask.
zas_receive_direct Receives a file the owner sends through Directo, onto this machine. Waits for the offer, takes it, and writes the file to disk. Needs a grant that includes reading, and a channel in Directo mode. Returns the path written, or a job id after a minute.
zas_receive_direct_fallback After a Directo receive failed in flight, downloads the encrypted copy the sender chose to store, and decrypts it to the same destination.
zas_list_items Lists the most recent items in one of the owner's channels. Needs a grant that includes reading.
zas_get_item Fetches one item. A note comes back as text; a file is written to disk. It never overwrites, so the path it answers with can differ from the one you asked for.
zas_edit_item Changes an item this agent sent, keeping its id: the title of a file or a note, or a note's text, language and secret cover. Needs a grant that includes reading and sending. The owner's activity log records it.
zas_replace_file Replaces the bytes of a file this agent sent with a file from this machine, keeping the item id, its place in the channel and its pin. Returns the item id, or a job id after a minute. Refuses notes, shared items, and items sent by anyone else.
zas_jobs Lists the sends and Directo transfers this server started, newest first, with the phase each one reached — and where a job_id from a long send is redeemed.

Image previews are optional: JPEG, PNG, WebP, GIF and TIFF images up to 80 MiB and 16 million decoded pixels can receive a preview. Larger images and unsupported formats are still sent, without a preview.

Jobs belong to the running MCP process. Stored file sends use bounded memory, but upload progress is not saved across restarts. After a restart, retry the same send; its content, destination, title and lifetime identify the request so a lost completion response does not create a second item.

channel takes a channel name or a channel id. A name has to match exactly one of the channels you granted; with exactly one grant, zas_send_file, zas_send_note, zas_send_direct, zas_receive_direct, zas_edit_item and zas_replace_file can leave it out.

A replace runs the same pipeline as a send — hash, key derivation, encryption, then upload or proof per chunk — and posts the new set with the old one to release. The server moves both sets, the account's storage tally and the item in one transaction, so a failure leaves everything as it was; a chunk present in both versions is neither uploaded nor released. Both tools read the item first and write only over the version they read: an item that changed in between answers stale, and nothing is lost.

Directo needs a native module, node-datachannel, WebRTC for Node. npm installs a prebuilt binary for Windows, macOS and Linux; the module loads the first time a Directo tool runs, and a machine where it cannot load answers webrtc_unavailable. Every other tool works wi

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#notifications · #agents · #mcp