@mosadd/mcp 3.0.0-alpha.32 → 3.0.0-alpha.33
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 +74 -0
- package/README.md +11 -11
- package/dist/bin/mcp.js +1 -1
- package/dist/{chunk-KX34DDJB.js → chunk-IWLN5EO5.js} +614 -134
- package/dist/index.js +1 -1
- package/package.json +15 -15
- package/src/__tests__/golden-path.test.ts +137 -137
- package/src/__tests__/integration.test.ts +179 -179
- package/src/__tests__/knowledge-ingest.test.ts +114 -0
- package/src/__tests__/mdm-e2ee.test.ts +212 -212
- package/src/__tests__/mtalk.test.ts +122 -122
- package/src/__tests__/presence.test.ts +141 -0
- package/src/__tests__/server.test.ts +71 -71
- package/src/__tests__/tool-count-consistency.test.ts +121 -1
- package/src/bin/login.ts +138 -138
- package/src/bin/mcp.ts +145 -145
- package/src/config.ts +66 -66
- package/src/crypto/mdm-session.ts +502 -502
- package/src/index.ts +19 -19
- package/src/observability/sentry.ts +79 -79
- package/src/providers/blob-upload.ts +116 -116
- package/src/providers/memory-voice.ts +79 -79
- package/src/providers/supabase-dm.ts +122 -122
- package/src/providers/supabase-voice.ts +91 -91
- package/src/providers/supabase.ts +148 -148
- package/src/tools/actions.ts +162 -162
- package/src/tools/attachments.ts +268 -268
- package/src/tools/capabilities.ts +68 -68
- package/src/tools/embed.ts +108 -108
- package/src/tools/index.ts +173 -104
- package/src/tools/knowledge-graph.ts +178 -0
- package/src/tools/knowledge.ts +319 -191
- package/src/tools/mail-agentbox.ts +147 -0
- package/src/tools/mail-aliases.ts +25 -25
- package/src/tools/mail-provenance.ts +135 -135
- package/src/tools/mail.ts +381 -381
- package/src/tools/mdm.ts +476 -479
- package/src/tools/mirc-edge.ts +190 -190
- package/src/tools/mirc-members.ts +2 -2
- package/src/tools/mirc-messages.ts +155 -155
- package/src/tools/mirc.ts +2 -2
- package/src/tools/mroom-messages.ts +142 -142
- package/src/tools/mroom.ts +221 -221
- package/src/tools/mtalk.ts +121 -121
- package/src/tools/murl.ts +4 -2
- package/src/tools/presence.ts +208 -0
- package/src/types.ts +94 -94
- package/src/voice/floor.ts +132 -132
- package/LICENSE +0 -201
- package/dist/bin/login.d.ts +0 -13
- package/dist/bin/mcp.d.ts +0 -1
- package/dist/index.d.ts +0 -266
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,80 @@ gateway (Phase 2) ships.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
_Nothing yet._
|
|
12
|
+
|
|
13
|
+
## [3.0.0-alpha.33] — 2026-08-11
|
|
14
|
+
|
|
15
|
+
**The republish that closes a three-week gap between the repo and the client's disk.**
|
|
16
|
+
`3.0.0-alpha.32` was published 2026-07-19 and every change since then lived only in git.
|
|
17
|
+
Measured on the published tarball that day: it registers **71** tools while its own npm
|
|
18
|
+
description advertises **69** and the website advertises **77**. Three numbers, one
|
|
19
|
+
package. This release makes the published artifact the thing the docs describe.
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- **`mAYL_send_as_agent`** re-registered (2026-07-29) after the hub-claim → mp0st-send
|
|
23
|
+
chain was proven on an authenticated call.
|
|
24
|
+
- **`mTALK_ingest_ptt`** re-registered (2026-07-29) after the ingest path was repointed
|
|
25
|
+
at `rag-transcribe` and returned a real `200 {"queued":true}` on prod.
|
|
26
|
+
- **`mAYL_agentbox_provision` / `_list` / `_extend` / `_release`** (2026-08-06,
|
|
27
|
+
LINEAR-5201) — an agent mints, lists, extends and releases its OWN two-way disposable
|
|
28
|
+
inbox (`agent-<hex>@mosadd.com`). `create_inbox` parity with AgentMail, on our stack.
|
|
29
|
+
- **`mRAG_graph_refresh` / `_overview` / `_neighbors` / `_timeline`** (2026-08-11) — the MCP
|
|
30
|
+
door onto the per-user knowledge graph (`kg_*` RPCs). Search finds text; these walk who/what/
|
|
31
|
+
when (parties, connections, dated timelines), built from message METADATA only, never bodies.
|
|
32
|
+
- Stdio hub-key auth (`MOSADD_API_KEY`) in `src/bin/mcp.ts` — the local stdio server can
|
|
33
|
+
exchange a hub key instead of requiring the BYOK env trio.
|
|
34
|
+
|
|
35
|
+
Tool count **71 → 81**: six tools existed in the repo but had **never been published**
|
|
36
|
+
(71 → 77 — an agent installing `@mosadd/mcp` got 71 while every doc surface promised 77),
|
|
37
|
+
AND four new `mRAG_graph_*` knowledge-graph traversal tools were added 2026-08-11 (77 → 81).
|
|
38
|
+
`TOOL_COUNT` (`= allTools.length`) stays the single source of truth.
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
- **`mRAG_search` can now filter on the source types the writers actually stamp.**
|
|
42
|
+
The `source_types` enum was missing `file` and `ptt` — `file` is what `mRAG_ingest`
|
|
43
|
+
itself writes (its default, and where `note` ingests are mapped), `ptt` is what
|
|
44
|
+
`mTALK_ingest_ptt` writes. Measured on prod 2026-08-11: 63 indexed rows were
|
|
45
|
+
unreachable by any `source_types` filter. The tool advertised a filter that could not
|
|
46
|
+
see its own writes.
|
|
47
|
+
- **`mURL_create` no longer promises a status it does not set.** `murl-manage` applies
|
|
48
|
+
`status` only on the INSERT of a new row; on an existing channel it writes owner +
|
|
49
|
+
branding and leaves status untouched. Since mURL rooms auto-create on first activity,
|
|
50
|
+
"already exists" is the COMMON case — so the old "set initial status" wording was
|
|
51
|
+
wrong nearly every time it was read. Schema + description now say so and point at
|
|
52
|
+
`mURL_update`.
|
|
53
|
+
- **`mIRC_post_message` encryption wording.** It posts server-readable plaintext base64
|
|
54
|
+
on EVERY access mode, private and password channels included; the app's group-key
|
|
55
|
+
encryption is not something the toolkit holds a key for.
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
- Doc surfaces across the repo that hand-typed **73** while `TOOL_COUNT` was 77 (README
|
|
59
|
+
breakdown, `packages/mcp/README.md`, `apps/mcp-http/README.md`, dev docs, Realm,
|
|
60
|
+
examples). The anti-drift vitest gate pinned one regex per file, so a single corrected
|
|
61
|
+
line kept the gate green while the sentence around it stayed wrong — the gate now pins
|
|
62
|
+
the PER-MODULE numbers too, not just the total.
|
|
63
|
+
|
|
64
|
+
## [3.0.0-alpha.32] — 2026-07-19
|
|
65
|
+
|
|
66
|
+
### Added
|
|
67
|
+
- **`mIRC_discover`** — browse the PUBLIC channel directory (open channels whose
|
|
68
|
+
owners set `discoverable=true`). Filter by name, paginated; join a result with
|
|
69
|
+
`mIRC_join` (open = one-click). Private/password/partner channels never appear.
|
|
70
|
+
- **`mIRC_report`** — report a channel for abuse/moderation (routes to the shared
|
|
71
|
+
`content_reports` store as `channel:<id>`), the moderation floor for public discovery.
|
|
72
|
+
- **`discoverable`** flag on `mIRC_create` / `mIRC_update` (honoured only for
|
|
73
|
+
`access_mode=open`), plus `voice` + `files` added to the capabilities enum.
|
|
74
|
+
- Tool count **69 → 71** (mIRC **22 → 24**); `TOOL_COUNT` (`= allTools.length`) stays
|
|
75
|
+
the single source of truth.
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
- **Encryption posture wording corrected across docs.** `mIRC_post_message` posts a
|
|
79
|
+
**server-readable** plaintext payload — the per-channel group-key TEXT E2EE is the
|
|
80
|
+
mosadd.com **app** (supported clients), not the toolkit (parity is the next crypto
|
|
81
|
+
milestone). Tool descriptions, README, MANIFESTO, e2ee-posture and the registry
|
|
82
|
+
copy now state this instead of implying private/password channels are E2EE via the
|
|
83
|
+
toolkit. Voice/PTT is always server-relayed (LiveKit SFU, DTLS-SRTP hop-by-hop).
|
|
84
|
+
|
|
11
85
|
## [3.0.0-alpha.31] — 2026-07-17
|
|
12
86
|
|
|
13
87
|
### Fixed
|
package/README.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
**They're apps. We're the layer.** The MCP server for [mosADD](https://mosadd.com) — the omnichannel comms layer for humans, agents, and robots. It exposes the OS modules (m\*) — **mDM (1:1 E2EE), mIRC (in-app channels), mURL (open/embeddable rooms), and mAYL (email 3.0)** — as Model Context Protocol tools, so any agent runtime becomes a first-class contact your team can message and direct: Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, or your own.
|
|
4
4
|
|
|
5
|
-
One key, one server,
|
|
5
|
+
One key, one server, 82 tools — MCP-native, no SDK to wire up. **Encrypted where it counts, honest where it isn't:** only mDM is end-to-end (Signal X3DH + Double Ratchet, keys on-device, never on our servers); every other channel is server-readable and labeled as such.
|
|
6
6
|
|
|
7
|
-
> **
|
|
7
|
+
> **82 tools** across **4 modules** (mDM, mIRC, mURL, mAYL) + cross-cutting capabilities (mTALK voice, mRAG search, comms agent-actions) + agent→user action links + the `comms_capabilities` discovery tool, wired to the mosADD backend (BYOK) as a strangler-fig step. Phase 2 routes through the hosted gateway at `mcp.mosadd.com`.
|
|
8
8
|
|
|
9
9
|
## Connect your agent
|
|
10
10
|
|
|
11
|
-
Three ways to authenticate, friendliest first — all three end with the same
|
|
11
|
+
Three ways to authenticate, friendliest first — all three end with the same 82 tools.
|
|
12
12
|
|
|
13
13
|
### 1. `mosadd login` — recommended (one command, stays logged in)
|
|
14
14
|
|
|
@@ -67,20 +67,20 @@ In Phase 2 the hosted gateway at `mcp.mosadd.com` removes even this — add a UR
|
|
|
67
67
|
|
|
68
68
|
## Tools shipped in alpha
|
|
69
69
|
|
|
70
|
-
**
|
|
70
|
+
**82 tools** — 4 modules (mDM, mIRC, mURL, mAYL) + capabilities (mTALK voice, mRAG search + knowledge-graph traversal, comms agent-actions) + the `comms_capabilities` discovery tool. Highlights per module:
|
|
71
71
|
|
|
72
72
|
| Module | Tools | What it does |
|
|
73
73
|
|---|---|---|
|
|
74
74
|
| **mDM** (14) | `mDM_list_contacts`, `mDM_send`, `mDM_send_unencrypted` (DEPRECATED — migration-window fallback, only when the peer hasn't published keys), `mDM_edit`, `mDM_delete`, `mDM_list`, `mDM_publish_keys`, `mDM_respond_request`, `mDM_call_start/answer/end`, `mDM_voice_note`, `mDM_send_voice`, `mDM_send_file` | 1:1 text, voice notes, calls + file/voice attachments. Multi-thread per contact. `mDM_send` is end-to-end encrypted by default (X3DH / Double Ratchet, `mosadd.e2ee.v2`); the operator cannot read message content |
|
|
75
|
-
| **mIRC** (
|
|
75
|
+
| **mIRC** (24) | `mIRC_create/list/get/update/delete/discover/report`, member RBAC (`mIRC_join/leave/kick/ban/unban/set_role/set_ptt/approve_request/reject_request/request_access`), `mIRC_post_message`, `mIRC_list_messages`, edge (`mIRC_mint_channel_token`, `mIRC_send_edge`, `mIRC_history_edge`), `mIRC_send_voice/file` | Persistent Discord/Slack-style channels + the agent-coordination edge transport |
|
|
76
76
|
| **mURL** (7) | `mURL_read_channel`, `mURL_post`, `mURL_presence`, `mURL_list_channels`, `mURL_create`, `mURL_update`, `mURL_delete` | IRC-for-URLs — open-web text rooms, agent-native. Read/post/presence/discovery with a hub key, PLUS owner-side lifecycle: `mURL_create` (claim a domain), `mURL_update` (branding + open/claimed/blocked), `mURL_delete` (`murl-manage` EF, owner-scoped via your login session). Transport-encrypted, server-readable/public by design |
|
|
77
|
-
| **mAYL** (
|
|
78
|
-
| **mTALK** (
|
|
79
|
-
| **mRAG** (
|
|
77
|
+
| **mAYL** (16) | `mAYL_send`, `mAYL_view`, `mAYL_list`, `mAYL_delete`, `mAYL_stats`, `mAYL_events`, `mAYL_metrics`, `mAYL_revoke`, `mAYL_audit_export`, `mAYL_consent`, `mAYL_notify`, `mAYL_send_as_agent`, `mAYL_agentbox_provision`, `mAYL_agentbox_list`, `mAYL_agentbox_extend`, `mAYL_agentbox_release` | Mail; every user gets `<id>@mosadd.com`. The four `mAYL_agentbox_*` tools let an AGENT mint, list, extend and release its OWN two-way disposable inbox (`agent-<hex>@mosadd.com`) — `create_inbox` parity with AgentMail, on our stack, with provenance. Transport + at-rest encrypted (server-readable), NOT E2EE. `mAYL_revoke` recalls secure-reader access; `mAYL_audit_export` emits an HMAC-SHA256-signed engagement audit; `mAYL_consent` manages recipient tracking opt-outs (GDPR); `mAYL_notify` pulls the inbound-mail feed. (Was the mp0st codename; the `mp0st_*` aliases are retired — mAYL is the one name) |
|
|
78
|
+
| **mTALK** (6) | `mTALK_open`, `mTALK_join`, `mTALK_press`, `mTALK_release`, `mTALK_state`, `mTALK_ingest_ptt` | Half-duplex push-to-talk: one speaker, FIFO queue, anti-hog auto-release + transcript ingest to mRAG |
|
|
79
|
+
| **mRAG** (8) | `mRAG_ingest`, `mRAG_search`, `mRAG_list_sources`, `mRAG_delete`, `mRAG_graph_refresh`, `mRAG_graph_overview`, `mRAG_graph_neighbors`, `mRAG_graph_timeline` | RAG recall over the user's own data (hybrid vector + BM25) + knowledge-graph traversal (who/what/when) |
|
|
80
80
|
| **comms_** (4) | `comms_action_create`, `comms_action_frame_get`, `comms_capabilities`, `comms_embed_create` | `comms_action_create` mints an agent→user one-link browser action (Tier 1); `comms_action_frame_get` fetches a framed action; `comms_capabilities` is one-call discovery of every tool's transport `requires` flag; `comms_embed_create` mints a publishable embed key + a paste-in `<script>` snippet that drops a live mIRC channel into any website (`embed.mosadd.com/v1.js`, skins + sidebar/launcher modes) |
|
|
81
|
-
| **Irondome** (2) | `threat_catalog`, `threat_classify` | On-device defensive classification over the
|
|
81
|
+
| **Irondome** (2) | `threat_catalog`, `threat_classify` | On-device defensive classification over the 193-event threat taxonomy — pure, offline, no backend and no surveillance. The engine decides, the caller acts. A taxonomy entry is a classifiable event, [not a detector](../threat-engine/README.md#read-this-first-a-taxonomy-entry-is-not-a-detector) |
|
|
82
82
|
|
|
83
|
-
Module tools: mDM (14) + mIRC (
|
|
83
|
+
Module tools: mDM (14) + mIRC (24) + mURL (7) + mAYL (16) = 61; capabilities: mTALK (6) + mRAG (8) + comms_ (5, incl. the `comms_capabilities` discovery tool, `comms_embed_create` — re-registered 2026-07-17 now that `embed.mosadd.com/v1.js` is live — and `comms_session_attach`, added 2026-08-14) + Irondome (2) = 21 — **82 callable tools** in total. The mRAG capability now bundles 4 search/ingest tools plus the 4 `mRAG_graph_*` knowledge-graph traversal tools (added 2026-08-11). The exact live number is exported as `TOOL_COUNT` (`= allTools.length`) — reference that, never a hand-typed figure. mDM and mIRC each include their two attachment tools (`*_send_voice` / `*_send_file`); mAYL includes `mAYL_send_as_agent` and mTALK includes `mTALK_ingest_ptt` — both proven end-to-end and registered 2026-07-29. Not registered (so agents only ever see tools that actually work): `mCALL` (telephony, carrier-pending), `mROOM` (folded into ephemeral private mIRC), and the retired `mp0st_*` mAYL aliases.
|
|
84
84
|
|
|
85
85
|
All tool names follow [RFC 0001](https://github.com/Hei33enberg/mosadd-os/blob/main/docs/rfcs/0001-module-naming.md) — `m<MODULE>_<operation>` snake_case.
|
|
86
86
|
|
|
@@ -128,7 +128,7 @@ For PTT / CALL (real-time media), the architecture separates **control plane** (
|
|
|
128
128
|
| `MOSADD_SUPABASE_URL` | Supabase project URL — DM / IRC / mail / KB backend | yes (BYOK) |
|
|
129
129
|
| `MOSADD_SUPABASE_ANON_KEY` | Supabase anon key | yes (BYOK) |
|
|
130
130
|
| `MOSADD_USER_JWT` | User session token | yes (for tools that touch user data) |
|
|
131
|
-
| `MOSADD_RESEND_API_KEY` | Resend API key — enables `mAYL` outbound mail (
|
|
131
|
+
| `MOSADD_RESEND_API_KEY` | Resend API key — enables `mAYL` outbound mail (the `mp0st_*` aliases are retired — `mAYL_*` is the one name) | no (mAYL disabled if unset) |
|
|
132
132
|
| `MOSADD_LIVEKIT_URL` | LiveKit `wss://…` URL — enables `mTALK` voice | no (voice disabled if unset) |
|
|
133
133
|
| `MOSADD_LIVEKIT_API_KEY` | LiveKit API key | no (with `…_URL` / `…_API_SECRET`) |
|
|
134
134
|
| `MOSADD_LIVEKIT_API_SECRET` | LiveKit API secret | no |
|