@mosadd/mcp 3.0.0-alpha.29 → 3.0.0-alpha.30

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 CHANGED
@@ -8,6 +8,19 @@ gateway (Phase 2) ships.
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [3.0.0-alpha.30] — 2026-07-17
12
+
13
+ ### Added
14
+ - **`comms_embed_create` RE-REGISTERED — tool count 68 → 69.** The paste-in
15
+ live-channel widget is finally end-to-end real: `https://embed.mosadd.com/v1.js`
16
+ is deployed (served by the mosadd Vercel project; skins are inlined in the
17
+ bundle), and the whole backend (`embed-keys` publishable keys, `mirc-embed-token`
18
+ Origin-allowlisted 5-min JWTs with MAT plan tiers, `embed-plan-settings` PAYG,
19
+ GDPR `embed-dsr-delete`) was already live. The tool mints an `m_pk_live_…` key
20
+ and returns a `<script>` snippet with skin + position (incl. sidebar-left/right)
21
+ options. Part of the mURL→mIRC rework P3 ("open WWW channel: dedicated page +
22
+ branding + embed").
23
+
11
24
  ## [3.0.0-alpha.29] — 2026-07-17
12
25
 
13
26
  ### Added
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, 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.
5
+ One key, one server, 69 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
- > **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`.
7
+ > **69 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 68 tools.
11
+ Three ways to authenticate, friendliest first — all three end with the same 69 tools.
12
12
 
13
13
  ### 1. `mosadd login` — recommended (one command, stays logged in)
14
14
 
@@ -67,7 +67,7 @@ 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
- **68 tools** — 4 modules (mDM, mIRC, mURL, mAYL) + capabilities (mTALK voice, mRAG search, comms agent-actions) + the `comms_capabilities` discovery tool. Highlights per module:
70
+ **69 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
  |---|---|---|
@@ -77,10 +77,10 @@ In Phase 2 the hosted gateway at `mcp.mosadd.com` removes even this — add a UR
77
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
- | **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 |
80
+ | **comms_** (4) | `comms_action_create`, `comms_action_frame_get`, `comms_capabilities`, `comms_embed_create` | `comms_action_create` mints an agent→user one-link browser action (Tier 1); `comms_action_frame_get` fetches a framed action; `comms_capabilities` is one-call discovery of every tool's transport `requires` flag; `comms_embed_create` mints a publishable embed key + a paste-in `<script>` snippet that drops a live mIRC channel into any website (`embed.mosadd.com/v1.js`, skins + sidebar/launcher modes) |
81
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 |
82
82
 
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
+ Module tools: mDM (14) + mIRC (22) + mURL (7) + mAYL (11) = 54; capabilities: mTALK (5) + mRAG (4) + comms_ (4, incl. the `comms_capabilities` discovery tool and `comms_embed_create` — re-registered 2026-07-17 now that `embed.mosadd.com/v1.js` is live) + Irondome (2) = 15 — **69 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` scaffolds.
84
84
 
85
85
  All tool names follow [RFC 0001](https://github.com/Hei33enberg/mosadd-os/blob/main/docs/rfcs/0001-module-naming.md) — `m<MODULE>_<operation>` snake_case.
86
86
 
package/dist/bin/mcp.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createMosaddServer
4
- } from "../chunk-ZFX6FRBA.js";
4
+ } from "../chunk-6PGDNIKR.js";
5
5
  import {
6
6
  isSessionExpired,
7
7
  loadSession,
@@ -1964,17 +1964,71 @@ var actionTools = [
1964
1964
  }
1965
1965
  ];
1966
1966
 
1967
- // src/tools/threat.ts
1967
+ // src/tools/embed.ts
1968
1968
  import { z as z12 } from "zod";
