Zoanthrope logo

Zoanthrope

Coordinates agent file claims, presence, intentions, leases, rejoining, and audit events through MCP and a workspace-local registry.

Install Zoanthrope

Run the project’s own setup commands, in order.

Setup steps from the project

zoanthrope installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    cargo build --release
    
  2. 2. Start the server
    ./target/release/zoanthrope mcp
    

Overview

The zoanthrope MCP server coordinates collaborating agents around shared workspace files, tracking claims, presence, intentions, leases, rejoining, and audit events. It runs as a stdio JSON-RPC process and stores registry state in `.zoanthrope/state.json`, with edit leases under `.zoanthrope/locks/`. Reach for it when multiple agents may edit the same repository and need explicit ownership, conflict reporting, or a record of planned work. A companion CLI and Claude Code hooks provide claim, release, rejoin, status, and pre-edit guarding outside direct MCP calls.

Use cases

  • Coordinate concurrent agents editing one repository
  • Reserve files before applying automated changes
  • Publish planned work on a shared postboard
  • Restore agent presence after a restart
  • Inspect conflicts and recent coordination events

Key features

  • Read and edit file claims
  • Per-path filesystem leases
  • Agent presence and rejoin support
  • Shared intention postboard
  • Content fingerprint checks
  • Capped audit log

Tools11

What Zoanthrope lets your agent do. Expand a tool for its parameters.

Self-reported~170 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 45d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit1mo agoMost recent push to the default branch.
Tools exposed11Callable tools this server registers over MCP.

How Zoanthrope works

What the zoanthrope MCP server does

The zoanthrope MCP server coordinates agents working in the same workspace. It records which agent holds each file claim, whether that claim is for reading or editing, what the agent intends to do, and when the agent was last seen. Agents can also publish work intentions to a shared postboard, inspect other agents, rejoin after a restart, and read a bounded audit history.

Claims are designed to prevent conflicting work rather than silently resolve it. An edit claim conflicts with any other claim on the path. A read claim can coexist with other readers but conflicts with another agent's edit claim. A batch claim is all-or-nothing: if one path conflicts, none of the paths are granted. Conflicts identify the holder, path, intent, purpose, and whether the holder is stale.

How it works

The process exposes MCP tools over stdio JSON-RPC. Workspace state is kept in .zoanthrope/state.json, while edit claims also use per-path filesystem lease files in .zoanthrope/locks/. The lease layer helps prevent concurrent acquisition and detects stale lease files; its default lease timeout is 60 seconds and can be changed with ZOANTHROPE_LEASE_TTL_SECS.

A claim records a file fingerprint using modification time and size, plus a SHA-256 hash for files up to 256 KiB. Guarded writes are refused if the file changed after the claim, returning a stale-claim denial that requires the agent to reread and claim the file again. Claims are not automatically released when an agent becomes stale. Rejoining refreshes presence and attempts to restore the agent's own claims, but reports conflicts as claims at risk instead of taking files from another live lease holder.

Caller-defined stamps can be attached to claims as opaque name/value pairs. zoanthrope stores and returns these stamps, but the calling system is responsible for interpreting or verifying them.

Setup and configuration

Build the Rust binary and start the MCP process:

text
cargo build --release
./target/release/zoanthrope mcp

The process accepts one JSON-RPC message per line over standard input and writes responses over standard output. Agents can register an identity with register_agent, or supply an existing agent_id to calls that require one.

The command-line mirror supports claim, release, rejoin, and status. Without --workspace, it finds the workspace by walking upward from the current directory for .git; --workspace can select a directory explicitly. Exit code 0 indicates success, 1 indicates a conflict or ok: false, and 2 indicates a usage or I/O error.

Claude Code hooks can call the CLI before and after mutating tools. Set ZOANTHROPE_AGENT for each agent, then configure the claim guard, release guard, and watcher in the workspace's .claude/settings.json. The same hook wiring supports advisory and blocking modes; the runtime mode is selected per tool call.

Tools and capabilities

  • claim_files claims, releases, or lists paths with read/edit intent, purpose, and optional caller stamps.
  • list_claims shows current claims and whether their holders are stale.
  • register_agent, who_am_i, and list_active_agents manage and inspect agent presence.
  • post_intention, list_posts, update_post, and remove_post manage the shared intention board.
  • rejoin_agent refreshes presence and reports retained or at-risk claims.
  • get_audit_log returns recent coordination events, optionally filtered by time.

Limitations and notes

The zoanthrope MCP server does not force-release claims merely because an agent is stale; stale claims continue to block until explicitly released or otherwise handled by workspace policy. Read claims do not create filesystem leases. Caller stamps are stored but not validated by the server. Posts belong to their author: only the posting agent can modify or remove them.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Zoanthrope

zoanthrope is an MCP server that connects collaborating agents through shared workspace state and filesystem leases. Its main tools register agents, claim or release files, list conflicts, publish intentions, rejoin after interruptions, inspect active agents, and retrieve audit events over stdio JSON-RPC.

Build it from the repository with `cargo build --release`, then run `./target/release/zoanthrope mcp`. It communicates over stdio JSON-RPC and stores state in the workspace's `.zoanthrope` directory.

It refuses conflicting claims before work begins and takes a filesystem lease for granted edit claims. Edit claims conflict with every other claim on the path, while read claims can coexist with other reads. Conflicts identify the current holder and relevant claim details.

Yes. Claude Code hooks can invoke the CLI before and after mutating tools, using claim, release, and watch scripts. Set `ZOANTHROPE_AGENT` for each agent and configure the hooks in `.claude/settings.json`.

Calling `rejoin_agent` refreshes presence, reasserts the agent's own claims, republishes the board, and reports claims that are at risk. It does not take or release claims held by another agent.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewZoanthrope AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/zoanthrope?style=directory)](https://allmcps.com/mcp/zoanthrope)
HTML Embed
<a href="https://allmcps.com/mcp/zoanthrope"><img src="https://allmcps.com/api/badge/zoanthrope?style=directory" alt="Zoanthrope on AllMCPs" /></a>