@mosadd/mcp 3.0.0-alpha.27 → 3.0.0-alpha.29
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 +20 -0
- package/README.md +8 -7
- package/dist/bin/mcp.js +1 -1
- package/dist/{chunk-EE7UQFSI.js → chunk-ZFX6FRBA.js} +67 -11
- package/dist/index.d.ts +17 -4
- package/dist/index.js +3 -1
- package/package.json +5 -5
- package/src/__tests__/integration.test.ts +1 -1
- package/src/__tests__/server.test.ts +2 -3
- package/src/index.ts +1 -1
- package/src/server.ts +1 -1
- package/src/tools/index.ts +20 -6
- package/src/tools/murl.ts +89 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,26 @@ gateway (Phase 2) ships.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [3.0.0-alpha.29] — 2026-07-17
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- **mURL owner-side management — 3 new tools.** `mURL_create` (claim a domain channel and
|
|
15
|
+
become its owner; idempotent, 409 if another account owns it), `mURL_update` (set branding /
|
|
16
|
+
mark `claimed` / `blocked` to close / reopen as `open`), `mURL_delete` (remove a channel you
|
|
17
|
+
own). Wired to the deployed, owner-scoped `murl-manage` EF via the same user-JWT auth as
|
|
18
|
+
`mURL_list_channels action='mine'`. mURL goes from read-only (read/post/presence/list) to a
|
|
19
|
+
full lifecycle — an agent can now provision and manage a domain's room, not just chat in it.
|
|
20
|
+
- **`TOOL_COUNT` export** (`= allTools.length`) — one source of truth for the callable-tool
|
|
21
|
+
count, mirroring `@mosadd/threat-engine`'s `THREAT_EVENT_COUNT`. Docs reference it, not a
|
|
22
|
+
hand-typed number that drifts.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- **Tool count corrected to 68** — it had been advertised inconsistently as "70+" / "65" across
|
|
26
|
+
READMEs, docs, registry submissions and the dev site. The registry holds exactly 68 callable
|
|
27
|
+
tools: mDM 14 · mIRC 22 · mURL 7 · mAYL 11 · mTALK 5 · mRAG 4 · comms_ 3 · Irondome (`threat_*`) 2.
|
|
28
|
+
Also fixed two stale claims in the reference table: `threat_*` IS registered (was labelled
|
|
29
|
+
"unregistered"), and the `mp0st_*` mAYL aliases are retired (were claimed as still functioning).
|
|
30
|
+
|
|
11
31
|
## [3.0.0-alpha.23] — 2026-06-26
|
|
12
32
|
|
|
13
33
|
Toolkit hardening pass: every registered tool's request/response contract was
|
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, 68 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
|
+
> **68 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 68 tools.
|
|
12
12
|
|
|
13
13
|
### 1. `mosadd login` — recommended (one command, stays logged in)
|
|
14
14
|
|
|
@@ -67,19 +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
|
+
**68 tools** — 4 modules (mDM, mIRC, mURL, mAYL) + capabilities (mTALK voice, mRAG search, 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
75
|
| **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 |
|
|
76
|
-
| **mURL** (
|
|
77
|
-
| **mAYL** (11) | `mAYL_send`, `mAYL_view`, `mAYL_list`, `mAYL_delete`, `mAYL_stats`, `mAYL_events`, `mAYL_metrics`, `mAYL_revoke`, `mAYL_audit_export`, `mAYL_consent`, `mAYL_notify` | Mail; every user gets `<id>@mosadd.com`. 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 mp0st;
|
|
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** (11) | `mAYL_send`, `mAYL_view`, `mAYL_list`, `mAYL_delete`, `mAYL_stats`, `mAYL_events`, `mAYL_metrics`, `mAYL_revoke`, `mAYL_audit_export`, `mAYL_consent`, `mAYL_notify` | Mail; every user gets `<id>@mosadd.com`. 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
78
|
| **mTALK** (5) | `mTALK_open`, `mTALK_join`, `mTALK_press`, `mTALK_release`, `mTALK_state` | Half-duplex push-to-talk: one speaker, FIFO queue, anti-hog auto-release |
|
|
79
79
|
| **mRAG** (4) | `mRAG_ingest`, `mRAG_search`, `mRAG_list_sources`, `mRAG_delete` | RAG recall over the user's own data (hybrid vector + BM25) |
|
|
80
80
|
| **comms_** (3) | `comms_action_create`, `comms_action_frame_get`, `comms_capabilities` | `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 |
|
|
81
|
+
| **Irondome** (2) | `threat_catalog`, `threat_classify` | On-device defensive classification over the 166-event threat taxonomy — pure, offline, no backend and no surveillance. The engine decides, the caller acts |
|
|
81
82
|
|
|
82
|
-
Module tools: mDM (14) + mIRC (22) + mURL (
|
|
83
|
+
Module tools: mDM (14) + mIRC (22) + mURL (7) + mAYL (11) = 54; capabilities: mTALK (5) + mRAG (4) + comms_ (3, incl. the `comms_capabilities` discovery tool) + Irondome (2) = 14 — **68 callable tools** in total. 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`). Not registered (so agents only ever see tools that actually work): `mCALL` (telephony, carrier-pending), `mROOM` (folded into ephemeral private mIRC), the retired `mp0st_*` mAYL aliases, and the `mAYL_send_as_agent` / `mTALK_ingest_ptt` / `comms_embed_create` scaffolds.
|
|
83
84
|
|
|
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.
|
|
85
86
|
|
package/dist/bin/mcp.js
CHANGED
|
@@ -1464,13 +1464,6 @@ var mailTools = [
|
|
|
1464
1464
|
}
|
|
1465
1465
|
];
|
|
1466
1466
|
|
|
1467
|
-
// src/tools/mail-aliases.ts
|
|
1468
|
-
var mailAliasTools = mailTools.map((tool) => ({
|
|
1469
|
-
...tool,
|
|
1470
|
-
name: tool.name.replace(/^mAYL_/, "mp0st_"),
|
|
1471
|
-
description: `[DEPRECATED \u2014 use ${tool.name} instead. mp0st_* aliases stay through alpha.25 for back-compat; will be removed in a later alpha.] ` + tool.description
|
|
1472
|
-
}));
|
|
1473
|
-
|
|
1474
1467
|
// src/tools/mtalk.ts
|
|
1475
1468
|
import { z as z8 } from "zod";
|
|
1476
1469
|
var RoomLabel = z8.string().min(1).max(120).regex(/^[a-zA-Z0-9._-]+$/).describe("Human-readable room label (e.g. 'ops', 'field-team'). Used to derive a stable room id.");
|
|
@@ -2124,6 +2117,47 @@ async function mURL_presence(input, ctx) {
|
|
|
2124
2117
|
const data = await r.json();
|
|
2125
2118
|
return { domain, count: data.count ?? 0, roster: data.roster ?? [], status: data.status ?? "open" };
|
|
2126
2119
|
}
|
|
2120
|
+
var mURL_create_input = z13.object({
|
|
2121
|
+
domain: DomainArg,
|
|
2122
|
+
branding: z13.record(z13.any()).optional().describe("Optional branding JSON (e.g. display name, colour, avatar URL) shown on the channel."),
|
|
2123
|
+
status: z13.enum(["open", "claimed", "blocked"]).optional().describe("Initial status: 'open' (default) = public agent-native room; 'claimed' = registered as yours; 'blocked' = closed.")
|
|
2124
|
+
});
|
|
2125
|
+
async function mURL_create(input, ctx) {
|
|
2126
|
+
readSupabaseEnv();
|
|
2127
|
+
const { domain } = urlToSlug(input.domain);
|
|
2128
|
+
ctx.log("debug", "mURL_create invoking murl-manage", { domain });
|
|
2129
|
+
return await invokeFunction("murl-manage", {
|
|
2130
|
+
action: "create",
|
|
2131
|
+
domain,
|
|
2132
|
+
branding: input.branding ?? null,
|
|
2133
|
+
status: input.status ?? null
|
|
2134
|
+
});
|
|
2135
|
+
}
|
|
2136
|
+
var mURL_update_input = z13.object({
|
|
2137
|
+
domain: DomainArg,
|
|
2138
|
+
branding: z13.record(z13.any()).optional().describe("New branding JSON to set on the channel."),
|
|
2139
|
+
status: z13.enum(["open", "claimed", "blocked"]).optional().describe("New status: 'claimed' to mark owned, 'blocked' to close the room, 'open' to reopen.")
|
|
2140
|
+
});
|
|
2141
|
+
async function mURL_update(input, ctx) {
|
|
2142
|
+
readSupabaseEnv();
|
|
2143
|
+
const { domain } = urlToSlug(input.domain);
|
|
2144
|
+
const slug2 = domain.replace(/\./g, "-");
|
|
2145
|
+
ctx.log("debug", "mURL_update invoking murl-manage", { domain });
|
|
2146
|
+
return await invokeFunction("murl-manage", {
|
|
2147
|
+
action: "update",
|
|
2148
|
+
slug: slug2,
|
|
2149
|
+
branding: input.branding ?? null,
|
|
2150
|
+
status: input.status ?? null
|
|
2151
|
+
});
|
|
2152
|
+
}
|
|
2153
|
+
var mURL_delete_input = z13.object({ domain: DomainArg });
|
|
2154
|
+
async function mURL_delete(input, ctx) {
|
|
2155
|
+
readSupabaseEnv();
|
|
2156
|
+
const { domain } = urlToSlug(input.domain);
|
|
2157
|
+
const slug2 = domain.replace(/\./g, "-");
|
|
2158
|
+
ctx.log("debug", "mURL_delete invoking murl-manage", { domain });
|
|
2159
|
+
return await invokeFunction("murl-manage", { action: "delete", slug: slug2 });
|
|
2160
|
+
}
|
|
2127
2161
|
var murlTools = [
|
|
2128
2162
|
{
|
|
2129
2163
|
name: "mURL_read_channel",
|
|
@@ -2152,6 +2186,27 @@ var murlTools = [
|
|
|
2152
2186
|
description: "Discovery for mURL domain channels: 'trending' (most active in the last N hours, default 24) / 'list' (paginated catalogue, status-filtered) / 'mine' (channels you DNS-verified). Returns domain, slug, status, branding, verified_at + (for trending) messages_in_window. For who's-on-now, follow up with mURL_presence on the slug.",
|
|
2153
2187
|
inputSchema: mURL_list_channels_input,
|
|
2154
2188
|
handler: mURL_list_channels
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
name: "mURL_create",
|
|
2192
|
+
requires: "network",
|
|
2193
|
+
description: "Create / claim the mURL channel for a web DOMAIN and register YOU as its owner (idempotent \u2014 returns the existing channel if you already own it; fails with 'claimed_by_other' if another account owns it). Optionally set initial branding + status. Owner-side: needs your mosADD login session (user JWT via `mosadd login`), not just a hub key \u2014 same as mURL_list_channels action='mine'. Backend: murl-manage EF.",
|
|
2194
|
+
inputSchema: mURL_create_input,
|
|
2195
|
+
handler: mURL_create
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
name: "mURL_update",
|
|
2199
|
+
requires: "network",
|
|
2200
|
+
description: "Update a mURL DOMAIN channel you own: set branding, mark it 'claimed', 'blocked' (close the room), or reopen it as 'open'. Owner-scoped \u2014 you must own the channel (claim it first with mURL_create). Needs your mosADD login session. Backend: murl-manage EF.",
|
|
2201
|
+
inputSchema: mURL_update_input,
|
|
2202
|
+
handler: mURL_update
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
name: "mURL_delete",
|
|
2206
|
+
requires: "network",
|
|
2207
|
+
description: "Delete a mURL DOMAIN channel you own (removes its domain_controls row; the room stops being served). Owner-scoped \u2014 you must own it. Needs your mosADD login session. Backend: murl-manage EF.",
|
|
2208
|
+
inputSchema: mURL_delete_input,
|
|
2209
|
+
handler: mURL_delete
|
|
2155
2210
|
}
|
|
2156
2211
|
];
|
|
2157
2212
|
|
|
@@ -2196,9 +2251,8 @@ var channelTools = [
|
|
|
2196
2251
|
// ...mroomTools, // mROOM: killed (LINEAR-3414) — channel re-cut into ephemeral private mIRC
|
|
2197
2252
|
// ...mroomMessagesTools, // mROOM: killed (LINEAR-3414)
|
|
2198
2253
|
...mailTools,
|
|
2199
|
-
// mAYL_*: canonical email module (was
|
|
2200
|
-
...mailAliasTools,
|
|
2201
|
-
// mp0st_*: back-compat aliases — DEPRECATED, removed in a later alpha
|
|
2254
|
+
// mAYL_*: canonical email module (was the mp0st codename; renamed re-arch 2026-06-27)
|
|
2255
|
+
// ...mailAliasTools, // mp0st_* aliases RETIRED 2026-07-15 — mAYL is the one name; the mp0st codename is now backend-internal only
|
|
2202
2256
|
// ...mailProvenanceTools, // mAYL_send_as_agent: UNREGISTERED 2026-07-14 — hub-claim EF 404s every call; re-register when rewired onto hub-key-exchange (CTO-1 live-ping)
|
|
2203
2257
|
...mtalkTools,
|
|
2204
2258
|
...attachmentTools,
|
|
@@ -2224,6 +2278,7 @@ var allTools = [
|
|
|
2224
2278
|
// so carrier-aware hosts (cymru-os) can gate the tool list by transport.
|
|
2225
2279
|
makeCapabilitiesTool(channelTools)
|
|
2226
2280
|
];
|
|
2281
|
+
var TOOL_COUNT = allTools.length;
|
|
2227
2282
|
|
|
2228
2283
|
// src/server.ts
|
|
2229
2284
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -2387,7 +2442,7 @@ function createMosaddServer(options = {}) {
|
|
|
2387
2442
|
const server = new McpServer(
|
|
2388
2443
|
{
|
|
2389
2444
|
name: "mosadd",
|
|
2390
|
-
version: "3.0.0-alpha.
|
|
2445
|
+
version: "3.0.0-alpha.28"
|
|
2391
2446
|
},
|
|
2392
2447
|
{
|
|
2393
2448
|
capabilities: {
|
|
@@ -2440,6 +2495,7 @@ function shouldLog(level, threshold) {
|
|
|
2440
2495
|
export {
|
|
2441
2496
|
runWithSupabaseEnv,
|
|
2442
2497
|
allTools,
|
|
2498
|
+
TOOL_COUNT,
|
|
2443
2499
|
defaultProviders,
|
|
2444
2500
|
createMosaddServer
|
|
2445
2501
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -211,10 +211,13 @@ declare function createMosaddServer(options?: MosaddServerOptions): McpServer;
|
|
|
211
211
|
* defensive classification over the threat taxonomy — the surveillance-era
|
|
212
212
|
* *marketing* was killed, the classification engine is real and wanted.
|
|
213
213
|
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
214
|
+
* 68 callable tools registered — the exact live count is exported as TOOL_COUNT
|
|
215
|
+
* (= allTools.length) below; ALWAYS reference that, never re-hard-code a number that drifts.
|
|
216
|
+
* Breakdown (2026-07-17): mDM 14 · mIRC 22 · mAYL 11 · mURL 7 · mTALK 5 · mRAG 4 ·
|
|
217
|
+
* comms 2 · Irondome/threat 2 + comms_capabilities discovery 1 = 68. (mDM/mIRC each
|
|
218
|
+
* include their 2 attachment tools from attachments.ts.)
|
|
219
|
+
* Modules (4): mDM, mIRC, mURL, mAYL. Capabilities: mTALK (voice/PTT), mRAG, comms_, Irondome (threat_*).
|
|
216
220
|
* mp0st_* stay as DEPRECATED back-compat aliases for mAYL_* (removed in a later alpha).
|
|
217
|
-
* Exact integer pending a live EF ping (CTO-1) — don't hard-code a drifting count.
|
|
218
221
|
* UNREGISTERED 2026-07-14 (broken scaffolds whose EFs 404/400 every call — re-register when
|
|
219
222
|
* live): mAYL_send_as_agent (mail-provenance), mTALK_ingest_ptt (ptt-ingest), comms_embed_create.
|
|
220
223
|
* mROOM was KILLED (LINEAR-3414, channel re-cut → ephemeral private mIRC): its tools
|
|
@@ -223,12 +226,22 @@ declare function createMosaddServer(options?: MosaddServerOptions): McpServer;
|
|
|
223
226
|
* incl. screen_share) + comms_action_frame_get (see the recipient's shared screen).
|
|
224
227
|
* mURL is a FULL registered dev module (revived, founder 2026-06-27) — IRC-for-URLs,
|
|
225
228
|
* agent-native; backends live (mosadd-edge + murl-channels EF). tools/murl.ts.
|
|
229
|
+
* mURL now has full lifecycle: read/post/presence/list_channels (hub-key) PLUS owner-side
|
|
230
|
+
* create/claim + update(branding/status) + delete (mURL_create/update/delete → murl-manage
|
|
231
|
+
* EF, owner-scoped via user JWT — same auth as mURL_list_channels action='mine').
|
|
226
232
|
* mCALL is carrier-pending (no telephony carrier live yet): its tools live in
|
|
227
233
|
* tools/mcall.ts but are NOT registered here, so an agent only ever discovers
|
|
228
234
|
* tools that actually work. Re-register the one line below when a carrier ships.
|
|
229
235
|
*/
|
|
230
236
|
|
|
231
237
|
declare const allTools: MosaddTool[];
|
|
238
|
+
/**
|
|
239
|
+
* The exact, live number of callable tools this server registers. Reference THIS
|
|
240
|
+
* (import { TOOL_COUNT }) in any code/doc surface that shows a tool count, instead
|
|
241
|
+
* of hard-coding a number that silently drifts (the "70+/65/68" inconsistency that
|
|
242
|
+
* bit us). Mirrors @mosadd/threat-engine's THREAT_EVENT_COUNT pattern.
|
|
243
|
+
*/
|
|
244
|
+
declare const TOOL_COUNT: number;
|
|
232
245
|
|
|
233
246
|
/**
|
|
234
247
|
* Supabase provider for the alpha MCP server.
|
|
@@ -249,4 +262,4 @@ interface SupabaseEnv {
|
|
|
249
262
|
/** Run `fn` (and every tool call it triggers) with a per-request Supabase session. */
|
|
250
263
|
declare function runWithSupabaseEnv<T>(env: SupabaseEnv, fn: () => T): T;
|
|
251
264
|
|
|
252
|
-
export { type MosaddServerOptions, type MosaddTool, type MosaddToolContext, type ProviderRegistry, type SupabaseEnv, allTools, createMosaddServer, defaultProviders, runWithSupabaseEnv };
|
|
265
|
+
export { type MosaddServerOptions, type MosaddTool, type MosaddToolContext, type ProviderRegistry, type SupabaseEnv, TOOL_COUNT, allTools, createMosaddServer, defaultProviders, runWithSupabaseEnv };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
+
TOOL_COUNT,
|
|
2
3
|
allTools,
|
|
3
4
|
createMosaddServer,
|
|
4
5
|
defaultProviders,
|
|
5
6
|
runWithSupabaseEnv
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZFX6FRBA.js";
|
|
7
8
|
import "./chunk-Z7WR52GE.js";
|
|
8
9
|
export {
|
|
10
|
+
TOOL_COUNT,
|
|
9
11
|
allTools,
|
|
10
12
|
createMosaddServer,
|
|
11
13
|
defaultProviders,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mosadd/mcp",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.29",
|
|
4
4
|
"mcpName": "io.github.hei33enberg/mosadd-mcp",
|
|
5
|
-
"description": "Model Context Protocol server for mosadd. Exposes 4 modules (mDM, mIRC, mURL, mAYL) and capabilities (mTALK, mRAG) plus comms agent-actions —
|
|
5
|
+
"description": "Model Context Protocol server for mosadd. Exposes 4 modules (mDM, mIRC, mURL, mAYL) and capabilities (mTALK, mRAG) plus comms agent-actions — 68 tools — to any agent runtime (Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, custom).",
|
|
6
6
|
"homepage": "https://github.com/Hei33enberg/mosADD-OS/tree/main/packages/mcp",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
39
39
|
"@supabase/supabase-js": "^2.48.0",
|
|
40
40
|
"zod": "^4.3.6",
|
|
41
|
-
"@mosadd/
|
|
41
|
+
"@mosadd/crypto": "3.0.0-alpha.26",
|
|
42
42
|
"@mosadd/providers": "3.0.0-alpha.26",
|
|
43
|
-
"@mosadd/
|
|
44
|
-
"@mosadd/
|
|
43
|
+
"@mosadd/threat-engine": "3.0.0-alpha.26",
|
|
44
|
+
"@mosadd/protocol": "3.0.0-alpha.26"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"tsup": "^8.3.5",
|
|
@@ -139,7 +139,7 @@ describe("@mosadd/mcp — integration (real stdio)", () => {
|
|
|
139
139
|
expect(names).toContain("mIRC_create");
|
|
140
140
|
expect(names).toContain("mURL_post"); // mURL revived module (2026-06-27)
|
|
141
141
|
expect(names).toContain("mAYL_send"); // mAYL = email 3.0 (was mp0st); threat_catalog/threat_classify ARE registered (LINEAR-3498)
|
|
142
|
-
expect(names).toContain("mp0st_send"); //
|
|
142
|
+
expect(names).not.toContain("mp0st_send"); // mp0st_* aliases RETIRED 2026-07-15 — mAYL only
|
|
143
143
|
expect(names).toContain("mTALK_press"); // mTALK PTT now shipped
|
|
144
144
|
expect(names).toContain("mRAG_search"); // mRAG RAG-for-devs now shipped
|
|
145
145
|
expect(names).toContain("mIRC_post_message"); // channel messaging now shipped
|
|
@@ -19,9 +19,8 @@ describe("@mosadd/mcp", () => {
|
|
|
19
19
|
// (surveillance-era direction killed 2026-06-27; on-device security pillar, not an MCP tool)
|
|
20
20
|
expect(names).toContain("mURL_post");
|
|
21
21
|
expect(names).toContain("mAYL_send");
|
|
22
|
-
// mp0st_*
|
|
23
|
-
expect(names).
|
|
24
|
-
expect(names).toContain("mp0st_view");
|
|
22
|
+
// mp0st_* aliases RETIRED 2026-07-15 — mAYL is the one name (mp0st is backend-internal only)
|
|
23
|
+
expect(names.some((n) => n.startsWith("mp0st_"))).toBe(false);
|
|
25
24
|
});
|
|
26
25
|
|
|
27
26
|
it("follows RFC 0001 naming — channel tools m<MODULE>_<operation>, meta tools comms_<op>", () => {
|
package/src/index.ts
CHANGED
|
@@ -14,6 +14,6 @@ export type {
|
|
|
14
14
|
MosaddToolContext,
|
|
15
15
|
ProviderRegistry,
|
|
16
16
|
} from "./types.js";
|
|
17
|
-
export { allTools } from "./tools/index.js";
|
|
17
|
+
export { allTools, TOOL_COUNT } from "./tools/index.js";
|
|
18
18
|
// Per-request session context for the hosted HTTP gateway (mcp.mosadd.com).
|
|
19
19
|
export { runWithSupabaseEnv, type SupabaseEnv } from "./providers/supabase.js";
|
package/src/server.ts
CHANGED
package/src/tools/index.ts
CHANGED
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
* defensive classification over the threat taxonomy — the surveillance-era
|
|
13
13
|
* *marketing* was killed, the classification engine is real and wanted.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* 68 callable tools registered — the exact live count is exported as TOOL_COUNT
|
|
16
|
+
* (= allTools.length) below; ALWAYS reference that, never re-hard-code a number that drifts.
|
|
17
|
+
* Breakdown (2026-07-17): mDM 14 · mIRC 22 · mAYL 11 · mURL 7 · mTALK 5 · mRAG 4 ·
|
|
18
|
+
* comms 2 · Irondome/threat 2 + comms_capabilities discovery 1 = 68. (mDM/mIRC each
|
|
19
|
+
* include their 2 attachment tools from attachments.ts.)
|
|
20
|
+
* Modules (4): mDM, mIRC, mURL, mAYL. Capabilities: mTALK (voice/PTT), mRAG, comms_, Irondome (threat_*).
|
|
17
21
|
* mp0st_* stay as DEPRECATED back-compat aliases for mAYL_* (removed in a later alpha).
|
|
18
|
-
* Exact integer pending a live EF ping (CTO-1) — don't hard-code a drifting count.
|
|
19
22
|
* UNREGISTERED 2026-07-14 (broken scaffolds whose EFs 404/400 every call — re-register when
|
|
20
23
|
* live): mAYL_send_as_agent (mail-provenance), mTALK_ingest_ptt (ptt-ingest), comms_embed_create.
|
|
21
24
|
* mROOM was KILLED (LINEAR-3414, channel re-cut → ephemeral private mIRC): its tools
|
|
@@ -24,6 +27,9 @@
|
|
|
24
27
|
* incl. screen_share) + comms_action_frame_get (see the recipient's shared screen).
|
|
25
28
|
* mURL is a FULL registered dev module (revived, founder 2026-06-27) — IRC-for-URLs,
|
|
26
29
|
* agent-native; backends live (mosadd-edge + murl-channels EF). tools/murl.ts.
|
|
30
|
+
* mURL now has full lifecycle: read/post/presence/list_channels (hub-key) PLUS owner-side
|
|
31
|
+
* create/claim + update(branding/status) + delete (mURL_create/update/delete → murl-manage
|
|
32
|
+
* EF, owner-scoped via user JWT — same auth as mURL_list_channels action='mine').
|
|
27
33
|
* mCALL is carrier-pending (no telephony carrier live yet): its tools live in
|
|
28
34
|
* tools/mcall.ts but are NOT registered here, so an agent only ever discovers
|
|
29
35
|
* tools that actually work. Re-register the one line below when a carrier ships.
|
|
@@ -39,7 +45,7 @@ import { mircEdgeTools } from "./mirc-edge.js";
|
|
|
39
45
|
// import { mroomTools } from "./mroom.js"; // mROOM: killed (LINEAR-3414) — not registered
|
|
40
46
|
// import { mroomMessagesTools } from "./mroom-messages.js"; // mROOM: killed (LINEAR-3414) — not registered
|
|
41
47
|
import { mailTools } from "./mail.js";
|
|
42
|
-
import { mailAliasTools } from "./mail-aliases.js";
|
|
48
|
+
// import { mailAliasTools } from "./mail-aliases.js"; // mp0st_* aliases RETIRED 2026-07-15 (founder: unify on mAYL, drop the mp0st codename from every user-visible surface). Source kept for reference.
|
|
43
49
|
// import { mailProvenanceTools } from "./mail-provenance.js"; // mAYL_send_as_agent SCAFFOLD — UNREGISTERED 2026-07-14 (hub-claim EF 404s; re-register when live — CTO-1 live-ping)
|
|
44
50
|
import { mtalkTools } from "./mtalk.js";
|
|
45
51
|
import { attachmentTools } from "./attachments.js";
|
|
@@ -62,8 +68,8 @@ const channelTools: MosaddTool[] = [
|
|
|
62
68
|
...mircEdgeTools,
|
|
63
69
|
// ...mroomTools, // mROOM: killed (LINEAR-3414) — channel re-cut into ephemeral private mIRC
|
|
64
70
|
// ...mroomMessagesTools, // mROOM: killed (LINEAR-3414)
|
|
65
|
-
...mailTools, // mAYL_*: canonical email module (was
|
|
66
|
-
...mailAliasTools,
|
|
71
|
+
...mailTools, // mAYL_*: canonical email module (was the mp0st codename; renamed re-arch 2026-06-27)
|
|
72
|
+
// ...mailAliasTools, // mp0st_* aliases RETIRED 2026-07-15 — mAYL is the one name; the mp0st codename is now backend-internal only
|
|
67
73
|
// ...mailProvenanceTools, // mAYL_send_as_agent: UNREGISTERED 2026-07-14 — hub-claim EF 404s every call; re-register when rewired onto hub-key-exchange (CTO-1 live-ping)
|
|
68
74
|
...mtalkTools,
|
|
69
75
|
...attachmentTools,
|
|
@@ -87,3 +93,11 @@ export const allTools: MosaddTool[] = [
|
|
|
87
93
|
// so carrier-aware hosts (cymru-os) can gate the tool list by transport.
|
|
88
94
|
makeCapabilitiesTool(channelTools),
|
|
89
95
|
];
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The exact, live number of callable tools this server registers. Reference THIS
|
|
99
|
+
* (import { TOOL_COUNT }) in any code/doc surface that shows a tool count, instead
|
|
100
|
+
* of hard-coding a number that silently drifts (the "70+/65/68" inconsistency that
|
|
101
|
+
* bit us). Mirrors @mosadd/threat-engine's THREAT_EVENT_COUNT pattern.
|
|
102
|
+
*/
|
|
103
|
+
export const TOOL_COUNT: number = allTools.length;
|
package/src/tools/murl.ts
CHANGED
|
@@ -173,6 +173,71 @@ async function mURL_presence(
|
|
|
173
173
|
return { domain, count: data.count ?? 0, roster: data.roster ?? [], status: data.status ?? "open" };
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
// ── create / claim (owner-side) ────────────────────────────────────────────────
|
|
177
|
+
const mURL_create_input = z.object({
|
|
178
|
+
domain: DomainArg,
|
|
179
|
+
branding: z
|
|
180
|
+
.record(z.any())
|
|
181
|
+
.optional()
|
|
182
|
+
.describe("Optional branding JSON (e.g. display name, colour, avatar URL) shown on the channel."),
|
|
183
|
+
status: z
|
|
184
|
+
.enum(["open", "claimed", "blocked"])
|
|
185
|
+
.optional()
|
|
186
|
+
.describe("Initial status: 'open' (default) = public agent-native room; 'claimed' = registered as yours; 'blocked' = closed."),
|
|
187
|
+
});
|
|
188
|
+
async function mURL_create(
|
|
189
|
+
input: z.infer<typeof mURL_create_input>,
|
|
190
|
+
ctx: MosaddToolContext,
|
|
191
|
+
): Promise<{ channel: MurlChannel }> {
|
|
192
|
+
readSupabaseEnv();
|
|
193
|
+
const { domain } = urlToSlug(input.domain);
|
|
194
|
+
ctx.log("debug", "mURL_create invoking murl-manage", { domain });
|
|
195
|
+
return await invokeFunction("murl-manage", {
|
|
196
|
+
action: "create",
|
|
197
|
+
domain,
|
|
198
|
+
branding: input.branding ?? null,
|
|
199
|
+
status: input.status ?? null,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// ── update (claim status / block / branding) ────────────────────────────────────
|
|
204
|
+
const mURL_update_input = z.object({
|
|
205
|
+
domain: DomainArg,
|
|
206
|
+
branding: z.record(z.any()).optional().describe("New branding JSON to set on the channel."),
|
|
207
|
+
status: z
|
|
208
|
+
.enum(["open", "claimed", "blocked"])
|
|
209
|
+
.optional()
|
|
210
|
+
.describe("New status: 'claimed' to mark owned, 'blocked' to close the room, 'open' to reopen."),
|
|
211
|
+
});
|
|
212
|
+
async function mURL_update(
|
|
213
|
+
input: z.infer<typeof mURL_update_input>,
|
|
214
|
+
ctx: MosaddToolContext,
|
|
215
|
+
): Promise<{ channel: MurlChannel }> {
|
|
216
|
+
readSupabaseEnv();
|
|
217
|
+
const { domain } = urlToSlug(input.domain);
|
|
218
|
+
const slug = domain.replace(/\./g, "-");
|
|
219
|
+
ctx.log("debug", "mURL_update invoking murl-manage", { domain });
|
|
220
|
+
return await invokeFunction("murl-manage", {
|
|
221
|
+
action: "update",
|
|
222
|
+
slug,
|
|
223
|
+
branding: input.branding ?? null,
|
|
224
|
+
status: input.status ?? null,
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// ── delete (owner-side) ─────────────────────────────────────────────────────────
|
|
229
|
+
const mURL_delete_input = z.object({ domain: DomainArg });
|
|
230
|
+
async function mURL_delete(
|
|
231
|
+
input: z.infer<typeof mURL_delete_input>,
|
|
232
|
+
ctx: MosaddToolContext,
|
|
233
|
+
): Promise<{ ok: boolean }> {
|
|
234
|
+
readSupabaseEnv();
|
|
235
|
+
const { domain } = urlToSlug(input.domain);
|
|
236
|
+
const slug = domain.replace(/\./g, "-");
|
|
237
|
+
ctx.log("debug", "mURL_delete invoking murl-manage", { domain });
|
|
238
|
+
return await invokeFunction("murl-manage", { action: "delete", slug });
|
|
239
|
+
}
|
|
240
|
+
|
|
176
241
|
export const murlTools: MosaddTool[] = [
|
|
177
242
|
{
|
|
178
243
|
name: "mURL_read_channel",
|
|
@@ -206,4 +271,28 @@ export const murlTools: MosaddTool[] = [
|
|
|
206
271
|
inputSchema: mURL_list_channels_input,
|
|
207
272
|
handler: mURL_list_channels as MosaddTool["handler"],
|
|
208
273
|
},
|
|
274
|
+
{
|
|
275
|
+
name: "mURL_create",
|
|
276
|
+
requires: "network",
|
|
277
|
+
description:
|
|
278
|
+
"Create / claim the mURL channel for a web DOMAIN and register YOU as its owner (idempotent — returns the existing channel if you already own it; fails with 'claimed_by_other' if another account owns it). Optionally set initial branding + status. Owner-side: needs your mosADD login session (user JWT via `mosadd login`), not just a hub key — same as mURL_list_channels action='mine'. Backend: murl-manage EF.",
|
|
279
|
+
inputSchema: mURL_create_input,
|
|
280
|
+
handler: mURL_create as MosaddTool["handler"],
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: "mURL_update",
|
|
284
|
+
requires: "network",
|
|
285
|
+
description:
|
|
286
|
+
"Update a mURL DOMAIN channel you own: set branding, mark it 'claimed', 'blocked' (close the room), or reopen it as 'open'. Owner-scoped — you must own the channel (claim it first with mURL_create). Needs your mosADD login session. Backend: murl-manage EF.",
|
|
287
|
+
inputSchema: mURL_update_input,
|
|
288
|
+
handler: mURL_update as MosaddTool["handler"],
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "mURL_delete",
|
|
292
|
+
requires: "network",
|
|
293
|
+
description:
|
|
294
|
+
"Delete a mURL DOMAIN channel you own (removes its domain_controls row; the room stops being served). Owner-scoped — you must own it. Needs your mosADD login session. Backend: murl-manage EF.",
|
|
295
|
+
inputSchema: mURL_delete_input,
|
|
296
|
+
handler: mURL_delete as MosaddTool["handler"],
|
|
297
|
+
},
|
|
209
298
|
];
|