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