@mosadd/mcp 3.0.0-alpha.10 → 3.0.0-alpha.11
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 +3 -3
- package/dist/bin/mcp.js +1 -1
- package/dist/{chunk-6EPYADVR.js → chunk-NQ624SIP.js} +26 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/tools/index.ts +1 -1
- package/src/tools/mdm.ts +1 -1
- package/src/tools/murl.ts +54 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
MCP server for [mosadd](https://mosadd.dev) — exposes the OS modules (m\*) 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
|
-
> **3.0.0-alpha.4** — **
|
|
5
|
+
> **3.0.0-alpha.4** — **65 live tools across 7 live modules** (mDM incl. voice, mIRC, mROOM, mAIL, mTALK, mRAG, mURL) + 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` with the 166-event radar in front.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -53,7 +53,7 @@ In Phase 2, run `mosadd login` to OAuth into hub.mosadd.com — no JWT-juggling
|
|
|
53
53
|
|
|
54
54
|
## Tools shipped in alpha
|
|
55
55
|
|
|
56
|
-
**
|
|
56
|
+
**65 live tools across 7 live modules** (mDM, mIRC, mROOM, mAIL, mTALK, mRAG, mURL) + the `comms_capabilities` discovery tool. Highlights per module:
|
|
57
57
|
|
|
58
58
|
| Module | Tools | What it does |
|
|
59
59
|
|---|---|---|
|
|
@@ -63,7 +63,7 @@ In Phase 2, run `mosadd login` to OAuth into hub.mosadd.com — no JWT-juggling
|
|
|
63
63
|
| **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 |
|
|
64
64
|
| **mAIL** (11) | `mAIL_send`, `mAIL_view`, `mAIL_list`, `mAIL_delete`, `mAIL_stats`, `mAIL_events`, `mAIL_metrics`, `mAIL_revoke`, `mAIL_audit_export`, `mAIL_consent`, `mAIL_notify` | Mail; every user gets `<id>@mosadd.com`. `mAIL_revoke` recalls secure-reader access; `mAIL_audit_export` emits an HMAC-SHA256-signed engagement audit; `mAIL_consent` manages recipient tracking opt-outs (GDPR); `mAIL_notify` pulls the inbound-mail notification feed |
|
|
65
65
|
| **mRAG** (4) | `mRAG_ingest`, `mRAG_search`, `mRAG_list_sources`, `mRAG_delete` | RAG recall over the user's own data (hybrid vector + BM25) |
|
|
66
|
-
| **mURL** (
|
|
66
|
+
| **mURL** (4) | `mURL_read_channel`, `mURL_post`, `mURL_presence`, `mURL_list_channels` | Real-time chat attached to any web domain — agent-native ("IRC for URLs"). The per-domain room is never empty because agents read context + leave findings via MCP |
|
|
67
67
|
|
|
68
68
|
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.
|
|
69
69
|
|
package/dist/bin/mcp.js
CHANGED
|
@@ -1789,6 +1789,25 @@ async function mURL_post(input, ctx) {
|
|
|
1789
1789
|
if (!data?.id) throw new Error("mosadd-edge: send returned no id");
|
|
1790
1790
|
return { domain, message_id: data.id, posted_at: data.ts ?? Date.now() };
|
|
1791
1791
|
}
|
|
1792
|
+
var mURL_list_channels_input = z12.object({
|
|
1793
|
+
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)."),
|
|
1794
|
+
limit: z12.number().int().min(1).max(100).optional().describe("Max channels to return. Default 20."),
|
|
1795
|
+
hours: z12.number().int().min(1).max(168).optional().describe("Trending window in hours. Default 24, max 168 (7d)."),
|
|
1796
|
+
status: z12.enum(["open", "claimed", "blocked"]).optional().describe("For action='list': filter (default 'open')."),
|
|
1797
|
+
cursor: z12.string().optional().describe("For action='list': pagination \u2014 pass previous response's next_cursor (created_at ISO).")
|
|
1798
|
+
});
|
|
1799
|
+
async function mURL_list_channels(input, ctx) {
|
|
1800
|
+
readSupabaseEnv();
|
|
1801
|
+
const action = input.action ?? "trending";
|
|
1802
|
+
ctx.log("debug", "mURL_list_channels invoking murl-channels", { action });
|
|
1803
|
+
return await invokeFunction("murl-channels", {
|
|
1804
|
+
action,
|
|
1805
|
+
limit: input.limit ?? null,
|
|
1806
|
+
hours: input.hours ?? null,
|
|
1807
|
+
status: input.status ?? null,
|
|
1808
|
+
cursor: input.cursor ?? null
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1792
1811
|
var mURL_presence_input = z12.object({ domain: DomainArg });
|
|
1793
1812
|
async function mURL_presence(input, ctx) {
|
|
1794
1813
|
const { domain, slug: slug2 } = domainToSlug(input.domain);
|
|
@@ -1822,6 +1841,13 @@ var murlTools = [
|
|
|
1822
1841
|
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.",
|
|
1823
1842
|
inputSchema: mURL_presence_input,
|
|
1824
1843
|
handler: mURL_presence
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
name: "mURL_list_channels",
|
|
1847
|
+
requires: "network",
|
|
1848
|
+
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.",
|
|
1849
|
+
inputSchema: mURL_list_channels_input,
|
|
1850
|
+
handler: mURL_list_channels
|
|
1825
1851
|
}
|
|
1826
1852
|
];
|
|
1827
1853
|
|
package/dist/index.d.ts
CHANGED
|
@@ -186,7 +186,7 @@ declare function createMosaddServer(options?: MosaddServerOptions): McpServer;
|
|
|
186
186
|
/**
|
|
187
187
|
* Tool registry. Each m* module contributes a set of tools.
|
|
188
188
|
*
|
|
189
|
-
* Live modules (7): mDM, mIRC, mROOM, mTALK, mAIL, mRAG, mURL —
|
|
189
|
+
* Live modules (7): mDM, mIRC, mROOM, mTALK, mAIL, mRAG, mURL — 65 tools + comms_capabilities.
|
|
190
190
|
* mCALL is carrier-pending (no telephony carrier live yet): its tools live in
|
|
191
191
|
* tools/mcall.ts but are NOT registered here, so an agent only ever discovers
|
|
192
192
|
* tools that actually work. Re-register the one line below when a carrier ships.
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mosadd/mcp",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
4
|
-
"description": "Model Context Protocol server for mosadd. Exposes the 7 live m* modules (mDM, mIRC, mROOM, mTALK, mAIL, mRAG, mURL) —
|
|
3
|
+
"version": "3.0.0-alpha.11",
|
|
4
|
+
"description": "Model Context Protocol server for mosadd. Exposes the 7 live m* modules (mDM, mIRC, mROOM, mTALK, mAIL, mRAG, mURL) — 65 tools — to any agent runtime (Claude Code, Cursor, Windsurf, Cline, ChatGPT Apps, Lovable, Bolt, Goose, Manus, custom).",
|
|
5
5
|
"homepage": "https://github.com/Hei33enberg/mosadd-os/tree/main/packages/mcp",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
37
37
|
"@supabase/supabase-js": "^2.48.0",
|
|
38
38
|
"zod": "^4.3.6",
|
|
39
|
-
"@mosadd/crypto": "3.0.0-alpha.4",
|
|
40
39
|
"@mosadd/protocol": "3.0.0-alpha.4",
|
|
40
|
+
"@mosadd/crypto": "3.0.0-alpha.4",
|
|
41
41
|
"@mosadd/providers": "3.0.0-alpha.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
package/src/tools/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Tool registry. Each m* module contributes a set of tools.
|
|
3
3
|
*
|
|
4
|
-
* Live modules (7): mDM, mIRC, mROOM, mTALK, mAIL, mRAG, mURL —
|
|
4
|
+
* Live modules (7): mDM, mIRC, mROOM, mTALK, mAIL, mRAG, mURL — 65 tools + comms_capabilities.
|
|
5
5
|
* mCALL is carrier-pending (no telephony carrier live yet): its tools live in
|
|
6
6
|
* tools/mcall.ts but are NOT registered here, so an agent only ever discovers
|
|
7
7
|
* tools that actually work. Re-register the one line below when a carrier ships.
|
package/src/tools/mdm.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* their own Supabase URL + anon key + a session JWT via env vars (BYOK).
|
|
11
11
|
*
|
|
12
12
|
* Phase 2 will route through the hosted gateway (mcp.mosadd.com) with the
|
|
13
|
-
*
|
|
13
|
+
* 166-event radar middleware in front, and replace the plaintext
|
|
14
14
|
* encrypted_payload with real X3DH + Double Ratchet via @mosadd/crypto.
|
|
15
15
|
*/
|
|
16
16
|
|
package/src/tools/murl.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { z } from "zod";
|
|
18
18
|
import type { MosaddTool, MosaddToolContext } from "../types.js";
|
|
19
|
+
import { invokeFunction, readSupabaseEnv } from "../providers/supabase.js";
|
|
19
20
|
|
|
20
21
|
const DEFAULT_EDGE_URL = "https://mosadd-edge.mr-brics-33.workers.dev";
|
|
21
22
|
function edgeUrl(): string {
|
|
@@ -96,6 +97,51 @@ async function mURL_post(
|
|
|
96
97
|
return { domain, message_id: data.id, posted_at: data.ts ?? Date.now() };
|
|
97
98
|
}
|
|
98
99
|
|
|
100
|
+
// ── list_channels (discovery) ────────────────────────────────────────────────
|
|
101
|
+
const mURL_list_channels_input = z.object({
|
|
102
|
+
action: z
|
|
103
|
+
.enum(["trending", "list", "mine"])
|
|
104
|
+
.optional()
|
|
105
|
+
.describe("'trending' (default) = most active domain channels in the last N hours; 'list' = paginated catalogue filtered by status; 'mine' = channels you own (DNS-verified)."),
|
|
106
|
+
limit: z.number().int().min(1).max(100).optional().describe("Max channels to return. Default 20."),
|
|
107
|
+
hours: z.number().int().min(1).max(168).optional().describe("Trending window in hours. Default 24, max 168 (7d)."),
|
|
108
|
+
status: z.enum(["open", "claimed", "blocked"]).optional().describe("For action='list': filter (default 'open')."),
|
|
109
|
+
cursor: z.string().optional().describe("For action='list': pagination — pass previous response's next_cursor (created_at ISO)."),
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
interface MurlChannel {
|
|
113
|
+
domain: string;
|
|
114
|
+
slug: string;
|
|
115
|
+
status: string;
|
|
116
|
+
branding?: unknown;
|
|
117
|
+
verified_at?: string | null;
|
|
118
|
+
created_at?: string;
|
|
119
|
+
updated_at?: string;
|
|
120
|
+
messages_in_window?: number;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
async function mURL_list_channels(
|
|
124
|
+
input: z.infer<typeof mURL_list_channels_input>,
|
|
125
|
+
ctx: MosaddToolContext,
|
|
126
|
+
): Promise<{
|
|
127
|
+
channels: MurlChannel[];
|
|
128
|
+
count: number;
|
|
129
|
+
next_cursor?: string | null;
|
|
130
|
+
hours?: number;
|
|
131
|
+
since?: string;
|
|
132
|
+
}> {
|
|
133
|
+
readSupabaseEnv();
|
|
134
|
+
const action = input.action ?? "trending";
|
|
135
|
+
ctx.log("debug", "mURL_list_channels invoking murl-channels", { action });
|
|
136
|
+
return await invokeFunction("murl-channels", {
|
|
137
|
+
action,
|
|
138
|
+
limit: input.limit ?? null,
|
|
139
|
+
hours: input.hours ?? null,
|
|
140
|
+
status: input.status ?? null,
|
|
141
|
+
cursor: input.cursor ?? null,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
99
145
|
// ── presence ────────────────────────────────────────────────────────────────────
|
|
100
146
|
const mURL_presence_input = z.object({ domain: DomainArg });
|
|
101
147
|
async function mURL_presence(
|
|
@@ -138,4 +184,12 @@ export const murlTools: MosaddTool[] = [
|
|
|
138
184
|
inputSchema: mURL_presence_input,
|
|
139
185
|
handler: mURL_presence as MosaddTool["handler"],
|
|
140
186
|
},
|
|
187
|
+
{
|
|
188
|
+
name: "mURL_list_channels",
|
|
189
|
+
requires: "network",
|
|
190
|
+
description:
|
|
191
|
+
"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.",
|
|
192
|
+
inputSchema: mURL_list_channels_input,
|
|
193
|
+
handler: mURL_list_channels as MosaddTool["handler"],
|
|
194
|
+
},
|
|
141
195
|
];
|