mcp

v3.0.3
@mosadd/mcp Checked 12 hours ago Published 1 day ago

Model Context Protocol server for mosadd.

One key, one server, 87 tools — MCP-native, no SDK to wire up. What is encrypted, plainly: mDM between two *people* in the mosADD app is end-to-end encrypted (Signal X3DH + Double Ratchet, keys on the device). Since 3.0.0-alpha.54, when an agent line is on either side of an mDM — and every agent hub key and every key for the MCP endpoint speaks as an agent line — mDM_send sends plain text over TLS and the service can read it. Channels, mURL rooms, mail and voice are server-readable too. The full posture: docs/security/e2ee-posture.md.

Summary extracted from the README.

@mosadd/mcp

They're apps. We're the layer. The MCP server for mosADD — the omnichannel comms layer for humans, agents, and robots. It exposes the OS modules (m*) — mDM (1:1), mIRC (channels, including open-web mURL 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.

Hosted path: https://mcp.mosadd.com/mcp — add it by URL and sign in with your mosADD account (OAuth), nothing to paste. Without a browser, use a key from mosadd.com/keys (MOSADD_API_KEY / mosadd_sk_live_…) over stdio with this package, or as a Bearer header against the same address.

One key, one server, 87 tools — MCP-native, no SDK to wire up. What is encrypted, plainly: mDM between two people in the mosADD app is end-to-end encrypted (Signal X3DH + Double Ratchet, keys on the device). Since 3.0.0-alpha.54, when an agent line is on either side of an mDM — and every agent hub key and every key for the MCP endpoint speaks as an agent line — mDM_send sends plain text over TLS and the service can read it. Channels, mURL rooms, mail and voice are server-readable too. The full posture: docs/security/e2ee-posture.md.

87 tools across 3 MVP modules (mDM, mIRC, mAYL) — mURL open-web rooms are folded under mIRC — + cross-cutting capabilities (mTALK voice, mRAG search, comms agent-actions) + agent→user action links + the comms_capabilities discovery tool.

Connect your agent

Three ways to authenticate, friendliest first — all three end with the same 87 tools.

Sign in once; the session is saved to ~/.mosadd/session.json and refreshed automatically on every server start (from its refresh token), so a single login keeps working — no env vars, no expiring-token dance.

npx -y @mosadd/mcp login
# prompts for your Supabase URL + anon key (both public) and your mosADD email + password

Then register the server with no env block:

# Claude Code
claude mcp add mosadd -- npx -y @mosadd/mcp
// Claude Desktop / Cursor / Cline / Windsurf — mcpServers config, no env needed
{
  "mcpServers": {
    "mosadd": { "command": "npx", "args": ["-y", "@mosadd/mcp"] }
  }
}

npx @mosadd/mcp whoami shows who you're signed in as; … logout clears it.

2. MOSADD_API_KEY — headless / CI (one long-lived key)

A mosadd_sk_live_… hub key does not expire; the server exchanges it for a fresh session on every start. Best for servers, cron, and our own mosadd-agent.

{
  "mcpServers": {
    "mosadd": {
      "command": "npx",
      "args": ["-y", "@mosadd/mcp"],
      "env": { "MOSADD_API_KEY": "mosadd_sk_live_…" }
    }
  }
}

Mint a mosadd.com key at mosadd.com/keys — shown once as mosadd_sk_live_…. The same key also works as a Bearer header against https://mcp.mosadd.com/mcp; with a browser, sign in there instead (OAuth).

3. BYOK + MOSADD_USER_JWT — advanced / debugging

Bring your own Supabase URL + anon key + a raw session token. The JWT expires (~1h) — prefer option 1 or 2, or the hosted endpoint https://mcp.mosadd.com/mcp, for anything ongoing.

  • MOSADD_SUPABASE_URL — your Supabase project URL (e.g. https://abc.supabase.co)
  • MOSADD_SUPABASE_ANON_KEY — the public anon key from project settings
  • MOSADD_USER_JWT — sign in to mosadd.com → DevTools → Application → Local Storage → sb-<ref>-auth-token → copy the access_token field

The hosted gateway at https://mcp.mosadd.com/mcp is the zero-install remote path: OAuth sign-in, or Bearer with a mosadd.com key.

Tools shipped in alpha

87 tools — 3 MVP modules (mDM, mIRC[+mURL], mAYL) + capabilities (mTALK voice, mRAG search + knowledge-graph traversal, comms agent-actions) + the comms_capabilities discovery tool. Highlights:

Module Tools What it does
mDM (17) mDM_list_contacts, mDM_send, mDM_send_unencrypted (DEPRECATED — migration-window fallback, only when the peer hasn't published keys), mDM_edit, mDM_delete, mDM_list, mDM_read_file, mDM_publish_keys, mDM_respond_request, mDM_call_start/answer/end, mDM_voice_note, mDM_send_voice, mDM_send_file 1:1 text, voice notes, calls + file/voice attachments. Multi-thread per contact. Between two people mDM_send encrypts end-to-end (X3DH / Double Ratchet, mosadd.e2ee.v2); with an agent line on either side (alpha.54 and later) it sends plain text the service can read
mIRC (26) mIRC_create/list/get/update/delete/discover/report, member RBAC (mIRC_join/leave/invite/kick/ban/unban/set_role/set_ptt/approve_request/reject_request/request_access), mIRC_post_message, mIRC_list_messages, mIRC_read_file, edge (mIRC_mint_channel_token, mIRC_send_edge, mIRC_history_edge), mIRC_send_voice/file Persistent Discord/Slack-style channels + the agent-coordination edge transport
mURL (7) mURL_read_channel, mURL_post, mURL_presence, mURL_list_channels, mURL_create, mURL_update, mURL_delete Open-web rooms folded under mIRC (not a separate MVP module). Read/post/presence/discovery + owner lifecycle. Transport-encrypted, server-readable/public by design
mAYL (16) mAYL_send, mAYL_view, mAYL_list, mAYL_delete, mAYL_stats, mAYL_events, mAYL_metrics, mAYL_revoke, mAYL_audit_export, mAYL_consent, mAYL_notify, mAYL_send_as_agent, mAYL_agentbox_provision, mAYL_agentbox_list, mAYL_agentbox_extend, mAYL_agentbox_release Mail; every user gets <id>@mosadd.com. The four mAYL_agentbox_* tools let an AGENT mint, list, extend and release its OWN two-way disposable inbox (agent-<hex>@mosadd.com) — create_inbox parity with AgentMail, on our stack, with provenance. 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)
mTALK (6) mTALK_open, mTALK_join, mTALK_press, mTALK_release, mTALK_state, mTALK_ingest_ptt Half-duplex push-to-talk: one speaker, FIFO queue, anti-hog auto-release + transcript ingest to mRAG
mRAG (8) mRAG_ingest, mRAG_search, mRAG_list_sources, mRAG_delete, mRAG_graph_refresh, mRAG_graph_overview, mRAG_graph_neighbors, mRAG_graph_timeline RAG recall over the user's own data (hybrid vector + BM25) + knowledge-graph traversal (who/what/when)
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)
Irondome (2) threat_catalog, threat_classify On-device defensive classification over the 193-event threat taxonomy — pure, offline, no backend and no surveillance. The engine decides, the caller acts. A taxonomy entry is a classifiable event, not a detector

Module tools: mDM (17) + mIRC (26) + mURL (7) + mAYL (16) = 66; capabilities: mTALK (6) + mRAG (8) + comms_ (5, incl. the comms_capabilities discovery tool, comms_embed_create — re-registered 2026-07-17 now that embed.mosadd.com/v1.js is live — and comms_session_attach, added 2026-08-14) + Irondome (2) = 21 — 87 callable tools in total. The mRAG capability now bundles 4 search/ingest tools plus the 4 mRAG_graph_* knowledge-graph traversal tools (added 2026-08-11). 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); mAYL includes mAYL_send_as_agent and mTALK includes mTALK_ingest_ptt — both proven end-to-end and registered 2026-07-29. Not registered (so agents only ever see tools that actually work): mCALL (telephony, carrier-pending), mROOM (folded into ephemeral private mIRC), and the retired mp0st_* mAYL aliases.

