A

Agent Lease

MCP server · by Buggy1111

Developer Tools Python v0.2.0

Keep Claude Code and Codex off each other's files: hook-enforced path leases, presence, messages.

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

registry version 0.2.0

Python
uvx agent-lease-mcp

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

{
  "mcpServers": {
    "agent-lease-mcp": {
      "command": "uvx",
      "args": [
        "agent-lease-mcp"
      ],
      "env": {
        "AGENT_NAME": "<YOUR_AGENT_NAME>"
      }
    }
  }
}

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • AGENT_NAME required — This agent's name in the room, e.g. claude-code or codex. Must match the hooks.
  • AGENT_LEASE_DB — Path to the shared SQLite room (default ~/.agent-lease/room.db).

About this server

Distributed as Python, listed under Developer Tools. Review our MCP security guide before granting access to real data.

Frequently asked questions

How do I install Agent Lease?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is Agent Lease free to use?

The MCP server itself is free to install. The source is public on https://github.com/Buggy1111/agent-lease-mcp. Any third-party service it calls may require its own API key and account.

Which clients support Agent Lease?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/agent-lease-mcp.svg)](https://mcpnav.net/server/agent-lease-mcp/)

HTML

<a href="https://mcpnav.net/server/agent-lease-mcp/"><img src="https://mcpnav.net/badge/agent-lease-mcp.svg" alt="Listed on MCPNav" height="20"></a>