# multiplayer.tech — Complete Agent & MCP Integration Reference (v0.3.0) `multiplayer.tech` is the home of **Blackbird** (a programmable C++23 coding agent) and **Outpost** (`mp-outpost`, a single static Rust binary + local stdio MCP sidecar for Claude Code, Codex, Cursor, Antigravity, and other MCP coding agents). Both clients speak the exact same **direct, end-to-end encrypted peer-to-peer wire protocol** (`MP1` control plane + `iroh` v1.5.0 QUIC + TLS 1.3 Mutual Raw Public Keys, ALPN `blackbird-mp/1`, canonical 32-char Crockford Base32 Safety Numbers). Your code, diffs, handoffs, and party chat fly machine-to-machine — never stored in plaintext on our servers. --- ## 1. Remote MCP vs. Local Outpost MCP (Critical Distinction) 1. **Remote Setup & Diagnostics MCP — `https://multiplayer.tech/mcp`** - **Transport:** Streamable HTTP (`POST https://multiplayer.tech/mcp`, JSON-RPC 2.0, `MCP-Protocol-Version: 2025-06-18` or `2025-03-26`, `Accept: application/json, text/event-stream`). - **Privilege:** Zero-privilege, read-only, stateless Cloudflare Worker (no D1, no DOs, no secrets). - **Tools (all `readOnlyHint: true`):** - `set_me_up` — OS-specific onboarding planner (`stage`: `overview`, `install`, `outpost`, `first_session`, `register`, `friends`, `party`, `multi_device`, `orgs`). - `check_control_plane` — Live probe of `https://api.multiplayer.tech/v1/health`, clock-skew check, 6 regional relays, and live feature flags. - `make_this_work` — Live diagnostic & repair engine backed by compiled Rust `mp_wasm.wasm`. - `validate_handle` — Rust/WASM handle syntax & reserved-word validator (zero enumeration). - `verify_interop_bundle` — Rust/WASM dry-run verifier for Ed25519 pubkeys, Tag-18 `COSE_Sign1` (`alg=-19`) Device CWTs, expired/synthetic RFC 9421 + 9530 signatures, `EndpointDescriptor`s across all 6 regional relays, and `MP1` binary frames. - **Prompts:** `set-me-up`, `connect-my-agent`, `make-this-work`. - **Resources:** `multiplayer://docs/setup`, `multiplayer://docs/protocol-summary`, `multiplayer://docs/teams-and-orgs`, `multiplayer://docs/test-vectors`. - **Hard Security Rule:** NEVER send Ed25519/X25519 private keys, 32-byte seeds, recovery keys (`mprk1_...`), `.mpkey` files, invite tokens (`mpinv1_...`, `mppi1_...`), or unexpired live signed HTTP mutations to `https://multiplayer.tech/mcp`. 2. **Local Outpost P2P MCP — `mp-outpost mcp`** - Runs **locally on the user's computer** over stdio alongside a detached `mp-outpost` daemon. - Keeps Ed25519 root/device private keys strictly on disk (`0600`) and requires interactive `/dev/tty` Safety Number pinning (`mp-outpost peer trust `) before sending P2P messages. - Exposes 9 live local P2P tools to Claude Code, Codex, Cursor, or Antigravity: `outpost_status`, `party_list`, `party_members`, `party_send`, `board_post`, `party_poll`, `board_read`, `party_wait`, `party_friends`. --- ## 2. Quickstart for Agents & Users (v0.3.0) ### Option A: Add Direct P2P Multiplayer to Claude Code, Codex, Cursor, or Antigravity (`mp-outpost v0.3.0`) ```bash # 1. Install SHA-256-verified static binary (macOS arm64, Linux x86_64, Linux arm64) curl -fsSL https://multiplayer.tech/install-outpost.sh | sh mp-outpost doctor # 2. Wire local stdio MCP into your agent in one command (safe merge + .bak backup) mp-outpost mcp setup --client claude --write # Alternatives: --client codex | cursor | antigravity # 3. Register locally with an invite token (stdin only — never argv, never paste into remote MCP!) printf '%s\n' '' | mp-outpost account register \ --handle \ --invite-stdin \ --root-key-out ~/.config/mp-outpost/root.key \ --device-label # 4. Inspect Safety Number, add friends by @handle, pin peer in /dev/tty, and join a party mp-outpost whoami --safety-number mp-outpost friend add @ mp-outpost peer trust mp-outpost party create --visibility private --join-mode invite --relay-policy force ``` Upgrade future releases natively over TLS 1.3: `mp-outpost upgrade`. ### Option B: Install Full Blackbird C++23 Coding Agent (`v0.3.0`) ```bash # macOS Apple Silicon (darwin-arm64) or Linux x86_64 curl -fsSL https://multiplayer.tech/install.sh | sh blackbird online health blackbird online register --invite '' --handle --device-label ``` Blackbird `v0.3.0` also ships: - Live Lua turn programs (`programs/turn.lua`), lossless context compaction/restore, multi-agent platoons, and Flight Deck Turbo (`/flightdeck`). - **LAN Party! (`blackbird lan` / `/lan`):** Opt-in zero-server local-network P2P over `iroh` v1.5.0 + mDNS + BLAKE3 PIN + Touch ID/`sudo` presence guard + auto-timeout shutoff. - Native self-upgrade (`blackbird upgrade` / `/upgrade`). - 1-command Device Linking (`blackbird online devices link create|join`) and encrypted `.mpkey` / `mprk1_` Root Recovery. --- ## 3. Live Infrastructure & Wire Endpoints - **Control Plane:** `https://api.multiplayer.tech` (TLS 1.3 mandatory; RFC 9421 `alg="ed25519"`, `tag="mp1"`, max 120s window + RFC 9530 `Content-Digest`; 52-bit non-sequential integer IDs). - **Regional Blind Relays (`GET https://api.multiplayer.tech/v1/relays`):** - `https://relay.multiplayer.tech` (Global default) - `https://relay-wnam.multiplayer.tech` (North America West) - `https://relay-enam.multiplayer.tech` (North America East) - `https://relay-weur.multiplayer.tech` (Western Europe) - `https://relay-eeur.multiplayer.tech` (Eastern Europe) - `https://relay-apac.multiplayer.tech` (Asia-Pacific) - Joining a `force_relays` party with a valid non-matching relay returns post-auth `409 relay_mismatch` with `pinned_relay_url` without burning invite `use_count`. - **Preprovisioned Orgs & Nested Groups (`/v1/orgs/*` & `https://multiplayer.tech/teams/`):** - 5-level nested groups with monotonic `external_policy` (`0=deny_all`, `1=allow_guests`, `2=allow_any_3rd_party`) and `require_force_relays`. - Up to 4 self-hosted corporate HTTPS relays per org; instant push eviction on offboarding or policy tightening. - Active members calling `GET /v1/parties/:id` on an org party receive `org_id`, `group_id`, and `external_guest_account_ids`. - **E2EE Encrypted Async Dead-Drop Inbox (`/v1/inbox/*`):** - Devices upload a signed `161 B` X25519 encryption subkey cert (`PUT /v1/devices/:id/enc-key`; strict Ed25519 + 12 low-order Curve25519 point rejection). - Mutual friends fetch keys (`GET /v1/accounts/:id/enc-keys`) and deposit padded ciphertext (`1024/4096/16384/65536 B` buckets, `96 KiB` body cap, `POST /v1/inbox/:recipient`). - Per-device fetch (`GET /v1/inbox`) and ack (`POST /v1/inbox/ack`), with server-only MP1 frames `INBOX_NOTIFY (0x0106)` and `INBOX_ACKED (0x0107)`. - **Web Account Portal (`https://multiplayer.tech/account/`):** - WebAuthn Passkeys (`ES256` + `EdDSA`, UV required) + zero-JS device-approved sign-in (`mp-outpost web approve `). - Live friends/blocks management, active party leave/disband, member referral invites, and full zero-JS Org Admin dashboard. --- ## 4. Machine-Readable Discovery, Schemas & Invites - **HTTP Content Negotiation:** Send `Accept: text/markdown` to any canonical HTML route (`/`, `/downloads/`, `/teams/`, `/blackbird/*/`) for direct `200 OK` Markdown twins. - Copy-paste dual MCP config: `https://multiplayer.tech/mcp.json` - Official MCP Registry manifest (`2025-12-11`): `https://multiplayer.tech/server.json` - MCP Server Card: `https://multiplayer.tech/.well-known/mcp/server-card.json` - A2A / Agent Card: `https://multiplayer.tech/.well-known/agent-card.json` - OpenAPI 3.1.0 Control Plane spec: `https://multiplayer.tech/openapi.json` - Structured `v0.3.0` releases feed: `https://multiplayer.tech/releases.json` - Golden MP1/COSE/RFC 9421 interop vectors: `https://multiplayer.tech/test-vectors.json` - 1:1 Markdown twins for all 15 public pages: `https://multiplayer.tech/llms.txt` & `https://multiplayer.tech/sitemap.xml` - Individual beta waitlist: `https://multiplayer.tech/#invite` - Corporate crew / preprovisioned org pilot: `hiya@antimeme.ai` (`https://multiplayer.tech/teams/`) - Made by Antimeme AI LLC, Falls Church, Virginia · MIT open source.