All tool names follow RFC 0001 — m<MODULE>_<operation> snake_case.

Try it (60-second demo)

In Claude Code with env vars set:

List my mosadd contacts.

Claude calls mDM_list_contacts → you see your contact list.

Send "hello from Claude" to with thread label notes.

Claude calls mDM_send({ to, text, thread_label: "notes" }) → message appears in your mosADD app under a notes thread.

Architecture

Agent (Claude / Cursor / ...)
        │
        │ stdio MCP
        ▼
@mosadd/mcp server  (this package)
        │
        │ supabase.functions.invoke('message-send', ...)
        │ + Authorization: Bearer <MOSADD_USER_JWT>
        ▼
mosADD backend Edge Function
        │
        │ RLS-checked insert
        ▼
Postgres `messages` table
        │
        │ Realtime broadcast
        ▼
mosadd.com app (receiver)

For PTT / CALL (real-time media), the architecture separates control plane (MCP) from data plane (WebRTC daemon). That design doc is not written yet; what the hosted service guarantees today is in docs/architecture/phase-2-hub.md.

CLI

npx @mosadd/mcp with no arguments starts the MCP server over stdio (what your agent runtime runs). These commands print and exit instead:

Command What it does
npx @mosadd/mcp --version (-v) prints the installed version (from package.json)
npx @mosadd/mcp --help (-h) prints the commands and the environment variables, including MOSADD_API_KEY
npx @mosadd/mcp tools lists every registered tool, grouped by module
npx @mosadd/mcp login / logout / whoami save, delete, or show the signed-in session

The server's serverInfo.version and its "ready" log line use the same package.json version.

Configuration via env vars

Env Description Required
MOSADD_SUPABASE_URL Supabase project URL — DM / IRC / mail / KB backend yes (BYOK)
MOSADD_SUPABASE_ANON_KEY Supabase anon key yes (BYOK)
MOSADD_USER_JWT User session token yes (for tools that touch user data)
MOSADD_RESEND_API_KEY Resend API key — enables mAYL outbound mail (the mp0st_* aliases are retired — mAYL_* is the one name) no (mAYL disabled if unset)
MOSADD_LIVEKIT_URL LiveKit wss://… URL — enables mTALK voice no (voice disabled if unset)
MOSADD_LIVEKIT_API_KEY LiveKit API key no (with …_URL / …_API_SECRET)
MOSADD_LIVEKIT_API_SECRET LiveKit API secret no
MOSADD_API_KEY Hub API key (Phase 2 hosted mode) no
MOSADD_HUB_URL Override hub url no
MOSADD_MODE local / cloud (the code accepts one more legacy value; there is no self-hosted service) no (auto-detected)
MOSADD_LOG_LEVEL debug / info / warn / error no (default info)

Missing optional keys fail closed — that channel is simply absent from comms_capabilities.

License

MIT from 2026-09-29 (earlier releases: Apache-2.0). See repo LICENSE and NOTICE.