Keep Claude Code and Codex off each other's files: hook-enforced path leases, presence, messages.
registry version 0.2.0
Python
uvx agent-lease-mcpPython
uvx agent-lease-mcp==0.2.0
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>"
}
}
}
}{
"mcpServers": {
"agent-lease-mcp": {
"command": "uvx",
"args": [
"agent-lease-mcp==0.2.0"
],
"env": {
"AGENT_NAME": "<YOUR_AGENT_NAME>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env AGENT_NAME=<YOUR_AGENT_NAME> agent-lease-mcp -- uvx agent-lease-mcp
claude mcp add --env AGENT_NAME=<YOUR_AGENT_NAME> agent-lease-mcp -- uvx agent-lease-mcp==0.2.0
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"agent-lease-mcp": {
"command": "uvx",
"args": [
"agent-lease-mcp"
],
"env": {
"AGENT_NAME": "<YOUR_AGENT_NAME>"
}
}
}
}{
"mcpServers": {
"agent-lease-mcp": {
"command": "uvx",
"args": [
"agent-lease-mcp==0.2.0"
],
"env": {
"AGENT_NAME": "<YOUR_AGENT_NAME>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"agent-lease-mcp": {
"command": "uvx",
"args": [
"agent-lease-mcp"
],
"env": {
"AGENT_NAME": "<YOUR_AGENT_NAME>"
}
}
}
}{
"servers": {
"agent-lease-mcp": {
"command": "uvx",
"args": [
"agent-lease-mcp==0.2.0"
],
"env": {
"AGENT_NAME": "<YOUR_AGENT_NAME>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"agent-lease-mcp": {
"command": "uvx",
"args": [
"agent-lease-mcp"
],
"env": {
"AGENT_NAME": "<YOUR_AGENT_NAME>"
}
}
}
}{
"mcpServers": {
"agent-lease-mcp": {
"command": "uvx",
"args": [
"agent-lease-mcp==0.2.0"
],
"env": {
"AGENT_NAME": "<YOUR_AGENT_NAME>"
}
}
}
}Format verified against the official Windsurf docs ↗.
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).Distributed as Python, listed under Developer Tools. Review our MCP security guide before granting access to real data.
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.
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.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](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>