File ownership coordination for parallel AI agents sharing one worktree. Claim paths before edits, detect collisions, release when done. 3 tools, one local JSON ledger. No orchestration platform.
Runs through npx — nothing to install globally, nothing
leaves your machine.
npx -y @vk0/agent-claim-mcp
Use this MCP server when your workflow already has task routing but still needs a simple lock-like primitive at edit time:
coder-A claims src/foo.ts, coder-B collides and gets an
explicit conflict instead of
silently overwriting, coder-A releases when done:
Pick your client. Everything runs through npx — nothing
to install globally.
{
"mcpServers": {
"agent-claim": {
"command": "npx",
"args": ["-y", "@vk0/agent-claim-mcp"]
}
}
}
claude mcp add --transport stdio agent-claim -- npx -y @vk0/agent-claim-mcp
{
"mcpServers": {
"agent-claim": {
"command": "npx",
"args": ["-y", "@vk0/agent-claim-mcp"]
}
}
}
{
"mcpServers": {
"agent-claim": {
"command": "npx",
"args": ["-y", "@vk0/agent-claim-mcp"],
"disabled": false,
"alwaysAllow": []
}
}
}
Create or refresh a file-claim entry so parallel agents see
ownership before editing. All-or-nothing: any conflict returns
ok: false with the exact overlapping paths and
owners, and writes nothing.
Read the ledger and explain whether a path is free or claimed — owner agent, task, note, and TTL expiry metadata for safe coordination across separate sessions.
Remove a claim you own, by claimId or normalized
paths, so finished or reassigned work stops blocking other
agents. Only the current owner can release an active claim.
agent A ── claim_files ──┐
│ ┌──────────────────────────┐
agent B ── claim_files ──┼────▶ │ MCP server (3 tools) │
│ │ path normalization │
agent C ── whose_claim ──┘ │ TTL expiry + pruning │
└────────────┬─────────────┘
│ atomic writes
▼
~/.agent-claim-mcp/ledger.json
~/.agent-claim-mcp/ledger.json.
Local-first by design: it coordinates sessions sharing one filesystem view. It is not a hosted lock service, queue, or scheduler — pair it with your own tasking layer for anything cross-host.