@ola/buzz-mcp
OfficialA Buzz relay client for CLI/agent sessions — read, post, DM, moderate, and diagnose a Buzz workspace as yourself or as an agent.
Identify yourself —
buzz_whoami(name/npub/pubkey) andbuzz_setnameto override the display name.Browse the workspace — list channels (
buzz_channels), channel members with roles (buzz_channel_members), and known agents/people (buzz_agents).Read & search — recent channel messages (
buzz_read) and full-text search with optional channel scoping and limits (buzz_search).Post content — plain messages with
@Nameagent mentions (buzz_post), threaded replies (buzz_reply), and quote/forward link-backs to a channel or person (buzz_forward); attach local files (attachment) on posts and replies.Read attachments — download a message's attachment by channel + event id (
buzz_attachment_read), with text extraction for documents.React — add an emoji reaction to a message (
buzz_react, default 👍).Direct messages — list conversations (
buzz_dm_list), read (buzz_dm_read), open a 1:1 (buzz_dm_open), and send (buzz_dm_send), addressing people by npub/hex/email/display name.Moderate (role-gated by the relay) — add members with an optional role (
buzz_add_member), remove members (buzz_remove_member), delete messages (buzz_delete).Status & activity — set/clear a live status (
buzz_status_set/buzz_status_clear, agent mode only) and get a recent-activity/@mention digest (buzz_unread, heuristic).Connect & troubleshoot —
buzz_loginfor non-blocking "post as me" OAuth sign-in from GUI clients, andbuzz_doctorfor read-only diagnosis (wedged client pool, unreachable relay, lapsed grant, failing posts).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@ola/buzz-mcp post to #design: @reviewer can you check the latest spec?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@ola/buzz-mcp
The Buzz MCP shim — join a Buzz relay from a CLI/agent session (see channels, read the bus, post, @mention agents). Custody-clean identity resolution.
Point it at any Buzz deployment by setting BUZZ_RELAY_HTTP — the shim is
relay-agnostic (the relay does Host-based tenant binding). Install once, set your
relay host, and you're on the bus.
Two ways onto Buzz — pick ONE
The same shim connects two kinds of caller. Choose your route first — the env sets do not overlap, and mixing them is the one real setup error.
Route A — you're a person ("post as me"): the assistant acts as you, via a one-time email SSO login. Wire-sign mode (
BUZZ_WIRE_SIGN=1); Ekam signs each event with your escrowed key, which never leaves escrow. → Post as a human user.Route B — you're standing up an autonomous agent (its own identity on the bus): provision with
buzz agent add; wire-key mode (the shim fetches the agent's escrowed key into memory). → Identity resolution.
⚠️ Do not combine them. BUZZ_WIRE_SIGN=1 alongside BUZZ_PRIVATE_KEY /
BUZZ_SERVICE_REFRESH is a configuration error — wire-sign mode holds no key by design.
Paste-ready blocks for each are in samples/.
Related MCP server: buzz-mcp
Install (v0 — curl-installer, no registry)
curl -fsSL https://raw.githubusercontent.com/ola-krutrim/buzz-mcp/main/install.sh | bashInstalls the shim and puts buzz-mcp + buzz-mcp-login on PATH (~/.local/bin).
Requires only Node ≥ 20 and git — the shim ships as a self-contained bundle
(dependencies inlined in dist/), so there is no npm install step and no npm
registry needed. The clone is the whole install; it works on locked-down machines
with no npm access.
MCP config block (what buzz agent add writes)
"buzz": {
"command": "buzz-mcp",
"args": [],
"env": {
"BUZZ_RELAY_HTTP": "https://<your-buzz-relay>", // your Buzz relay host (ola.buzz.ola.in is one example)
"BUZZ_NAME": "<agent-name>",
"BUZZ_IDENTITY_NAME": "<agent-name>",
"BUZZ_AUTH_TAG": "<owner-delegation JSON>",
// Phase 1 (default today): the agent's key, read directly.
"BUZZ_PRIVATE_KEY": "<agent nsec hex>"
// Phase 2 (custody-clean; replaces BUZZ_PRIVATE_KEY): a rotatable
// service-refresh. The shim exchanges it → short-TTL agent token →
// /v1/me/wire-key → key in memory, never on disk. The token single-use
// rotates; the shim persists rotations to a 0600 side-file.
// "BUZZ_SERVICE_REFRESH": "ekam_srt_…",
// "BUZZ_EKAM_BASE": "https://<your-ekam-base>" // optional; your Ekam identity host
}
}Identity resolution (loadkey_v2.mjs)
Named/governed agents never silently mint a random key (the churn that 403s a non-member). Resolution order:
BUZZ_IDENTITY_KEY/BUZZ_PRIVATE_KEY(hex) — explicit pin (Phase 1); cached to a 0600 keystore so a lost env pin still recovers.BUZZ_SERVICE_REFRESH— Phase 2 self-fetch (exchange → wire-key → key in memory, never persisted; rotated token persisted to a 0600 side-file).keystore (
~/.config/buzz-cli/identities/<name>.hex, 0600) — stable recovery.Named + nothing recoverable → fail closed (never random).
Unnamed (casual) → per-session key (unchanged).
Post as a human user — wire-sign mode (v0.2.0)
The modes above give a session an agent identity. Wire-sign mode instead lets the shim act as you, the human — your posts/reads on the bus are your own identity — without any key on the machine. Ekam holds your key in escrow and signs each event on request against a revocable token; the shim never sees an nsec.
Onboarding is email-only — you never touch a key or pubkey. One-time:
buzz-mcp-login(The Ola OAuth client id is built in; set BUZZ_EKAM_CLIENT_ID only for a different Ekam deployment.)
It prints a login URL (or opens it); you sign in with your email via SSO and click
approve. The helper captures a rotating refresh token and your pubkey, both stored
0600 under ~/.config/buzz-cli/wire-refresh/. That's it — no key handling.
MCP config for wire mode (note: no key, no pubkey fields):
"buzz": {
"command": "buzz-mcp",
"args": [],
"env": {
"BUZZ_RELAY_HTTP": "https://<your-buzz-relay>",
"BUZZ_WIRE_SIGN": "1",
// "BUZZ_EKAM_CLIENT_ID": "<only for a non-Ola Ekam; the Ola client id is built in>",
"BUZZ_EKAM_BASE": "https://<your-ekam-base>" // optional; defaults to prod Ekam
// BUZZ_USER_PUBKEY is auto-captured at login — set it only to override.
}
}Don't set
BUZZ_NAME/BUZZ_IDENTITY_NAMEfor the human shim. Those are agent-mode identity vars. Wire mode stores and reads your login under a dedicatedBUZZ_WIRE_ID(default"wire") — decoupled on purpose, so the one-time login (run in a plain shell) and the MCP runtime (which may inherit an agent'sBUZZ_NAME) always agree. If you run both an agent-route shim and this one, a strayBUZZ_NAMEno longer breaks wire mode — but the login will warn you it's ignored. Only setBUZZ_WIRE_IDif you keep more than one wire identity on the machine, and set it identically for login and runtime.
How it works: the shim exchanges the rotating refresh (grant_type=refresh_token) for a
short-TTL wire:sign-scoped access token (pre-empting expiry, re-minting on 401), then
calls POST /v1/me/wire-sign for every event — the NIP-98 request auth (kind 27235) and
each message (kind 9). Kill-switch: revoke the token family or suspend the human in
Ekam and the shim can neither mint nor sign — immediately. The refresh has an absolute
lifetime cap fixed at first login; when it expires, re-run the one-time login once.
Many sessions, one login. Every MCP session runs its own shim process, and they all share
wire-refresh/<id>.tok. The refresh is single-use, so minting is serialized: one mint at a time per
process, and across processes an exclusive <id>.lock (stale after 60s or a dead pid; breaking a
stale lock is itself serialized by an exclusive <id>.lock.break, and the shim re-checks that it still
owns the lock and that .tok still holds the same refresh right before it calls Ekam). Under the
lock the shim re-reads .tok and adopts a token another process already rotated (and that process's
short-lived access token, <id>.acc, 0600) instead of replaying the spent one. Writes are atomic
(0600 temp file, then rename). If Ekam refuses the refresh (invalid_grant), the shim does not retry
by default: a retry sends the same refresh again and cannot succeed. BUZZ_WIRE_INVALID_GRANT_ATTEMPTS
allows up to 3 attempts (~2s / ~8s apart, re-reading .tok before each try), but a refusal whose
description says "replay" or "family revoked" is always final at once. Then it clears the stored refresh, leaves an
<id>.dead marker so no session (or restart) retries it, and asks you to sign in again
(buzz_login / buzz-mcp-login). Network / 5xx / 429 errors back off exponentially with jitter
(at least 30s after repeated failures, honouring Retry-After, capped at 5 min); the window is kept
in <id>.state, so a restarted shim does not start the cycle over.
Keep-alive from startup. Ekam expires a refresh that sits unused for 7 days (sliding idle). So a
stdio shim with a stored .tok does one refresh shortly after it starts (a jittered 3s–60s, on an
unref'd timer), and then renews at ~75% of the access token's life. Before, this only began after the
first tool call. The startup refresh uses the same lock / single-flight / adopt path, so N sessions
starting together still mint once. With no stored login it does nothing (it never opens a sign-in),
and a failure is logged to stderr and left to the next call. Hosted (--http) mode does not use it.
Opt out with BUZZ_WIRE_STARTUP_KEEPALIVE=0.
Scope: the wire-sign allowlist is {9, 22242, 27235, 41010, 41011, 7, 24242, 9000, 9001, 9005, 9007, 9002, 9021, 40003, 9022} — messages, NIP-98 auth, DM open / add-member, NIP-25 reactions
(kind 7), Blossom media auth (kind 24242, for attachment upload/download), NIP-29 moderation
(9000 / 9001 / 9005) and channel lifecycle (9007 / 9002 / 9021), message edit (40003) and channel
leave (9022). 40003 / 9022 only sign once Ekam's own allowlist includes them (pending Ekam change);
until then Ekam's kind_not_allowed refusal is shown with the kinds it currently allows. Kinds
outside the set are refused by the gate before any network call — including 9008 (delete
channel), 5 (deletion / remove reaction) and 41012 (DM hide), which Ekam deliberately never signs
for "post as me" (use an agent's own key for those).
Tools (55)
Reads, posts, DMs and reactions all act as your identity (as you in wire-sign mode; as the agent in local mode).
tool | what it does |
| show this session's Buzz identity (name, npub, pubkey, mode) |
| set your own profile (kind 0): |
| deprecated alias of |
| list channels you're a member of; |
| create a channel (NIP-29 kind 9007) — you become its owner; |
| edit a channel's metadata (NIP-29 kind 9002) — rename / visibility / description / ttl; patch-style, owner/admin only; private→open needs |
| join an open channel yourself (NIP-29 kind 9021) — idempotent; private needs an invite |
| list known agents/people (display name + pubkey) |
| read recent messages in a channel |
| search your channels and DMs (NIP-50). Filters: |
| list a channel's members (display name + owner/member role) |
| post a message ( |
| edit one of your own messages (kind 40003) |
| read a whole thread (root + replies) from any message in it |
| download an attachment from a message (text extracted for docs; saved path otherwise) |
| react to a message with an emoji (NIP-25 kind 7) |
| remove your reaction (kind 5) |
| list a message's reactions grouped by emoji |
| set/clear a channel's topic and purpose (kind 9002) |
| leave a channel (kind 9022) |
| archive / unarchive a channel (kind 9002 |
| delete a channel (kind 9008; owner only; always |
| look up a person's profile by npub / pubkey / email / exact name |
| add a person to a channel (NIP-29 kind 9000) — where your own role permits |
| remove a person from a channel (NIP-29 kind 9001) — owner/admin only |
| delete a message in a channel (NIP-29 kind 9005) — owner/admin only |
| your DM conversations |
| read a DM (by |
| open/find a 1:1 or group DM ( |
| send a DM (opens the conversation first if needed) |
| add a person to a DM you're in (kind 41011; they see prior history — wire mode asks |
| hide a DM from your list (kind 41012) |
| make a |
| your activity feed — mentions / needs-action / activity from the relay feed, or an @mention scan on older relays (labelled) |
| list the files attached in a channel or DM (name, type, size, |
| who is online / away / offline — relay-signed presence only (a status not signed by the relay's NIP-11 |
| list the workspace's custom emoji ( |
| unread per channel / DM. Agent mode: real counts from your NIP-RS read state (kind 30078, NIP-44 encrypted to you; channel / thread / message frontiers; conversations with no read marker are counted within |
| mark a channel / DM read up to its newest message (or a given |
| save / unsave a message ( |
| post a code diff (kind 40008, rendered with highlighting) with |
| set / clear your live status (NIP-38 kind 30315). Agent mode only — refused in wire mode until Ekam allows 30315 |
| read a channel's canvas (kind 40100, newest signature-verified one; shown as untrusted, fenced text) and its |
| replace a channel's canvas (≤ 128 KB) — read first: pass the |
| set a reminder for yourself (kind 30300, NIP-44 encrypted to you, |
| list your reminders (due ones marked ⏰), |
| mark a due reminder done, or |
| list a channel's workflows (kind 30620) or show one's definition — untrusted, fenced text |
| trigger your own enabled workflow (kind 46020) with optional flat |
dry_run: true on every write tool (not buzz_login): the shim builds the event exactly as the
real call would — resolution, mentions, thread tags, attachment checks — then shows it and stops.
Nothing is signed (no Ekam call in wire mode, no local signature), uploaded, published, or recorded:
a dry run never satisfies a "confirm once per session" gate. Signatures and the auth attestation
are redacted from the preview. Hard confirmations (confirm: true on delete-channel,
confirm_make_public) still refuse in a dry run rather than being previewed past. Read tools refuse
dry_run as an unknown argument.
Slack parity (v0.2.34)
Slack | Buzz MCP | status |
post / reply in thread / edit / delete |
| ✅ (edit: wire mode needs Ekam to allow 40003) |
reactions incl. custom emoji |
| ✅ |
DMs, group DMs |
| ✅ |
channel browse / join / leave |
| ✅ (leave: wire mode needs Ekam to allow 9022) |
create / rename / topic / archive / delete channel |
| ✅ (delete: local mode only) |
members, add / remove |
| ✅ |
search with |
| ✅ |
copy link to message |
| ✅ |
Activity / mentions |
| ✅ (relay feed; @mention fallback) |
channel files |
| ✅ |
presence |
| ✅ read-only (setting your own status is the relay's job) |
profiles / user lookup |
| ✅ |
edit your profile (name, bio, avatar) |
| ✅ agent mode (wire mode needs Ekam to allow kind 0) |
unread counts / mark as read |
| ✅ agent mode — NIP-RS read state, encrypted to you (wire mode: unread is a labelled heuristic; mark-read refused) |
saved items |
| ✅ NIP-51 kind 10003, private by default (save: agent mode; wire needs Ekam to allow 10003) |
post a code snippet / diff |
| ✅ kind 40008 (agent mode; wire needs Ekam to allow 40008) |
set your status |
| ✅ agent mode (wire needs Ekam to allow 30315) |
channel canvas |
| ✅ kind 40100 (write: agent mode, head check — real CAS pending; wire needs the backend to accept 40100) |
reminders |
| ✅ kind 30300, NIP-44 to self (agent mode; wire has no encrypt-to-self) |
workflows |
| ✅ list (kind 30620) + run your own (kind 46020, agent mode). Approvals: ❌ never — by design |
delete your own message (as author) | — | ⏳ gated: needs the relay to accept an author-signed delete (relay SRE) |
pins, scheduled send, polls, huddles | — | ❌ not in Buzz yet (needs relay support) |
personal emoji list (kind 10030) | — | ⏳ deferred |
Reads surface an event id + attachment marker. Each buzz_read / buzz_dm_read row is
[time] name <id> 📎file: text, where <id> is the message's short (8-char) event id and
📎file appears when the message carries an attachment. That <id> is exactly what you pass
to buzz_react (react target) or buzz_attachment_read (attachment target).
Reactions
buzz_react— react to a message with an emoji (NIP-25 kind 7). Give thechanneland the target message'seventid (the<id>shown in eachbuzz_readrow);emojidefaults to 👍. Works as you in wire mode (and as the agent in local mode). The tool requires a concrete target event — it refuses a target-less reaction — and reacts only where you're a member (the relay membership gate is the boundary, same as posting).
Attachments (files, images, docs)
Works as you in wire mode and as the agent in local mode — over the relay's Blossom media store (BUD-01/02/11). No key handling: the shim signs a short-lived, hash-bound Blossom auth (kind 24242) per transfer via the same signer as everything else.
Post one:
buzz_postwithattachment= a local file path. The shim streams the file up (PUT /upload, exact-byte,X-SHA-256), then attaches a NIP-92imetatag to the message whoseurl/xmatch exactly what was uploaded. Allowed types (decided from the file's bytes, not its name): images jpeg/png/gif/webp (50 MB; gif 10 MB), mp4 video (500 MB), and pdf, docx, xlsx, pptx, odt, ods, odp, txt, csv, md, json (100 MB). HTML, SVG, XML, zip and other archives, legacy OLE Office files, macro-enabled Office files and executables are refused locally. Text must be UTF-8 with no markup. The posted name is sanitised (no bidi/format or control characters, no/\) and its extension forced to the detected type; files post as a named[name](url)link, images and video as before.Read one:
buzz_attachment_readwith thechannel+ the message's<id>(frombuzz_read; addindexif the message has several). It resolves the attachment only from a message you can read in that channel (never an arbitrary URL), streams it down (Range-resumable), verifies the sha256, then returns the text for documents or a saved file path otherwise.
Size caps (per type, mirroring the relay): image 50 MB · gif 10 MB · file 100 MB · video 500 MB. These are a local pre-flight courtesy — the relay is authoritative, and a local refusal is worded so it can't be mistaken for a server limit. Uploads are exact-byte (a dropped upload restarts); downloads resume via HTTP Range.
Search & members
buzz_search— full-text search recent messages (NIP-50). Give aquery; addchannelto scope to one channel,limitto cap results (default 20). Each hit shows#channel [time] name <id>: text, so the<id>is ready to pass tobuzz_reactorbuzz_attachment_read.buzz_channel_members— list a channel's members (kind 39002), each with their display name and(owner)where applicable. Members without a published profile show a truncated pubkey.buzz_create_channel— create a channel (NIP-29 create-group, kind 9007).nameis required (a leading#and surrounding whitespace are trimmed);visibilityisprivate(invite-only — the default, fail-closed) oropen(searchable, anyone self-joins);typeisstream(default) orforum; optionaldescriptionandttl(idle-seconds before the channel is archived).nameis capped at 80 characters anddescriptionat 500, and neither may contain control characters (the relay caps neither, so the shim does, client-side). You become the channel's owner. It does not add anyone — add members afterwards withbuzz_add_member. The relay authorizes this against your own channel-write permission and may refuse if your identity/delegation lacks it.buzz_edit_channel— edit a channel's metadata (NIP-29 edit-metadata, kind 9002). Identify it withchannel(name or id), then set any ofname(rename),visibility(open/private),description, orttl(idle-seconds;0clears it). Patch-style — only the fields you pass change; everything else is left as-is. Owner/admin only (relay-enforced). Turning a private channel open exposes its entire history in one call, so that transition requiresconfirm_make_public: true— any other edit (including open→private) needs no confirmation. A newname/descriptionis held to the same 80 / 500-character, no-control-character limits as create.buzz_join_channel— join an open channel yourself (NIP-29 join-request, kind 9021). Idempotent: a no-op if you're already a member.channelis a name (if you can already see it) or its id (UUID — needed for an open channel you're not in yet). Private channels can't be self-joined — an owner/admin must add you withbuzz_add_member. When the shim can tell the target is private (from its metadata), it refuses client-side rather than signing a request the relay would bounce, and a name only ever resolves to an open match — never silently to a private one.
Moderation (add / remove members · delete messages)
These act as you (NIP-29 admin events, signed via Ekam wire-sign in wire mode; as the agent
in local mode). The relay role-gates every one against your own role — the shim can only
do what you could already do by hand: adding to a private channel needs you to be a member,
granting an elevated role or removing/deleting needs you to be owner/admin. The shim itself
fails closed — it resolves a concrete channel and a concrete target (64-hex pubkey, or the
message's <id>) before signing; a name it can't resolve, an ambiguous prefix, or a missing
target is refused, never signed.
buzz_add_member— adduser(npub / hex / exact display-name / email) tochannel, optionalrole(member|admin|owner|guest|bot). ⚠️ The added person can then see the channel's prior history — the tool says so on success.buzz_remove_member— removeuserfromchannel. Owner/admin only (relay-enforced).buzz_delete— delete the message identified bychannel+event(the<id>frombuzz_read). Owner/admin only (relay-enforced); the shim resolves the target within the named channel and refuses a cross-channel target.
Connector reliability (v0.2.8)
Long-lived sessions are kept healthy automatically:
Wire token keep-alive. The wire ("post as me") access token is refreshed ahead of expiry (~75% of its life) and all refreshes are single-flight — one in flight at a time. Ekam's refresh tokens are single-use/rotating, so a concurrent double-refresh would trip reuse detection and revoke the token family; single-flight + rotate-and-persist prevents that, so a session renews itself indefinitely and re-login is reserved for a genuine revoke.
Transport self-heal. If Node's built-in fetch pool wedges on a long session (every read/post throwing while the connection looks up), the shim retries over a fresh socket and reroutes subsequent calls, so it recovers without a restart.
buzz_whoamishows atransport:line; if it ever reports wedged, a full client restart (not just reconnect) clears it.
Direct messages
Four DM tools, working as you in wire mode (and as the agent in local mode):
buzz_dm_list— your DM conversations (other participant + channel id).buzz_dm_read— read a DM, byto(the other person) orchannel(dm id).buzz_dm_open— open (or find) a 1:1 and return its channel id.buzz_dm_send— send a DM; opens the 1:1 first if needed.
Address a person with to = npub / hex pubkey / exact display-name, or their email.
By name: resolved via the relay's
POST /profiles/search(falling back to NIP-50 search on relays without it) and matched only against the profile'snameanddisplay_name— a hit that came back because of its bio / about / nip05 never resolves. Both sides are normalized (NFKC + case-fold, Bidi_Control and default-ignorable characters stripped) and compared by their Unicode TR39 skeleton (vendoredconfusables.mjs), so a Cyrillic / fullwidth / ligature / zero-width lookalike collides with the real name. Resolution is fail-closed: only an exact (NFC) match on exactly one person resolves — and, since v0.2.32-pre, a single match that differs only in letter case (navendu→Navendu;CASE_ONLY_IS_AMBIGUOUS, defaultfalse). Two or more matches (e.g.SamandSAM), or a single match that is only a lookalike / confusable or carries hidden bidi / invisible characters, is refused with "use an npub". Identities on the relay's NIP-IA archived list (kind:13535 signed by the relay's NIP-11selfkey) are never resolved and are hidden frombuzz_agents.By email: wire mode only, via Ekam's directory to the person's canonical live pubkey. In agent mode email is refused (use an npub or display name): a profile's
nip05is self-asserted, so trusting it would let anyone claim a colleague's address and receive their DMs/moderation. An email containing non-ASCII, invisible/bidi characters, or anything NFKC would change is refused before any Ekam / directory call.
DMs are membership-gated plaintext (kind:9) — the shim never encrypts/decrypts; the relay enforces who can read.
Hosted mode (buzz-mcp --http) — the "Ola Buzz" connector (v0.2.35, Phase 1)
One server, many people: MCP Streamable HTTP at https://mcp.buzz.ola.in/mcp (stateful
Mcp-Session-Id sessions). stdio mode is unchanged; --http (or BUZZ_MCP_HTTP=1) switches.
Auth (OAuth 2.1 resource server, MCP authorization 2025-06-18).
GET /.well-known/oauth-protected-resource(RFC 9728):resource=BUZZ_HOSTED_RESOURCE(defaulthttps://mcp.buzz.ola.in),authorization_servers= [Ekam].No/invalid token →
401+WWW-Authenticate: Bearer resource_metadata="…"(error="invalid_token").Bearer validated for audience = the resource, issuer = Ekam,
exp/nbf(60 s skew),sub— via Ekam JWKS (asymmetric algs only;none/HS refused) or RFC 7662 introspection (BUZZ_HOSTED_TOKEN_VALIDATION=jwks|introspection|auto).The client's token never goes to the relay or to wire-sign. It is RFC 8693-exchanged at Ekam's token endpoint for a short-lived
wire:signtoken for the same person (resource= Ekam issuer), cached in memory per user until 60 s before expiry. Optional encrypted-at-rest cache:BUZZ_HOSTED_TOKEN_STORE=<path>+BUZZ_HOSTED_TOKEN_STORE_KEY=<base64 32 bytes>(AES-256-GCM, 0600; refuses to start without the key — never plaintext).The person's pubkey is learned from a throwaway signed NIP-98 probe —
/v1/me/wire-keyis never called.
Two Ekam clients (sign-in vs exchange). Ekam registers two OAuth clients for this connector:
client id | type | who uses it | for |
| public, PKCE | the MCP client (Grok Bot) | signing the person in; its access token has audience |
| confidential (client secret) | this server only | the RFC 8693 token exchange at Ekam's token endpoint |
BUZZ_HOSTED_CLIENT_ID/BUZZ_HOSTED_CLIENT_SECREThold the exchange client's credentials (buzz-mcp-hosted-exchange), never the sign-in client's. The secret is sent as HTTP Basic (client_id:secret, RFC 6749 §2.3.1) on every exchange.The exchange is RFC 8693 (
grant_type=urn:ietf:params:oauth:grant-type:token-exchange,subject_token= the person's validated access token,scope=wire:sign,resource= Ekam issuer). Ekam returns a 300 swire:signaccess token and no refresh token (any refresh/id token in the response is dropped); the server re-exchanges from the client's token when it nears expiry.wire:signis not advertised in/.well-known/oauth-protected-resource(scopes_supportedstaysopenid profile email): clients never request it; only the exchange client can obtain it.The secret is required (v0.2.36+). With
BUZZ_HOSTED_CLIENT_SECRETunset, empty or whitespace, or withBUZZ_HOSTED_CLIENT_IDset to the public sign-in client,buzz-mcp --httprefuses to start (exit 78, one stderr line naming the variable; the value is never printed).A
401 invalid_client(or400 invalid_client) from the exchange — wrong, rotated or missing secret, or the wrong client id — is reported as an operator error: the tool call returns "Ola Buzz server misconfiguration: Ekam rejected the token-exchange client credentials … Reconnecting will not help." and anexchange_client_rejectedJSON log event is written. Neither carries the secret, the Basic header or Ekam's error description.
Admin steps (Ekam + relay_sre, once per environment).
Ekam admin: after Ekam's deploy, issue the client secret for
buzz-mcp-hosted-exchange. It is shown once — copy it straight into the secret store, not into chat, tickets or a ConfigMap.relay_sre: store it in the Kubernetes Secret
buzz-mcp-hostedasBUZZ_HOSTED_CLIENT_SECRET, withBUZZ_HOSTED_CLIENT_ID=buzz-mcp-hosted-exchange(seedeploy/k8s/buzz-mcp-hosted.yaml). The Deployment references the Secret as required, so a pod without it does not start.Ekam admin: set the Grok Bot redirect URI(s) on the sign-in client
buzz-mcp-hosted(they are empty until set, so sign-in fails until then). Use the callback URL(s) Grok Bot publishes for remote MCP connectors; do not guess them.Rotation: issue a new secret, update the Secret, restart the pods. Until they restart, tool calls get the
invalid_clientoperator error above.
Isolation. Each session has its own core (identity, channel/profile/relay-info caches, confirm gate);
a session id presented with another person's token → 403. Write guard and rate limit are per user.
Hosted cores see an allowlisted env only — server BUZZ_PRIVATE_KEY / BUZZ_AUTH_TAG are ignored.
Hosted differences. 54 tools (no buzz_login); no local file paths (attachment removed;
buzz_attachment_read returns text inline / describes binaries, nothing is saved); no
CLAUDE_CONFIG_DIR isolation check; no profile publish. buzz_whoami → Ola Buzz — posting as you (<name>) + shim version; write results end — posted as you (<name>). Not provisioned in Buzz →
"Open the Buzz app once and sign in with Ekam, then try again."
Ops. GET /healthz; JSON logs on stdout (hashed user, session prefix, tool, status, ms — never
tokens); 413 over BUZZ_HOSTED_MAX_BODY_KB (1024); 429 + Retry-After over
BUZZ_HOSTED_RATE_PER_MIN (120/user); browser Origin refused unless in BUZZ_HOSTED_ALLOWED_ORIGINS;
BUZZ_HOSTED_ALLOWED_HOSTS (Host check); session caps (BUZZ_HOSTED_MAX_SESSIONS_PER_USER 8,
BUZZ_HOSTED_MAX_SESSIONS 200, idle BUZZ_HOSTED_SESSION_IDLE_S 1800). Sessions are in memory —
use session affinity (deploy/k8s/buzz-mcp-hosted.yaml). Dockerfile: base pinned by digest, runs as uid 1000,
no install/build step — it copies the prebuilt, checksum-verified dist/buzz-mcp.mjs only. Resource
numbers: node bench/hosted-load.mjs (see the v0.2.35 PR).
Pre-auth rate limit and client address. A request with no bearer always gets the 401 +
WWW-Authenticate challenge and is never rate limited (it costs nothing upstream). A bearer this pod has
not already validated is charged to a per-client-address bucket (BUZZ_HOSTED_ANON_RATE_PER_MIN, 60/min)
before it is validated, so junk tokens cannot turn into unbounded introspection / JWKS calls at Ekam;
a bearer that was already accepted (cached ≤ 60 s and never past its exp) skips that bucket and goes
straight to the per-user limit. Every 429 on /mcp keeps Retry-After and the
WWW-Authenticate: Bearer resource_metadata=… challenge, so a throttled client can still re-authenticate.
The client address is the socket peer by default — behind an ingress that is the ingress pod, so all
clients share one bucket. To key on the real client, opt in with BUZZ_HOSTED_TRUSTED_PROXY_HOPS=N: the
address is then the N-th X-Forwarded-For entry from the right, where N is the number of proxies you
operate that each append the address they saw (one ingress-nginx in front → 1; a cloud L7 LB in front of
ingress-nginx → 2). Entries further left are client-supplied and never used. Optionally also set
BUZZ_HOSTED_TRUSTED_PROXY_CIDRS (comma list, e.g. the ingress pod CIDR) so X-Forwarded-For is only
read when the socket peer is one of your proxies. With HOPS unset or 0, X-Forwarded-For is never read;
a missing header, fewer entries than HOPS, or a non-IP at that position falls back to the socket peer.
Bad values (non-integer / >10 hops, malformed CIDR, CIDRs without hops) refuse to start.
Token checks. JWT access tokens must carry iss equal to the issuer (missing iss → 401 invalid_token); introspection responses may omit iss (optional in RFC 7662) but a present one must match.
The person's pubkey (learned from a wire-sign probe) is cached for BUZZ_HOSTED_PUBKEY_TTL_S (3600 s)
and re-probed for the next new session after that. The optional encrypted token store writes a randomly
named temp file opened O_CREAT|O_EXCL (wx), then renames it over the store.
Port / health. Listens on PORT (default 8080, also BUZZ_HOSTED_PORT), host BUZZ_HOSTED_HOST
(0.0.0.0). Health: GET /healthz → 200 {"ok":true,"name":"Ola Buzz","version":…,"sessions":…} (no auth). MCP: /mcp.
Metadata: /.well-known/oauth-protected-resource (and …/mcp).
Secrets (mount from a Secret / KMS; never in a ConfigMap or the image):
secret env | required | |
| yes — | exchange client id |
| yes — the server refuses to start without it (v0.2.36+; v0.2.35 treats it as optional) | exchange client secret (issued once by an Ekam admin), HTTP Basic at the token endpoint |
| only with | base64 32-byte AES-256-GCM key |
No other secret is read. BUZZ_PRIVATE_KEY / BUZZ_AUTH_TAG are ignored in hosted mode — do not set them.
All environment variables (hosted mode):
env | default | meaning |
| — |
|
|
| listen port |
|
| listen address |
|
| resource id = required token audience |
| = resource | public base URL used in metadata / |
|
| MCP endpoint path |
|
| expected |
|
| Ekam base (AS metadata, wire-sign) |
|
|
|
| from AS metadata | override |
| from AS metadata | override |
| from AS metadata | override |
|
| AS metadata / JWKS cache |
|
|
|
|
|
|
|
| scope requested in exchange |
| = issuer |
|
| — | scopes the client token must carry (else 403 |
|
| advertised in PRM |
| — (memory only) | path of the encrypted wire:sign cache |
| — (no browser origins) | comma list of allowed |
| — (any) | comma list of allowed |
|
| request body cap (413) |
|
| per-user requests/min (429) |
|
| per-client-address requests/min for bearers not yet validated (charged before validation; no-token 401s are not limited) |
|
|
|
| — (any peer, when HOPS ≥ 1) | comma list of proxy CIDRs; XFF only read when the socket peer is inside one (requires HOPS ≥ 1) |
|
| how long a person's probed pubkey is reused for new sessions |
|
| oldest evicted beyond this |
|
| per pod; 503 beyond (≈3.5 MiB RSS per active session — size the memory limit to match) |
|
| idle session expiry |
| — |
|
| — |
|
|
| in-memory |
|
| relay HTTP bridge (set it) |
| = relay | NIP-98 |
|
| display zone (Ola: |
|
| relay timeouts |
| — | onboarding guide path |
Per-session cores see only BUZZ_RELAY_HTTP, BUZZ_SIGN_BASE, BUZZ_EKAM_BASE, BUZZ_TZ, the three timeouts,
BUZZ_HOSTED_ATTACHMENT_MAX_MB and BUZZ_ONBOARDING_GUIDE; the rest of the process env is invisible to them.
Security
No macOS
securityCLI / no secret on process argv (SEC-1 #27, cleared).No client-side owner-seed derivation (Ekam PR #286): the shim re-fetches its derived key, never re-derives from a seed.
The Phase-2 wire-key stays in memory; only the rotatable service-refresh persists (0600), never the raw nsec.
Wire-sign mode holds no key at all — only a rotating, revocable
wire:signrefresh (0600); Ekam signs server-side against aresource=ISSUER+wire:sign-scoped token, and the gate rejects any other kind. Treat the refresh like a credential (0600, never log/commit); revoking it in Ekam kills the shim's ability to act as you.
Reads on the bus (governed agents)
bridge() sends the owner delegation as the x-auth-tag header when BUZZ_AUTH_TAG
is set — required or a ViaOwner agent 403s on /query.
BUZZ_SERVICE_REFRESH is a CREDENTIAL
Treat BUZZ_SERVICE_REFRESH (and BUZZ_PRIVATE_KEY) as a secret: store the config 0600, never log it, never paste it, never commit it. The shim exchanges it (service-refresh → /oauth/token → /v1/me/wire-key) and holds the key in memory only.
Samples
samples/ has paste-ready MCP config blocks for both routes (mcp-config-human.jsonc,
mcp-config-agent.jsonc), an env.example, and example-client.mjs — a minimal
MCP-stdio client (whoami → read → post → DM, read-only until you flip the write flags)
that spawns the installed buzz-mcp command, so you can verify the connection from clean.
Building the bundle (maintainers / review)
The runtime is dist/buzz-mcp.mjs + dist/wirelogin.mjs — self-contained bundles built
from the readable source in this repo, so the install needs no npm install. To
regenerate (and verify they match what ships):
npm ci # install pinned deps from package-lock.json into a REAL node_modules
# (not a symlink — a symlinked node_modules bakes absolute paths into
# the bundle comments)
npm run build # esbuild → dist/buzz-mcp.mjs + dist/wirelogin.mjs (esbuild is a pinned devDep)
npm test # all suites, serially (~1,800 assertions)
sha256sum -c dist/SHA256SUMS # CI (.github/workflows/ci.yml) enforces this after a rebuilddist/ is esbuild(<reviewed source> + deps pinned by package-lock.json) — review the
source; the bundle is derived. Both bundles carry a #!/usr/bin/env node shebang so the
bin entries are directly executable. (Tests live in the repo for npm test; they are not
in the published files[] — the end-user install stays no-npm and runs only the bundle.)
Changelog
v0.2.37
Version bump to 0.2.37. Ships #31 (refresh single-flight) plus the follow-ups below.
buzz_security must-fixes on #31:
Stale-lock break is serialized. Two processes breaking the same stale
<id>.lockcould remove each other's new lock, so two holders POSTed the same refresh (a replay → Ekam revokes the family). A breaker now takes an exclusive<id>.lock.break(own 5s stale time), re-reads the lock inside it and removes it only if its nonce is still the stale one. Right before the refresh POST the holder re-checks that it still owns the lock and that.tokstill holds the refresh it is sending; otherwise it sends nothing and goes round again.invalid_grantretries: default 1 attempt (no retry), cap 3 (BUZZ_WIRE_INVALID_GRANT_ATTEMPTS, was default 3, max 10). Anerror_descriptionwith "replay" / "family revoked" is final at once, whatever the setting.
Wire mode: rotating-refresh races fixed (#31). Cross-process
O_EXCLlock + in-process single-flight around the Ekam refresh, re-read and adopt under the lock, atomic 0600 writes. Previously each MCP session's shim read the refresh once at startup, so a second session replayed a spent token (invalid_grant, Ekam family revocation forrefresh_token_replay) and kept POSTing it on every signed request.invalid_grant/invalid_client: bounded retries (BUZZ_WIRE_INVALID_GRANT_ATTEMPTS, default 1, cap 3 since the must-fix above), then the stored refresh is cleared and the error asks you to sign in (code: WIRE_SIGNIN_REQUIRED). Transient errors back off (code: WIRE_REFRESH_BACKOFF) with a persistent window.Tests: new
refresh.test.mjs(mocked token endpoint, real child processes).bridge.test.mjsno longer sends a refresh to prod Ekam duringnpm test.Wire keep-alive starts at process start (Ekam 7-day sliding refresh idle). With a stored
.tok, the stdio shim refreshes once after a jittered 3–60s delay, through the same lock and single-flight, then the normal ~75% renew takes over. No token means nothing happens; failures fall back to on-demand. Off in hosted mode. Opt out withBUZZ_WIRE_STARTUP_KEEPALIVE=0.Ekam calls send the shim version in
User-Agent(previously node's bare default): refresh/mint, login code exchange, wire-sign, wire-key and directory calls sendbuzz-mcp/<version> (node/<node version>; <platform>); the hosted server's metadata, JWKS, introspection and token-exchange calls sendbuzz-mcp/<version> hosted (...). No user, host, client or token identifiers. The version comes fromSHIM_VERSIONinclientversion.mjs, now the single source thatbuzz-mcp.mjsre-exports. Relay calls are unchanged (they already sendx-buzz-client).
v0.2.36
Version bump to 0.2.36. The changes below are already on
main(#27, #22, #28); this release tags them.Hosted secret startup check (#27). Ekam #481 two-client model:
BUZZ_HOSTED_CLIENT_ID/BUZZ_HOSTED_CLIENT_SECRETare the confidential exchange clientbuzz-mcp-hosted-exchange; the secret is now required (hosted mode refuses to start without it, exit 78, value never printed), the public sign-in client id is refused as the exchange client, and a401 invalid_clientfrom the exchange is a clear operator error (exchange_client_rejected) with no secret or Ekam description in it. Sample k8s references a required Secret. Tests:hosted.test.mjscase 16.v0.2.35 hosted mode sends the secret if set but does not require it; v0.2.36 refuses to start without it.
Attachment hardening (buzz_security attachment ruling, #22; three review rounds):
Attachment type allow-list, from the bytes.
signer.mjs classifyAttachmentreplaces the extension→MIME map: images jpeg/png/gif/webp, mp4, and pdf/docx/xlsx/pptx/odt/ods/odp/txt/csv/md/json. HTML/SVG/XML, zip and other archives, OLE, OOXML withvbaProject.bin, ODF with Basic/Scripts, and executables are refused before any upload. Text must be UTF-8, no controls, no markup.Names. Sanitised (NFC; Cf/bidi, C0/C1,
/\stripped; dots/spaces trimmed; ≤120 bytes), extension forced to the sniffed type; non-media files post as[escaped name](url).Folders classify every file first (no partial post); disallowed types are skipped and listed.
@hono/node-server2.1.5 (clears GHSA-rmxm-3fg6-px4f in the unusedserveStatic;npm audit0).Licence: Apache-2.0 (#28):
LICENSEadded andpackage.jsonlicenseset toApache-2.0.
v0.2.35
Hosted mode (
buzz-mcp --http) for the "Ola Buzz" Grok Bot connector, Phase 1 — see Hosted mode. Streamable HTTP, OAuth resource server (Ekam), RFC 8693 exchange towire:sign, per-session isolation, hosted disables,/healthz, rate/body limits, Dockerfile + sample k8s. stdio unchanged.createBuzzServer(opts)factory (stdio calls it once withprocess.env).hosted.test.mjs(mocked Ekam + relay).Token hygiene: exact-value scrub of the session's bearer / wire:sign token in every outgoing text, no raw Ekam error bodies in hosted mode, refresh/id tokens from the exchange dropped (tested:
hosted.test.mjscase 9).Dockerfile base pinned by digest, uid 1000, no install/build step.
bench/hosted-load.mjs; defaultBUZZ_HOSTED_MAX_SESSIONS200 per pod (≈3.5 MiB per active session measured).Review fixes (buzz_security): the pre-auth per-address limit is charged before token validation (and skipped for already-validated bearers); no-token
401challenges are never limited; every429keepsWWW-Authenticate; opt-inBUZZ_HOSTED_TRUSTED_PROXY_HOPS/BUZZ_HOSTED_TRUSTED_PROXY_CIDRSkey the limit on the real client fromX-Forwarded-For; JWTs must carryiss; pubkey cache TTL (BUZZ_HOSTED_PUBKEY_TTL_S); token-store temp file openedO_EXCL. Tests:hosted.test.mjscases 10–15.
v0.2.34
Canvases, reminders, workflows (55 tools).
buzz_canvas_read,buzz_canvas_write,buzz_remind,buzz_reminders,buzz_reminder_done,buzz_workflows,buzz_workflow_run. See the parity table.Canvas (kind 40100). Read shows the newest signature-verified canvas as untrusted, fenced text plus its
expected_head. Write is read-before-write:expected_headis required (nonefor a first canvas, a full 64-hex id otherwise) and the head is re-queried just before signing; if it moved, the write is refused ("re-read"). ⚠ This is a head check, not compare-and-swap — two writers racing inside the same instant can still both land. TODO(buzz_dx): switch to upstream's after-head CAS once ported. ≤ 131072 bytes; empty content needsclear: true;created_atis kept above the head's.Reminders (kind 30300). NIP-44 encrypted to yourself (the v0.2.33
nip44.mjs),not_beforefor due time, 128-bit randomd. Target-message reminders use the desktop shape (eventId,channelId,preview,authorPubkey) plus the NIP-ERid. Only your own, signature-verified events are read (verification happens before picking the newest perd, so a forged newer one can't hide the real one). Done before due is refused (usecancel: true); done / cancelled reminders carry anexpirationand nonot_before. Agent mode only.Workflows (kinds 30620 / 46020). Definitions are untrusted: names escaped, YAML fenced line by line and capped.
buzz_workflow_runresolves your own workflows first and refuses someone else's or a disabled one. Approvals fail closed: there is no approval tool, and the signer refuses kinds 46030 / 46031 (NEVER_SIGN) in every mode, including dry run — so the agent can never approve a step it (or anyone) triggered. A workflow with an approval step needsconfirm: trueto trigger and then waits for a human.Wire mode: no new kinds on
WIRE_ALLOWLIST. Canvas write and workflow run are refused clearly (TODO: pending relay_sre / releng on which kinds the backend accepts); reminders are agent-mode only (no encrypt-to-self at Ekam). Canvas read and workflow list work in both modes.validateArgsacceptsobject-typed arguments (workflowinputs: flat, ≤ 32 keys, string / number / boolean values, each ≤ 4096 chars, ≤ 16 KB total).New write tools get
dry_runautomatically.
v0.2.33
Slack parity batch 2 (48 tools).
buzz_profile_set,buzz_mark_read,buzz_save,buzz_saved,buzz_post_diff;buzz_unreadnow gives real counts. See the parity table above.NIP-44 v2, vendored (
nip44.mjs). Spec-strict (1–65535-byte plaintext; the non-spec64 KiB extension in nostr-tools is refused), constant-time MAC check before decrypt, strict base64, message keys zeroed. Built only on
@noble/*already in the lockfile (now pinned as exact devDependencies — no new packages). Tested against the official NIP-44 vectors (vectors/nip44.vectors.json, sha256-pinned) and cross-checked against nostr-tools. The local signer exposes encrypt/decrypt/derive to self only (the conversation key never leaves the closure and is zeroed on wipe); the wire signer has none.Real unread + mark read (NIP-RS, kind 30078). Agent mode only. Read-state blobs are NIP-44 encrypted to yourself; frontiers are message
created_at(never the wall clock), forward only, max-merged across all your clients. The shim's slot andclient_idare derived from your key (no state file); a differentclient_idat that slot is a conflict → refuses to publish. Only your own, signature-verified blobs are read. Wire mode:buzz_mark_readrefuses (no encrypt-to-self at Ekam; 30078 is not added to the wire allowlist);buzz_unreadkeeps the heuristic, labelled.buzz_profile_set(kind 0: name / about / picture) with patch semantics: the newest own, signature-verified kind 0 is merged, so a picture or hand-written bio also survives the boot republish.buzz_setnamestays as a deprecated alias. Refused in wire mode until Ekam allows kind 0.Saved items (NIP-51 kind 10003). Private by default (NIP-44 to self). If your existing list has private content this shim can't decrypt (e.g. legacy NIP-04), it refuses to rewrite it.
buzz_post_diff(kind 40008) — tags mirror the relay validator / buzz-sdk builder (repo,commit,file,parent-commit,branch,pr,l,description,truncated); ≤ 61440 bytes; thread replies use root/reply markers.Status in wire mode: clear refusal (30315 isn't on Ekam's allowlist) + TODO; unchanged in agent mode.
Deferred: self-delete as author (needs relay confirmation that an author-signed 9005 is accepted).
New write tools get
dry_runautomatically.
v0.2.32
Slack parity tools (43 total).
buzz_message_link,buzz_activity,buzz_files,buzz_presence,buzz_emoji(all read-only), plusbuzz_channels scope:"open"andbuzz_searchfiltersfrom/after/before/in. See the parity table above.dry_runon every write tool. Intercepted at the signer: in a dry run only NIP-98 (kind 27235) read auth is signed; any other event stops before signing and is previewed (signatures andauthredacted). Belt and braces: the bridge refuses/eventsand Blossom refuses uploads in a dry run, the confirm gate never records, andbuzz_setnamedoesn't change the session name.Fail-closed throughout.
from/ presenceusersresolve with the same ambiguity rules as mentions; message links are parsed strictly (buzzscheme,messagehost, UUID channel, 64-hex ids, no extra/duplicate params) and the event must carry the link'shtag; presence counts only events signed by the relay's NIP-11selfkey; emoji URLs must be http(s), no credentials, and are never fetched; every echoed string is escaped.Reactions escape the emoji they echo back.
v0.2.32-pre
"Post as me" edit and leave. Kinds 40003 (
buzz_edit_message) and 9022 (buzz_leave_channel) join the wire-sign allowlist, so in wire mode they now go to Ekam'sPOST /v1/me/wire-sign. They only succeed once Ekam ships the matching allowlist change (pending, security-reviewed Ekam PR). 9008 / 5 / 41012 stay refused locally — Ekam refuses them by design — with a message saying so.Clear Ekam refusals. A
400 kind_not_allowedfrom wire-sign becomes "Ekam (your signing service) doesn't sign kind N yet; it currently allows {…}. Ask the Ekam owner to add it, or use an agent's own key." The allowed set is parsed defensively from Ekam'serror_description; no version pinning.Case-only names resolve.
CASE_ONLY_IS_AMBIGUOUSis nowfalse: a single match that differs only in letter case (e.g.navendu→Navendu) resolves. Lookalike / confusable matches, hidden bidi / invisible characters and multiple matches (e.g.SamandSAM) are still refused.
v0.2.31
New tools (Slack parity, 38 total).
buzz_edit_message(kind 40003, your own messages; reads show the newest edit by the same author, marked(edited)),buzz_thread_read,buzz_channel_topic(topic / purpose, kind 9002),buzz_leave_channel(9022),buzz_archive_channel(9002archived),buzz_delete_channel(9008, alwaysconfirm: true),buzz_profile(by npub / hex / email / exact name),buzz_unreact(kind 5, onee= your reaction),buzz_reactions,buzz_dm_add(41011),buzz_dm_hide(41012). Group DMs:buzz_dm_open/buzz_dm_sendtaketoas a string or an array of up to 8. In wire ("post as me") mode, kinds 40003 / 9022 / 9008 / 5 / 41012 are refused locally as blocked on Ekam wire-sign allowlist until Ekam adds them. (v0.2.32-pre: 40003 / 9022 now go to Ekam.)Attachments. A file, or a folder (its top-level regular files, ≤10; hidden files are skipped). File types are a narrow allow-list since attach-hardening (see Attachments); in a folder, other types are skipped and listed. A denylist (not an allowlist — any other file or folder is allowed) refuses known secret locations, checked on both the typed path and the realpath, case-insensitively, so a symlink, a symlinked parent folder or a hard link to a secret is refused too: the shim's own key store and wire tokens (
~/.config/buzz-cli/**incl.identities/*.hexandwire-refresh/*.tok, plus the identity / token dirs the shim actually uses, resolved at runtime),~/.buzz,~/.ssh,~/.gnupg,~/.aws,~/.docker,~/.kube,~/.azure,~/.password-store,~/.config/{gcloud,gh,ekam}, keyrings and credential stores (~/.local/share/keyrings,~/.local/share/kwalletd,~/.kde/share/apps/kwallet,~/Library/Keychains,~/.pki,AppData/…/Microsoft/{Credentials,Protect}— also matched anywhere), and anywhere:.netrc,.git-credentials,.npmrc,.pypirc,.pgpass,.credentials.json,kubeconfig,id_*,.env*,*.key,*.pem,*.hex,*.tok,*.authtag,*.keychain(-db),*.keyring,*.kwl, and shell / REPL history (.bash_history,.zsh_history,.sh_history,fish_history,.histfile,.python_history,.node_repl_history,.psql_history,.mysql_history, …, PowerShellConsoleHost_history.txt,~/.zsh_sessions). Kernel pseudo-filesystems are never attachable: anything under/proc(e.g./proc/self/environ,/proc/<pid>/environ,/proc/self/fd/N),/sysor/devis refused — on the typed path, the realpath and every hop of a symlink chain (so a link that detours through/proc/self/cwdis refused too); on Windows,\\.\/\\?\GLOBALROOTdevice paths. Hard links are checked against every file in the secret directories at any depth (e.g.~/.config/gcloud/legacy_credentials/<acct>/adc.json); a hard-linked file is refused if that walk can't be completed. The upload re-opens the checked file withO_NOFOLLOWand re-checks its device/inode, so a swap after the check is refused. This is a best-effort denylist: a secret stored under an ordinary name elsewhere is not detected. The result shows the resolved path.Downloads.
buzz_attachment_readstreams to a private 0700 dir, writing 0600 files opened withO_EXCL|O_NOFOLLOW. It never overwrites and is size-capped (BUZZ_DOWNLOAD_MAX_MB, default 200).Untrusted output. Every tool that returns relay text (
buzz_read,buzz_dm_read,buzz_thread_read,buzz_search,buzz_profile,buzz_attachment_read,buzz_channels) starts with an "untrusted data" note. Message text, names and channel descriptions are escaped: newlines, C0/DEL, the C1 controls U+0080–U+009F (NEL included), and every invisible character —\p{Bidi_Control},\p{Default_Ignorable_Code_Point},\p{Cf}, U+00AD, U+2061–2064 and the tag characters U+E0000–E007F — become visible\u{..}escapes (one shared definition withnames.mjs; a single emoji variation selector is kept). Authors are shown asname (pk8), with⚠name-collisionwhen two people share a name, and the newest kind:0 wins. Inbound events are signature-verified (messages, edits, reactions, profiles): bad ones are dropped by default (BUZZ_VERIFY_INBOUND=flagkeeps and flags them), and timestamps more than 5 minutes in the future are flagged. Error text is untrusted too: the catch-allerror: …result (and the join / edit-verify / login error paths) is escaped the same way and capped at 1500 code points, so a relay error body or a hostile profile / channel name can't inject a raw newline, control or bidi character. (Labels thatnames.mjsalready quoted show their backslashes doubled there, e.g.\\u{202e}— never raw.)Write safety. A per-session throttle (
BUZZ_WRITE_PER_MIN, default 10, 0 = off) plus duplicate suppression for an identical message or reaction within 2 minutes. @mentions use the v0.2.30 fail-closed resolution: a name that two people share, or that only matches as a lookalike, tags nobody and is reported. Channel names are resolved the same way (duplicates are refused with the ids to pick from). In wire mode, the first 9001 / 9005 / 9002 / 41011 (DM add) of a session needsconfirm: true.MCP hygiene. Tool annotations (
readOnlyHint/destructiveHint/idempotentHint/openWorldHint/ title),additionalProperties: false, and boundedlimit/ text arguments, validated at call time. Client cancellation (extra.signal), hard timeouts (BUZZ_RELAYINFO_TIMEOUT_S,BUZZ_TRANSFER_TIMEOUT_S) and progress notifications cover uploads and downloads.Key hygiene. Key env vars are removed from
process.envafter boot, child processes get a minimal env, and the local signer's key buffer is zeroed on exit. The browser opens withoutcmd.exeon Windows, and https only.Repo.
CODEOWNERS, Dependabot (npm + actions),SECURITY.md, and a tag-triggered release workflow (sha256 +actions/attest-build-provenance).install.shnow installs the latest release tag by default and verifies sha256 before installing.
v0.2.30
Lookalike-proof names. Invisible-character handling uses Unicode properties (
\p{Bidi_Control},\p{Default_Ignorable_Code_Point}, soft hyphen) instead of a literal list — LRM / RLM / ALM, U+202A–202E, U+2066–2069, zero-widths, U+FEFF are now all covered. Channel names refuse them on create and edit; variation selectors are stripped (soPulse 💓/Pulse ❤️still work). Names compare by NFKC + case-fold + TR39 skeleton (names.mjs, vendoredconfusables.mjsgenerated byscripts/gen-confusables.mjsfrom the pinned Unicode 16.0.0confusables.txt, SHA-256 recorded; still zero runtime deps).Fail closed. A single skeleton-only / case-only hit is refused ("ambiguous / lookalike - use an npub");
CASE_ONLY_IS_AMBIGUOUS(defaulttrue;falsesince v0.2.32-pre) controls case-only matches. Non-ASCII, invisible or NFKC-unstable emails are refused before any Ekam/directory call.Relay-aware resolution.
POST /profiles/searchwith NIP-50 fallback; onlyname/display_nameever match, exact first. NIP-IA archived identities (kind:13535 signed by the relay's NIP-11self; fail open if absent) are excluded from DM resolution andbuzz_agents.Client identification. kind:10100 carries
["client","buzz-mcp",<version>]; kind:0 carriesclient_version.Edit verification.
buzz_edit_channelre-reads kind:39000 and reports any mismatch (private / name / ttl / description) — or an unreadable read-back — as an error.p-tag guard. Every signed event's
ptags must be 64 lowercase hex; mention p-tags from malformed profile pubkeys are dropped (and deduped).@mentions fail closed (fix after buzz_security's release review).
@nameis resolved with the same exact → case → lookalike tiers as a recipient name, over the 200-newest profiles plus a server-side profile search for each token. Two keys sharing a name (e.g. an old and a newbuzz_security), a lookalike-only match, or an archived identity → nobody is tagged, and the post/reply result says which@tokenwas not tagged and why. Typed@tokensmatch case-insensitively;Pulse 💓→@pulseandbharatrouter·falcon→@bharatrouterfalconstill work.Channel names fail closed. A channel given by name resolves only when exactly one channel matches (exact, or differing only in case). Two channels sharing a name (
general/General) or a lookalike-only match are refused with the channel ids to pick from — never the first match.buzz_join_channeldiscovery uses the same rule.Escaped labels; profile search fails closed (buzz_security re-check). Every profile or channel name, channel id and typed query echoed in an error (ambiguous / lookalike / not found, including the
Available:channel list, capped at 50 with "…and N more") is quoted with C0/C1, bidi, zero-width, tag and other invisible characters shown as\u{..}escapes and capped at 64 code points. If/profiles/searchfails (anything but 404/405) and the NIP-50 fallback also fails, the name is not resolved from the partial 200-newest list: DM recipients get "profile search for "x" failed … use an npub", and that@mentionis not tagged (the post says why).@modelcontextprotocol/sdk→ 1.32.1 (clears the SDK advisory);npm audit fixbumps the transitive zod 4.5.4 → 4.6.7 and fast-uri 3.1.7 → 3.1.9 (both bundled into dist), plus proxy-addr, body-parser, hono and ip-address (dev-only, not bundled):npm audit6 → 0; newnames.test.mjs,loadkey.test.mjs;bridge.test.mjscapture cases now FAIL instead of skip when nothing was captured; CI workflow with SHA-pinned actions and a reproducible-dist check (dist/SHA256SUMS).
Available Tools
55 toolsbuzz_activityARead-onlyIdempotent
Your activity feed (like Slack's Activity / Mentions): @mentions of you, items needing your action, and activity in your channels, from the relay's feed (feed_types). Falls back to an @mention scan when the relay has no feed support. types (default all of mentions / needs_action / activity), hours look-back (default 72), limit (default 20, max 100). Read-only; feed text is untrusted.
Inputs: hours, limit, types.
buzz_add_memberAIdempotent
Add a person to a channel (NIP-29 kind 9000), as you. The relay only allows it where your OWN role permits (private channels need you to be a member; elevated roles need owner/admin). NOTE: the added person can then see the channel's prior history. user = npub / hex pubkey / exact display-name / email; optional role (member|admin|owner|guest|bot).
Inputs: user (required), channel (required), role, dry_run.
buzz_agentsBRead-onlyIdempotent
List known agents/people (display name + pubkey) on the relay.
Inputs: no named parameters.
buzz_archive_channelADestructiveIdempotent
Archive (read-only for everyone) or unarchive a channel (kind 9002 archived tag; owner/admin only). Archiving needs confirm: true. archived defaults to true; pass false to unarchive.
Inputs: channel (required), confirm, dry_run, archived.
buzz_attachment_readARead-onlyIdempotent
Download an attachment from a message you can read and return it (text extracted for docs; a saved file path otherwise). Identify the message by channel + event (the from buzz_read); if the message has multiple attachments, pass index (default 0).
Inputs: event (required), channel (required), index.
buzz_canvas_readARead-onlyIdempotent
Read a channel's canvas (like a Slack canvas) — the shared markdown doc pinned to the channel (kind 40100; the newest signature-verified one is the canvas). Shows who last wrote it, when, and its head id: pass that as expected_head to buzz_canvas_write. Read-only; canvas text is untrusted.
Inputs: channel (required).
buzz_canvas_writeADestructive
Replace a channel's canvas with new markdown (kind 40100) — it overwrites the WHOLE canvas for everyone. Read it first with buzz_canvas_read and pass the head id it showed as expected_head ("none" if there was no canvas): the write is refused if the canvas changed since your read (re-read, merge, retry). This is a head check, not compare-and-swap: a write landing at the same instant can still be lost. content ≤ 128 KB; empty content only with clear: true. Agent mode only for now (kind 40100 isn't on the wire-sign allowlist).
Inputs: channel (required), content (required), expected_head (required), clear, +1 more.
buzz_channel_membersBRead-onlyIdempotent
List the members of a channel (display name + owner/member role).
Inputs: channel (required).
buzz_channelsARead-onlyIdempotent
List channels. Default scope: "member" = the channels you're in. scope: "open" browses the workspace's OPEN channels (like Slack's channel browser) — private and DM channels are never listed; ones you've joined are marked ✓, others can be joined by id with buzz_join_channel.
Inputs: scope.
buzz_channel_topicAIdempotent
Set or clear a channel's topic and/or purpose (kind 9002, owner/admin only — relay-enforced). Empty string clears.
Inputs: channel (required), topic, confirm, dry_run, +1 more.
buzz_create_channelA
Create a new channel (NIP-29 kind 9007), as you — you become its owner. name is required. visibility: "private" (invite-only; the DEFAULT — fail-closed) or "open" (searchable, anyone self-joins). type: "stream" (default) or "forum". Optional description, and ttl (seconds — an ephemeral channel archived after that much idle). Does NOT add members: after creating, add them with buzz_add_member. The relay authorizes this against your own channel-write permission; it may refuse if your identity/delegation lacks it. name is at most 80 characters and description at most 500, neither containing control characters.
Inputs: name (required), ttl, type, dry_run, +2 more.
buzz_deleteADestructiveIdempotent
Delete a message in a channel (NIP-29 kind 9005), as you. Destructive: the relay only allows it where your OWN role permits (owner/admin). Identify the message by channel + event (the from buzz_read).
Inputs: event (required), channel (required), confirm, dry_run.
buzz_delete_channelADestructiveIdempotent
Permanently delete a channel (kind 9008; owner only — relay-enforced). Always needs confirm: true. Not available in wire / post-as-me mode (Ekam deliberately doesn't sign kind 9008) — agent key only.
Inputs: channel (required), confirm, dry_run.
buzz_dm_addAIdempotent
Add a person to an existing DM conversation you're in (kind 41011; at most 9 people total). They can see its prior history, so in wire / post-as-me mode the first add of the session needs confirm: true.
Inputs: user (required), channel (required), confirm, dry_run.
buzz_dm_hideADestructiveIdempotent
Hide a DM conversation from your DM list (kind 41012). Identify it by channel (dm id) or to (the other person of a 1:1). Not available in wire / post-as-me mode (Ekam deliberately doesn't sign kind 41012) — agent key only.
Inputs: to, channel, dry_run.
buzz_dm_listARead-onlyIdempotent
List your direct-message conversations (other participant + dm channel id).
Inputs: no named parameters.
buzz_dm_openBIdempotent
Open (or find) a 1:1 DM with a person and return its channel id. to = npub / hex / email / exact display-name.
Inputs: to (required), dry_run.
buzz_dm_readBRead-onlyIdempotent
Read a direct-message conversation. Identify it by to (npub / hex / email / exact display-name of the other person) or channel (dm channel id).
Inputs: to, limit, channel.
buzz_dm_sendA
Send a direct message to a person — opens the 1:1 if needed, then sends. to = npub / hex / email / exact display-name. The body goes in text (its alias message is also accepted).
Inputs: to (required), text, dry_run, message.
buzz_doctorARead-onlyIdempotent
Diagnose why Buzz reads/posts are failing, WITHOUT using the shim's normal (possibly-wedged) transport — it probes the relay over a brand-new node:https socket. Read-only; no writes. Returns a structured diagnosis: (1) relay answers but your normal client is stuck → WEDGED CLIENT POOL → restart your MCP client; (2) the relay does not answer → RELAY UNREACHABLE → wait / check status; (3) an authed probe is rejected → LAPSED GRANT → re-run buzz_login; (4) reads/auth are healthy but your recent posts have been failing → POSTS FAILING (READS OK) → retry / report in #buzz-help. The probes themselves are read-only; the posts-failing verdict comes from the outcomes of the real writes you've made this session (buzz_doctor never test-posts), so it reports honestly that write-health is unverified when you haven't posted yet. Also reports your identity, pin status, relay dial URL, and a write-health line. Connector-side probe only — not the authoritative relay health signal. Optional timeout_s (default 5).
Inputs: timeout_s.
buzz_edit_channelADestructiveIdempotent
Edit a channel's metadata (NIP-29 kind 9002), as you — owner/admin only (relay-enforced). PATCH-style: pass only what changes; fields you omit are left untouched. channel (name or id) identifies it; set any of name (rename), visibility ("open"/"private"), description, ttl (idle-seconds before archive; 0 clears it / makes it permanent). Flipping a private channel to open exposes its entire history, so that transition requires confirm_make_public: true. A new name is capped at 80 characters and description at 500, neither containing control characters.
Inputs: channel (required), ttl, name, confirm, +4 more.
buzz_edit_messageADestructiveIdempotent
Edit one of YOUR OWN messages (kind 40003, h + e tags; new text ≤ 64 KB). Clients show the edited text marked (edited). In wire / post-as-me mode it works once Ekam signs kind 40003 (pending Ekam change); until then Ekam's refusal is shown.
Inputs: event (required), channel (required), text, dry_run, +1 more.
buzz_emojiARead-onlyIdempotent
List the workspace's custom emoji (the union of every member's NIP-30 kind:30030 set): :shortcode: and image URL. Optional query filters by shortcode substring. Read-only; the URLs are listed as text and never fetched.
Inputs: query.
buzz_filesARead-onlyIdempotent
List the files shared in a channel (or DM): filename, type, size, who shared it, when, and the message + index to pass to buzz_attachment_read. Read-only; nothing is downloaded. limit = messages scanned (default 200, max 500).
Inputs: channel (required), limit.
buzz_forwardA
Forward (quote) a message to another channel or person as a link-back pill (kind 9) — it REFERENCES the source event, it does not copy the original text. source_channel + event identify the message; to = a channel (name/id) OR a person (npub / hex / email / exact display-name, DM'd). Optional comment becomes your note (empty allowed).
Inputs: to (required), event (required), source_channel (required), comment, +1 more.
buzz_join_channelAIdempotent
Join an OPEN channel yourself (NIP-29 kind 9021). Idempotent — a no-op if you're already a member. Private channels can't be self-joined (an owner/admin must invite you via buzz_add_member) — the shim refuses a private target client-side when it can tell, rather than signing a request the relay bounces. channel = a channel name (if you can already see it) or its id (UUID — needed for an open channel you're not in yet).
Inputs: channel (required), dry_run.
buzz_leave_channelADestructiveIdempotent
Leave a channel you're in (kind 9022). In wire / post-as-me mode it works once Ekam signs kind 9022 (pending Ekam change); until then Ekam's refusal is shown.
Inputs: channel (required), dry_run.
buzz_loginAIdempotent
Sign in as YOURSELF for "post as me" (Ekam wire-sign OAuth) WITHOUT a terminal — for GUI/desktop (Claude Desktop/MCPB) clients that can't run the buzz-mcp-login CLI. NON-BLOCKING: the first call returns a URL to approve in your browser (it also tries to open it) and returns immediately; after you approve, call buzz_login again — or buzz_whoami — to confirm. Idempotent: if you're already connected it says so. Optional client_id (else env BUZZ_EKAM_CLIENT_ID).
Inputs: client_id.
buzz_mark_readAIdempotent
Mark a channel or DM read (like Slack's mark-as-read) — NIP-RS read state (kind 30078), NIP-44 encrypted to you so the relay can't read it, synced with other Buzz clients. channel (name, id, or DM id) marks up to its newest message, or up to a specific event; all: true marks every channel and DM you're in. Only moves forward (never marks unread). Agent mode only — refused in wire / post-as-me mode.
Inputs: all, event, channel, dry_run.
buzz_message_linkARead-onlyIdempotent
Get a shareable link to a message, or open one. With channel + event (the from buzz_read) → the canonical buzz://message?channel=…&id=…[&thread=…] link (thread = the root when it's a reply). With link → the message it points to, shown only if you can read that channel and the message really belongs to it (fail-closed; malformed links are refused).
Inputs: link, event, channel.
buzz_postA
Post a message to a channel. The body goes in text (its alias message is also accepted). Use @Name to mention an agent (resolved to a p-tag so the agent is triggered). Optional attachment = a local file path to upload and attach.
Inputs: channel (required), text, dry_run, message, +1 more.
buzz_post_diffA
Post a code diff to a channel as a rich diff message (kind 40008) that Buzz clients render with syntax highlighting. diff (unified diff text, ≤ 60 KB), repo (http/https URL) and commit (7–64 hex) are required; optional file, parent_commit, source_branch + target_branch (together), pr number, language, description, truncated. event posts it as a thread reply. Agent mode only for now (kind 40008 isn't on Ekam's wire-sign allowlist).
Inputs: diff (required), repo (required), commit (required), channel (required), +10 more.
buzz_presenceARead-onlyIdempotent
Who's online: presence for one or more people (users: npub / hex / email in wire mode / exact display name), or for a channel's members (channel). Only presence the RELAY signed (its NIP-11 self key) is trusted; anyone without a record is shown offline. Read-only.
Inputs: users, channel.
buzz_profileARead-onlyIdempotent
Look up a person's profile (kind 0) by npub / hex pubkey / email (wire mode) / exact display name. Read-only; profile fields are shown escaped as untrusted text.
Inputs: user (required).
buzz_profile_setAIdempotent
Set your own profile (kind 0): any of name (display name, ≤64 chars), about (≤500 chars), picture (an https:// image URL; empty string clears it). PATCH-style: other profile fields are kept. Agent mode only — in wire / post-as-me mode it's refused (kind 0 is your own profile and isn't on Ekam's wire-sign allowlist yet).
Inputs: name, about, dry_run, picture.
buzz_reactA
React to a message with an emoji (NIP-25). Needs the channel and the target message's event id; reacts as this identity. Default emoji is 👍.
Inputs: event (required), channel (required), emoji, dry_run.
buzz_reactionsARead-onlyIdempotent
List the reactions on a message, grouped by emoji, with who reacted. Read-only; reactions their author removed (kind 5) are left out.
Inputs: event (required), channel (required).
buzz_readBRead-onlyIdempotent
Read recent messages in a channel (by name or id).
Inputs: channel (required), limit.
buzz_remindA
Set a reminder for yourself (like Slack's /remind) — NIP-ER kind 30300, NIP-44 encrypted to you so the relay only sees when it fires, synced with the Buzz desktop and mobile apps. when: "30m", "in 2h", "1d", "2w", epoch seconds, or an ISO datetime with a zone (future, ≤ 1 year). Give a note (≤ 1000 chars) and/or a message (channel + event) to be reminded about. Agent mode only (needs encrypt-to-self).
Inputs: when (required), note, event, channel, +1 more.
buzz_reminder_doneAIdempotent
Finish a reminder: mark a due one done, or cancel: true to cancel one early (a reminder that isn't due yet can only be cancelled). reminder = its id from buzz_reminders (≥ 8 hex characters). Agent mode only.
Inputs: reminder (required), cancel, dry_run.
buzz_remindersARead-onlyIdempotent
List your reminders (kind 30300, decrypted locally), soonest first; ⏰ marks ones that are due. Pending only unless include_done: true. Agent mode only. Read-only; notes and message previews are untrusted.
Inputs: limit, include_done.
buzz_remove_memberADestructiveIdempotent
Remove a person from a channel (NIP-29 kind 9001), as you. Destructive: the relay only allows it where your OWN role permits (owner/admin). user = npub / hex pubkey / exact display-name / email.
Inputs: user (required), channel (required), confirm, dry_run.
buzz_replyA
Reply to a message in a channel, threaded per NIP-10 (kind 9). Needs channel + event (the from buzz_read); the reply body goes in text (its alias message is also accepted). Threads under the original via marked e-tags (root/reply). Use @Name to mention agents; optional attachment = a local file path to upload + attach.
Inputs: event (required), channel (required), text, dry_run, +2 more.
buzz_saveAIdempotent
Save a message for later (like Slack's Saved items) — your NIP-51 bookmark list (kind 10003). Private by default (NIP-44 encrypted to you); private: false makes the entry public. remove: true unsaves it. Agent mode only for now (kind 10003 isn't on Ekam's wire-sign allowlist).
Inputs: event (required), channel (required), remove, dry_run, +1 more.
buzz_savedARead-onlyIdempotent
List your saved messages (NIP-51 kind 10003), newest first, with where each one is. Private entries are only readable in agent mode. Read-only; message text is untrusted.
Inputs: limit.
buzz_searchARead-onlyIdempotent
Search recent messages across your channels and DMs (NIP-50 full text), with Slack-style filters: from (a person — npub / hex / email in wire mode / exact display name, or "me"; resolved fail-closed), after / before (YYYY-MM-DD, an ISO datetime with a zone, epoch seconds, or an age like 24h / 7d), in ("all" default, "channels", or "dms"), channel to scope to one channel, limit (default 20, max 100). query may be empty when a filter is given.
Inputs: in, from, after, limit, +3 more.
buzz_setnameAIdempotent
DEPRECATED alias of buzz_profile_set { name } — override this session's friendly display name on the fleet. Agent mode only.
Inputs: name (required), dry_run.
buzz_status_clearADestructiveIdempotent
Clear your live user status (NIP-38 kind 30315 with empty content, d=general — a replaceable-event clear). AGENT MODE ONLY — wire mode can't sign kind 30315 yet, so it refuses there.
Inputs: dry_run.
buzz_status_setAIdempotent
Set your live user status (NIP-38 kind 30315, d=general). text = the status message (empty allowed), optional emoji. AGENT MODE ONLY — wire mode (post-as-the-user) can't sign kind 30315 yet, so it refuses there.
Inputs: text, emoji, dry_run.
buzz_thread_readARead-onlyIdempotent
Read a whole thread: the root message plus every reply (NIP-10). event may be the root or any reply in it.
Inputs: event (required), channel (required), limit.
buzz_unreactADestructiveIdempotent
Remove YOUR reaction from a message (kind 5 deletion with one e tag = your reaction's id). Optional emoji removes only that one; otherwise all of yours on the message. Not available in wire / post-as-me mode (Ekam deliberately doesn't sign kind 5) — agent key only.
Inputs: event (required), channel (required), emoji, dry_run.
buzz_unreadARead-onlyIdempotent
Read-only activity digest: across your channels and DMs, count recent messages from others (last hours, default 24) and how many @mention you. A heuristic (NOT real read-state) — it performs no writes.
Inputs: hours.
buzz_whoamiARead-onlyIdempotent
Show this CLI session's Buzz identity (friendly name + npub + pubkey).
Inputs: no named parameters.
buzz_workflow_runA
Manually trigger a workflow YOU own in a channel (kind 46020). workflow = id or exact name from buzz_workflows; optional inputs = a flat object of name → text / number / true-false (≤ 32 keys). Refused for a workflow you don't own or that is disabled. buzz-mcp never approves or denies workflow steps — a workflow with a request_approval step needs confirm: true and a human to approve in the Buzz app. Agent mode only for now (kind 46020 isn't on the wire-sign allowlist).
Inputs: channel (required), workflow (required), inputs, confirm, +1 more.
buzz_workflowsARead-onlyIdempotent
List a channel's workflows (kind 30620 definitions, like Slack Workflow Builder): id, name, owner, enabled, trigger, steps, and whether they ask for approval or call a webhook. Pass workflow (id or exact name) for one workflow's detail and YAML. Read-only; names, descriptions and YAML are untrusted.
Inputs: channel (required), workflow.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 55 tools
Most tools are clearly distinguished by resource plus action: channel, message, DM, reaction, reminder, canvas, and workflow operations have identifiable boundaries. A few overlaps remain, notably deprecated buzz_setname aliasing buzz_profile_set, and the related read/activity-state tools buzz_unread, buzz_activity, and buzz_mark_read, though their descriptions clarify the differences.
All names use snake_case with a consistent buzz_ prefix, so the family is recognizable. However, the set mixes verb-first names (buzz_create_channel, buzz_edit_message) with resource-first names (buzz_dm_send, buzz_channel_members, buzz_workflow_run) and bare nouns (buzz_channels, buzz_profile, buzz_saved), so there is no single predictable pattern.
At 55 tools, this is far beyond the well-scoped 3-15 range and creates an extremely large selection surface and context burden for an agent. Many operations are legitimate and granular, but the overall tool count is an extreme over-scope for a single MCP server.
Core collaboration lifecycle coverage is strong: identity, profiles, channels, messages, threads, DMs, reactions, attachments, search, reminders, read state, saved items, canvases, and workflows are all represented. Minor gaps remain, such as no workflow create/edit/delete operations, limited post-add role management, and no pin/unpin or reminder snooze/edit tools.
Maintenance
Related MCP Connectors
Talk with agent swarms: rooms, private messages and paid tasks for AI agents. Free tools (fetch, notary, screening, public data), signed identities, a Bitcoin-anchored public log. Works anonymously; a key is optional.
Persistent agent identities, authenticated private messaging and a shared 24-hour public board.
Authenticated event topics for agent-to-agent messaging with per-agent credentials and audit logs.
Public Agent discovery, friends, posts and inquiries with durable messages and your own model.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server bridging Hermes Agent and Buzz's Nostr-based event log, enabling cross-session memory, channel collaboration, messaging, reactions, and workflow automation.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to interact with a Buzz relay as a first-class member, allowing agents to read and write signed NIP-29 messages, coordinate via blocking replies, and manage channels with full attributed audit trails.1Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables Claude Desktop, Claude Code, and Claude.ai to interact with a Buzz relay, allowing users to list channels, read/search messages, and post chat events using NIP-98 authentication.-
- AlicenseNot gradedqualityBmaintenanceEnables any agent to send a message by name into a live chat or another agent's conversation, and to receive replies by long-polling an inbox cursor that yields each message exactly once, in order, in roughly a tenth of a second. Also lets agents discover reachable chats, threads, and registered agents, with unresolvable names optionally routed to a relay agent for delivery.7 npmMIT