@mosadd/mcp 3.0.0-alpha.57 → 3.0.0-alpha.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,391 +1,407 @@
1
- # Changelog
2
-
3
- All notable changes to `@mosadd/mcp` are documented here.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project follows the `3.0.0-alpha.N` pre-release line until the hosted
7
- gateway (Phase 2) ships.
8
-
9
- ## [Unreleased]
10
-
11
- ## [3.0.0-alpha.57] — 2026-11-15
12
-
13
- ### Fixed
14
- - **`mTALK_open {label}` opens a room you own.** The room id is now `mosadd-room-<your identity id>-<label>`;
15
- you and your accepted contacts can join it, a stranger cannot (before: one shared `mosadd-room-<label>` for every
16
- account, refused to everyone, including its creator).
17
- - **`mDM_list` returns voice notes with their transcript and recording.** Voice/PTT messages carry
18
- `voice: { transcript, audio_url, duration_ms }` (signed URL, read with the caller's own permissions) instead of a
19
- bare caption.
20
-
21
- ## [3.0.0-alpha.56] — 2026-11-10
22
-
23
- ### Added
24
- - **`mDM_send_as_agent` `thread_label?`** (LINEAR-6577) — same optional label alphabet as
25
- `mDM_send` (`[a-zA-Z0-9._-]`, 1–120). Omit = MAIN unlabeled thread (ops lock for SOVEREIGN/King
26
- until rename/UI merge). A new label opens a new `dm:A:B:label` thread.
27
-
28
- ## [3.0.0-alpha.55] — 2026-09-29
29
-
30
- ### Fixed
31
- - **Channel/room reader: the King's posts read as text, not `<ciphertext>`** (ZERO SZYFROWANIA,
32
- rozkaz Krola 28.09). `mIRC_list_messages` and `mROOM_list_messages` understood only a JSON
33
- `mosadd.chat.v1` envelope and stamped everything else `<ciphertext>` — including every post
34
- the app writes (plain UTF-8 in base64, `ircApi.ts encodePayload`) on the OPEN, keyless #adm and
35
- #command (measured 28–29.09: f159c8d7, 776b3e9a). New shared decoder `tools/channel-payload.ts`
36
- (same rule as `mdm.ts unpackPayload` and the mKEEPER bridge `decodePayload.mjs`): envelope →
37
- its `text`; plain UTF-8 → the text; other JSON (voice `{audio, mime, dur}`) → raw, so
38
- `formatVoiceIfAny` shapes it (mROOM now too). `<ciphertext>` stays ONLY for a sealed envelope
39
- the line cannot open — group-key `{iv, ciphertext, hmac}` without the key, `mosadd.e2ee.*` —
40
- and for bytes that are not UTF-8 text.
41
- - **`mDM_send`: conversations with fleet lines and with the King always in the clear.** Besides
42
- an agent line on either side (alpha.54), a note to SELF (`to === selfId`) now goes plain too
43
- (MCP sessions on the King's key sealed his own thread; `message-send` refuses envelopes there
44
- with `fleet_plaintext_only`). The result carries `reason: "fleet_plaintext"` (plain) or
45
- `"human_to_human"` (E2EE). Person↔person stays X3DH + Double Ratchet, unchanged.
46
- - **Tool descriptions:** `mDM_send_unencrypted` is no longer "DEPRECATED / prefer mDM_send / will
47
- be removed" — that text steered every LLM line to the sealing tool. Both DM send tools now say:
48
- conversations with fleet lines and with the King are ALWAYS in the clear.
49
- - Lock `src/__tests__/flota-jawnie.test.ts` (13 tests): red on alpha.54 (7/13, the King's text →
50
- `<ciphertext>`), red under five sabotages of the new rules, green after.
51
-
52
- ## [3.0.0-alpha.54] — 2026-09-27
53
-
54
- ### Fixed
55
- - **`mDM_send` — readable on EVERY key of the identity, and never a false reason in the app**
56
- (correction of alpha.53 after independent verification, LINEAR-6089 follow-up). alpha.53 seeded
57
- the mDM identity from ONE API key and let an agent line (re)publish it. An identity holds many
58
- keys (each OAuth connector mints its own; measured 27.09: general@ has 8 active, 7 of 17 agent
59
- identities have several), so the key directory flapped between per-key identities: a `s1.`
60
- copy opened only under the key that wrote it, and `r1.` copies stopped opening for the
61
- recipient after the next send from another key. alpha.53 also typed sends on a PERSON's key
62
- `txt` with a `s1.` copy the app can never open, so the app told the owner a false reason
63
- ("sent from another device" / "unlock your identity") instead of "sent by MCP".
64
- - **Agent lines send in the clear** — the King's rule of 20.09 (no E2EE for lines<->lines,
65
- lines<->King, human->line), the same rule the app applies (`peerIsAgent`). When the sender
66
- or the recipient is `kind = 'agent'`, `mDM_send` writes plain UTF-8, type `txt`, and never
67
- touches the key directory. Every key of the line and the recipient's app on every device read
68
- it. Result field `mode: "plaintext_agent_lane"`, `encrypted: false`.
69
- - **Human<->human stays E2EE**, but on a person's key MCP never writes their key directory
70
- automatically (neither over the app's bundle nor on an empty directory), writes no `s1.`
71
- copy, and types the envelope `text`, which the app reads as "sent by MCP, no copy for this
72
- device". A note-to-self is sealed to the app's bundle and opens in the app.
73
- - **`mDM_publish_keys` no longer overwrites a person's app bundle** (`published: false`,
74
- `identity: "foreign"`, with a note). It may fill an empty directory. Agent lines may still
75
- publish explicitly.
76
- - **`autoPublishKeys`** (stdio) follows the same policy (`bundlePolicyForKind`): agent lines and
77
- people write nothing; other lanes (radio) publish on an empty directory as before.
78
- - New `SupabaseDmProvider.peerKind(id)`; `ensureOwnBundlePublished` takes a `BundlePolicy` and
79
- can return `"absent"`.
80
-
81
- ## [3.0.0-alpha.53] — 2026-09-27
82
-
83
- ### Fixed
84
- - **`mDM_send` — the envelope is born READABLE, for the sender and for the recipient**
85
- (follow-up to LINEAR-6089). Measured on prod 27.09: every DM sent through the hosted gateway
86
- was sealed by a brand-new random identity (a fresh `InMemoryMdmKeyStore` per HTTP request),
87
- carried no `self_payload` / `recipient_self_payload`, and was typed `text`. The sender could
88
- never read its own message again; the recipient only through a live ratchet session.
89
- - **One identity per login secret.** With an API key the mDM identity is derived from it by
90
- HKDF (`SeededMdmKeyStore`, labels identical to the app's `deriveOwnMaterialFromSeed`: zero
91
- one-time prekeys, signed-prekey id 1). Every gateway instance, call and restart = same keys.
92
- - **The key directory agrees with it** (`ensureOwnBundlePublished`): empty → publish; an
93
- AGENT line with a stale bundle → replace; a PERSON's app-anchored bundle → never overwritten
94
- (the send still works, only the recipient copy is skipped). `autoPublishKeys` uses the same
95
- policy instead of a blind publish.
96
- - **`self_payload`** ("s1.", AES-GCM under the seed's self-read key) and
97
- **`recipient_self_payload`** ("r1.", AES-GCM under HKDF(ECDH(sender IK, recipient IK))) —
98
- the app's exact formats, so `mDM_list` on any process and the app on any device open them.
99
- - **`message_type: "txt"`** (the app's type; `text` is legacy) for `mDM_send` and
100
- `mDM_send_unencrypted`.
101
- - `mDM_list` opens own messages from `self_payload` and incoming ones from
102
- `recipient_self_payload` before touching the ratchet.
103
- - `mDM_send` result gains `sender_copy`, `recipient_copy`, `identity` (additive).
104
- - `server.json` version drifted to alpha.51 while the package was alpha.52; both now alpha.53.
105
-
106
- ## [3.0.0-alpha.33] — 2026-08-11
107
-
108
- **The republish that closes a three-week gap between the repo and the client's disk.**
109
- `3.0.0-alpha.32` was published 2026-07-19 and every change since then lived only in git.
110
- Measured on the published tarball that day: it registers **71** tools while its own npm
111
- description advertises **69** and the website advertises **77**. Three numbers, one
112
- package. This release makes the published artifact the thing the docs describe.
113
-
114
- ### Added
115
- - **`mAYL_send_as_agent`** re-registered (2026-07-29) after the hub-claim → mp0st-send
116
- chain was proven on an authenticated call.
117
- - **`mTALK_ingest_ptt`** re-registered (2026-07-29) after the ingest path was repointed
118
- at `rag-transcribe` and returned a real `200 {"queued":true}` on prod.
119
- - **`mAYL_agentbox_provision` / `_list` / `_extend` / `_release`** (2026-08-06,
120
- LINEAR-5201) — an agent mints, lists, extends and releases its OWN two-way disposable
121
- inbox (`agent-<hex>@mosadd.com`). `create_inbox` parity with AgentMail, on our stack.
122
- - **`mRAG_graph_refresh` / `_overview` / `_neighbors` / `_timeline`** (2026-08-11) — the MCP
123
- door onto the per-user knowledge graph (`kg_*` RPCs). Search finds text; these walk who/what/
124
- when (parties, connections, dated timelines), built from message METADATA only, never bodies.
125
- - Stdio hub-key auth (`MOSADD_API_KEY`) in `src/bin/mcp.ts` — the local stdio server can
126
- exchange a hub key instead of requiring the BYOK env trio.
127
-
128
- Tool count **71 → 81**: six tools existed in the repo but had **never been published**
129
- (71 → 77 — an agent installing `@mosadd/mcp` got 71 while every doc surface promised 77),
130
- AND four new `mRAG_graph_*` knowledge-graph traversal tools were added 2026-08-11 (77 → 81).
131
- `TOOL_COUNT` (`= allTools.length`) stays the single source of truth.
132
-
133
- ### Changed
134
- - **`mRAG_search` can now filter on the source types the writers actually stamp.**
135
- The `source_types` enum was missing `file` and `ptt` — `file` is what `mRAG_ingest`
136
- itself writes (its default, and where `note` ingests are mapped), `ptt` is what
137
- `mTALK_ingest_ptt` writes. Measured on prod 2026-08-11: 63 indexed rows were
138
- unreachable by any `source_types` filter. The tool advertised a filter that could not
139
- see its own writes.
140
- - **`mURL_create` no longer promises a status it does not set.** `murl-manage` applies
141
- `status` only on the INSERT of a new row; on an existing channel it writes owner +
142
- branding and leaves status untouched. Since mURL rooms auto-create on first activity,
143
- "already exists" is the COMMON case — so the old "set initial status" wording was
144
- wrong nearly every time it was read. Schema + description now say so and point at
145
- `mURL_update`.
146
- - **`mIRC_post_message` encryption wording.** It posts server-readable plaintext base64
147
- on EVERY access mode, private and password channels included; the app's group-key
148
- encryption is not something the toolkit holds a key for.
149
-
150
- ### Fixed
151
- - Doc surfaces across the repo that hand-typed **73** while `TOOL_COUNT` was 77 (README
152
- breakdown, `packages/mcp/README.md`, `apps/mcp-http/README.md`, dev docs, Realm,
153
- examples). The anti-drift vitest gate pinned one regex per file, so a single corrected
154
- line kept the gate green while the sentence around it stayed wrong — the gate now pins
155
- the PER-MODULE numbers too, not just the total.
156
-
157
- ## [3.0.0-alpha.32] — 2026-07-19
158
-
159
- ### Added
160
- - **`mIRC_discover`** — browse the PUBLIC channel directory (open channels whose
161
- owners set `discoverable=true`). Filter by name, paginated; join a result with
162
- `mIRC_join` (open = one-click). Private/password/partner channels never appear.
163
- - **`mIRC_report`** — report a channel for abuse/moderation (routes to the shared
164
- `content_reports` store as `channel:<id>`), the moderation floor for public discovery.
165
- - **`discoverable`** flag on `mIRC_create` / `mIRC_update` (honoured only for
166
- `access_mode=open`), plus `voice` + `files` added to the capabilities enum.
167
- - Tool count **69 → 71** (mIRC **22 → 24**); `TOOL_COUNT` (`= allTools.length`) stays
168
- the single source of truth.
169
-
170
- ### Changed
171
- - **Encryption posture wording corrected across docs.** `mIRC_post_message` posts a
172
- **server-readable** plaintext payload — the per-channel group-key TEXT E2EE is the
173
- mosadd.com **app** (supported clients), not the toolkit (parity is the next crypto
174
- milestone). Tool descriptions, README, MANIFESTO, e2ee-posture and the registry
175
- copy now state this instead of implying private/password channels are E2EE via the
176
- toolkit. Voice/PTT is always server-relayed (LiveKit SFU, DTLS-SRTP hop-by-hop).
177
-
178
- ## [3.0.0-alpha.31] — 2026-07-17
179
-
180
- ### Fixed
181
- - **`mURL_create` / `mURL_update` branding validation.** The `branding` arg used
182
- `z.record(z.any())` — the Zod v3 single-argument form — which fails typecheck under
183
- this project's Zod v4, where `z.record` requires both a key and a value schema. Now
184
- `z.record(z.string(), z.any())`. alpha.30 shipped with the pre-fix source; alpha.31
185
- corrects it so the published package builds clean and validates branding correctly.
186
- - **CI green (repo).** Synced the version refs (`server.json`, `server.ts` serverInfo,
187
- `marketplace.json`) to `package.json`, and updated the MCP smoke test to expect
188
- `mAYL_send` — the `mp0st_*` aliases were retired in alpha.28.
189
-
190
- ## [3.0.0-alpha.30] — 2026-07-17
191
-
192
- ### Added
193
- - **`comms_embed_create` RE-REGISTERED — tool count 68 → 69.** The paste-in
194
- live-channel widget is finally end-to-end real: `https://embed.mosadd.com/v1.js`
195
- is deployed (served by the mosadd Vercel project; skins are inlined in the
196
- bundle), and the whole backend (`embed-keys` publishable keys, `mirc-embed-token`
197
- Origin-allowlisted 5-min JWTs with MAT plan tiers, `embed-plan-settings` PAYG,
198
- GDPR `embed-dsr-delete`) was already live. The tool mints an `m_pk_live_…` key
199
- and returns a `<script>` snippet with skin + position (incl. sidebar-left/right)
200
- options. Part of the mURL→mIRC rework P3 ("open WWW channel: dedicated page +
201
- branding + embed").
202
-
203
- ## [3.0.0-alpha.29] — 2026-07-17
204
-
205
- ### Added
206
- - **mURL owner-side management — 3 new tools.** `mURL_create` (claim a domain channel and
207
- become its owner; idempotent, 409 if another account owns it), `mURL_update` (set branding /
208
- mark `claimed` / `blocked` to close / reopen as `open`), `mURL_delete` (remove a channel you
209
- own). Wired to the deployed, owner-scoped `murl-manage` EF via the same user-JWT auth as
210
- `mURL_list_channels action='mine'`. mURL goes from read-only (read/post/presence/list) to a
211
- full lifecycle — an agent can now provision and manage a domain's room, not just chat in it.
212
- - **`TOOL_COUNT` export** (`= allTools.length`) — one source of truth for the callable-tool
213
- count, mirroring `@mosadd/threat-engine`'s `THREAT_EVENT_COUNT`. Docs reference it, not a
214
- hand-typed number that drifts.
215
-
216
- ### Changed
217
- - **Tool count corrected to 68** — it had been advertised inconsistently as "70+" / "65" across
218
- READMEs, docs, registry submissions and the dev site. The registry holds exactly 68 callable
219
- tools: mDM 14 · mIRC 22 · mURL 7 · mAYL 11 · mTALK 5 · mRAG 4 · comms_ 3 · Irondome (`threat_*`) 2.
220
- Also fixed two stale claims in the reference table: `threat_*` IS registered (was labelled
221
- "unregistered"), and the `mp0st_*` mAYL aliases are retired (were claimed as still functioning).
222
-
223
- ## [3.0.0-alpha.23] — 2026-06-26
224
-
225
- Toolkit hardening pass: every registered tool's request/response contract was
226
- adversarially verified against the deployed edge functions. Two tools were broken on
227
- every call; the rest had silent field drops, wrong results, or a confidentiality/access gap.
228
-
229
- ### Fixed
230
- - **Edge-function errors are now legible.** `invokeFunction` only ever surfaced the fixed
231
- string "Edge Function returned a non-2xx status code"; the real reason lives in
232
- `error.context`. It now reads that body (and the HTTP status), so every EF-backed tool
233
- returns an actionable error the agent can act on — the single highest-impact fix.
234
- - **mDM_edit no longer strips E2EE.** It used to store a server-readable plaintext body even
235
- on an E2EE thread (and the forward-only ratchet means an edit can't be re-sealed). It now
236
- refuses to edit E2EE messages (use delete + re-send) and only edits legacy plaintext.
237
- - **mp0st_send cc/bcc/reply_to are actually delivered** — the backend dropped them silently;
238
- now forwarded to the mail provider (edge-function fix, deployed).
239
- - **mDM call rooms are access-gated (security)** — call-room tokens were mintable by any
240
- authenticated user who learned the room name; the backend now restricts them to the two
241
- participants, and the room name is per-pair so the gate is robust (edge-function fix, deployed).
242
- - **mDM_call_end / mDM_voice_note** now return the real message id (was always undefined).
243
- - **mp0st_view** no longer advertises a `received_at` field the backend doesn't return (it's `sent_at`).
244
-
245
- ### Changed
246
- - **Unregistered `comms_embed_create`** — its `embed-keys` edge function isn't deployed (404
247
- on every call) and the embed surface is parked. Tool count **62 → 61**. Re-register when the
248
- backend + widget ship.
249
- - **mIRC tools stop advertising fields the backend ignores.** Removed: `mIRC_kick` `reason`,
250
- `mIRC_request_access` `message`, `mIRC_ban` `reason`+`until` (the latter silently made a
251
- "temporary" ban permanent), and `access_mode` on `mIRC_update`/`mIRC_list` (no-ops). Added
252
- `wrapped_group_key` to `mIRC_create`/`mIRC_approve_request` so E2EE (password/private)
253
- channels are honestly callable. Descriptions corrected to match.
254
- - **mp0st_consent** now fails fast client-side when `check`/`optin` is missing a recipient.
255
-
256
- ### Verified (no changes needed)
257
- - Install/boot, full build + typecheck across all packages, dependency-export resolution, and
258
- the mDM X3DH + Double-Ratchet crypto round-trip all pass.
259
-
260
- ## [3.0.0-alpha.22] — 2026-06-26
261
-
262
- ### Fixed
263
- - **alpha.21 was broken on a fresh install** — it crashed on startup with
264
- `SyntaxError: The requested module '@mosadd/crypto' does not provide an export named
265
- 'initRatchetInitiator'`. The workspace dependency packages (`@mosadd/crypto`, `protocol`,
266
- `providers`, `threat-engine`) had drifted: their *source* gained new exports (the mDM
267
- Double-Ratchet work) but their version was never bumped, so npm still served the stale
268
- alpha.4/alpha.5 builds while `@mosadd/mcp` was built against the newer API. Bumped the whole
269
- alpha-line in lockstep to alpha.22 and republished so every published package matches current
270
- source and `workspace:*` cross-deps resolve. Verified: a clean `npm i @mosadd/mcp@alpha`
271
- now boots and lists 62 tools. (The previous alpha.20 was broken-on-install the same way.)
272
-
273
- ### Changed
274
- - **Unregistered 2 scaffold tools that failed on every call.** `mp0st_send_as_agent`
275
- (POSTed to a non-existent `hub-claim-mint` endpoint → 404, and sent provenance body
276
- fields the deployed `mp0st-send` EF never reads) and `mTALK_ingest_ptt` (request body
277
- didn't match the deployed `ptt-ingest` EF → 400). Both are now commented out in
278
- `tools/index.ts` like the other not-registered modules, so an agent only ever discovers
279
- tools that actually work. Registered tool count **64 → 62** (mp0st 12→11, mTALK 6→5).
280
- Source is kept; both re-register once their backend contracts are wired + tested.
281
-
282
- ### Fixed
283
- - **mIRC `reject_request` / `approve_request` field (LINEAR-3522):** the tools sent
284
- `request_id` but `channel-members-manage` reads `target_identity_id` → 400 every
285
- call. Renamed to `identity_id` (normalized to `target_identity_id`). `reject` now
286
- works; `approve` of an E2EE channel still needs a wrapped group key (LINEAR-3523).
287
- - **mDM / mIRC message pagination (LINEAR-3524):** `mDM_list` read `cursor`/`has_more`
288
- but `message-list` history mode returns `next_before`, and `mIRC_list_messages`
289
- sent `cursor` (ignored; EF reads `before`) and read `next_cursor` (never returned)
290
- → neither paged past page 1. Send `before`, read `next_before`.
291
-
292
- ## [3.0.0-alpha.19] — 2026-06-19
293
-
294
- ### Removed
295
- - **BREAKING — mROOM module killed (LINEAR-3414):** the 11 `mROOM_*` tools
296
- (`mROOM_create`, `mROOM_create_guest_link`, `mROOM_join`, `mROOM_leave`,
297
- `mROOM_close`, `mROOM_list`, `mROOM_voice_join`, `mROOM_send_message`,
298
- `mROOM_list_messages`, `mROOM_send_voice`, `mROOM_send_file`) are no longer
299
- registered. Ephemeral private rooms are re-cut into private mIRC channels.
300
- The source stays in `tools/mroom*.ts` (unregistered, like mURL/mCALL).
301
-
302
- ### Added
303
- - **Defensive threat engine as MCP tools (LINEAR-3498):** `threat_catalog`
304
- (list the canonical 160+ threat-event taxonomy) and `threat_classify`
305
- (pure `evaluateEvent` decision → action/severity/reason). Wraps
306
- `@mosadd/threat-engine`; deterministic, offline, `requires: "any"`.
307
-
308
- Net: 70 → **64 callable tools** across 5 live modules + comms + threat.
309
-
310
- ### Changed
311
- - **BREAKING — mail tool rename:** the 12 email MCP tools are renamed
312
- `mAIL_*` → `mp0st_*` (`mp0st_list`, `mp0st_send`, `mp0st_view`, `mp0st_delete`,
313
- `mp0st_stats`, `mp0st_events`, `mp0st_metrics`, `mp0st_revoke`,
314
- `mp0st_audit_export`, `mp0st_consent`, `mp0st_notify`, `mp0st_send_as_agent`).
315
- No aliases — the old `mAIL_*` names no longer resolve. Backend Edge Functions
316
- (`mp0st-*`) are unchanged.
317
-
318
- ## [3.0.0-alpha.18] — 2026-06-18
319
-
320
- ### Added
321
- - **`comms_embed_create`** — embed a LIVE mosadd channel into an app/site a builder-agent is
322
- generating (Lovable / Bolt / Cursor / v0). Mints a publishable embed key (`m_pk_live_…`,
323
- origin-scoped, via the `embed-keys` EF) and returns a paste-in widget snippet
324
- (`<div>` + `<script src="https://embed.mosadd.com/v1.js" data-key=…>`). The widget exchanges
325
- the publishable key for a short-lived channel-scoped JWT at runtime; the hub key never enters
326
- the browser. Extends `mROOM_create_guest_link` (link → embeddable widget). CDN override via
327
- `MOSADD_EMBED_CDN`. (Widget served from the dedicated `embed.mosadd.com` deploy.)
328
-
329
- ## [3.0.0-alpha.17] — 2026-06-18
330
-
331
- ### Added
332
- - **Action Links — screen share.** `comms_action_create` gains a `screen_share` action
333
- type, and a new `comms_action_frame_get` tool lets the creating agent read frames of the
334
- recipient's shared screen (consent-gated, browser-sandbox only). Turns Action Links into
335
- "remote-desktop-lite" — the agent sees what the human chooses to share.
336
-
337
- ### Changed
338
- - **Durable `mosadd login`.** The saved session (`~/.mosadd/session.json`) is now refreshed
339
- from its refresh token at server boot, so a single `mosadd login` keeps working across
340
- restarts — no more re-login when the access token expires.
341
- - Onboarding README restructured (recommended auth path — `mosadd login` — first; hub API
342
- key second; DevTools JWT demoted), and the 61→70 / `mosadd.dev`→`mosadd.com` reconciliation
343
- (first shipped on the published package with this release).
344
-
345
- ## [3.0.0-alpha.16] — 2026-06-17
346
-
347
- ### Fixed
348
- - `mAIL_view` now calls the `mp0st-get` Edge Function (read a message by id,
349
- owner-scoped) instead of `mp0st-view` (the tracking-pixel endpoint, which
350
- returned "Missing tracking ID"). ([LINEAR-2917])
351
- - CI publish drops `--provenance` — npm returned 422 because the source repo
352
- (`mosadd-os`) is private, so provenance attestation is not available.
353
-
354
- ### Added (cumulative since alpha.4 — tool count 61 → 70)
355
- - **Action links (Tier 1):** `comms_action_create` mints a one-link browser
356
- action an agent can hand to a human (run-with-consent in the mosadd sandbox).
357
- - **mAIL provenance:** `mAIL_send_as_agent` stamps agent/human provenance on the
358
- message so the recipient sees who actually sent it.
359
- - **File & voice attachments:** `mDM_send_voice` / `mDM_send_file`,
360
- `mROOM_send_voice` / `mROOM_send_file`, `mIRC_send_voice` / `mIRC_send_file`
361
- (reuse the existing `chat-files` bucket — no new transport).
362
- - **mTALK → RAG:** `mTALK_ingest_ptt` feeds push-to-talk audio into the RAG index
363
- (opt-in, gated server-side).
364
- - **mROOM:** `mROOM_create_guest_link` (single-call, no-account guest links) and
365
- `mROOM_voice_join`.
366
- - **mIRC edge transport:** `mIRC_mint_channel_token`, `mIRC_send_edge`,
367
- `mIRC_history_edge` — the low-latency path the agent-coordination skill rides.
368
-
369
- ### Changed
370
- - README, `package.json`, and the plugin `marketplace.json` reconciled to the
371
- current surface: **70 tools across 6 modules** + `comms_capabilities`
372
- discovery (71 callable), version `alpha.16`, and `mosadd.dev` → `mosadd.com`
373
- (the dev surface was consolidated into the main site). ([LINEAR-3391])
374
- - `mCALL` (telephony, carrier-pending) and `mURL` (brand/consumer surface)
375
- remain **unregistered** in `tools/index.ts` — an agent only ever discovers
376
- tools that actually work.
377
-
378
- ## [3.0.0-alpha.4]
379
-
380
- ### Added
381
- - Initial public alpha: **61 tools across 6 live modules** — mDM (incl. voice),
382
- mIRC, mROOM, mAIL, mTALK, mRAG — plus the `comms_capabilities` discovery tool.
383
- - BYOK mode: the server talks to your own mosadd Supabase backend via
384
- `MOSADD_SUPABASE_URL` / `MOSADD_SUPABASE_ANON_KEY` / `MOSADD_USER_JWT`.
385
- - Apache-2.0 license; tool names follow [RFC 0001] (`m<MODULE>_<operation>`).
386
-
387
- [3.0.0-alpha.16]: https://github.com/Hei33enberg/mosadd-os/tree/main/packages/mcp
388
- [3.0.0-alpha.4]: https://github.com/Hei33enberg/mosadd-os/tree/main/packages/mcp
389
- [LINEAR-2917]: https://linear.app/ip-ra/issue/LINEAR-2917
390
- [LINEAR-3391]: https://linear.app/ip-ra/issue/LINEAR-3391
391
- [RFC 0001]: https://github.com/Hei33enberg/mosadd-os/blob/main/docs/rfcs/0001-module-naming.md
1
+ # Changelog
2
+
3
+ All notable changes to `@mosadd/mcp` are documented here.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project follows the `3.0.0-alpha.N` pre-release line until the hosted
7
+ gateway (Phase 2) ships.
8
+
9
+ ## [Unreleased]
10
+
11
+ ## [3.0.0-alpha.59] — 2026-11-16
12
+
13
+ ### Added
14
+ - **`mRAG_search` accepts `answer: boolean`** (default `false`). It is forwarded to `rag-query`: by default the tool returns the ranked sources only; pass `answer: true` to also get a generated answer grounded in them.
15
+
16
+ ### Fixed
17
+ - **Default backend host.** `MOSADD_API_KEY` login (`hub-key-exchange`) and the mail-provenance / mIRC edge defaults pointed at the retired cloud `rooffhgbxafyjcwmwpsy.supabase.co`, which no longer answers. They now default to `https://api.mosadd.com` (`MOSADD_HUB_URL` still overrides). A test fails if any source file carries the old host again.
18
+
19
+ ## [3.0.0-alpha.58] — 2026-11-16
20
+
21
+ ### Added
22
+ - **CLI:** `npx @mosadd/mcp --version`, `--help` and `tools` print (version, commands + env vars, all tools grouped by module) and exit instead of starting the stdio server.
23
+
24
+ ### Fixed
25
+ - The "ready" log line now reports the `package.json` version (it said `3.0.0-alpha.0`).
26
+
27
+ ## [3.0.0-alpha.57] — 2026-11-15
28
+
29
+ ### Fixed
30
+ - **`mTALK_open {label}` opens a room you own.** The room id is now `mosadd-room-<your identity id>-<label>`;
31
+ you and your accepted contacts can join it, a stranger cannot (before: one shared `mosadd-room-<label>` for every
32
+ account, refused to everyone, including its creator).
33
+ - **`mDM_list` returns voice notes with their transcript and recording.** Voice/PTT messages carry
34
+ `voice: { transcript, audio_url, duration_ms }` (signed URL, read with the caller's own permissions) instead of a
35
+ bare caption.
36
+
37
+ ## [3.0.0-alpha.56] — 2026-11-10
38
+
39
+ ### Added
40
+ - **`mDM_send_as_agent` `thread_label?`** (LINEAR-6577) — same optional label alphabet as
41
+ `mDM_send` (`[a-zA-Z0-9._-]`, 1–120). Omit = MAIN unlabeled thread (ops lock for SOVEREIGN/King
42
+ until rename/UI merge). A new label opens a new `dm:A:B:label` thread.
43
+
44
+ ## [3.0.0-alpha.55] — 2026-09-29
45
+
46
+ ### Fixed
47
+ - **Channel/room reader: the King's posts read as text, not `<ciphertext>`** (ZERO SZYFROWANIA,
48
+ rozkaz Krola 28.09). `mIRC_list_messages` and `mROOM_list_messages` understood only a JSON
49
+ `mosadd.chat.v1` envelope and stamped everything else `<ciphertext>` — including every post
50
+ the app writes (plain UTF-8 in base64, `ircApi.ts encodePayload`) on the OPEN, keyless #adm and
51
+ #command (measured 28–29.09: f159c8d7, 776b3e9a). New shared decoder `tools/channel-payload.ts`
52
+ (same rule as `mdm.ts unpackPayload` and the mKEEPER bridge `decodePayload.mjs`): envelope →
53
+ its `text`; plain UTF-8 → the text; other JSON (voice `{audio, mime, dur}`) → raw, so
54
+ `formatVoiceIfAny` shapes it (mROOM now too). `<ciphertext>` stays ONLY for a sealed envelope
55
+ the line cannot open — group-key `{iv, ciphertext, hmac}` without the key, `mosadd.e2ee.*` —
56
+ and for bytes that are not UTF-8 text.
57
+ - **`mDM_send`: conversations with fleet lines and with the King always in the clear.** Besides
58
+ an agent line on either side (alpha.54), a note to SELF (`to === selfId`) now goes plain too
59
+ (MCP sessions on the King's key sealed his own thread; `message-send` refuses envelopes there
60
+ with `fleet_plaintext_only`). The result carries `reason: "fleet_plaintext"` (plain) or
61
+ `"human_to_human"` (E2EE). Person↔person stays X3DH + Double Ratchet, unchanged.
62
+ - **Tool descriptions:** `mDM_send_unencrypted` is no longer "DEPRECATED / prefer mDM_send / will
63
+ be removed" — that text steered every LLM line to the sealing tool. Both DM send tools now say:
64
+ conversations with fleet lines and with the King are ALWAYS in the clear.
65
+ - Lock `src/__tests__/flota-jawnie.test.ts` (13 tests): red on alpha.54 (7/13, the King's text →
66
+ `<ciphertext>`), red under five sabotages of the new rules, green after.
67
+
68
+ ## [3.0.0-alpha.54] — 2026-09-27
69
+
70
+ ### Fixed
71
+ - **`mDM_send` — readable on EVERY key of the identity, and never a false reason in the app**
72
+ (correction of alpha.53 after independent verification, LINEAR-6089 follow-up). alpha.53 seeded
73
+ the mDM identity from ONE API key and let an agent line (re)publish it. An identity holds many
74
+ keys (each OAuth connector mints its own; measured 27.09: general@ has 8 active, 7 of 17 agent
75
+ identities have several), so the key directory flapped between per-key identities: a `s1.`
76
+ copy opened only under the key that wrote it, and `r1.` copies stopped opening for the
77
+ recipient after the next send from another key. alpha.53 also typed sends on a PERSON's key
78
+ `txt` with a `s1.` copy the app can never open, so the app told the owner a false reason
79
+ ("sent from another device" / "unlock your identity") instead of "sent by MCP".
80
+ - **Agent lines send in the clear** — the King's rule of 20.09 (no E2EE for lines<->lines,
81
+ lines<->King, human->line), the same rule the app applies (`peerIsAgent`). When the sender
82
+ or the recipient is `kind = 'agent'`, `mDM_send` writes plain UTF-8, type `txt`, and never
83
+ touches the key directory. Every key of the line and the recipient's app on every device read
84
+ it. Result field `mode: "plaintext_agent_lane"`, `encrypted: false`.
85
+ - **Human<->human stays E2EE**, but on a person's key MCP never writes their key directory
86
+ automatically (neither over the app's bundle nor on an empty directory), writes no `s1.`
87
+ copy, and types the envelope `text`, which the app reads as "sent by MCP, no copy for this
88
+ device". A note-to-self is sealed to the app's bundle and opens in the app.
89
+ - **`mDM_publish_keys` no longer overwrites a person's app bundle** (`published: false`,
90
+ `identity: "foreign"`, with a note). It may fill an empty directory. Agent lines may still
91
+ publish explicitly.
92
+ - **`autoPublishKeys`** (stdio) follows the same policy (`bundlePolicyForKind`): agent lines and
93
+ people write nothing; other lanes (radio) publish on an empty directory as before.
94
+ - New `SupabaseDmProvider.peerKind(id)`; `ensureOwnBundlePublished` takes a `BundlePolicy` and
95
+ can return `"absent"`.
96
+
97
+ ## [3.0.0-alpha.53] — 2026-09-27
98
+
99
+ ### Fixed
100
+ - **`mDM_send` — the envelope is born READABLE, for the sender and for the recipient**
101
+ (follow-up to LINEAR-6089). Measured on prod 27.09: every DM sent through the hosted gateway
102
+ was sealed by a brand-new random identity (a fresh `InMemoryMdmKeyStore` per HTTP request),
103
+ carried no `self_payload` / `recipient_self_payload`, and was typed `text`. The sender could
104
+ never read its own message again; the recipient only through a live ratchet session.
105
+ - **One identity per login secret.** With an API key the mDM identity is derived from it by
106
+ HKDF (`SeededMdmKeyStore`, labels identical to the app's `deriveOwnMaterialFromSeed`: zero
107
+ one-time prekeys, signed-prekey id 1). Every gateway instance, call and restart = same keys.
108
+ - **The key directory agrees with it** (`ensureOwnBundlePublished`): empty → publish; an
109
+ AGENT line with a stale bundle → replace; a PERSON's app-anchored bundle → never overwritten
110
+ (the send still works, only the recipient copy is skipped). `autoPublishKeys` uses the same
111
+ policy instead of a blind publish.
112
+ - **`self_payload`** ("s1.", AES-GCM under the seed's self-read key) and
113
+ **`recipient_self_payload`** ("r1.", AES-GCM under HKDF(ECDH(sender IK, recipient IK))) —
114
+ the app's exact formats, so `mDM_list` on any process and the app on any device open them.
115
+ - **`message_type: "txt"`** (the app's type; `text` is legacy) for `mDM_send` and
116
+ `mDM_send_unencrypted`.
117
+ - `mDM_list` opens own messages from `self_payload` and incoming ones from
118
+ `recipient_self_payload` before touching the ratchet.
119
+ - `mDM_send` result gains `sender_copy`, `recipient_copy`, `identity` (additive).
120
+ - `server.json` version drifted to alpha.51 while the package was alpha.52; both now alpha.53.
121
+
122
+ ## [3.0.0-alpha.33] — 2026-08-11
123
+
124
+ **The republish that closes a three-week gap between the repo and the client's disk.**
125
+ `3.0.0-alpha.32` was published 2026-07-19 and every change since then lived only in git.
126
+ Measured on the published tarball that day: it registers **71** tools while its own npm
127
+ description advertises **69** and the website advertises **77**. Three numbers, one
128
+ package. This release makes the published artifact the thing the docs describe.
129
+
130
+ ### Added
131
+ - **`mAYL_send_as_agent`** re-registered (2026-07-29) after the hub-claim → mp0st-send
132
+ chain was proven on an authenticated call.
133
+ - **`mTALK_ingest_ptt`** re-registered (2026-07-29) after the ingest path was repointed
134
+ at `rag-transcribe` and returned a real `200 {"queued":true}` on prod.
135
+ - **`mAYL_agentbox_provision` / `_list` / `_extend` / `_release`** (2026-08-06,
136
+ LINEAR-5201) — an agent mints, lists, extends and releases its OWN two-way disposable
137
+ inbox (`agent-<hex>@mosadd.com`). `create_inbox` parity with AgentMail, on our stack.
138
+ - **`mRAG_graph_refresh` / `_overview` / `_neighbors` / `_timeline`** (2026-08-11) — the MCP
139
+ door onto the per-user knowledge graph (`kg_*` RPCs). Search finds text; these walk who/what/
140
+ when (parties, connections, dated timelines), built from message METADATA only, never bodies.
141
+ - Stdio hub-key auth (`MOSADD_API_KEY`) in `src/bin/mcp.ts` — the local stdio server can
142
+ exchange a hub key instead of requiring the BYOK env trio.
143
+
144
+ Tool count **71 → 81**: six tools existed in the repo but had **never been published**
145
+ (71 → 77 — an agent installing `@mosadd/mcp` got 71 while every doc surface promised 77),
146
+ AND four new `mRAG_graph_*` knowledge-graph traversal tools were added 2026-08-11 (77 → 81).
147
+ `TOOL_COUNT` (`= allTools.length`) stays the single source of truth.
148
+
149
+ ### Changed
150
+ - **`mRAG_search` can now filter on the source types the writers actually stamp.**
151
+ The `source_types` enum was missing `file` and `ptt` — `file` is what `mRAG_ingest`
152
+ itself writes (its default, and where `note` ingests are mapped), `ptt` is what
153
+ `mTALK_ingest_ptt` writes. Measured on prod 2026-08-11: 63 indexed rows were
154
+ unreachable by any `source_types` filter. The tool advertised a filter that could not
155
+ see its own writes.
156
+ - **`mURL_create` no longer promises a status it does not set.** `murl-manage` applies
157
+ `status` only on the INSERT of a new row; on an existing channel it writes owner +
158
+ branding and leaves status untouched. Since mURL rooms auto-create on first activity,
159
+ "already exists" is the COMMON case — so the old "set initial status" wording was
160
+ wrong nearly every time it was read. Schema + description now say so and point at
161
+ `mURL_update`.
162
+ - **`mIRC_post_message` encryption wording.** It posts server-readable plaintext base64
163
+ on EVERY access mode, private and password channels included; the app's group-key
164
+ encryption is not something the toolkit holds a key for.
165
+
166
+ ### Fixed
167
+ - Doc surfaces across the repo that hand-typed **73** while `TOOL_COUNT` was 77 (README
168
+ breakdown, `packages/mcp/README.md`, `apps/mcp-http/README.md`, dev docs, Realm,
169
+ examples). The anti-drift vitest gate pinned one regex per file, so a single corrected
170
+ line kept the gate green while the sentence around it stayed wrong — the gate now pins
171
+ the PER-MODULE numbers too, not just the total.
172
+
173
+ ## [3.0.0-alpha.32] — 2026-07-19
174
+
175
+ ### Added
176
+ - **`mIRC_discover`** — browse the PUBLIC channel directory (open channels whose
177
+ owners set `discoverable=true`). Filter by name, paginated; join a result with
178
+ `mIRC_join` (open = one-click). Private/password/partner channels never appear.
179
+ - **`mIRC_report`** — report a channel for abuse/moderation (routes to the shared
180
+ `content_reports` store as `channel:<id>`), the moderation floor for public discovery.
181
+ - **`discoverable`** flag on `mIRC_create` / `mIRC_update` (honoured only for
182
+ `access_mode=open`), plus `voice` + `files` added to the capabilities enum.
183
+ - Tool count **69 → 71** (mIRC **22 → 24**); `TOOL_COUNT` (`= allTools.length`) stays
184
+ the single source of truth.
185
+
186
+ ### Changed
187
+ - **Encryption posture wording corrected across docs.** `mIRC_post_message` posts a
188
+ **server-readable** plaintext payload — the per-channel group-key TEXT E2EE is the
189
+ mosadd.com **app** (supported clients), not the toolkit (parity is the next crypto
190
+ milestone). Tool descriptions, README, MANIFESTO, e2ee-posture and the registry
191
+ copy now state this instead of implying private/password channels are E2EE via the
192
+ toolkit. Voice/PTT is always server-relayed (LiveKit SFU, DTLS-SRTP hop-by-hop).
193
+
194
+ ## [3.0.0-alpha.31] — 2026-07-17
195
+
196
+ ### Fixed
197
+ - **`mURL_create` / `mURL_update` branding validation.** The `branding` arg used
198
+ `z.record(z.any())` — the Zod v3 single-argument form — which fails typecheck under
199
+ this project's Zod v4, where `z.record` requires both a key and a value schema. Now
200
+ `z.record(z.string(), z.any())`. alpha.30 shipped with the pre-fix source; alpha.31
201
+ corrects it so the published package builds clean and validates branding correctly.
202
+ - **CI green (repo).** Synced the version refs (`server.json`, `server.ts` serverInfo,
203
+ `marketplace.json`) to `package.json`, and updated the MCP smoke test to expect
204
+ `mAYL_send` — the `mp0st_*` aliases were retired in alpha.28.
205
+
206
+ ## [3.0.0-alpha.30] — 2026-07-17
207
+
208
+ ### Added
209
+ - **`comms_embed_create` RE-REGISTERED — tool count 68 → 69.** The paste-in
210
+ live-channel widget is finally end-to-end real: `https://embed.mosadd.com/v1.js`
211
+ is deployed (served by the mosadd Vercel project; skins are inlined in the
212
+ bundle), and the whole backend (`embed-keys` publishable keys, `mirc-embed-token`
213
+ Origin-allowlisted 5-min JWTs with MAT plan tiers, `embed-plan-settings` PAYG,
214
+ GDPR `embed-dsr-delete`) was already live. The tool mints an `m_pk_live_…` key
215
+ and returns a `<script>` snippet with skin + position (incl. sidebar-left/right)
216
+ options. Part of the mURL→mIRC rework P3 ("open WWW channel: dedicated page +
217
+ branding + embed").
218
+
219
+ ## [3.0.0-alpha.29] — 2026-07-17
220
+
221
+ ### Added
222
+ - **mURL owner-side management — 3 new tools.** `mURL_create` (claim a domain channel and
223
+ become its owner; idempotent, 409 if another account owns it), `mURL_update` (set branding /
224
+ mark `claimed` / `blocked` to close / reopen as `open`), `mURL_delete` (remove a channel you
225
+ own). Wired to the deployed, owner-scoped `murl-manage` EF via the same user-JWT auth as
226
+ `mURL_list_channels action='mine'`. mURL goes from read-only (read/post/presence/list) to a
227
+ full lifecycle — an agent can now provision and manage a domain's room, not just chat in it.
228
+ - **`TOOL_COUNT` export** (`= allTools.length`) — one source of truth for the callable-tool
229
+ count, mirroring `@mosadd/threat-engine`'s `THREAT_EVENT_COUNT`. Docs reference it, not a
230
+ hand-typed number that drifts.
231
+
232
+ ### Changed
233
+ - **Tool count corrected to 68** — it had been advertised inconsistently as "70+" / "65" across
234
+ READMEs, docs, registry submissions and the dev site. The registry holds exactly 68 callable
235
+ tools: mDM 14 · mIRC 22 · mURL 7 · mAYL 11 · mTALK 5 · mRAG 4 · comms_ 3 · Irondome (`threat_*`) 2.
236
+ Also fixed two stale claims in the reference table: `threat_*` IS registered (was labelled
237
+ "unregistered"), and the `mp0st_*` mAYL aliases are retired (were claimed as still functioning).
238
+
239
+ ## [3.0.0-alpha.23] — 2026-06-26
240
+
241
+ Toolkit hardening pass: every registered tool's request/response contract was
242
+ adversarially verified against the deployed edge functions. Two tools were broken on
243
+ every call; the rest had silent field drops, wrong results, or a confidentiality/access gap.
244
+
245
+ ### Fixed
246
+ - **Edge-function errors are now legible.** `invokeFunction` only ever surfaced the fixed
247
+ string "Edge Function returned a non-2xx status code"; the real reason lives in
248
+ `error.context`. It now reads that body (and the HTTP status), so every EF-backed tool
249
+ returns an actionable error the agent can act on — the single highest-impact fix.
250
+ - **mDM_edit no longer strips E2EE.** It used to store a server-readable plaintext body even
251
+ on an E2EE thread (and the forward-only ratchet means an edit can't be re-sealed). It now
252
+ refuses to edit E2EE messages (use delete + re-send) and only edits legacy plaintext.
253
+ - **mp0st_send cc/bcc/reply_to are actually delivered** — the backend dropped them silently;
254
+ now forwarded to the mail provider (edge-function fix, deployed).
255
+ - **mDM call rooms are access-gated (security)** — call-room tokens were mintable by any
256
+ authenticated user who learned the room name; the backend now restricts them to the two
257
+ participants, and the room name is per-pair so the gate is robust (edge-function fix, deployed).
258
+ - **mDM_call_end / mDM_voice_note** now return the real message id (was always undefined).
259
+ - **mp0st_view** no longer advertises a `received_at` field the backend doesn't return (it's `sent_at`).
260
+
261
+ ### Changed
262
+ - **Unregistered `comms_embed_create`** — its `embed-keys` edge function isn't deployed (404
263
+ on every call) and the embed surface is parked. Tool count **62 → 61**. Re-register when the
264
+ backend + widget ship.
265
+ - **mIRC tools stop advertising fields the backend ignores.** Removed: `mIRC_kick` `reason`,
266
+ `mIRC_request_access` `message`, `mIRC_ban` `reason`+`until` (the latter silently made a
267
+ "temporary" ban permanent), and `access_mode` on `mIRC_update`/`mIRC_list` (no-ops). Added
268
+ `wrapped_group_key` to `mIRC_create`/`mIRC_approve_request` so E2EE (password/private)
269
+ channels are honestly callable. Descriptions corrected to match.
270
+ - **mp0st_consent** now fails fast client-side when `check`/`optin` is missing a recipient.
271
+
272
+ ### Verified (no changes needed)
273
+ - Install/boot, full build + typecheck across all packages, dependency-export resolution, and
274
+ the mDM X3DH + Double-Ratchet crypto round-trip all pass.
275
+
276
+ ## [3.0.0-alpha.22] — 2026-06-26
277
+
278
+ ### Fixed
279
+ - **alpha.21 was broken on a fresh install** — it crashed on startup with
280
+ `SyntaxError: The requested module '@mosadd/crypto' does not provide an export named
281
+ 'initRatchetInitiator'`. The workspace dependency packages (`@mosadd/crypto`, `protocol`,
282
+ `providers`, `threat-engine`) had drifted: their *source* gained new exports (the mDM
283
+ Double-Ratchet work) but their version was never bumped, so npm still served the stale
284
+ alpha.4/alpha.5 builds while `@mosadd/mcp` was built against the newer API. Bumped the whole
285
+ alpha-line in lockstep to alpha.22 and republished so every published package matches current
286
+ source and `workspace:*` cross-deps resolve. Verified: a clean `npm i @mosadd/mcp@alpha`
287
+ now boots and lists 62 tools. (The previous alpha.20 was broken-on-install the same way.)
288
+
289
+ ### Changed
290
+ - **Unregistered 2 scaffold tools that failed on every call.** `mp0st_send_as_agent`
291
+ (POSTed to a non-existent `hub-claim-mint` endpoint → 404, and sent provenance body
292
+ fields the deployed `mp0st-send` EF never reads) and `mTALK_ingest_ptt` (request body
293
+ didn't match the deployed `ptt-ingest` EF → 400). Both are now commented out in
294
+ `tools/index.ts` like the other not-registered modules, so an agent only ever discovers
295
+ tools that actually work. Registered tool count **64 → 62** (mp0st 12→11, mTALK 6→5).
296
+ Source is kept; both re-register once their backend contracts are wired + tested.
297
+
298
+ ### Fixed
299
+ - **mIRC `reject_request` / `approve_request` field (LINEAR-3522):** the tools sent
300
+ `request_id` but `channel-members-manage` reads `target_identity_id` → 400 every
301
+ call. Renamed to `identity_id` (normalized to `target_identity_id`). `reject` now
302
+ works; `approve` of an E2EE channel still needs a wrapped group key (LINEAR-3523).
303
+ - **mDM / mIRC message pagination (LINEAR-3524):** `mDM_list` read `cursor`/`has_more`
304
+ but `message-list` history mode returns `next_before`, and `mIRC_list_messages`
305
+ sent `cursor` (ignored; EF reads `before`) and read `next_cursor` (never returned)
306
+ → neither paged past page 1. Send `before`, read `next_before`.
307
+
308
+ ## [3.0.0-alpha.19] — 2026-06-19
309
+
310
+ ### Removed
311
+ - **BREAKING — mROOM module killed (LINEAR-3414):** the 11 `mROOM_*` tools
312
+ (`mROOM_create`, `mROOM_create_guest_link`, `mROOM_join`, `mROOM_leave`,
313
+ `mROOM_close`, `mROOM_list`, `mROOM_voice_join`, `mROOM_send_message`,
314
+ `mROOM_list_messages`, `mROOM_send_voice`, `mROOM_send_file`) are no longer
315
+ registered. Ephemeral private rooms are re-cut into private mIRC channels.
316
+ The source stays in `tools/mroom*.ts` (unregistered, like mURL/mCALL).
317
+
318
+ ### Added
319
+ - **Defensive threat engine as MCP tools (LINEAR-3498):** `threat_catalog`
320
+ (list the canonical 160+ threat-event taxonomy) and `threat_classify`
321
+ (pure `evaluateEvent` decision → action/severity/reason). Wraps
322
+ `@mosadd/threat-engine`; deterministic, offline, `requires: "any"`.
323
+
324
+ Net: 70 → **64 callable tools** across 5 live modules + comms + threat.
325
+
326
+ ### Changed
327
+ - **BREAKING — mail tool rename:** the 12 email MCP tools are renamed
328
+ `mAIL_*` → `mp0st_*` (`mp0st_list`, `mp0st_send`, `mp0st_view`, `mp0st_delete`,
329
+ `mp0st_stats`, `mp0st_events`, `mp0st_metrics`, `mp0st_revoke`,
330
+ `mp0st_audit_export`, `mp0st_consent`, `mp0st_notify`, `mp0st_send_as_agent`).
331
+ No aliases — the old `mAIL_*` names no longer resolve. Backend Edge Functions
332
+ (`mp0st-*`) are unchanged.
333
+
334
+ ## [3.0.0-alpha.18] — 2026-06-18
335
+
336
+ ### Added
337
+ - **`comms_embed_create`** — embed a LIVE mosadd channel into an app/site a builder-agent is
338
+ generating (Lovable / Bolt / Cursor / v0). Mints a publishable embed key (`m_pk_live_…`,
339
+ origin-scoped, via the `embed-keys` EF) and returns a paste-in widget snippet
340
+ (`<div>` + `<script src="https://embed.mosadd.com/v1.js" data-key=…>`). The widget exchanges
341
+ the publishable key for a short-lived channel-scoped JWT at runtime; the hub key never enters
342
+ the browser. Extends `mROOM_create_guest_link` (link → embeddable widget). CDN override via
343
+ `MOSADD_EMBED_CDN`. (Widget served from the dedicated `embed.mosadd.com` deploy.)
344
+
345
+ ## [3.0.0-alpha.17] — 2026-06-18
346
+
347
+ ### Added
348
+ - **Action Links — screen share.** `comms_action_create` gains a `screen_share` action
349
+ type, and a new `comms_action_frame_get` tool lets the creating agent read frames of the
350
+ recipient's shared screen (consent-gated, browser-sandbox only). Turns Action Links into
351
+ "remote-desktop-lite" — the agent sees what the human chooses to share.
352
+
353
+ ### Changed
354
+ - **Durable `mosadd login`.** The saved session (`~/.mosadd/session.json`) is now refreshed
355
+ from its refresh token at server boot, so a single `mosadd login` keeps working across
356
+ restarts — no more re-login when the access token expires.
357
+ - Onboarding README restructured (recommended auth path — `mosadd login` — first; hub API
358
+ key second; DevTools JWT demoted), and the 61→70 / `mosadd.dev`→`mosadd.com` reconciliation
359
+ (first shipped on the published package with this release).
360
+
361
+ ## [3.0.0-alpha.16] — 2026-06-17
362
+
363
+ ### Fixed
364
+ - `mAIL_view` now calls the `mp0st-get` Edge Function (read a message by id,
365
+ owner-scoped) instead of `mp0st-view` (the tracking-pixel endpoint, which
366
+ returned "Missing tracking ID"). ([LINEAR-2917])
367
+ - CI publish drops `--provenance` — npm returned 422 because the source repo
368
+ (`mosadd-os`) is private, so provenance attestation is not available.
369
+
370
+ ### Added (cumulative since alpha.4 — tool count 61 → 70)
371
+ - **Action links (Tier 1):** `comms_action_create` mints a one-link browser
372
+ action an agent can hand to a human (run-with-consent in the mosadd sandbox).
373
+ - **mAIL provenance:** `mAIL_send_as_agent` stamps agent/human provenance on the
374
+ message so the recipient sees who actually sent it.
375
+ - **File & voice attachments:** `mDM_send_voice` / `mDM_send_file`,
376
+ `mROOM_send_voice` / `mROOM_send_file`, `mIRC_send_voice` / `mIRC_send_file`
377
+ (reuse the existing `chat-files` bucket — no new transport).
378
+ - **mTALK → RAG:** `mTALK_ingest_ptt` feeds push-to-talk audio into the RAG index
379
+ (opt-in, gated server-side).
380
+ - **mROOM:** `mROOM_create_guest_link` (single-call, no-account guest links) and
381
+ `mROOM_voice_join`.
382
+ - **mIRC edge transport:** `mIRC_mint_channel_token`, `mIRC_send_edge`,
383
+ `mIRC_history_edge` — the low-latency path the agent-coordination skill rides.
384
+
385
+ ### Changed
386
+ - README, `package.json`, and the plugin `marketplace.json` reconciled to the
387
+ current surface: **70 tools across 6 modules** + `comms_capabilities`
388
+ discovery (71 callable), version `alpha.16`, and `mosadd.dev` → `mosadd.com`
389
+ (the dev surface was consolidated into the main site). ([LINEAR-3391])
390
+ - `mCALL` (telephony, carrier-pending) and `mURL` (brand/consumer surface)
391
+ remain **unregistered** in `tools/index.ts` — an agent only ever discovers
392
+ tools that actually work.
393
+
394
+ ## [3.0.0-alpha.4]
395
+
396
+ ### Added
397
+ - Initial public alpha: **61 tools across 6 live modules** — mDM (incl. voice),
398
+ mIRC, mROOM, mAIL, mTALK, mRAG — plus the `comms_capabilities` discovery tool.
399
+ - BYOK mode: the server talks to your own mosadd Supabase backend via
400
+ `MOSADD_SUPABASE_URL` / `MOSADD_SUPABASE_ANON_KEY` / `MOSADD_USER_JWT`.
401
+ - Apache-2.0 license; tool names follow [RFC 0001] (`m<MODULE>_<operation>`).
402
+
403
+ [3.0.0-alpha.16]: https://github.com/Hei33enberg/mosadd-os/tree/main/packages/mcp
404
+ [3.0.0-alpha.4]: https://github.com/Hei33enberg/mosadd-os/tree/main/packages/mcp
405
+ [LINEAR-2917]: https://linear.app/ip-ra/issue/LINEAR-2917
406
+ [LINEAR-3391]: https://linear.app/ip-ra/issue/LINEAR-3391
407
+ [RFC 0001]: https://github.com/Hei33enberg/mosadd-os/blob/main/docs/rfcs/0001-module-naming.md