@mosadd/mcp 3.0.0-alpha.17 → 3.0.0-alpha.19
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 +37 -0
- package/README.md +12 -12
- package/dist/bin/mcp.js +1 -1
- package/dist/{chunk-5ZMJB5YU.js → chunk-QUJGZUTE.js} +295 -483
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/package.json +4 -3
- package/src/__tests__/integration.test.ts +3 -3
- package/src/__tests__/server.test.ts +11 -7
- package/src/tools/actions.ts +2 -2
- package/src/tools/attachments.ts +1 -61
- package/src/tools/embed.ts +108 -0
- package/src/tools/index.ts +12 -5
- package/src/tools/mail-provenance.ts +15 -15
- package/src/tools/mail.ts +84 -84
- package/src/tools/threat.ts +92 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,43 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
and this project follows the `3.0.0-alpha.N` pre-release line until the hosted
|
|
7
7
|
gateway (Phase 2) ships.
|
|
8
8
|
|
|
9
|
+
## [Unreleased]
|
|
10
|
+
|
|
11
|
+
### Removed
|
|
12
|
+
- **BREAKING — mROOM module killed (LINEAR-3414):** the 11 `mROOM_*` tools
|
|
13
|
+
(`mROOM_create`, `mROOM_create_guest_link`, `mROOM_join`, `mROOM_leave`,
|
|
14
|
+
`mROOM_close`, `mROOM_list`, `mROOM_voice_join`, `mROOM_send_message`,
|
|
15
|
+
`mROOM_list_messages`, `mROOM_send_voice`, `mROOM_send_file`) are no longer
|
|
16
|
+
registered. Ephemeral private rooms are re-cut into private mIRC channels.
|
|
17
|
+
The source stays in `tools/mroom*.ts` (unregistered, like mURL/mCALL).
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- **Defensive threat engine as MCP tools (LINEAR-3498):** `threat_catalog`
|
|
21
|
+
(list the canonical 160+ threat-event taxonomy) and `threat_classify`
|
|
22
|
+
(pure `evaluateEvent` decision → action/severity/reason). Wraps
|
|
23
|
+
`@mosadd/threat-engine`; deterministic, offline, `requires: "any"`.
|
|
24
|
+
|
|
25
|
+
Net: 70 → **64 callable tools** across 5 live modules + comms + threat.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
- **BREAKING — mail tool rename:** the 12 email MCP tools are renamed
|
|
29
|
+
`mAIL_*` → `mp0st_*` (`mp0st_list`, `mp0st_send`, `mp0st_view`, `mp0st_delete`,
|
|
30
|
+
`mp0st_stats`, `mp0st_events`, `mp0st_metrics`, `mp0st_revoke`,
|
|
31
|
+
`mp0st_audit_export`, `mp0st_consent`, `mp0st_notify`, `mp0st_send_as_agent`).
|
|
32
|
+
No aliases — the old `mAIL_*` names no longer resolve. Backend Edge Functions
|
|
33
|
+
(`mp0st-*`) are unchanged.
|
|
34
|
+
|
|
35
|
+
## [3.0.0-alpha.18] — 2026-06-18
|
|
36
|
+
|
|
37
|
+
### Added
|
|
38
|
+
- **`comms_embed_create`** — embed a LIVE mosadd channel into an app/site a builder-agent is
|
|
39
|
+
generating (Lovable / Bolt / Cursor / v0). Mints a publishable embed key (`m_pk_live_…`,
|
|
40
|
+
origin-scoped, via the `embed-keys` EF) and returns a paste-in widget snippet
|
|
41
|
+
(`<div>` + `<script src="https://embed.mosadd.com/v1.js" data-key=…>`). The widget exchanges
|
|
42
|
+
the publishable key for a short-lived channel-scoped JWT at runtime; the hub key never enters
|
|
43
|
+
the browser. Extends `mROOM_create_guest_link` (link → embeddable widget). CDN override via
|
|
44
|
+
`MOSADD_EMBED_CDN`. (Widget served from the dedicated `embed.mosadd.com` deploy.)
|
|
45
|
+
|
|
9
46
|
## [3.0.0-alpha.17] — 2026-06-18
|
|
10
47
|
|
|
11
48
|
### Added
|
package/README.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
MCP server for [mosadd](https://mosadd.com) — exposes the OS modules (m\*) as Model Context Protocol tools so any agent runtime can talk to mosadd: Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, custom.
|
|
4
4
|
|
|
5
|
-
> **3.0.0-alpha.16** — **
|
|
5
|
+
> **3.0.0-alpha.16** — **64 live tools across 5 live modules** (mDM incl. voice + files, mIRC, mp0st incl. provenance, mTALK, mRAG) + agent→user action links + the `comms_capabilities` discovery tool + the defensive `threat_*` engine, wired to the mosadd backend (BYOK) as a strangler-fig step. Phase 2 routes through the hosted gateway at `mcp.mosadd.com` with the 166-event radar in front.
|
|
6
6
|
|
|
7
7
|
## Connect your agent
|
|
8
8
|
|
|
9
|
-
Three ways to authenticate, friendliest first — all three end with the same ~
|
|
9
|
+
Three ways to authenticate, friendliest first — all three end with the same ~64 tools.
|
|
10
10
|
|
|
11
11
|
### 1. `mosadd login` — recommended (one command, stays logged in)
|
|
12
12
|
|
|
@@ -65,19 +65,19 @@ In Phase 2 the hosted gateway at `mcp.mosadd.com` removes even this — add a UR
|
|
|
65
65
|
|
|
66
66
|
## Tools shipped in alpha
|
|
67
67
|
|
|
68
|
-
**
|
|
68
|
+
**64 live tools across 5 live modules** (mDM, mIRC, mp0st, mTALK, mRAG) + agent→user action links + the `comms_capabilities` discovery tool + the defensive `threat_*` engine. Highlights per module:
|
|
69
69
|
|
|
70
70
|
| Module | Tools | What it does |
|
|
71
71
|
|---|---|---|
|
|
72
|
-
| **mDM** (14) | `mDM_list_contacts`, `mDM_send`, `mDM_send_unencrypted`, `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, X3DH / Double-Ratchet E2EE on `mDM_send` |
|
|
72
|
+
| **mDM** (14) | `mDM_list_contacts`, `mDM_send`, `mDM_send_unencrypted`, `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, X3DH / Double-Ratchet E2EE with sealed sender on `mDM_send` |
|
|
73
73
|
| **mIRC** (22) | `mIRC_create/list/get/update/delete`, 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 |
|
|
74
|
-
| **
|
|
75
|
-
| **mAIL** (12) | `mAIL_send`, `mAIL_view`, `mAIL_list`, `mAIL_delete`, `mAIL_stats`, `mAIL_events`, `mAIL_metrics`, `mAIL_revoke`, `mAIL_audit_export`, `mAIL_consent`, `mAIL_notify`, `mAIL_send_as_agent` | Mail; every user gets `<id>@mosadd.com`. `mAIL_send_as_agent` stamps agent/human provenance; `mAIL_revoke` recalls secure-reader access; `mAIL_audit_export` emits an HMAC-SHA256-signed engagement audit; `mAIL_consent` manages recipient tracking opt-outs (GDPR); `mAIL_notify` pulls the inbound-mail feed |
|
|
74
|
+
| **mp0st** (12) | `mp0st_send`, `mp0st_view`, `mp0st_list`, `mp0st_delete`, `mp0st_stats`, `mp0st_events`, `mp0st_metrics`, `mp0st_revoke`, `mp0st_audit_export`, `mp0st_consent`, `mp0st_notify`, `mp0st_send_as_agent` | Mail; every user gets `<id>@mosadd.com`. `mp0st_send_as_agent` stamps agent/human provenance; `mp0st_revoke` recalls secure-reader access; `mp0st_audit_export` emits an HMAC-SHA256-signed engagement audit; `mp0st_consent` manages recipient tracking opt-outs (GDPR); `mp0st_notify` pulls the inbound-mail feed |
|
|
76
75
|
| **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; `mTALK_ingest_ptt` feeds PTT audio to RAG |
|
|
77
76
|
| **mRAG** (4) | `mRAG_ingest`, `mRAG_search`, `mRAG_list_sources`, `mRAG_delete` | RAG recall over the user's own data (hybrid vector + BM25) |
|
|
78
|
-
| **comms_** (
|
|
77
|
+
| **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` builds an embeddable surface |
|
|
78
|
+
| **threat_** (2) | `threat_catalog`, `threat_classify` | Pure defensive threat-event classification engine — enumerate the catalog and classify an operation against it |
|
|
79
79
|
|
|
80
|
-
Counts by module prefix sum to **
|
|
80
|
+
Counts by module prefix sum to **58 channel tools**; the 4 `comms_*` tools and 2 `threat_*` tools make **64 callable** in total. `mCALL` (telephony) tools exist in the source but are **not registered** — agents only ever see tools that actually work.
|
|
81
81
|
|
|
82
82
|
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.
|
|
83
83
|
|
|
@@ -116,17 +116,17 @@ Postgres `messages` table
|
|
|
116
116
|
mosadd.com app (receiver)
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
For PTT / CALL
|
|
119
|
+
For PTT / CALL (real-time media), the architecture separates **control plane** (MCP) from **data plane** (WebRTC daemon). See [docs/architecture/control-data-plane.md](https://github.com/Hei33enberg/mosadd-os/blob/main/docs/architecture/control-data-plane.md) when it lands.
|
|
120
120
|
|
|
121
121
|
## Configuration via env vars
|
|
122
122
|
|
|
123
123
|
| Env | Description | Required |
|
|
124
124
|
|---|---|---|
|
|
125
|
-
| `MOSADD_SUPABASE_URL` | Supabase project URL — DM / IRC /
|
|
125
|
+
| `MOSADD_SUPABASE_URL` | Supabase project URL — DM / IRC / mail / KB backend | yes (BYOK) |
|
|
126
126
|
| `MOSADD_SUPABASE_ANON_KEY` | Supabase anon key | yes (BYOK) |
|
|
127
127
|
| `MOSADD_USER_JWT` | User session token | yes (for tools that touch user data) |
|
|
128
|
-
| `MOSADD_RESEND_API_KEY` | Resend API key — enables `
|
|
129
|
-
| `MOSADD_LIVEKIT_URL` | LiveKit `wss://…` URL — enables `mTALK`
|
|
128
|
+
| `MOSADD_RESEND_API_KEY` | Resend API key — enables `mp0st` outbound | no (mp0st disabled if unset) |
|
|
129
|
+
| `MOSADD_LIVEKIT_URL` | LiveKit `wss://…` URL — enables `mTALK` voice | no (voice disabled if unset) |
|
|
130
130
|
| `MOSADD_LIVEKIT_API_KEY` | LiveKit API key | no (with `…_URL` / `…_API_SECRET`) |
|
|
131
131
|
| `MOSADD_LIVEKIT_API_SECRET` | LiveKit API secret | no |
|
|
132
132
|
| `MOSADD_API_KEY` | Hub API key (Phase 2 hosted mode) | no |
|