# zoanthrope [Health: Active]

**Category:** 🤝 Agreements & Coordination  
**Repository:** https://github.com/spuentesp/zoanthrope  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/zoanthrope

## Description
Coordination relay for agent swarms: file claims, presence, postboard intentions, leases, audit.

## Tools
Capabilities this server exposes over MCP:

- **claim_files** — release` \
- **list_claims** — {ok, claims: [{path, agent, intent, claimed_at, purpose, held_by_stale, caller_stamps}]}
- **who_am_i** — {ok, agent_id, name, kind, last_seen, stale, claims, posts}
- **list_active_agents** — {ok, agents: [{agent_id, name, kind, last_seen, stale, claims_count}]}
- **register_agent** — {ok, agent_id, name, kind, last_seen}
- **post_intention** — {ok, post_id, post: {post_id, agent_id, title, files, note, status, created_at, updated_at}}
- **list_posts** — {ok, posts: [...]}` newest-updated first
- **update_post** — taken`\
- **remove_post** — {ok, post_id, removed: true}
- **rejoin_agent** — {ok, agent_id, claims_kept, claims_at_risk, view_epoch, board}
- **get_audit_log** — {ok, events: [{ts, agent, action, path?, purpose?}]}

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/spuentesp/zoanthrope), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
cargo build --release
```

2. Start the server:

```sh
./target/release/zoanthrope mcp
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/zoanthrope/readme_

