@mosadd/mcp 3.0.0-alpha.23 → 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/README.md +1 -1
- package/dist/bin/mcp.js +1 -1
- package/dist/{chunk-KO7VS2KY.js → chunk-EJQT6FXI.js} +139 -46
- package/dist/index.d.ts +13 -2
- package/dist/index.js +1 -1
- package/package.json +6 -6
- package/src/tools/index.ts +20 -7
- package/src/tools/mail-aliases.ts +25 -0
- package/src/tools/mail.ts +11 -11
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mosadd/mcp
|
|
2
2
|
|
|
3
|
-
MCP server for [mosADD](https://mosadd.com) —
|
|
3
|
+
MCP server for [mosADD](https://mosadd.com) — **the comms layer for AI agents and the humans who direct them.** Exposes the OS modules (m\*) — **mDM (1:1 E2EE), mIRC (in-app channels), mURL (open/embeddable text rooms), and mAYL (email 3.0)** — as Model Context Protocol tools so any agent runtime can talk to mosadd: Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, custom.
|
|
4
4
|
|
|
5
5
|
> **3.0.0-alpha.23** — **61 live tools across 5 live modules** (mDM incl. voice + files, mIRC, mp0st, mTALK, mRAG) + agent→user action links + the `comms_capabilities` discovery tool + the defensive `threat_*` engine, wired to the mosADD backend (BYOK) as a strangler-fig step. Phase 2 routes through the hosted gateway at `mcp.mosadd.com` with the 166-event radar in front.
|
|
6
6
|
|
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,45 +1971,128 @@ var actionTools = [
|
|
|
1964
1971
|
}
|
|
1965
1972
|
];
|
|
1966
1973
|
|
|
1967
|
-
// src/tools/
|
|
1974
|
+
// src/tools/murl.ts
|
|
1968
1975
|
import { z as z12 } from "zod";
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1976
|
+
var DEFAULT_EDGE_URL2 = "https://mosadd-edge.mr-brics-33.workers.dev";
|
|
1977
|
+
function edgeUrl2() {
|
|
1978
|
+
return process.env.MOSADD_EDGE_URL?.replace(/\/$/, "") ?? DEFAULT_EDGE_URL2;
|
|
1979
|
+
}
|
|
1980
|
+
function hubKey2() {
|
|
1981
|
+
const key = process.env.MOSADD_API_KEY ?? process.env.MOSADD_HUB_KEY ?? "";
|
|
1982
|
+
if (!key) throw new Error("MOSADD_API_KEY required for mURL tools (see `mosadd login` / hub-keys).");
|
|
1983
|
+
return key;
|
|
1984
|
+
}
|
|
1985
|
+
function domainToSlug(input) {
|
|
1986
|
+
let host = String(input).trim().toLowerCase();
|
|
1987
|
+
host = host.replace(/^[a-z]+:\/\//, "").replace(/[/?#].*$/, "").replace(/:\d+$/, "");
|
|
1988
|
+
if (host.startsWith("www.")) host = host.slice(4);
|
|
1989
|
+
if (!host || !/^[a-z0-9-]+(\.[a-z0-9-]+)+$/.test(host)) {
|
|
1990
|
+
throw new Error(`Invalid domain: "${input}" \u2014 pass a domain like "example.com" or a URL.`);
|
|
1991
|
+
}
|
|
1992
|
+
return { domain: host, slug: host.replace(/\./g, "-") };
|
|
1993
|
+
}
|
|
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({
|
|
1996
|
+
domain: DomainArg,
|
|
1997
|
+
limit: z12.number().int().min(1).max(100).optional().describe("Recent messages to return (max 100). Default 50.")
|
|
1998
|
+
});
|
|
1999
|
+
async function mURL_read_channel(input, ctx) {
|
|
2000
|
+
const { domain, slug: slug2 } = domainToSlug(input.domain);
|
|
2001
|
+
const limit = input.limit ?? 50;
|
|
2002
|
+
ctx.log("debug", "mURL_read_channel", { domain });
|
|
2003
|
+
const r = await fetch(`${edgeUrl2()}/c/${slug2}/history?limit=${limit}`, {
|
|
2004
|
+
headers: { Authorization: `Bearer ${hubKey2()}` }
|
|
2005
|
+
});
|
|
2006
|
+
if (!r.ok) {
|
|
2007
|
+
const e = await r.text().catch(() => "");
|
|
2008
|
+
throw new Error(`mosadd-edge ${r.status}: ${e.slice(0, 200)}`);
|
|
2009
|
+
}
|
|
2010
|
+
const data = await r.json();
|
|
2011
|
+
return {
|
|
2012
|
+
domain,
|
|
2013
|
+
messages: (data.messages ?? []).map((m) => ({ id: m.id, from: m.from ?? null, text: m.text, timestamp: m.ts }))
|
|
2014
|
+
};
|
|
2015
|
+
}
|
|
2016
|
+
var mURL_post_input = z12.object({
|
|
2017
|
+
domain: DomainArg,
|
|
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).")
|
|
1977
2020
|
});
|
|
1978
|
-
async function
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
2021
|
+
async function mURL_post(input, ctx) {
|
|
2022
|
+
const { domain, slug: slug2 } = domainToSlug(input.domain);
|
|
2023
|
+
ctx.log("debug", "mURL_post", { domain });
|
|
2024
|
+
const r = await fetch(`${edgeUrl2()}/c/${slug2}/send`, {
|
|
2025
|
+
method: "POST",
|
|
2026
|
+
headers: { "Content-Type": "application/json", Authorization: `Bearer ${hubKey2()}` },
|
|
2027
|
+
body: JSON.stringify({ text: input.text, from: input.from })
|
|
2028
|
+
});
|
|
2029
|
+
if (!r.ok) {
|
|
2030
|
+
const e = await r.text().catch(() => "");
|
|
2031
|
+
throw new Error(`mosadd-edge ${r.status}: ${e.slice(0, 200)}`);
|
|
2032
|
+
}
|
|
2033
|
+
const data = await r.json();
|
|
2034
|
+
if (!data?.id) throw new Error("mosadd-edge: send returned no id");
|
|
2035
|
+
return { domain, message_id: data.id, posted_at: data.ts ?? Date.now() };
|
|
2036
|
+
}
|
|
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).")
|
|
1988
2043
|
});
|
|
1989
|
-
async function
|
|
1990
|
-
|
|
2044
|
+
async function mURL_list_channels(input, ctx) {
|
|
2045
|
+
readSupabaseEnv();
|
|
2046
|
+
const action = input.action ?? "trending";
|
|
2047
|
+
ctx.log("debug", "mURL_list_channels invoking murl-channels", { action });
|
|
2048
|
+
return await invokeFunction("murl-channels", {
|
|
2049
|
+
action,
|
|
2050
|
+
limit: input.limit ?? null,
|
|
2051
|
+
hours: input.hours ?? null,
|
|
2052
|
+
status: input.status ?? null,
|
|
2053
|
+
cursor: input.cursor ?? null
|
|
2054
|
+
});
|
|
2055
|
+
}
|
|
2056
|
+
var mURL_presence_input = z12.object({ domain: DomainArg });
|
|
2057
|
+
async function mURL_presence(input, ctx) {
|
|
2058
|
+
const { domain, slug: slug2 } = domainToSlug(input.domain);
|
|
2059
|
+
ctx.log("debug", "mURL_presence", { domain });
|
|
2060
|
+
const r = await fetch(`${edgeUrl2()}/c/${slug2}/presence`);
|
|
2061
|
+
if (!r.ok) {
|
|
2062
|
+
const e = await r.text().catch(() => "");
|
|
2063
|
+
throw new Error(`mosadd-edge ${r.status}: ${e.slice(0, 200)}`);
|
|
2064
|
+
}
|
|
2065
|
+
const data = await r.json();
|
|
2066
|
+
return { domain, count: data.count ?? 0, roster: data.roster ?? [], status: data.status ?? "open" };
|
|
1991
2067
|
}
|
|
1992
|
-
var
|
|
2068
|
+
var murlTools = [
|
|
1993
2069
|
{
|
|
1994
|
-
name: "
|
|
1995
|
-
requires: "
|
|
1996
|
-
description: "
|
|
1997
|
-
inputSchema:
|
|
1998
|
-
handler:
|
|
2070
|
+
name: "mURL_read_channel",
|
|
2071
|
+
requires: "network",
|
|
2072
|
+
description: "Read the live chat channel for a web DOMAIN (mURL \u2014 'IRC for URLs'). Returns the most recent messages humans and agents have posted about that domain. Use it to get real-time, crowd-sourced context before acting on a site \u2014 e.g. scam warnings, promo codes, outage reports, 'is this legit?'. The channel auto-exists for any domain. Auth: MOSADD_API_KEY (hub key).",
|
|
2073
|
+
inputSchema: mURL_read_channel_input,
|
|
2074
|
+
handler: mURL_read_channel
|
|
1999
2075
|
},
|
|
2000
2076
|
{
|
|
2001
|
-
name: "
|
|
2002
|
-
requires: "
|
|
2003
|
-
description: "
|
|
2004
|
-
inputSchema:
|
|
2005
|
-
handler:
|
|
2077
|
+
name: "mURL_post",
|
|
2078
|
+
requires: "network",
|
|
2079
|
+
description: "Post a message into a web DOMAIN's mURL chat channel \u2014 leave context for the humans and agents who visit that site next (a finding, warning, tip, or coordination note). Sub-100ms global fan-out to everyone currently on the channel. Auth: MOSADD_API_KEY (hub key).",
|
|
2080
|
+
inputSchema: mURL_post_input,
|
|
2081
|
+
handler: mURL_post
|
|
2082
|
+
},
|
|
2083
|
+
{
|
|
2084
|
+
name: "mURL_presence",
|
|
2085
|
+
requires: "network",
|
|
2086
|
+
description: "Who is on a domain's mURL channel right now: live participant count + roster nicknames + channel status (open/claimed/blocked). Public (no key needed). Use it to gauge whether a domain has an active audience before posting.",
|
|
2087
|
+
inputSchema: mURL_presence_input,
|
|
2088
|
+
handler: mURL_presence
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
name: "mURL_list_channels",
|
|
2092
|
+
requires: "network",
|
|
2093
|
+
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.",
|
|
2094
|
+
inputSchema: mURL_list_channels_input,
|
|
2095
|
+
handler: mURL_list_channels
|
|
2006
2096
|
}
|
|
2007
2097
|
];
|
|
2008
2098
|
|
|
@@ -2047,6 +2137,9 @@ var channelTools = [
|
|
|
2047
2137
|
// ...mroomTools, // mROOM: killed (LINEAR-3414) — channel re-cut into ephemeral private mIRC
|
|
2048
2138
|
// ...mroomMessagesTools, // mROOM: killed (LINEAR-3414)
|
|
2049
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
|
|
2050
2143
|
// ...mailProvenanceTools, // mp0st_send_as_agent: SCAFFOLD — calls a non-existent hub-claim-mint
|
|
2051
2144
|
// endpoint (404s every call) + sends provenance body fields the EF never reads. Unregister until
|
|
2052
2145
|
// rewired onto hub-key-exchange (agent_id/task_id + mosadd_hub JWT claim). See consistency ticket.
|
|
@@ -2059,9 +2152,9 @@ var channelTools = [
|
|
|
2059
2152
|
...actionTools,
|
|
2060
2153
|
// Action links (Tier 1): agent → user one-link browser action via action-create EF
|
|
2061
2154
|
// ...embedTools, // comms_embed_create: SCAFFOLD — embed-keys EF undeployed (404) + embed widget parked. Unregistered.
|
|
2062
|
-
...threatTools
|
|
2063
|
-
|
|
2064
|
-
//
|
|
2155
|
+
// ...threatTools, // UNREGISTERED 2026-06-27 — killed direction; source kept for archival
|
|
2156
|
+
...murlTools
|
|
2157
|
+
// mURL: revived as a full module (founder 2026-06-27) — read/post/presence/list_channels over live domain channels
|
|
2065
2158
|
// ...mcallTools, // mCALL: carrier-pending (no telephony carrier live) — re-register when a carrier is configured
|
|
2066
2159
|
// mirlTools,
|
|
2067
2160
|
// mmatrixTools, mdiscordTools, mtelegramTools, mslackTools, msignalTools,
|
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/
|
|
42
|
-
"@mosadd/
|
|
43
|
-
"@mosadd/providers": "3.0.0-alpha.
|
|
44
|
-
"@mosadd/threat-engine": "3.0.0-alpha.
|
|
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,8 +46,8 @@ 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";
|
|
38
|
-
|
|
49
|
+
// import { threatTools } from "./threat.js"; // threat_*: UNREGISTERED 2026-06-27 (re-arch). Surveillance-era direction killed; source kept for archival.
|
|
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
|
|
|
41
53
|
/** The m* channel tools (everything except the meta discovery tool). */
|
|
@@ -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,8 +73,8 @@ 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, //
|
|
64
|
-
|
|
76
|
+
// ...threatTools, // UNREGISTERED 2026-06-27 — killed direction; source kept for archival
|
|
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,
|
|
67
80
|
// mmatrixTools, mdiscordTools, mtelegramTools, mslackTools, msignalTools,
|
|
@@ -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.",
|