# agent-claim-mcp [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/vk0dev/agent-claim-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 325  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agent-claim-mcp

## Description
File-claim coordination for parallel AI coding agents: claim files before edits, no stomping.

## Tools
Capabilities this server exposes over MCP:

- **claim_files** — Create or refresh a local file-claim entry so parallel agents can see ownership before editing and avoid stomping the same worktree paths during active tasks. Conflict responses are explicit, so overlapping claims across separate sessions do not stay implicit or in-memory only.
- **release_claim** — Remove an existing claim owned by the current agent so finished, paused, or reassigned work stops blocking other agents from safely editing the same paths.
- **whose_claim** — Read the local ledger and explain whether a file path is free or currently claimed, including owner, task, note, and expiry metadata for safe coordination across separate sessions sharing the same worktree.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agent-claim-mcp": {
    "command": "npx",
    "args": ["-y","@vk0/agent-claim-mcp"]
  }
}
```

## Documentation

## What agent-claim-mcp MCP server does

The agent-claim-mcp MCP server provides a narrow coordination layer for coding agents that work in the same repository and filesystem view. Before editing, an agent can claim one or more paths. Other sessions can inspect those paths and see whether they are available or already owned.

The server is designed for collision prevention during active work. It does not route tasks, schedule agents, run queues, or provide a broader orchestration system. Its scope is limited to recording ownership, identifying conflicts, and removing claims when work is finished, paused, or reassigned.

Claims can carry an agent ID, task ID, note, expiry time, and normalized paths. This gives other agents enough context to decide whether a path is safe to edit or already involved in another task.

## How it works

The agent-claim-mcp MCP server stores coordination data in a local ledger on disk. Because sessions read and write that shared ledger, separate agents using the same worktree can observe each other's claims instead of keeping ownership only in process memory.

A claim request normalizes the supplied paths and checks for active ownership. If another agent already owns any requested path, the operation returns an explicit conflict and writes nothing. A successful claim returns the claimed paths, ledger version, and expiration time. Refreshing a claim allows active work to extend its lifetime.

The inspection tool reports whether each requested path is free or claimed. For claimed paths, it can return the owner, task, note, expiry, and claim ID. Release operations accept normalized paths or a claim ID, but only the current owner can remove an active claim. TTL expiry provides cleanup protection; it does not replace task ownership or human review.

## Setup and configuration

The published npm package is available as `@vk0/agent-claim-mcp`. A stdio MCP client can launch it with `npx`:

```json
{
  "mcpServers": {
    "agent-claim": {
      "command": "npx",
      "args": ["-y", "@vk0/agent-claim-mcp"]
    }
  }
}
```

Claude Desktop users must restart the application after changing its MCP configuration. For local development, build the repository with `npm ci` followed by `npm run build`, then point the client at the resulting `dist/server.js` using `node` and an absolute path.

Claims only line up when agents use the same repository root or compatible `cwd` values. The server has no documented environment variables required for operation.

## Tools and capabilities

The agent-claim-mcp MCP server exposes three tools:

- `claim_files` creates or refreshes ownership for a list of paths. Inputs include `agentId`, `taskId`, `paths`, `ttlSeconds`, an optional `note`, and `cwd`. Conflicts are returned explicitly.
- `release_claim` removes claims belonging to the current agent. It can target paths or a claim ID and reports released or missing paths.
- `whose_claim` reads ownership status for requested paths. The `includeExpired` option controls whether expired entries are included in inspection results.

Path normalization helps equivalent path forms resolve consistently, while ledger versions make state changes visible in tool responses.

## Limitations and notes

The agent-claim-mcp MCP server is local-first. It coordinates sessions that can access the same on-disk ledger, but it is not a hosted lock service and does not replicate claims across machines. Workflows requiring cross-host coordination, central audit policy, or mandatory approvals need another orchestration layer.

Using a TTL reduces stale claims, but expiration should not be treated as a complete ownership policy.

_Full upstream README: https://allmcps.com/mcp/agent-claim-mcp/readme_

