Agent Lease
Enforces path leases between coding agents with hooks, shared presence, messages, task delivery, and audit history.
Install Agent Lease
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"agent-lease": {
"command": "uvx",
"args": [
"agent-lease-mcp"
],
"env": {
"AGENT_NAME": "YOUR_VALUE_HERE",
"AGENT_LEASE_DB": "YOUR_VALUE_HERE",
"AGENT_LEASE_TTL": "YOUR_VALUE_HERE",
"AGENT_LEASE_RETENTION_DAYS": "YOUR_VALUE_HERE",
"AGENT_LEASE_FAIL_CLOSED": "YOUR_VALUE_HERE",
"AGENT_LEASE_CODEX_THREAD": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
Automated check passed— started and listed 15 tools correctly ().
Overview
Use cases
- Prevent two coding agents from editing the same files
- Reserve a directory before running a multi-file build script
- Pass addressed tasks between Claude Code and Codex sessions
- Inspect who blocked an edit and review prior path activity
Key features
- Atomic file and directory leases with automatic expiry
- PreToolUse enforcement for edits and selected shell writes
- Shared presence, room messages, and addressed task delivery
- Automatic claims for free files and script execution
- SQLite-backed history and collision diagnostics
- CLI, optional web room, and agent wake-up support
Tools15
What Agent Lease lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
What it can do
From the 15 tools this server returned when we ran it.
Observed 2026-11-22 in an isolated sandbox. A description of reach, not a security audit.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 7d ago via OSV.dev · agent-lease-mcp (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How Agent Lease works
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 Agent Lease
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agent-lease)<a href="https://allmcps.com/mcp/agent-lease"><img src="https://allmcps.com/api/badge/agent-lease?style=directory" alt="Agent Lease on AllMCPs" /></a>