# Flatbread MCP server

> Share coding agent sessions as single links with automatic secret redaction and allow other agents to pull session history.

- Repository: https://github.com/flatbread-cli/flatbread
- Page: https://hostedmcp.org/servers/flatbread-cli/flatbread
- Transport: stdio
- Stars: 3
- Latest version: 0.9.8

## Install

### Claude Code

```sh
claude mcp add flatbread -- npx -y flatbread-cli
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "flatbread": {
      "command": "npx",
      "args": [
        "-y",
        "flatbread-cli"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "flatbread": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "flatbread-cli"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"flatbread","type":"stdio","command":"npx","args":["-y","flatbread-cli"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "flatbread": {
      "command": "npx",
      "args": [
        "-y",
        "flatbread-cli"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add flatbread -- npx -y flatbread-cli
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.flatbread]
command = "npx"
args = ["-y", "flatbread-cli"]
```

### Gemini CLI

```sh
gemini mcp add -s user flatbread npx -- -y flatbread-cli
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "flatbread": {
      "command": "npx",
      "args": [
        "-y",
        "flatbread-cli"
      ]
    }
  }
}
```

## FAQ

### How do I share a session?

You can say 'share this run' in your agent's chat or run 'flatbread share' in your terminal.

### Is my sensitive data safe when sharing?

Yes, keys, passwords, and personal details are automatically hidden before anything is uploaded.

### Which coding agents are supported?

Flatbread supports Claude Code, Codex, Cursor, OpenCode, Google Antigravity, Gemini CLI, Cline, and GitHub Copilot CLI.

### Can other agents use the shared data?

Yes, any agent can read the learnings from a run by using the command 'pull flatbread <id>'.
