@mosadd/mcp 3.0.0 → 3.0.2

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +420 -410
  2. package/LICENSE +21 -0
  3. package/dist/bin/mcp.js +1 -1
  4. package/dist/{chunk-VMMJJYXF.js → chunk-I3FSPQ4G.js} +78 -30
  5. package/dist/index.d.ts +6 -6
  6. package/dist/index.js +1 -1
  7. package/package.json +1 -1
  8. package/src/__tests__/blob-upload.test.ts +1 -1
  9. package/src/__tests__/{flota-jawnie.test.ts → fleet-plaintext.test.ts} +59 -60
  10. package/src/__tests__/integration.test.ts +1 -1
  11. package/src/__tests__/mdm-e2ee.test.ts +3 -3
  12. package/src/__tests__/mdm-mcp-readable.test.ts +95 -95
  13. package/src/__tests__/mirc-files.test.ts +80 -0
  14. package/src/__tests__/mirc-invite.test.ts +1 -1
  15. package/src/__tests__/mirc-voice.test.ts +82 -0
  16. package/src/__tests__/mrag-search-diagnostics.test.ts +78 -0
  17. package/src/__tests__/presence.test.ts +2 -2
  18. package/src/__tests__/server.test.ts +3 -3
  19. package/src/__tests__/tool-count-consistency.test.ts +4 -4
  20. package/src/crypto/channel-e2ee.ts +1 -1
  21. package/src/crypto/mdm-session.ts +14 -14
  22. package/src/providers/supabase-dm.ts +6 -1
  23. package/src/providers/supabase.ts +8 -8
  24. package/src/server.ts +4 -4
  25. package/src/tools/channel-payload.ts +3 -3
  26. package/src/tools/index.ts +13 -13
  27. package/src/tools/knowledge.ts +384 -351
  28. package/src/tools/mail-aliases.ts +1 -1
  29. package/src/tools/mail-provenance.ts +1 -1
  30. package/src/tools/mdm-as-agent.ts +3 -4
  31. package/src/tools/mdm.ts +19 -14
  32. package/src/tools/mirc-edge.ts +4 -4
  33. package/src/tools/mirc-members.ts +1 -1
  34. package/src/tools/mirc-messages.ts +41 -12
  35. package/src/tools/mirc.ts +1 -1
  36. package/src/tools/mroom-messages.ts +1 -1
  37. package/src/tools/presence.ts +10 -10
  38. package/src/tools/ptt-ingest.ts +1 -1
  39. package/src/tools/threat.ts +1 -1
  40. package/src/tools/voice-format.ts +53 -7
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * Tool registry. Each m* module contributes a set of tools.
3
3
  *
4
- * User-facing modules (4): mDM, mIRC, mURL, mAYL — the re-arch (LINEAR-3938)
4
+ * User-facing modules (4): mDM, mIRC, mURL, mAYL — the re-arch
5
5
  * mAYL replaces the old mp0st name (mp0st_* still registered as back-compat
6
6
  * aliases via mail-aliases.ts; will be removed in a later alpha).
7
7
  *
8
8
  * Capabilities (not modules — cross-cutting agent tooling): mRAG, comms_.
9
9
  * mTALK = voice tier inside mIRC, still its own tools for now; folding into
10
10
  * mIRC_voice_* in a follow-up release. threat_* (threat_catalog + threat_classify)
11
- * are REGISTERED (2026-07-15, founder directive + LINEAR-3498): pure/offline
11
+ * are REGISTERED (2026-07-15, founder directive): pure/offline
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
  *
@@ -18,7 +18,7 @@
18
18
  * when the alpha carrying mIRC_invite is published and the gateway redeployed):
19
19
  * modules mDM 16 · mIRC 25 · mURL 7 · mAYL 16 = 64; capabilities mTALK 6 · mRAG 8 ·
20
20
  * comms 5 (action_create/action_frame_get/embed_create/capabilities/session_attach) · Irondome/threat 2
