@mosadd/mcp 3.0.0-alpha.24 → 3.0.0-alpha.25
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/dist/bin/mcp.js +1 -1
- package/dist/{chunk-S6OWXISZ.js → chunk-EJQT6FXI.js} +38 -71
- package/dist/index.d.ts +13 -2
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/src/tools/index.ts +18 -5
- package/src/tools/mail-aliases.ts +25 -0
- package/src/tools/mail.ts +11 -11
package/dist/bin/mcp.js
CHANGED
|
@@ -1386,77 +1386,77 @@ async function mp0st_notify(input, ctx) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
var mailTools = [
|
|
1388
1388
|
{
|
|
1389
|
-
name: "
|
|
1389
|
+
name: "mAYL_list",
|
|
1390
1390
|
requires: "network",
|
|
1391
1391
|
description: "List the user's mailbox (their <userId>@mosadd.com inbox/outbox) newest-first, with sender, subject, status and a short snippet. Filter by direction ('inbound' = received, 'outbound' = sent). Use the returned next_cursor with `before` to page through older mail. Call mp0st_view to read a full message body.",
|
|
1392
1392
|
inputSchema: mp0st_list_input,
|
|
1393
1393
|
handler: mp0st_list
|
|
1394
1394
|
},
|
|
1395
1395
|
{
|
|
1396
|
-
name: "
|
|
1396
|
+
name: "mAYL_send",
|
|
1397
1397
|
requires: "network",
|
|
1398
1398
|
description: "Send an email from the user's mosadd address (<userId>@mosadd.com). Pass body_text or body_html (or both). Supports cc, bcc, reply_to. Monitoring/legal options: tracking (open+click, default on; set false for no tracking), force_reader (stub email \u2192 recipient opens in mosadd's secure reader, unlocking print/copy/time-on-read tracking + revoke), watermark (recipient watermark visible in screenshots/prints), disclose_tracking (GDPR footer), auto_destruct ('1h'|'24h'|'7d').",
|
|
1399
1399
|
inputSchema: mp0st_send_input,
|
|
1400
1400
|
handler: mp0st_send
|
|
1401
1401
|
},
|
|
1402
1402
|
{
|
|
1403
|
-
name: "
|
|
1403
|
+
name: "mAYL_view",
|
|
1404
1404
|
requires: "network",
|
|
1405
1405
|
description: "Read the full body and metadata of an email by message_id.",
|
|
1406
1406
|
inputSchema: mp0st_view_input,
|
|
1407
1407
|
handler: mp0st_view
|
|
1408
1408
|
},
|
|
1409
1409
|
{
|
|
1410
|
-
name: "
|
|
1410
|
+
name: "mAYL_delete",
|
|
1411
1411
|
requires: "network",
|
|
1412
1412
|
description: "Delete one of the user's emails by message_id (from mp0st_list). Soft-delete \u2014 it stops showing in mp0st_list. Owner-scoped: only your own mail.",
|
|
1413
1413
|
inputSchema: mp0st_delete_input,
|
|
1414
1414
|
handler: mp0st_delete
|
|
1415
1415
|
},
|
|
1416
1416
|
{
|
|
1417
|
-
name: "
|
|
1417
|
+
name: "mAYL_stats",
|
|
1418
1418
|
requires: "network",
|
|
1419
1419
|
description: "Engagement summary for one sent email (by message_id): open_count, unique_opens, click_count, whether it was likely forwarded, first/last opened time, and a breakdown of tracked event types. Opens/clicks are real (tracking pixel + link-wrap); forward detection is best-effort (IP-subnet diversity). Owner-scoped.",
|
|
1420
1420
|
inputSchema: mp0st_stats_input,
|
|
1421
1421
|
handler: mp0st_stats
|
|
1422
1422
|
},
|
|
1423
1423
|
{
|
|
1424
|
-
name: "
|
|
1424
|
+
name: "mAYL_events",
|
|
1425
1425
|
requires: "network",
|
|
1426
1426
|
description: "Raw engagement timeline for one email (by message_id): every tracked event (pixel_open, link_click, forwarded, page_view, copy/print/focus signals) with timestamp, device type and link URL. Use mp0st_stats for the rollup; use this for the per-event detail. Owner-scoped.",
|
|
1427
1427
|
inputSchema: mp0st_events_input,
|
|
1428
1428
|
handler: mp0st_events
|
|
1429
1429
|
},
|
|
1430
1430
|
{
|
|
1431
|
-
name: "
|
|
1431
|
+
name: "mAYL_metrics",
|
|
1432
1432
|
requires: "network",
|
|
1433
1433
|
description: "Mailbox-wide engagement aggregate across the user's sent mail: total_sent, opened_emails, open_rate_pct, total_opens, total_clicks, forwarded_emails. Owner-scoped.",
|
|
1434
1434
|
inputSchema: mp0st_metrics_input,
|
|
1435
1435
|
handler: mp0st_metrics
|
|
1436
1436
|
},
|
|
1437
1437
|
{
|
|
1438
|
-
name: "
|
|
1438
|
+
name: "mAYL_revoke",
|
|
1439
1439
|
requires: "network",
|
|
1440
1440
|
description: "Revoke (recall) a sent email's secure-reader access by message_id \u2014 the recipient can no longer open the full message via the mosadd reader link (Virtru-style recall, immediate). Pass restore:true to re-enable. HONEST LIMIT: cannot un-send or claw back content the recipient already read, copied, or screenshotted \u2014 only disables future reader access. Owner-scoped.",
|
|
1441
1441
|
inputSchema: mp0st_revoke_input,
|
|
1442
1442
|
handler: mp0st_revoke
|
|
1443
1443
|
},
|
|
1444
1444
|
{
|
|
1445
|
-
name: "
|
|
1445
|
+
name: "mAYL_audit_export",
|
|
1446
1446
|
requires: "network",
|
|
1447
1447
|
description: "Export a tamper-evident engagement audit report for one sent email (RMail-style): full event trail (opens, clicks, reader print/copy/forward signals) + totals, plus an HMAC-SHA256 signature over the canonical JSON so the report can be proven unaltered. For legal/compliance use. HONEST LIMIT: proves what mosadd observed; it is not a qualified delivery receipt (ERDS). Owner-scoped.",
|
|
1448
1448
|
inputSchema: mp0st_audit_export_input,
|
|
1449
1449
|
handler: mp0st_audit_export
|
|
1450
1450
|
},
|
|
1451
1451
|
{
|
|
1452
|
-
name: "
|
|
1452
|
+
name: "mAYL_consent",
|
|
1453
1453
|
requires: "network",
|
|
1454
1454
|
description: "Manage recipient tracking opt-outs (GDPR/ePrivacy). action 'list' = recipients who opted out of your tracking; 'check' {recipient} = whether one opted out; 'optin' {recipient} = re-enable. Recipients self-opt-out via the footer link in your tracked emails; mp0st_send then automatically sends them with NO pixel/link-wrap. Owner-scoped.",
|
|
1455
1455
|
inputSchema: mp0st_consent_input,
|
|
1456
1456
|
handler: mp0st_consent
|
|
1457
1457
|
},
|
|
1458
1458
|
{
|
|
1459
|
-
name: "
|
|
1459
|
+
name: "mAYL_notify",
|
|
1460
1460
|
requires: "network",
|
|
1461
1461
|
description: "Recent engagement feed across ALL your sent mail \u2014 the 'who just opened/clicked my mail' notifications stream (opens, clicks, forwards, reader print/copy signals), newest first, each with the email subject + recipient. Poll: pass the returned `cursor` back as `since` to get only new activity. Owner-scoped.",
|
|
1462
1462
|
inputSchema: mp0st_notify_input,
|
|
@@ -1464,6 +1464,13 @@ 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 alpha.27.] ` + tool.description
|
|
1472
|
+
}));
|
|
1473
|
+
|
|
1467
1474
|
// src/tools/mtalk.ts
|
|
1468
1475
|
import { z as z8 } from "zod";
|
|
1469
1476
|
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.");
|
|
@@ -1964,50 +1971,8 @@ var actionTools = [
|
|
|
1964
1971
|
}
|
|
1965
1972
|
];
|
|
1966
1973
|
|
|
1967
|
-
// src/tools/threat.ts
|
|
1968
|
-
import { z as z12 } from "zod";
|
|
1969
|
-
import {
|
|
1970
|
-
THREAT_EVENTS,
|
|
1971
|
-
THREAT_EVENT_COUNT,
|
|
1972
|
-
evaluateEvent
|
|
1973
|
-
} from "@mosadd/threat-engine";
|
|
1974
|
-
var threat_catalog_input = z12.object({
|
|
1975
|
-
category: z12.enum(["COMINT", "ELINT", "MASINT", "CYBER", "BEHAVIORAL", "PRIVACY", "SIGINT", "OSINT", "MPOST"]).optional().describe("Filter the catalog to one intelligence-discipline category. Omit for the full catalog."),
|
|
1976
|
-
platform: z12.enum(["apk", "ios", "pwa", "harmony"]).optional().describe("Filter to events detectable on this platform. Omit for all platforms.")
|
|
1977
|
-
});
|
|
1978
|
-
async function threat_catalog(input, _ctx) {
|
|
1979
|
-
let events = THREAT_EVENTS;
|
|
1980
|
-
if (input.category) events = events.filter((e) => e.category === input.category);
|
|
1981
|
-
if (input.platform) events = events.filter((e) => e.platforms.includes(input.platform));
|
|
1982
|
-
return { count: events.length, total: THREAT_EVENT_COUNT, events };
|
|
1983
|
-
}
|
|
1984
|
-
var threat_classify_input = z12.object({
|
|
1985
|
-
event_type: z12.string().min(1).max(120).describe('Event type to classify, e.g. "SIM_SWAP", "AUTH_BRUTEFORCE", "TOLL_FRAUD". Case-insensitive.'),
|
|
1986
|
-
severity: z12.string().optional().describe('Optional producer severity hint. "killswitch" \u2192 lock_account; "critical" \u2192 revoke_sessions; anything else is informational.'),
|
|
1987
|
-
details: z12.string().max(2e3).optional().describe("Optional free-text context (informational only).")
|
|
1988
|
-
});
|
|
1989
|
-
async function threat_classify(input, _ctx) {
|
|
1990
|
-
return evaluateEvent({ eventType: input.event_type, severity: input.severity, details: input.details });
|
|
1991
|
-
}
|
|
1992
|
-
var threatTools = [
|
|
1993
|
-
{
|
|
1994
|
-
name: "threat_catalog",
|
|
1995
|
-
requires: "any",
|
|
1996
|
-
description: "List the canonical mosadd threat-event taxonomy (the full radar catalog: id, category, default severity, auto-actions, per-platform availability). Filter by category or platform. Pure/offline \u2014 returns { count, total, events }. Use to discover what the defensive engine recognises.",
|
|
1997
|
-
inputSchema: threat_catalog_input,
|
|
1998
|
-
handler: threat_catalog
|
|
1999
|
-
},
|
|
2000
|
-
{
|
|
2001
|
-
name: "threat_classify",
|
|
2002
|
-
requires: "any",
|
|
2003
|
-
description: "Classify a single telemetry event with the pure mosadd DECK decision engine and get a defensive recommendation: { action (log_only|revoke_sessions|lock_account|suspend_did), severity, reason }. Deterministic, side-effect-free, no backend \u2014 the engine DECIDES; the caller carries out the action. Use to evaluate a threat event you already observed.",
|
|
2004
|
-
inputSchema: threat_classify_input,
|
|
2005
|
-
handler: threat_classify
|
|
2006
|
-
}
|
|
2007
|
-
];
|
|
2008
|
-
|
|
2009
1974
|
// src/tools/murl.ts
|
|
2010
|
-
import { z as
|
|
1975
|
+
import { z as z12 } from "zod";
|
|
2011
1976
|
var DEFAULT_EDGE_URL2 = "https://mosadd-edge.mr-brics-33.workers.dev";
|
|
2012
1977
|
function edgeUrl2() {
|
|
2013
1978
|
return process.env.MOSADD_EDGE_URL?.replace(/\/$/, "") ?? DEFAULT_EDGE_URL2;
|
|
@@ -2026,10 +1991,10 @@ function domainToSlug(input) {
|
|
|
2026
1991
|
}
|
|
2027
1992
|
return { domain: host, slug: host.replace(/\./g, "-") };
|
|
2028
1993
|
}
|
|
2029
|
-
var DomainArg =
|
|
2030
|
-
var mURL_read_channel_input =
|
|
1994
|
+
var DomainArg = z12.string().min(3).max(255).describe("A domain (e.g. 'example.com') or a full URL \u2014 the channel is keyed to the domain.");
|
|
1995
|
+
var mURL_read_channel_input = z12.object({
|
|
2031
1996
|
domain: DomainArg,
|
|
2032
|
-
limit:
|
|
1997
|
+
limit: z12.number().int().min(1).max(100).optional().describe("Recent messages to return (max 100). Default 50.")
|
|
2033
1998
|
});
|
|
2034
1999
|
async function mURL_read_channel(input, ctx) {
|
|
2035
2000
|
const { domain, slug: slug2 } = domainToSlug(input.domain);
|
|
@@ -2048,10 +2013,10 @@ async function mURL_read_channel(input, ctx) {
|
|
|
2048
2013
|
messages: (data.messages ?? []).map((m) => ({ id: m.id, from: m.from ?? null, text: m.text, timestamp: m.ts }))
|
|
2049
2014
|
};
|
|
2050
2015
|
}
|
|
2051
|
-
var mURL_post_input =
|
|
2016
|
+
var mURL_post_input = z12.object({
|
|
2052
2017
|
domain: DomainArg,
|
|
2053
|
-
text:
|
|
2054
|
-
from:
|
|
2018
|
+
text: z12.string().min(1).max(2e3).describe("Message body (max 2000 chars, up to 3 lines \u2014 Worker-enforced)."),
|
|
2019
|
+
from: z12.string().max(120).optional().describe("Sender hint shown to others (defaults to the hub-key owner / your agent name).")
|
|
2055
2020
|
});
|
|
2056
2021
|
async function mURL_post(input, ctx) {
|
|
2057
2022
|
const { domain, slug: slug2 } = domainToSlug(input.domain);
|
|
@@ -2069,12 +2034,12 @@ async function mURL_post(input, ctx) {
|
|
|
2069
2034
|
if (!data?.id) throw new Error("mosadd-edge: send returned no id");
|
|
2070
2035
|
return { domain, message_id: data.id, posted_at: data.ts ?? Date.now() };
|
|
2071
2036
|
}
|
|
2072
|
-
var mURL_list_channels_input =
|
|
2073
|
-
action:
|
|
2074
|
-
limit:
|
|
2075
|
-
hours:
|
|
2076
|
-
status:
|
|
2077
|
-
cursor:
|
|
2037
|
+
var mURL_list_channels_input = z12.object({
|
|
2038
|
+
action: z12.enum(["trending", "list", "mine"]).optional().describe("'trending' (default) = most active domain channels in the last N hours; 'list' = paginated catalogue filtered by status; 'mine' = channels you own (DNS-verified)."),
|
|
2039
|
+
limit: z12.number().int().min(1).max(100).optional().describe("Max channels to return. Default 20."),
|
|
2040
|
+
hours: z12.number().int().min(1).max(168).optional().describe("Trending window in hours. Default 24, max 168 (7d)."),
|
|
2041
|
+
status: z12.enum(["open", "claimed", "blocked"]).optional().describe("For action='list': filter (default 'open')."),
|
|
2042
|
+
cursor: z12.string().optional().describe("For action='list': pagination \u2014 pass previous response's next_cursor (created_at ISO).")
|
|
2078
2043
|
});
|
|
2079
2044
|
async function mURL_list_channels(input, ctx) {
|
|
2080
2045
|
readSupabaseEnv();
|
|
@@ -2088,7 +2053,7 @@ async function mURL_list_channels(input, ctx) {
|
|
|
2088
2053
|
cursor: input.cursor ?? null
|
|
2089
2054
|
});
|
|
2090
2055
|
}
|
|
2091
|
-
var mURL_presence_input =
|
|
2056
|
+
var mURL_presence_input = z12.object({ domain: DomainArg });
|
|
2092
2057
|
async function mURL_presence(input, ctx) {
|
|
2093
2058
|
const { domain, slug: slug2 } = domainToSlug(input.domain);
|
|
2094
2059
|
ctx.log("debug", "mURL_presence", { domain });
|
|
@@ -2132,7 +2097,7 @@ var murlTools = [
|
|
|
2132
2097
|
];
|
|
2133
2098
|
|
|
2134
2099
|
// src/tools/capabilities.ts
|
|
2135
|
-
import { z as
|
|
2100
|
+
import { z as z13 } from "zod";
|
|
2136
2101
|
var CONTRACT_VERSION = "1.0.0";
|
|
2137
2102
|
var ALL_REQUIREMENTS = ["any", "radio", "network"];
|
|
2138
2103
|
function buildCapabilityManifest(tools) {
|
|
@@ -2155,7 +2120,7 @@ function makeCapabilitiesTool(channelTools2) {
|
|
|
2155
2120
|
name: "comms_capabilities",
|
|
2156
2121
|
requires: "any",
|
|
2157
2122
|
description: "Discover which mosadd tools are available and what transport each requires (any | radio | network). Carrier-aware hosts (e.g. off-grid radio devices) call this once to gate the tool list to what the current carrier supports. Returns a manifest with per-tool requirements grouped by transport.",
|
|
2158
|
-
inputSchema:
|
|
2123
|
+
inputSchema: z13.object({}),
|
|
2159
2124
|
handler: async () => buildCapabilityManifest([...channelTools2, tool])
|
|
2160
2125
|
};
|
|
2161
2126
|
return tool;
|
|
@@ -2172,6 +2137,9 @@ var channelTools = [
|
|
|
2172
2137
|
// ...mroomTools, // mROOM: killed (LINEAR-3414) — channel re-cut into ephemeral private mIRC
|
|
2173
2138
|
// ...mroomMessagesTools, // mROOM: killed (LINEAR-3414)
|
|
2174
2139
|
...mailTools,
|
|
2140
|
+
// mAYL_*: canonical email module (was mp0st_*; renamed re-arch 2026-06-27)
|
|
2141
|
+
...mailAliasTools,
|
|
2142
|
+
// mp0st_*: back-compat aliases — DEPRECATED, removed in alpha.27
|
|
2175
2143
|
// ...mailProvenanceTools, // mp0st_send_as_agent: SCAFFOLD — calls a non-existent hub-claim-mint
|
|
2176
2144
|
// endpoint (404s every call) + sends provenance body fields the EF never reads. Unregister until
|
|
2177
2145
|
// rewired onto hub-key-exchange (agent_id/task_id + mosadd_hub JWT claim). See consistency ticket.
|
|
@@ -2184,8 +2152,7 @@ var channelTools = [
|
|
|
2184
2152
|
...actionTools,
|
|
2185
2153
|
// Action links (Tier 1): agent → user one-link browser action via action-create EF
|
|
2186
2154
|
// ...embedTools, // comms_embed_create: SCAFFOLD — embed-keys EF undeployed (404) + embed widget parked. Unregistered.
|
|
2187
|
-
...threatTools,
|
|
2188
|
-
// threat_catalog + threat_classify: pure defensive threat-event engine (@mosadd/threat-engine, LINEAR-3498)
|
|
2155
|
+
// ...threatTools, // UNREGISTERED 2026-06-27 — killed direction; source kept for archival
|
|
2189
2156
|
...murlTools
|
|
2190
2157
|
// mURL: revived as a full module (founder 2026-06-27) — read/post/presence/list_channels over live domain channels
|
|
2191
2158
|
// ...mcallTools, // mCALL: carrier-pending (no telephony carrier live) — re-register when a carrier is configured
|
package/dist/index.d.ts
CHANGED
|
@@ -200,8 +200,19 @@ declare function createMosaddServer(options?: MosaddServerOptions): McpServer;
|
|
|
200
200
|
/**
|
|
201
201
|
* Tool registry. Each m* module contributes a set of tools.
|
|
202
202
|
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
203
|
+
* User-facing modules (4): mDM, mIRC, mURL, mAYL — the re-arch (LINEAR-3938)
|
|
204
|
+
* mAYL replaces the old mp0st name (mp0st_* still registered as back-compat
|
|
205
|
+
* aliases via mail-aliases.ts; will be removed in alpha.27).
|
|
206
|
+
*
|
|
207
|
+
* Capabilities (not modules — cross-cutting agent tooling): mRAG, comms_.
|
|
208
|
+
* mTALK = voice tier inside mIRC, still its own tools for now; folding into
|
|
209
|
+
* mIRC_voice_* in a follow-up release. threat_* UNREGISTERED — surveillance-
|
|
210
|
+
* era direction is dead (decision_killed_directions).
|
|
211
|
+
*
|
|
212
|
+
* 76 callable tools at registration:
|
|
213
|
+
* mDM 14 + mIRC 22 + mURL 4 + mAYL 11 (= 51 module tools) +
|
|
214
|
+
* mTALK 5 + mRAG 4 + comms_ 3 (= 12 capability tools) +
|
|
215
|
+
* mp0st_* 11 back-compat aliases + comms_capabilities (1) = 76.
|
|
205
216
|
* mROOM was KILLED (LINEAR-3414, channel re-cut → ephemeral private mIRC): its tools
|
|
206
217
|
* live in tools/mroom.ts + mroom-messages.ts but are NOT registered here.
|
|
207
218
|
* Plus action links: comms_action_create (agent → user one-link browser action,
|
package/dist/index.js
CHANGED
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.25",
|
|
4
4
|
"mcpName": "io.github.hei33enberg/mosadd-mcp",
|
|
5
|
-
"description": "Model Context Protocol server for mosadd. Exposes
|
|
5
|
+
"description": "Model Context Protocol server for mosadd. Exposes 4 modules (mDM, mIRC, mURL, mAYL) and capabilities (mTALK, mRAG) plus comms agent-actions — 74 tools (mp0st_* aliases through alpha.26) — 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/protocol": "3.0.0-alpha.
|
|
42
|
-
"@mosadd/
|
|
43
|
-
"@mosadd/providers": "3.0.0-alpha.
|
|
44
|
-
"@mosadd/
|
|
41
|
+
"@mosadd/protocol": "3.0.0-alpha.25",
|
|
42
|
+
"@mosadd/crypto": "3.0.0-alpha.25",
|
|
43
|
+
"@mosadd/providers": "3.0.0-alpha.25",
|
|
44
|
+
"@mosadd/threat-engine": "3.0.0-alpha.25"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"tsup": "^8.3.5",
|
package/src/tools/index.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Tool registry. Each m* module contributes a set of tools.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* User-facing modules (4): mDM, mIRC, mURL, mAYL — the re-arch (LINEAR-3938)
|
|
5
|
+
* mAYL replaces the old mp0st name (mp0st_* still registered as back-compat
|
|
6
|
+
* aliases via mail-aliases.ts; will be removed in alpha.27).
|
|
7
|
+
*
|
|
8
|
+
* Capabilities (not modules — cross-cutting agent tooling): mRAG, comms_.
|
|
9
|
+
* mTALK = voice tier inside mIRC, still its own tools for now; folding into
|
|
10
|
+
* mIRC_voice_* in a follow-up release. threat_* UNREGISTERED — surveillance-
|
|
11
|
+
* era direction is dead (decision_killed_directions).
|
|
12
|
+
*
|
|
13
|
+
* 76 callable tools at registration:
|
|
14
|
+
* mDM 14 + mIRC 22 + mURL 4 + mAYL 11 (= 51 module tools) +
|
|
15
|
+
* mTALK 5 + mRAG 4 + comms_ 3 (= 12 capability tools) +
|
|
16
|
+
* mp0st_* 11 back-compat aliases + comms_capabilities (1) = 76.
|
|
6
17
|
* mROOM was KILLED (LINEAR-3414, channel re-cut → ephemeral private mIRC): its tools
|
|
7
18
|
* live in tools/mroom.ts + mroom-messages.ts but are NOT registered here.
|
|
8
19
|
* Plus action links: comms_action_create (agent → user one-link browser action,
|
|
@@ -24,6 +35,7 @@ import { mircEdgeTools } from "./mirc-edge.js";
|
|
|
24
35
|
// import { mroomTools } from "./mroom.js"; // mROOM: killed (LINEAR-3414) — not registered
|
|
25
36
|
// import { mroomMessagesTools } from "./mroom-messages.js"; // mROOM: killed (LINEAR-3414) — not registered
|
|
26
37
|
import { mailTools } from "./mail.js";
|
|
38
|
+
import { mailAliasTools } from "./mail-aliases.js"; // mp0st_* back-compat aliases for mAYL_*
|
|
27
39
|
// import { mailProvenanceTools } from "./mail-provenance.js"; // scaffold (mp0st_send_as_agent) — not registered, see below
|
|
28
40
|
import { mtalkTools } from "./mtalk.js";
|
|
29
41
|
import { attachmentTools } from "./attachments.js";
|
|
@@ -34,7 +46,7 @@ import { actionTools } from "./actions.js";
|
|
|
34
46
|
// import { embedTools } from "./embed.js"; // comms_embed_create: SCAFFOLD — its
|
|
35
47
|
// embed-keys EF is NOT deployed to prod (404s every call) and the embed.mosadd.com
|
|
36
48
|
// widget surface is parked. Unregister until both ship. See consistency ticket.
|
|
37
|
-
import { threatTools } from "./threat.js";
|
|
49
|
+
// import { threatTools } from "./threat.js"; // threat_*: UNREGISTERED 2026-06-27 (re-arch). Surveillance-era direction killed; source kept for archival.
|
|
38
50
|
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).
|
|
39
51
|
import { makeCapabilitiesTool } from "./capabilities.js";
|
|
40
52
|
|
|
@@ -48,7 +60,8 @@ const channelTools: MosaddTool[] = [
|
|
|
48
60
|
...mircEdgeTools,
|
|
49
61
|
// ...mroomTools, // mROOM: killed (LINEAR-3414) — channel re-cut into ephemeral private mIRC
|
|
50
62
|
// ...mroomMessagesTools, // mROOM: killed (LINEAR-3414)
|
|
51
|
-
...mailTools,
|
|
63
|
+
...mailTools, // mAYL_*: canonical email module (was mp0st_*; renamed re-arch 2026-06-27)
|
|
64
|
+
...mailAliasTools, // mp0st_*: back-compat aliases — DEPRECATED, removed in alpha.27
|
|
52
65
|
// ...mailProvenanceTools, // mp0st_send_as_agent: SCAFFOLD — calls a non-existent hub-claim-mint
|
|
53
66
|
// endpoint (404s every call) + sends provenance body fields the EF never reads. Unregister until
|
|
54
67
|
// rewired onto hub-key-exchange (agent_id/task_id + mosadd_hub JWT claim). See consistency ticket.
|
|
@@ -60,7 +73,7 @@ const channelTools: MosaddTool[] = [
|
|
|
60
73
|
...knowledgeTools,
|
|
61
74
|
...actionTools, // Action links (Tier 1): agent → user one-link browser action via action-create EF
|
|
62
75
|
// ...embedTools, // comms_embed_create: SCAFFOLD — embed-keys EF undeployed (404) + embed widget parked. Unregistered.
|
|
63
|
-
...threatTools, //
|
|
76
|
+
// ...threatTools, // UNREGISTERED 2026-06-27 — killed direction; source kept for archival
|
|
64
77
|
...murlTools, // mURL: revived as a full module (founder 2026-06-27) — read/post/presence/list_channels over live domain channels
|
|
65
78
|
// ...mcallTools, // mCALL: carrier-pending (no telephony carrier live) — re-register when a carrier is configured
|
|
66
79
|
// mirlTools,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// mail-aliases.ts — back-compat mp0st_* aliases for mAYL_* tools
|
|
3
|
+
// =============================================================================
|
|
4
|
+
// The mosADD re-arch (2026-06-27) renamed the email module from `mp0st` to
|
|
5
|
+
// `mAYL` (LINEAR-3938 / 3985). The canonical tool names are mAYL_* — see
|
|
6
|
+
// `tools/mail.ts`. THIS module exposes back-compat aliases so any agent already
|
|
7
|
+
// wired to mp0st_send / mp0st_view / etc. KEEPS WORKING in this release.
|
|
8
|
+
//
|
|
9
|
+
// Rule: never drop an alias in the release that adds its replacement — live
|
|
10
|
+
// agents would 404. mp0st_* aliases stay through alpha.25 and the next minor;
|
|
11
|
+
// flag for removal goes into the alpha.27 release notes.
|
|
12
|
+
// =============================================================================
|
|
13
|
+
|
|
14
|
+
import type { MosaddTool } from "../types.js";
|
|
15
|
+
import { mailTools } from "./mail.js";
|
|
16
|
+
|
|
17
|
+
/** Same handlers/schemas as `mailTools`, but registered under the legacy mp0st_* names. */
|
|
18
|
+
export const mailAliasTools: MosaddTool[] = mailTools.map((tool) => ({
|
|
19
|
+
...tool,
|
|
20
|
+
name: tool.name.replace(/^mAYL_/, "mp0st_"),
|
|
21
|
+
description:
|
|
22
|
+
`[DEPRECATED — use ${tool.name} instead. mp0st_* aliases stay through alpha.25 ` +
|
|
23
|
+
`for back-compat; will be removed in alpha.27.] ` +
|
|
24
|
+
tool.description,
|
|
25
|
+
}));
|
package/src/tools/mail.ts
CHANGED
|
@@ -292,7 +292,7 @@ async function mp0st_notify(
|
|
|
292
292
|
|
|
293
293
|
export const mailTools: MosaddTool[] = [
|
|
294
294
|
{
|
|
295
|
-
name: "
|
|
295
|
+
name: "mAYL_list",
|
|
296
296
|
requires: "network",
|
|
297
297
|
description:
|
|
298
298
|
"List the user's mailbox (their <userId>@mosadd.com inbox/outbox) newest-first, with sender, subject, status and a short snippet. Filter by direction ('inbound' = received, 'outbound' = sent). Use the returned next_cursor with `before` to page through older mail. Call mp0st_view to read a full message body.",
|
|
@@ -300,7 +300,7 @@ export const mailTools: MosaddTool[] = [
|
|
|
300
300
|
handler: mp0st_list as MosaddTool["handler"],
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
|
-
name: "
|
|
303
|
+
name: "mAYL_send",
|
|
304
304
|
requires: "network",
|
|
305
305
|
description:
|
|
306
306
|
"Send an email from the user's mosadd address (<userId>@mosadd.com). Pass body_text or body_html (or both). Supports cc, bcc, reply_to. Monitoring/legal options: tracking (open+click, default on; set false for no tracking), force_reader (stub email → recipient opens in mosadd's secure reader, unlocking print/copy/time-on-read tracking + revoke), watermark (recipient watermark visible in screenshots/prints), disclose_tracking (GDPR footer), auto_destruct ('1h'|'24h'|'7d').",
|
|
@@ -308,14 +308,14 @@ export const mailTools: MosaddTool[] = [
|
|
|
308
308
|
handler: mp0st_send as MosaddTool["handler"],
|
|
309
309
|
},
|
|
310
310
|
{
|
|
311
|
-
name: "
|
|
311
|
+
name: "mAYL_view",
|
|
312
312
|
requires: "network",
|
|
313
313
|
description: "Read the full body and metadata of an email by message_id.",
|
|
314
314
|
inputSchema: mp0st_view_input,
|
|
315
315
|
handler: mp0st_view as MosaddTool["handler"],
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
|
-
name: "
|
|
318
|
+
name: "mAYL_delete",
|
|
319
319
|
requires: "network",
|
|
320
320
|
description:
|
|
321
321
|
"Delete one of the user's emails by message_id (from mp0st_list). Soft-delete — it stops showing in mp0st_list. Owner-scoped: only your own mail.",
|
|
@@ -323,7 +323,7 @@ export const mailTools: MosaddTool[] = [
|
|
|
323
323
|
handler: mp0st_delete as MosaddTool["handler"],
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
|
-
name: "
|
|
326
|
+
name: "mAYL_stats",
|
|
327
327
|
requires: "network",
|
|
328
328
|
description:
|
|
329
329
|
"Engagement summary for one sent email (by message_id): open_count, unique_opens, click_count, whether it was likely forwarded, first/last opened time, and a breakdown of tracked event types. Opens/clicks are real (tracking pixel + link-wrap); forward detection is best-effort (IP-subnet diversity). Owner-scoped.",
|
|
@@ -331,7 +331,7 @@ export const mailTools: MosaddTool[] = [
|
|
|
331
331
|
handler: mp0st_stats as MosaddTool["handler"],
|
|
332
332
|
},
|
|
333
333
|
{
|
|
334
|
-
name: "
|
|
334
|
+
name: "mAYL_events",
|
|
335
335
|
requires: "network",
|
|
336
336
|
description:
|
|
337
337
|
"Raw engagement timeline for one email (by message_id): every tracked event (pixel_open, link_click, forwarded, page_view, copy/print/focus signals) with timestamp, device type and link URL. Use mp0st_stats for the rollup; use this for the per-event detail. Owner-scoped.",
|
|
@@ -339,7 +339,7 @@ export const mailTools: MosaddTool[] = [
|
|
|
339
339
|
handler: mp0st_events as MosaddTool["handler"],
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
|
-
name: "
|
|
342
|
+
name: "mAYL_metrics",
|
|
343
343
|
requires: "network",
|
|
344
344
|
description:
|
|
345
345
|
"Mailbox-wide engagement aggregate across the user's sent mail: total_sent, opened_emails, open_rate_pct, total_opens, total_clicks, forwarded_emails. Owner-scoped.",
|
|
@@ -347,7 +347,7 @@ export const mailTools: MosaddTool[] = [
|
|
|
347
347
|
handler: mp0st_metrics as MosaddTool["handler"],
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
|
-
name: "
|
|
350
|
+
name: "mAYL_revoke",
|
|
351
351
|
requires: "network",
|
|
352
352
|
description:
|
|
353
353
|
"Revoke (recall) a sent email's secure-reader access by message_id — the recipient can no longer open the full message via the mosadd reader link (Virtru-style recall, immediate). Pass restore:true to re-enable. HONEST LIMIT: cannot un-send or claw back content the recipient already read, copied, or screenshotted — only disables future reader access. Owner-scoped.",
|
|
@@ -355,7 +355,7 @@ export const mailTools: MosaddTool[] = [
|
|
|
355
355
|
handler: mp0st_revoke as MosaddTool["handler"],
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
|
-
name: "
|
|
358
|
+
name: "mAYL_audit_export",
|
|
359
359
|
requires: "network",
|
|
360
360
|
description:
|
|
361
361
|
"Export a tamper-evident engagement audit report for one sent email (RMail-style): full event trail (opens, clicks, reader print/copy/forward signals) + totals, plus an HMAC-SHA256 signature over the canonical JSON so the report can be proven unaltered. For legal/compliance use. HONEST LIMIT: proves what mosadd observed; it is not a qualified delivery receipt (ERDS). Owner-scoped.",
|
|
@@ -363,7 +363,7 @@ export const mailTools: MosaddTool[] = [
|
|
|
363
363
|
handler: mp0st_audit_export as MosaddTool["handler"],
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
name: "
|
|
366
|
+
name: "mAYL_consent",
|
|
367
367
|
requires: "network",
|
|
368
368
|
description:
|
|
369
369
|
"Manage recipient tracking opt-outs (GDPR/ePrivacy). action 'list' = recipients who opted out of your tracking; 'check' {recipient} = whether one opted out; 'optin' {recipient} = re-enable. Recipients self-opt-out via the footer link in your tracked emails; mp0st_send then automatically sends them with NO pixel/link-wrap. Owner-scoped.",
|
|
@@ -371,7 +371,7 @@ export const mailTools: MosaddTool[] = [
|
|
|
371
371
|
handler: mp0st_consent as MosaddTool["handler"],
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
|
-
name: "
|
|
374
|
+
name: "mAYL_notify",
|
|
375
375
|
requires: "network",
|
|
376
376
|
description:
|
|
377
377
|
"Recent engagement feed across ALL your sent mail — the 'who just opened/clicked my mail' notifications stream (opens, clicks, forwards, reader print/copy signals), newest first, each with the email subject + recipient. Poll: pass the returned `cursor` back as `since` to get only new activity. Owner-scoped.",
|