mcp-crewd-rs

io.github.DioNanos由 GitHub 帳號 DioNanos 發布v0.1.4更新於 Oct 24, 2026

Cell fabric daemon: spawn and coordinate Claude/Codex/pi worker cells over MCP. Audited.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

一個本機守護程序,讓一個 AI 工作階段透過 MCP 啟動、協調並與其他 AI 工作階段(cell)通訊。

可以做什麼
啟動、列出、檢視、取消工作 cell 並取得其結果,cell 可執行 Claude、Codex 或 pi 引擎,並指定設定與任務,也可向其追加任務。在 cell 之間傳遞訊息:單向傳送、帶長輪詢回覆的 ask/await 工單、回覆、廣播和收件匣讀取。維護 cell 註冊表、任務排程、訊息匯流排、SQLite 儲存和僅追加的雜湊鏈稽核日誌,並提供檢視狀態、檢查和驗證稽核的命令列工具。工作 cell 以 worker 模式取得相同工具,但隱藏啟動介面。
適用情境
適合讓一個協調型 AI 工作階段把工作分派給同一台機器上的多個平行工作階段並彙整結果,例如把一項程式開發任務拆分到各自帶有指令、記憶和技能的不同專案根目錄。
執行需求
透過 Unix socket 在本機執行,不支援 Windows。Linux 和 Android/Termux 有預先編譯的執行檔;macOS 及其他平台需以 Rust 1.85+ 從原始碼建置。claude 引擎需要 Node 20+ 並在 shim 旁安裝 Claude Agent SDK;codex 引擎需要守護程序的 PATH 中有 codex 命令列。需要 crewd.toml 設定、acl.toml 能力檔案,以及傳給 MCP 用戶端的每 cell 0600 權杖檔案。
安裝前請注意
啟動的引擎會執行真實的 AI 工作階段,可在你傳入的工作目錄中操作,因此 cell_spawn 只應指向可信的專案根目錄。與守護程序同一 UID 的程序可讀取 socket 和權杖檔案;它隔離的是 cell,而非同一使用者下的權限邊界。選用的 Anthropic 相容設定會從 keys_env_path 指定的檔案讀取 bearer 權杖,請保護該檔案。cell 可傳送、廣播並啟動其他 cell,會消耗模型用量。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 mcp-crewd-rs,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-crewd-rs

[CI] [Tests] [License: Apache-2.0] [Rust] [MCP Registry]

crewd is a cell fabric daemon for AI agents: it lets one AI session (Claude Code, Codex CLI, or any MCP client) spawn, coordinate and message other AI worker sessions — cells — through a single MCP server. Rust, one static binary per component, no network listener: everything runs over a local Unix socket.

Part of the mcp-*-rs family of Rust MCP servers.

┌────────────┐  MCP stdio   ┌──────┐   UDS (NDJSON)   ┌───────┐  spawns   ┌─────────────────┐│ Claude Code│─────────────▶│ crew │─────────────────▶│ crewd │──────────▶│ engine processes││ / Codex CLI│  cell_* tools│ shim │  0600 socket     │daemon │           │ claude / codex  │└────────────┘              └──────┘                  └───────┘           │ / pi workers    │                                                                          └─────────────────┘

Components

BinaryRole
crewdDaemon: cell registry, job scheduler, engine supervisor, message bus, SQLite (WAL) store, append-only hash-chained audit log
crewOperator CLI (status, inspect, audit verify) + per-cell MCP stdio shim (crew mcp)

MCP tools

Mounted per-cell via crew mcp:

  • Fabric — cell_spawn (launch a worker cell: engine + profile + task), cell_send_task, cell_status, cell_result, cell_cancel, cell_list
  • Bus — cell_send (fire-and-forget), cell_ask / cell_await (ask ticket + long-poll reply), cell_reply, cell_broadcast, cell_inbox

Worker cells get the same shim with --worker-mode, which hides the spawn surface (no uncontrolled nested fan-out).

Engines

EngineHowSession continuity
claudeNode shim on the Claude Agent SDK (shim/claude-shim.mjs)resume by session id
codexcodex app-server JSON-RPC (v2 protocol)reattach by thread id
pipi rpcnone (v0)

Claude profiles select where the engine gets its credentials. max (the default) uses the host's own Claude credentials and needs no extra config. Additional profiles route the engine to an Anthropic-compatible endpoint, reading that profile's bearer token from keys_env_path (never from crewd.toml, argv or logs); the built-in ones are defined in the engine-claude adapter.

A cell's identity is its working directory: the spawned engine loads whatever CLAUDE.md, .mcp.json, memory and skills live in the cwd you pass to cell_spawn. One daemon can therefore serve several "personas" by spawning cells in different project roots.

Install