21
- * = 21. 64 + 21 = 85. (mIRC 25 = 24 + mIRC_invite added 2026-09-03 (LINEAR-5870): mIRC_join adds the KEY's
21
+ * = 21. 64 + 21 = 85. (mIRC 25 = 24 + mIRC_invite added 2026-09-03: mIRC_join adds the KEY's
22
22
  * identity while channel posts are signed by the AGENT, so every channel created from the toolkit was mute
23
23
  * until its agent was added from the app — mIRC_invite wraps channel-members-manage `invite`: own agent →
24
24
  * auto_joined, anyone else → invite code. mDM 16 = 14 + mDM_send_as_agent/mDM_list_my_agents added 2026-08-17: an MCP key
@@ -38,7 +38,7 @@
38
38
  * mAYL_send_as_agent + mTALK_ingest_ptt were RE-REGISTERED 2026-07-29: both had been disabled
39
39
  * on 07-14 notes that had since become false, and both were re-verified on authenticated calls.
40
40
  * comms_embed_create RE-REGISTERED 2026-07-17 (embed.mosadd.com/v1.js live — P3 of mURL→mIRC).
41
- * mROOM was KILLED (LINEAR-3414, channel re-cut → ephemeral private mIRC): its tools
41
+ * mROOM was KILLED (channel re-cut → ephemeral private mIRC): its tools
42
42
  * live in tools/mroom.ts + mroom-messages.ts but are NOT registered here.
43
43
  * Plus action links: comms_action_create (agent → user one-link browser action,
44
44
  * incl. screen_share) + comms_action_frame_get (see the recipient's shared screen).
@@ -54,18 +54,18 @@
54
54
 
55
55
  import type { MosaddTool } from "../types.js";
56
56
  import { mdmTools } from "./mdm.js";
57
- import { mdmAsAgentTools } from "./mdm-as-agent.js"; // mDM_send_as_agent + mDM_list_my_agents — 2026-08-17 (LINEAR-5620): a key is bound to a USER, so an agent runtime connected with its owner's key spoke AS THE OWNER and had no thread with him. These let that session speak as an agent it OWNS (verified server-side in mdm-send-as-agent).
57
+ import { mdmAsAgentTools } from "./mdm-as-agent.js"; // mDM_send_as_agent + mDM_list_my_agents — 2026-08-17: a key is bound to a USER, so an agent runtime connected with its owner's key spoke AS THE OWNER and had no thread with him. These let that session speak as an agent it OWNS (verified server-side in mdm-send-as-agent).
58
58
  import { mdmVoiceTools } from "./mdm-voice.js";
59
59
  import { mircTools } from "./mirc.js";
60
60
  import { mircMembersTools } from "./mirc-members.js";
61
61
  import { mircMessagesTools } from "./mirc-messages.js";
62
62
  import { mircEdgeTools } from "./mirc-edge.js";
63
- // import { mroomTools } from "./mroom.js"; // mROOM: killed (LINEAR-3414) — not registered
64
- // import { mroomMessagesTools } from "./mroom-messages.js"; // mROOM: killed (LINEAR-3414) — not registered
63
+ // import { mroomTools } from "./mroom.js"; // mROOM: killed — not registered
64
+ // import { mroomMessagesTools } from "./mroom-messages.js"; // mROOM: killed — not registered
65
65
  import { mailTools } from "./mail.js";
66
66
  // 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.
67
67
  import { mailProvenanceTools } from "./mail-provenance.js"; // mAYL_send_as_agent — RE-REGISTERED 2026-07-29, see the note at the registry below
68
- import { mailAgentboxTools } from "./mail-agentbox.js"; // mAYL_agentbox_*: agent mints/lists/releases its OWN two-way disposable inbox (backs mayl-agentbox EF). Added 2026-08-06 (LINEAR-5201 Part B)
68
+ import { mailAgentboxTools } from "./mail-agentbox.js"; // mAYL_agentbox_*: agent mints/lists/releases its OWN two-way disposable inbox (backs mayl-agentbox EF). Added 2026-08-06 (Part B)
69
69
  import { mtalkTools } from "./mtalk.js";
70
70
  import { attachmentTools } from "./attachments.js";
71
71
  import { pttIngestTools } from "./ptt-ingest.js"; // mTALK_ingest_ptt — RE-REGISTERED 2026-07-29, see the note at the registry below
@@ -75,7 +75,7 @@ import { knowledgeGraphTools } from "./knowledge-graph.js"; // mRAG_graph_* —
75
75
  import { actionTools } from "./actions.js";
76
76
  import { presenceTools } from "./presence.js"; // comms_session_attach — 2026-08-14: a live agent session claims the account's reply lane (agent_bridge_heartbeat), so the cloud stand-in defers to it. Replaces the PC-only bridge script as the ONLY writer of that signal.
77
77
  import { embedTools } from "./embed.js"; // comms_embed_create RE-REGISTERED 2026-07-17: embed.mosadd.com/v1.js is LIVE (served by the mosadd Vercel project) — the widget + embed-keys/mirc-embed-token backend were already complete.
78
- import { threatTools } from "./threat.js"; // threat_*: RE-REGISTERED 2026-07-15 (founder directive + LINEAR-3498). Pure/offline classification of the real Pegasus-class threat taxonomy — the engine DECIDES, the caller acts; no surveillance, no backend.
78
+ import { threatTools } from "./threat.js"; // threat_*: RE-REGISTERED 2026-07-15 (founder directive). Pure/offline classification of the real Pegasus-class threat taxonomy — the engine DECIDES, the caller acts; no surveillance, no backend.
79
79
  import { murlTools } from "./murl.js"; // mURL: REGISTERED — revived as a full dev module (founder 2026-06-27, re-arch). IRC-for-URLs, agent-native; backends live (mosadd-edge + murl-channels EF).
80
80
  import { makeCapabilitiesTool } from "./capabilities.js";
81
81
 
@@ -88,8 +88,8 @@ const channelTools: MosaddTool[] = [
88
88
  ...mircMembersTools,
89
89
  ...mircMessagesTools,
90
90
  ...mircEdgeTools,
91
- // ...mroomTools, // mROOM: killed (LINEAR-3414) — channel re-cut into ephemeral private mIRC
92
- // ...mroomMessagesTools, // mROOM: killed (LINEAR-3414)
91
+ // ...mroomTools, // mROOM: killed — channel re-cut into ephemeral private mIRC
92
+ // ...mroomMessagesTools, // mROOM: killed
93
93
  ...mailTools, // mAYL_*: canonical email module (was the mp0st codename; renamed re-arch 2026-06-27)
94
94
  // ...mailAliasTools, // mp0st_* aliases RETIRED 2026-07-15 — mAYL is the one name; the mp0st codename is now backend-internal only
95
95
  // ⭐ mAYL_send_as_agent: RE-REGISTERED 2026-07-29 — proven end to end, without sending mail.
@@ -110,7 +110,7 @@ const channelTools: MosaddTool[] = [
110
110
  // mAYL_agentbox_provision/list/release/extend — the agent mints/lists/releases/extends its OWN
111
111
  // real, two-way, disposable inbox (agent-<hex>@mosadd.com). create_inbox parity with AgentMail,
112
112
  // on our own stack + provenance. Backs the live mayl-agentbox EF; receive path landed 2026-08-06
113
- // in mp0st-inbound-webhook (LINEAR-5201). Same requireUser auth as every other mAYL tool.
113
+ // in mp0st-inbound-webhook. Same requireUser auth as every other mAYL tool.
114
114
  ...mailAgentboxTools,
115
115
  ...mtalkTools,
116
116
  ...attachmentTools,
@@ -155,7 +155,7 @@ const channelTools: MosaddTool[] = [
155
155
  ...actionTools, // Action links (Tier 1): agent → user one-link browser action via action-create EF
156
156
  ...presenceTools, // comms_session_attach: THIS session owns the account's reply lane while it runs; the 24/7 cloud stand-in defers. Any session, any machine — no bespoke bridge on one PC.
157
157
  ...embedTools, // comms_embed_create: RE-REGISTERED 2026-07-17 — embed.mosadd.com/v1.js live; mints an embed key + paste-in snippet (mURL→mIRC rework P3)
158
- ...threatTools, // threat_catalog + threat_classify: RE-REGISTERED 2026-07-15 (founder directive + LINEAR-3498) — pure/offline, makes the Pegasus-class classification claim a live, callable capability
158
+ ...threatTools, // threat_catalog + threat_classify: RE-REGISTERED 2026-07-15 (founder directive) — pure/offline, makes the Pegasus-class classification claim a live, callable capability
159
159
  ...murlTools, // mURL: revived as a full module (founder 2026-06-27) — read/post/presence/list_channels over live domain channels
160
160
  // ...mcallTools, // mCALL: carrier-pending (no telephony carrier live) — re-register when a carrier is configured
161
161
  // mirlTools,