1969
+ var EMBED_CDN = (process.env.MOSADD_EMBED_CDN ?? "https://embed.mosadd.com").replace(/\/+$/, "");
1970
+ var POSITIONS = ["inline", "sidebar-left", "sidebar-right", "floating-bl", "floating-br", "fullscreen"];
1971
+ var SKINS = ["default", "retro-irc-1990", "terminal", "minimal-dark", "minimal-light"];
1972
+ var embed_create_input = z12.object({
1973
+ channel: z12.string().min(1).max(128).regex(/^[A-Za-z0-9_-]+$/).describe("The mIRC channel id everyone on the embed shares (e.g. 'acme-support'). Auto-created on first message if new."),
1974
+ allowed_origins: z12.array(z12.string().min(1)).min(1).max(10).describe("REQUIRED. Domain(s) where the widget will be served \u2014 the key only works from these origins. Use the host(s) of the app you're building, e.g. ['app.acme.com','*.acme.com']. For local testing use mode:'test' and e.g. 'localhost:3000'."),
1975
+ name: z12.string().max(64).optional().describe("Label for the key in the owner's dashboard. Default 'embed: <channel>'."),
1976
+ position: z12.enum(POSITIONS).optional().describe("Where the widget renders. Default 'inline'."),
1977
+ skin: z12.enum(SKINS).optional().describe("Visual skin. Default 'default' (mosadd-branded retro mIRC)."),
1978
+ title: z12.string().max(60).optional().describe("Header title shown in the widget. Default 'mIRC'."),
1979
+ anon: z12.boolean().optional().describe("Allow visitors to join with just a nick (no mosadd account). Default true."),
1980
+ locale: z12.enum(["en", "pl"]).optional().describe("Widget UI language. Default 'en'."),
1981
+ mode: z12.enum(["live", "test"]).optional().describe("Key mode \u2014 'test' for local/dev origins, 'live' for production. Default 'live'.")
1982
+ });
1983
+ var attrSafe = (s) => s.replace(/["'<>]/g, "");
1984
+ function buildSnippet(input, key) {
1985
+ const attrs = [`data-channel="${attrSafe(input.channel)}"`, `data-position="${input.position ?? "inline"}"`];
1986
+ if (input.skin) attrs.push(`data-skin="${input.skin}"`);
1987
+ if (input.title) attrs.push(`data-title="${attrSafe(input.title)}"`);
1988
+ if (input.anon === false) attrs.push(`data-anon="false"`);
1989
+ if (input.locale) attrs.push(`data-locale="${input.locale}"`);
1990
+ return `<div id="mosadd-mirc" ${attrs.join(" ")}></div>
1991
+ <script src="${EMBED_CDN}/v1.js" data-key="${key}"></script>`;
1992
+ }
1993
+ async function embed_create(input, ctx) {
1994
+ readSupabaseEnv();
1995
+ ctx.log("debug", "comms_embed_create minting embed key", { channel: input.channel, origins: input.allowed_origins.length });
1996
+ const res = await invokeFunction("embed-keys", {
1997
+ name: input.name ?? `embed: ${input.channel}`,
1998
+ channels: [input.channel],
1999
+ allowed_origins: input.allowed_origins,
2000
+ mode: input.mode ?? "live"
2001
+ });
2002
+ if (res.error) throw new Error(res.error);
2003
+ if (!res.key) throw new Error("embed-keys returned no publishable key (missing `key`).");
2004
+ return {
2005
+ embed_key: res.key,
2006
+ channel: input.channel,
2007
+ allowed_origins: input.allowed_origins,
2008
+ snippet: buildSnippet(input, res.key)
2009
+ };
2010
+ }
2011
+ var embedTools = [
2012
+ {
2013
+ name: "comms_embed_create",
2014
+ requires: "network",
2015
+ description: "Embed a LIVE mosadd chat channel into an app/site you're building (great for builder-agents on Lovable/Bolt/Cursor/v0). Mints a publishable embed key scoped to a channel + the app's domain(s) and returns a ready-to-paste HTML snippet (a <div> + <script src=embed.mosadd.com/v1.js data-key=\u2026>). Visitors of the host page chat in real time (anonymous nick or mosadd login). REQUIRES `allowed_origins` \u2014 the domain(s) the app is served from (the key only works there). The publishable key is browser-safe (mints only channel-scoped JWTs); your hub key never leaves the server. Returns { embed_key, channel, allowed_origins, snippet }.",
2016
+ inputSchema: embed_create_input,
2017
+ handler: embed_create
2018
+ }
2019
+ ];
2020
+
2021
+ // src/tools/threat.ts
2022
+ import { z as z13 } from "zod";
1969
2023
  import {
1970
2024
  THREAT_EVENTS,
1971
2025
  THREAT_EVENT_COUNT,
1972
2026
  evaluateEvent,
1973
2027
  getEventDef
1974
2028
  } from "@mosadd/threat-engine";
1975
- var threat_catalog_input = z12.object({
1976
- 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."),
1977
- platform: z12.enum(["apk", "ios", "pwa", "harmony"]).optional().describe("Filter to events detectable on this platform. Omit for all platforms.")
2029
+ var threat_catalog_input = z13.object({
2030
+ category: z13.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."),
2031
+ platform: z13.enum(["apk", "ios", "pwa", "harmony"]).optional().describe("Filter to events detectable on this platform. Omit for all platforms.")
1978
2032
  });
1979
2033
  async function threat_catalog(input, _ctx) {
1980
2034
  let events = THREAT_EVENTS;
@@ -1982,10 +2036,10 @@ async function threat_catalog(input, _ctx) {
1982
2036
  if (input.platform) events = events.filter((e) => e.platforms.includes(input.platform));
1983
2037
  return { count: events.length, total: THREAT_EVENT_COUNT, events };
1984
2038
  }
1985
- var threat_classify_input = z12.object({
1986
- event_type: z12.string().min(1).max(120).describe('Event type to classify, e.g. "SIM_SWAP", "AUTH_BRUTEFORCE", "TOLL_FRAUD". Case-insensitive.'),
1987
- severity: z12.string().optional().describe('Optional producer severity hint. "killswitch" \u2192 lock_account; "critical" \u2192 revoke_sessions; anything else is informational.'),
1988
- details: z12.string().max(2e3).optional().describe("Optional free-text context (informational only).")
2039
+ var threat_classify_input = z13.object({
2040
+ event_type: z13.string().min(1).max(120).describe('Event type to classify, e.g. "SIM_SWAP", "AUTH_BRUTEFORCE", "TOLL_FRAUD". Case-insensitive.'),
2041
+ severity: z13.string().optional().describe('Optional producer severity hint. "killswitch" \u2192 lock_account; "critical" \u2192 revoke_sessions; anything else is informational.'),
2042
+ details: z13.string().max(2e3).optional().describe("Optional free-text context (informational only).")
1989
2043
  });
1990
2044
  async function threat_classify(input, _ctx) {
1991
2045
  const def = getEventDef(String(input.event_type).toUpperCase());
@@ -2020,7 +2074,7 @@ var threatTools = [
2020
2074
  ];
2021
2075
 
2022
2076
  // src/tools/murl.ts
2023
- import { z as z13 } from "zod";
2077
+ import { z as z14 } from "zod";
2024
2078
  var DEFAULT_EDGE_URL2 = "https://mosadd-edge.mr-brics-33.workers.dev";
2025
2079
  function edgeUrl2() {
2026
2080
  return process.env.MOSADD_EDGE_URL?.replace(/\/$/, "") ?? DEFAULT_EDGE_URL2;
@@ -2043,10 +2097,10 @@ function urlToSlug(input) {
2043
2097
  const base = host.replace(/\./g, "-");
2044
2098
  return { domain: host, slug: segs.length ? `${base}__${segs.join("__")}` : base };
2045
2099
  }
2046
- var DomainArg = z13.string().min(3).max(2048).describe("A domain ('example.com') or a full URL. Keyed PER-URL: a bare domain \u2192 the domain room; a URL with a path (e.g. 'site.com/articles/abc') \u2192 that page's own room.");
2047
- var mURL_read_channel_input = z13.object({
2100
+ var DomainArg = z14.string().min(3).max(2048).describe("A domain ('example.com') or a full URL. Keyed PER-URL: a bare domain \u2192 the domain room; a URL with a path (e.g. 'site.com/articles/abc') \u2192 that page's own room.");
2101
+ var mURL_read_channel_input = z14.object({
2048
2102
  domain: DomainArg,
2049
- limit: z13.number().int().min(1).max(100).optional().describe("Recent messages to return (max 100). Default 50.")
2103
+ limit: z14.number().int().min(1).max(100).optional().describe("Recent messages to return (max 100). Default 50.")
2050
2104
  });
2051
2105
  async function mURL_read_channel(input, ctx) {
2052
2106
  const { domain, slug: slug2 } = urlToSlug(input.domain);
@@ -2065,10 +2119,10 @@ async function mURL_read_channel(input, ctx) {
2065
2119
  messages: (data.messages ?? []).map((m) => ({ id: m.id, from: m.from ?? null, text: m.text, timestamp: m.ts }))
2066
2120
  };
2067
2121
  }
2068
- var mURL_post_input = z13.object({
2122
+ var mURL_post_input = z14.object({
2069
2123
  domain: DomainArg,
2070
- text: z13.string().min(1).max(2e3).describe("Message body (max 2000 chars, up to 3 lines \u2014 Worker-enforced)."),
2071
- from: z13.string().max(120).optional().describe("Sender hint shown to others (defaults to the hub-key owner / your agent name).")
2124
+ text: z14.string().min(1).max(2e3).describe("Message body (max 2000 chars, up to 3 lines \u2014 Worker-enforced)."),
2125
+ from: z14.string().max(120).optional().describe("Sender hint shown to others (defaults to the hub-key owner / your agent name).")
2072
2126
  });
2073
2127
  async function mURL_post(input, ctx) {
2074
2128
  const { domain, slug: slug2 } = urlToSlug(input.domain);
@@ -2086,12 +2140,12 @@ async function mURL_post(input, ctx) {
2086
2140
  if (!data?.id) throw new Error("mosadd-edge: send returned no id");
2087
2141
  return { domain, message_id: data.id, posted_at: data.ts ?? Date.now() };
2088
2142
  }
2089
- var mURL_list_channels_input = z13.object({
2090
- action: z13.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)."),
2091
- limit: z13.number().int().min(1).max(100).optional().describe("Max channels to return. Default 20."),
2092
- hours: z13.number().int().min(1).max(168).optional().describe("Trending window in hours. Default 24, max 168 (7d)."),
2093
- status: z13.enum(["open", "claimed", "blocked"]).optional().describe("For action='list': filter (default 'open')."),
2094
- cursor: z13.string().optional().describe("For action='list': pagination \u2014 pass previous response's next_cursor (created_at ISO).")
2143
+ var mURL_list_channels_input = z14.object({
2144
+ action: z14.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)."),
2145
+ limit: z14.number().int().min(1).max(100).optional().describe("Max channels to return. Default 20."),
2146
+ hours: z14.number().int().min(1).max(168).optional().describe("Trending window in hours. Default 24, max 168 (7d)."),
2147
+ status: z14.enum(["open", "claimed", "blocked"]).optional().describe("For action='list': filter (default 'open')."),
2148
+ cursor: z14.string().optional().describe("For action='list': pagination \u2014 pass previous response's next_cursor (created_at ISO).")
2095
2149
  });
2096
2150
  async function mURL_list_channels(input, ctx) {
2097
2151
  readSupabaseEnv();
@@ -2105,7 +2159,7 @@ async function mURL_list_channels(input, ctx) {
2105
2159
  cursor: input.cursor ?? null
2106
2160
  });
2107
2161
  }
2108
- var mURL_presence_input = z13.object({ domain: DomainArg });
2162
+ var mURL_presence_input = z14.object({ domain: DomainArg });
2109
2163
  async function mURL_presence(input, ctx) {
2110
2164
  const { domain, slug: slug2 } = urlToSlug(input.domain);
2111
2165
  ctx.log("debug", "mURL_presence", { domain });
@@ -2117,10 +2171,10 @@ async function mURL_presence(input, ctx) {
2117
2171
  const data = await r.json();
2118
2172
  return { domain, count: data.count ?? 0, roster: data.roster ?? [], status: data.status ?? "open" };
2119
2173
  }
2120
- var mURL_create_input = z13.object({
2174
+ var mURL_create_input = z14.object({
2121
2175
  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.")
2176
+ branding: z14.record(z14.any()).optional().describe("Optional branding JSON (e.g. display name, colour, avatar URL) shown on the channel."),
2177
+ status: z14.enum(["open", "claimed", "blocked"]).optional().describe("Initial status: 'open' (default) = public agent-native room; 'claimed' = registered as yours; 'blocked' = closed.")
2124
2178
  });
2125
2179
  async function mURL_create(input, ctx) {
2126
2180
  readSupabaseEnv();
@@ -2133,10 +2187,10 @@ async function mURL_create(input, ctx) {
2133
2187
  status: input.status ?? null
2134
2188
  });
2135
2189
  }
2136
- var mURL_update_input = z13.object({
2190
+ var mURL_update_input = z14.object({
2137
2191
  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.")
2192
+ branding: z14.record(z14.any()).optional().describe("New branding JSON to set on the channel."),
2193
+ status: z14.enum(["open", "claimed", "blocked"]).optional().describe("New status: 'claimed' to mark owned, 'blocked' to close the room, 'open' to reopen.")
2140
2194
  });
2141
2195
  async function mURL_update(input, ctx) {
2142
2196
  readSupabaseEnv();
@@ -2150,7 +2204,7 @@ async function mURL_update(input, ctx) {
2150
2204
  status: input.status ?? null
2151
2205
  });
2152
2206
  }
2153
- var mURL_delete_input = z13.object({ domain: DomainArg });
2207
+ var mURL_delete_input = z14.object({ domain: DomainArg });
2154
2208
  async function mURL_delete(input, ctx) {
2155
2209
  readSupabaseEnv();
2156
2210
  const { domain } = urlToSlug(input.domain);
@@ -2211,7 +2265,7 @@ var murlTools = [
2211
2265
  ];
2212
2266
 
2213
2267
  // src/tools/capabilities.ts
2214
- import { z as z14 } from "zod";
2268
+ import { z as z15 } from "zod";
2215
2269
  var CONTRACT_VERSION = "1.0.0";
2216
2270
  var ALL_REQUIREMENTS = ["any", "radio", "network"];
2217
2271
  function buildCapabilityManifest(tools) {
@@ -2234,7 +2288,7 @@ function makeCapabilitiesTool(channelTools2) {
2234
2288
  name: "comms_capabilities",
2235
2289
  requires: "any",
2236
2290
  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.",
2237
- inputSchema: z14.object({}),
2291
+ inputSchema: z15.object({}),
2238
2292
  handler: async () => buildCapabilityManifest([...channelTools2, tool])
2239
2293
  };
2240
2294
  return tool;
@@ -2260,7 +2314,8 @@ var channelTools = [
2260
2314
  ...knowledgeTools,
2261
2315
  ...actionTools,
2262
2316
  // Action links (Tier 1): agent → user one-link browser action via action-create EF
2263
- // ...embedTools, // comms_embed_create: UNREGISTERED 2026-07-14 — widget backend not live e2e; re-register when embed.mosadd.com ships (CTO-1 live-ping)
2317
+ ...embedTools,
2318
+ // 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)
2264
2319
  ...threatTools,
2265
2320
  // 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
2266
2321
  ...murlTools
package/dist/index.d.ts CHANGED
@@ -211,15 +211,16 @@ 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
- * 68 callable tools registered — the exact live count is exported as TOOL_COUNT
214
+ * 69 callable tools registered — the exact live count is exported as TOOL_COUNT
215
215
  * (= allTools.length) below; ALWAYS reference that, never re-hard-code a number that drifts.
216
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.)
217
+ * comms 3 (action_create/frame_get/embed_create) · Irondome/threat 2 + comms_capabilities
218
+ * discovery 1 = 69. (mDM/mIRC each include their 2 attachment tools from attachments.ts.)
219
219
  * Modules (4): mDM, mIRC, mURL, mAYL. Capabilities: mTALK (voice/PTT), mRAG, comms_, Irondome (threat_*).
220
220
  * mp0st_* stay as DEPRECATED back-compat aliases for mAYL_* (removed in a later alpha).
221
221
  * UNREGISTERED 2026-07-14 (broken scaffolds whose EFs 404/400 every call — re-register when
222
- * live): mAYL_send_as_agent (mail-provenance), mTALK_ingest_ptt (ptt-ingest), comms_embed_create.
222
+ * live): mAYL_send_as_agent (mail-provenance), mTALK_ingest_ptt (ptt-ingest).
223
+ * comms_embed_create RE-REGISTERED 2026-07-17 (embed.mosadd.com/v1.js live — P3 of mURL→mIRC).
223
224
  * mROOM was KILLED (LINEAR-3414, channel re-cut → ephemeral private mIRC): its tools
224
225
  * live in tools/mroom.ts + mroom-messages.ts but are NOT registered here.
225
226
  * Plus action links: comms_action_create (agent → user one-link browser action,
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  createMosaddServer,
5
5
  defaultProviders,
6
6
  runWithSupabaseEnv
7
- } from "./chunk-ZFX6FRBA.js";
7
+ } from "./chunk-6PGDNIKR.js";
8
8
  import "./chunk-Z7WR52GE.js";
9
9
  export {
10
10
  TOOL_COUNT,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@mosadd/mcp",
3
- "version": "3.0.0-alpha.29",
3
+ "version": "3.0.0-alpha.30",
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 — 68 tools — to any agent runtime (Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, custom).",
5
+ "description": "Model Context Protocol server for mosadd. Exposes 4 modules (mDM, mIRC, mURL, mAYL) and capabilities (mTALK, mRAG) plus comms agent-actions — 69 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",
@@ -40,8 +40,8 @@
40
40
  "zod": "^4.3.6",
41
41
  "@mosadd/crypto": "3.0.0-alpha.26",
42
42
  "@mosadd/providers": "3.0.0-alpha.26",
43
- "@mosadd/threat-engine": "3.0.0-alpha.26",
44
- "@mosadd/protocol": "3.0.0-alpha.26"
43
+ "@mosadd/protocol": "3.0.0-alpha.26",
44
+ "@mosadd/threat-engine": "3.0.0-alpha.26"
45
45
  },
46
46
  "devDependencies": {
47
47
  "tsup": "^8.3.5",
@@ -12,15 +12,16 @@
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
- * 68 callable tools registered — the exact live count is exported as TOOL_COUNT
15
+ * 69 callable tools registered — the exact live count is exported as TOOL_COUNT
16
16
  * (= allTools.length) below; ALWAYS reference that, never re-hard-code a number that drifts.
17
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.)
18
+ * comms 3 (action_create/frame_get/embed_create) · Irondome/threat 2 + comms_capabilities
19
+ * discovery 1 = 69. (mDM/mIRC each include their 2 attachment tools from attachments.ts.)
20
20
  * Modules (4): mDM, mIRC, mURL, mAYL. Capabilities: mTALK (voice/PTT), mRAG, comms_, Irondome (threat_*).
21
21
  * mp0st_* stay as DEPRECATED back-compat aliases for mAYL_* (removed in a later alpha).
22
22
  * UNREGISTERED 2026-07-14 (broken scaffolds whose EFs 404/400 every call — re-register when
23
- * live): mAYL_send_as_agent (mail-provenance), mTALK_ingest_ptt (ptt-ingest), comms_embed_create.
23
+ * live): mAYL_send_as_agent (mail-provenance), mTALK_ingest_ptt (ptt-ingest).
24
+ * comms_embed_create RE-REGISTERED 2026-07-17 (embed.mosadd.com/v1.js live — P3 of mURL→mIRC).
24
25
  * mROOM was KILLED (LINEAR-3414, channel re-cut → ephemeral private mIRC): its tools
25
26
  * live in tools/mroom.ts + mroom-messages.ts but are NOT registered here.
26
27
  * Plus action links: comms_action_create (agent → user one-link browser action,
@@ -53,7 +54,7 @@ import { attachmentTools } from "./attachments.js";
53
54
  // import { mcallTools } from "./mcall.js"; // mCALL: carrier-pending — not registered (see header note)
54
55
  import { knowledgeTools } from "./knowledge.js";
55
56
  import { actionTools } from "./actions.js";
56
- // import { embedTools } from "./embed.js"; // comms_embed_create SCAFFOLD — UNREGISTERED 2026-07-14 (widget backend not live e2e; re-register when embed.mosadd.com ships — CTO-1 live-ping)
57
+ 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.
57
58
  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.
58
59
  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).
59
60
  import { makeCapabilitiesTool } from "./capabilities.js";
@@ -76,7 +77,7 @@ const channelTools: MosaddTool[] = [
76
77
  // ...pttIngestTools, // mTALK_ingest_ptt: UNREGISTERED 2026-07-14 — ptt-ingest EF 400s every call; re-register when payload + PTT→RAG path fixed (CTO-1 live-ping)
77
78
  ...knowledgeTools,
78
79
  ...actionTools, // Action links (Tier 1): agent → user one-link browser action via action-create EF
79
- // ...embedTools, // comms_embed_create: UNREGISTERED 2026-07-14 — widget backend not live e2e; re-register when embed.mosadd.com ships (CTO-1 live-ping)
80
+ ...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)
80
81
  ...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
81
82
  ...murlTools, // mURL: revived as a full module (founder 2026-06-27) — read/post/presence/list_channels over live domain channels
82
83
  // ...mcallTools, // mCALL: carrier-pending (no telephony carrier live) — re-register when a carrier is configured