@mosadd/mcp 3.0.0-alpha.44 → 3.0.0-alpha.46
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 +309 -298
- package/README.md +150 -150
- package/dist/bin/mcp.js +1 -1
- package/dist/{chunk-MCEX6GLR.js → chunk-STWB7DEK.js} +258 -205
- package/dist/index.d.ts +8 -4
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/__tests__/mirc-invite.test.ts +112 -0
- package/src/__tests__/serverJsonVersion.test.ts +45 -0
- package/src/__tests__/tool-count-consistency.test.ts +199 -164
- package/src/tools/__tests__/ragDeleteFoldsSourceId.test.ts +67 -0
- package/src/tools/index.ts +8 -4
- package/src/tools/knowledge.ts +19 -2
- package/src/tools/mirc-members.ts +287 -218
- package/src/tools/mirc.ts +308 -264
package/README.md
CHANGED
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
# @mosadd/mcp
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
One key, one server,
|
|
6
|
-
|
|
7
|
-
> **
|
|
8
|
-
|
|
9
|
-
## Connect your agent
|
|
10
|
-
|
|
11
|
-
Three ways to authenticate, friendliest first — all three end with the same
|
|
12
|
-
|
|
13
|
-
### 1. `mosadd login` — recommended (one command, stays logged in)
|
|
14
|
-
|
|
15
|
-
Sign in once; the session is saved to `~/.mosadd/session.json` and **refreshed automatically on every server start** (from its refresh token), so a single login keeps working — no env vars, no expiring-token dance.
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npx -y @mosadd/mcp@alpha login
|
|
19
|
-
# prompts for your Supabase URL + anon key (both public) and your mosADD email + password
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Then register the server with **no env block**:
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
# Claude Code
|
|
26
|
-
claude mcp add mosadd -- npx -y @mosadd/mcp@alpha
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
```json
|
|
30
|
-
// Claude Desktop / Cursor / Cline / Windsurf — mcpServers config, no env needed
|
|
31
|
-
{
|
|
32
|
-
"mcpServers": {
|
|
33
|
-
"mosadd": { "command": "npx", "args": ["-y", "@mosadd/mcp@alpha"] }
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
`npx @mosadd/mcp@alpha whoami` shows who you're signed in as; `… logout` clears it.
|
|
39
|
-
|
|
40
|
-
### 2. `MOSADD_API_KEY` — headless / CI (one long-lived key)
|
|
41
|
-
|
|
42
|
-
A `mosadd_sk_live_…` hub key does not expire; the server exchanges it for a fresh session on every start. Best for servers, cron, and our own `mosadd-agent`.
|
|
43
|
-
|
|
44
|
-
```json
|
|
45
|
-
{
|
|
46
|
-
"mcpServers": {
|
|
47
|
-
"mosadd": {
|
|
48
|
-
"command": "npx",
|
|
49
|
-
"args": ["-y", "@mosadd/mcp@alpha"],
|
|
50
|
-
"env": { "MOSADD_API_KEY": "mosadd_sk_live_…" }
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Mint a key at **[mosadd.com/keys](https://mosadd.com/keys)** — the hub shows it once, in the `mosadd_sk_live_…` format above. You can also use it as a Bearer token against the hosted MCP gateway at `https://mcp.mosadd.com/mcp`.
|
|
57
|
-
|
|
58
|
-
### 3. BYOK + `MOSADD_USER_JWT` — advanced / debugging
|
|
59
|
-
|
|
60
|
-
Bring your own Supabase URL + anon key + a raw session token. **The JWT expires (~1h)** — prefer option 1 or 2 for anything ongoing.
|
|
61
|
-
|
|
62
|
-
- `MOSADD_SUPABASE_URL` — your Supabase project URL (e.g. `https://abc.supabase.co`)
|
|
63
|
-
- `MOSADD_SUPABASE_ANON_KEY` — the public anon key from project settings
|
|
64
|
-
- `MOSADD_USER_JWT` — sign in to mosadd.com → DevTools → Application → Local Storage → `sb-<ref>-auth-token` → copy the `access_token` field
|
|
65
|
-
|
|
66
|
-
In Phase 2 the hosted gateway at `mcp.mosadd.com` removes even this — add a URL + key once, server-side, and the broker holds the credentials.
|
|
67
|
-
|
|
68
|
-
## Tools shipped in alpha
|
|
69
|
-
|
|
70
|
-
**
|
|
71
|
-
|
|
72
|
-
| Module | Tools | What it does |
|
|
73
|
-
|---|---|---|
|
|
74
|
-
| **mDM** (16) | `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** (
|
|
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** (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
|
-
| **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 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
|
-
|
|
83
|
-
Module tools: mDM (16) + mIRC (
|
|
84
|
-
|
|
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
|
-
|
|
87
|
-
## Try it (60-second demo)
|
|
88
|
-
|
|
89
|
-
In Claude Code with env vars set:
|
|
90
|
-
|
|
91
|
-
> List my mosadd contacts.
|
|
92
|
-
|
|
93
|
-
Claude calls `mDM_list_contacts` → you see your contact list.
|
|
94
|
-
|
|
95
|
-
> Send "hello from Claude" to <id> with thread label `notes`.
|
|
96
|
-
|
|
97
|
-
Claude calls `mDM_send({ to, text, thread_label: "notes" })` → message appears in your mosADD app under a `notes` thread.
|
|
98
|
-
|
|
99
|
-
## Architecture
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
Agent (Claude / Cursor / ...)
|
|
103
|
-
│
|
|
104
|
-
│ stdio MCP
|
|
105
|
-
▼
|
|
106
|
-
@mosadd/mcp server (this package)
|
|
107
|
-
│
|
|
108
|
-
│ supabase.functions.invoke('message-send', ...)
|
|
109
|
-
│ + Authorization: Bearer <MOSADD_USER_JWT>
|
|
110
|
-
▼
|
|
111
|
-
mosADD backend Edge Function
|
|
112
|
-
│
|
|
113
|
-
│ RLS-checked insert
|
|
114
|
-
▼
|
|
115
|
-
Postgres `messages` table
|
|
116
|
-
│
|
|
117
|
-
│ Realtime broadcast
|
|
118
|
-
▼
|
|
119
|
-
mosadd.com app (receiver)
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
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.
|
|
123
|
-
|
|
124
|
-
## Configuration via env vars
|
|
125
|
-
|
|
126
|
-
| Env | Description | Required |
|
|
127
|
-
|---|---|---|
|
|
128
|
-
| `MOSADD_SUPABASE_URL` | Supabase project URL — DM / IRC / mail / KB backend | yes (BYOK) |
|
|
129
|
-
| `MOSADD_SUPABASE_ANON_KEY` | Supabase anon key | yes (BYOK) |
|
|
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 (the `mp0st_*` aliases are retired — `mAYL_*` is the one name) | no (mAYL disabled if unset) |
|
|
132
|
-
| `MOSADD_LIVEKIT_URL` | LiveKit `wss://…` URL — enables `mTALK` voice | no (voice disabled if unset) |
|
|
133
|
-
| `MOSADD_LIVEKIT_API_KEY` | LiveKit API key | no (with `…_URL` / `…_API_SECRET`) |
|
|
134
|
-
| `MOSADD_LIVEKIT_API_SECRET` | LiveKit API secret | no |
|
|
135
|
-
| `MOSADD_API_KEY` | Hub API key (Phase 2 hosted mode) | no |
|
|
136
|
-
| `MOSADD_HUB_URL` | Override hub url | no |
|
|
137
|
-
| `MOSADD_MODE` | `local` / `cloud` / `self-host` | no (auto-detected) |
|
|
138
|
-
| `MOSADD_LOG_LEVEL` | `debug` / `info` / `warn` / `error` | no (default `info`) |
|
|
139
|
-
|
|
140
|
-
Missing optional keys fail closed — that channel is simply absent from `comms_capabilities`.
|
|
141
|
-
|
|
142
|
-
## Links
|
|
143
|
-
|
|
144
|
-
- **Mint a key + docs** — [mosadd.com/keys](https://mosadd.com/keys) · [mosadd.com/docs](https://mosadd.com/docs) · [mosadd.com/mcp](https://mosadd.com/mcp)
|
|
145
|
-
- **Hosted gateway** — `https://mcp.mosadd.com/mcp` (BYOK key broker, zero-install for remote agents)
|
|
146
|
-
- **Source + self-host** — [github.com/Hei33enberg/mosADD-OS](https://github.com/Hei33enberg/mosADD-OS) (Apache-2.0)
|
|
147
|
-
|
|
148
|
-
## License
|
|
149
|
-
|
|
150
|
-
Apache-2.0. See repo [LICENSE](https://github.com/Hei33enberg/mosadd-os/blob/main/LICENSE) and [NOTICE](https://github.com/Hei33enberg/mosadd-os/blob/main/NOTICE).
|
|
1
|
+
# @mosadd/mcp
|
|
2
|
+
|
|
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
|
+
|
|
5
|
+
One key, one server, 85 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
|
+
|
|
7
|
+
> **85 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
|
+
|
|
9
|
+
## Connect your agent
|
|
10
|
+
|
|
11
|
+
Three ways to authenticate, friendliest first — all three end with the same 85 tools.
|
|
12
|
+
|
|
13
|
+
### 1. `mosadd login` — recommended (one command, stays logged in)
|
|
14
|
+
|
|
15
|
+
Sign in once; the session is saved to `~/.mosadd/session.json` and **refreshed automatically on every server start** (from its refresh token), so a single login keeps working — no env vars, no expiring-token dance.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx -y @mosadd/mcp@alpha login
|
|
19
|
+
# prompts for your Supabase URL + anon key (both public) and your mosADD email + password
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Then register the server with **no env block**:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Claude Code
|
|
26
|
+
claude mcp add mosadd -- npx -y @mosadd/mcp@alpha
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
// Claude Desktop / Cursor / Cline / Windsurf — mcpServers config, no env needed
|
|
31
|
+
{
|
|
32
|
+
"mcpServers": {
|
|
33
|
+
"mosadd": { "command": "npx", "args": ["-y", "@mosadd/mcp@alpha"] }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
`npx @mosadd/mcp@alpha whoami` shows who you're signed in as; `… logout` clears it.
|
|
39
|
+
|
|
40
|
+
### 2. `MOSADD_API_KEY` — headless / CI (one long-lived key)
|
|
41
|
+
|
|
42
|
+
A `mosadd_sk_live_…` hub key does not expire; the server exchanges it for a fresh session on every start. Best for servers, cron, and our own `mosadd-agent`.
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"mcpServers": {
|
|
47
|
+
"mosadd": {
|
|
48
|
+
"command": "npx",
|
|
49
|
+
"args": ["-y", "@mosadd/mcp@alpha"],
|
|
50
|
+
"env": { "MOSADD_API_KEY": "mosadd_sk_live_…" }
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Mint a key at **[mosadd.com/keys](https://mosadd.com/keys)** — the hub shows it once, in the `mosadd_sk_live_…` format above. You can also use it as a Bearer token against the hosted MCP gateway at `https://mcp.mosadd.com/mcp`.
|
|
57
|
+
|
|
58
|
+
### 3. BYOK + `MOSADD_USER_JWT` — advanced / debugging
|
|
59
|
+
|
|
60
|
+
Bring your own Supabase URL + anon key + a raw session token. **The JWT expires (~1h)** — prefer option 1 or 2 for anything ongoing.
|
|
61
|
+
|
|
62
|
+
- `MOSADD_SUPABASE_URL` — your Supabase project URL (e.g. `https://abc.supabase.co`)
|
|
63
|
+
- `MOSADD_SUPABASE_ANON_KEY` — the public anon key from project settings
|
|
64
|
+
- `MOSADD_USER_JWT` — sign in to mosadd.com → DevTools → Application → Local Storage → `sb-<ref>-auth-token` → copy the `access_token` field
|
|
65
|
+
|
|
66
|
+
In Phase 2 the hosted gateway at `mcp.mosadd.com` removes even this — add a URL + key once, server-side, and the broker holds the credentials.
|
|
67
|
+
|
|
68
|
+
## Tools shipped in alpha
|
|
69
|
+
|
|
70
|
+
**85 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
|
+
|
|
72
|
+
| Module | Tools | What it does |
|
|
73
|
+
|---|---|---|
|
|
74
|
+
| **mDM** (16) | `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** (25) | `mIRC_create/list/get/update/delete/discover/report`, member RBAC (`mIRC_join/leave/invite/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
|
+
| **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** (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
|
+
| **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 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
|
+
|
|
83
|
+
Module tools: mDM (16) + mIRC (25) + mURL (7) + mAYL (16) = 64; 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 — **85 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
|
+
|
|
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
|
+
|
|
87
|
+
## Try it (60-second demo)
|
|
88
|
+
|
|
89
|
+
In Claude Code with env vars set:
|
|
90
|
+
|
|
91
|
+
> List my mosadd contacts.
|
|
92
|
+
|
|
93
|
+
Claude calls `mDM_list_contacts` → you see your contact list.
|
|
94
|
+
|
|
95
|
+
> Send "hello from Claude" to <id> with thread label `notes`.
|
|
96
|
+
|
|
97
|
+
Claude calls `mDM_send({ to, text, thread_label: "notes" })` → message appears in your mosADD app under a `notes` thread.
|
|
98
|
+
|
|
99
|
+
## Architecture
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
Agent (Claude / Cursor / ...)
|
|
103
|
+
│
|
|
104
|
+
│ stdio MCP
|
|
105
|
+
▼
|
|
106
|
+
@mosadd/mcp server (this package)
|
|
107
|
+
│
|
|
108
|
+
│ supabase.functions.invoke('message-send', ...)
|
|
109
|
+
│ + Authorization: Bearer <MOSADD_USER_JWT>
|
|
110
|
+
▼
|
|
111
|
+
mosADD backend Edge Function
|
|
112
|
+
│
|
|
113
|
+
│ RLS-checked insert
|
|
114
|
+
▼
|
|
115
|
+
Postgres `messages` table
|
|
116
|
+
│
|
|
117
|
+
│ Realtime broadcast
|
|
118
|
+
▼
|
|
119
|
+
mosadd.com app (receiver)
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
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.
|
|
123
|
+
|
|
124
|
+
## Configuration via env vars
|
|
125
|
+
|
|
126
|
+
| Env | Description | Required |
|
|
127
|
+
|---|---|---|
|
|
128
|
+
| `MOSADD_SUPABASE_URL` | Supabase project URL — DM / IRC / mail / KB backend | yes (BYOK) |
|
|
129
|
+
| `MOSADD_SUPABASE_ANON_KEY` | Supabase anon key | yes (BYOK) |
|
|
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 (the `mp0st_*` aliases are retired — `mAYL_*` is the one name) | no (mAYL disabled if unset) |
|
|
132
|
+
| `MOSADD_LIVEKIT_URL` | LiveKit `wss://…` URL — enables `mTALK` voice | no (voice disabled if unset) |
|
|
133
|
+
| `MOSADD_LIVEKIT_API_KEY` | LiveKit API key | no (with `…_URL` / `…_API_SECRET`) |
|
|
134
|
+
| `MOSADD_LIVEKIT_API_SECRET` | LiveKit API secret | no |
|
|
135
|
+
| `MOSADD_API_KEY` | Hub API key (Phase 2 hosted mode) | no |
|
|
136
|
+
| `MOSADD_HUB_URL` | Override hub url | no |
|
|
137
|
+
| `MOSADD_MODE` | `local` / `cloud` / `self-host` | no (auto-detected) |
|
|
138
|
+
| `MOSADD_LOG_LEVEL` | `debug` / `info` / `warn` / `error` | no (default `info`) |
|
|
139
|
+
|
|
140
|
+
Missing optional keys fail closed — that channel is simply absent from `comms_capabilities`.
|
|
141
|
+
|
|
142
|
+
## Links
|
|
143
|
+
|
|
144
|
+
- **Mint a key + docs** — [mosadd.com/keys](https://mosadd.com/keys) · [mosadd.com/docs](https://mosadd.com/docs) · [mosadd.com/mcp](https://mosadd.com/mcp)
|
|
145
|
+
- **Hosted gateway** — `https://mcp.mosadd.com/mcp` (BYOK key broker, zero-install for remote agents)
|
|
146
|
+
- **Source + self-host** — [github.com/Hei33enberg/mosADD-OS](https://github.com/Hei33enberg/mosADD-OS) (Apache-2.0)
|
|
147
|
+
|
|
148
|
+
## License
|
|
149
|
+
|
|
150
|
+
Apache-2.0. See repo [LICENSE](https://github.com/Hei33enberg/mosadd-os/blob/main/LICENSE) and [NOTICE](https://github.com/Hei33enberg/mosadd-os/blob/main/NOTICE).
|