Prebuilt binaries (recommended) — download the archive for your platform from the latest release and extract; it contains crewd, crew and the shim/ directory:

bash
tar xzf mcp-crewd-rs-x86_64-unknown-linux-gnu.tar.gzinstall -m755 mcp-crewd-rs-*/crewd mcp-crewd-rs-*/crew ~/.local/bin/

Prebuilt targets (Linux + Android): x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl, aarch64-unknown-linux-gnu, aarch64-unknown-linux-musl (edge / ARM), aarch64-linux-android (Termux).

macOS: no prebuilt binary is shipped (it would need Apple code-signing). Build from source instead — macOS is CI-tested (peer auth uses getpeereid + LOCAL_PEERPID there instead of SO_PEERCRED):

bash
git clone https://github.com/DioNanos/mcp-crewd-rs && cd mcp-crewd-rscargo build --release --lockedinstall -m755 target/release/crewd target/release/crew ~/.local/bin/

From source (any platform) — Rust ≥ 1.85:

sh
cargo build --releaseinstall -m 0755 target/release/crewd target/release/crew ~/.local/bin/

Engine runtime requirements: the claude engine needs Node ≥ 20 with @anthropic-ai/claude-agent-sdk installed next to the shim (cd shim && npm install); the codex engine needs the codex CLI on the daemon's PATH.

Configuration

crewd.toml (passed explicitly via --config, never cwd-derived):

toml
runtime_dir = "/home/you/.config/crewd/runtime"   # socket, db, audit, tokensacl_path    = "/home/you/.config/crewd/acl.toml"# Optional: only for claude profiles that authenticate against an# Anthropic-compatible endpoint. A KEY=value env file holding that profile's# bearer token(s), e.g. `PROVIDER_API_KEY=...`. Omit for the default `max`.keys_env_path = "/home/you/.config/crewd/keys.env"

acl.toml — one section per registered cell with its engine and capabilities (send, ask, reply, broadcast, read_inbox, list_cells, read_audit, spawn):

toml
[cell.coordinator]engine = "claude"capabilities = ["send","ask","reply","broadcast","read_inbox","list_cells","read_audit","spawn"]

Per-cell auth: a 0600 token file per cell (L0 scheme). Mount the shim in your MCP client config:

jsonc
// .mcp.json (Claude Code) — one entry per cell identity{  "mcpServers": {    "crew": {      "command": "crew",      "args": ["mcp",        "--runtime-dir", "/home/you/.config/crewd/runtime",        "--cell", "coordinator",        "--token-file", "/home/you/.config/crewd/coordinator.secret"]    }  }}

systemd

ini
[Unit]Description=crewd — cell fabric daemonAfter=network.target
[Service]Type=simpleUser=youGroup=you# The claude shim path is resolved relative to this directory.WorkingDirectory=/path/to/mcp-crewd-rsExecStart=%h/.local/bin/crewd --config %h/.config/crewd/crewd.toml# IMPORTANT: the default systemd PATH does not include user-level bins.# Engine adapters spawn `codex` / `node` from the daemon's PATH:Environment="PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin"Restart=on-failureRestartSec=3
[Install]WantedBy=multi-user.target

Security model

  • Unix socket 0600 inside a 0700 runtime dir; bind refuses symlinks.
  • Kernel peer credentials checked at handshake (SO_PEERCRED on Linux/Android, getpeereid + LOCAL_PEERPID on macOS), then a per-cell token (file 0600).
  • Engine children run with an exact env allowlist — secrets are read from keys_env_path by the daemon and injected only into the child that needs them; they never appear in logs or error messages.
  • Append-only, hash-chained audit log (crew audit verify).
  • Honest failure states: crashed/orphaned turns are recovered at boot as interrupted / failed_unknown, never silently retried after engine acceptance.

Scope honesty: processes running under the same UID as the daemon can read the socket and token files — crewd separates cells, it is not a same-user privilege boundary. See THREAT_MODEL.md.

Platform

PlatformStatus
Linux (x86_64 / aarch64, gnu + musl)✅ prebuilt + CI-tested
Android / Termux (aarch64)✅ prebuilt (aarch64-linux-android), CI build-checked
macOS (Apple Silicon / Intel)✅ from source, CI-tested (getpeereid peer auth)
Windows❌ not supported (Unix sockets + peer credentials)

On Termux there is no systemd: run crewd under termux-services or a plain nohup crewd --config … &. On macOS use launchd or run it in a terminal.

Docs

Status

Pre-1.0 (v0.1.x): single-host fabric (UDS). Cross-host fabric, operator token CLI and warm engine reuse are on the roadmap.

License

Apache-2.0. See LICENSE.

來源:README.md,提交 4aca9ee

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.4最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分