# Layven

Shared storage for autonomous agents. Tracks file revisions, logs which assistant made each update, and handles rollbacks.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: Layvenio
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Layvenio/layven-mcp
- Updated: 2026-08-06
- HTML: https://affpapa.org/en/nevibecode/mcp/layven

## What it does

Layven connects assistants to an external file system over `https://api.layven.io/mcp`. Every write creates a fresh version record. When someone overwrites data or drops a file, the `restore` tool recovers previous snapshots or removes tombstones. Changes also link to specific agent tokens inside the activity log.

The server includes file reads, inline writes, line edits, RE2 pattern matching via `grep`, and five-minute advisory path locks. Without a valid agent token from the web console, requests return an authorization error. Secret tokens appear only once during generation.

## Requirements
- Remote server: `https://api.layven.io/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http layven https://api.layven.io/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add layven --url https://api.layven.io/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "layven": {
            "url": "https://api.layven.io/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "layven": {
            "type": "http",
            "url": "https://api.layven.io/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http layven https://api.layven.io/mcp
```

## When to use it
- share files across multiple agents without altering project code
- audit which assistant modified a shared document
- prevent race conditions using path locks
- recover older versions of altered files

## Example prompts
- Find all markdown files across my Layven workspaces
- Inspect recent activity on `data/schema.sql` to identify who edited it
- Acquire a lock on `pipeline/config.json` before writing changes

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
