# FlowStateV1 1

> Development memory that flows between sessions. An MCP server that gives Claude persistent memory about your projects.

- **Type:** MCP server
- **Install:** `agentstack add mcp-dialectforge-flowstatev1-1`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dialectforge](https://agentstack.voostack.com/s/dialectforge)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dialectforge](https://github.com/dialectforge)
- **Source:** https://github.com/dialectforge/FlowStateV1.1

## Install

```sh
agentstack add mcp-dialectforge-flowstatev1-1
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# FlowState

**Development memory that flows between sessions.**

FlowState is an open-source development memory system that helps developers maintain context across coding sessions. It tracks your projects, problems, solutions, and learnings so you never lose your train of thought — even when switching between projects or picking up work days later.

FlowState works as an **MCP server** that integrates directly with Claude Desktop, giving Claude persistent memory about your projects. It also includes an optional **desktop GUI** built with Tauri + React for visual project management.

---

## Features

- **Project tracking** — organize work into projects, components, and todos
- **Problem/solution logging** — track bugs, attempted fixes, and what actually worked
- **Learnings capture** — save insights, gotchas, and best practices as you discover them
- **Session continuity** — Claude picks up exactly where you left off
- **Git sync** — sync your development memory across machines
- **File attachments** — attach relevant files to projects and problems
- **Search** — find anything across all your projects
- **Desktop GUI** — visual dashboard, kanban board, timeline, and more (optional)

## How It Works

FlowState runs as an MCP (Model Context Protocol) server. When connected to Claude Desktop, Claude can read and write to your local FlowState database. This means Claude remembers your projects, what you were working on, what problems you've solved, and lessons learned — across every conversation.

Your data is stored locally in a SQLite database on your machine. Nothing is sent to any external service.

---

## Quick Start (MCP Server Only)

This is the fastest way to get FlowState working with Claude Desktop. No GUI needed.

### Prerequisites

- Python 3.11+
- Claude Desktop
- `pip` package manager

### 1. Clone the repo

```bash
git clone https://github.com/dialectforge/FlowStateV1.1.git
cd FlowStateV1.1
```

### 2. Install dependencies

```bash
cd mcp-server
pip install -r requirements.txt
```

### 3. Configure Claude Desktop

Open your Claude Desktop config file:

- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
- **Linux:** `~/.config/Claude/claude_desktop_config.json`

Add FlowState to your `mcpServers`:

```json
{
  "mcpServers": {
    "flowstate": {
      "command": "python3",
      "args": ["-m", "flowstate.server"],
      "env": {
        "PYTHONPATH": "/path/to/FlowState/mcp-server"
      }
    }
  }
}
```

Replace `/path/to/FlowState/mcp-server` with the actual path to where you cloned the repo.

### 4. Restart Claude Desktop

After restarting, Claude will have access to FlowState's 21 tools. Try asking Claude:

> "Create a new FlowState project called 'My App' and describe it as a todo list application."

---

## MCP Tools Reference

FlowState provides 21 consolidated tools (reduced from 79 in earlier versions):

| Tool | Description |
|------|-------------|
| `list_projects` | List all projects |
| `create_project` | Create a new project |
| `update_project` | Update project details |
| `get_context` | Get full project context (the core tool — gives Claude everything it needs) |
| `create_component` | Add a component to a project |
| `list_components` | List project components |
| `update_component` | Update a component |
| `log_learning` | Capture an insight or lesson learned |
| `get_learnings` | Retrieve learnings |
| `log_change` | Record a change to a component |
| `get_recent_changes` | See what changed recently |
| `search` | Search across all content |
| `problem` | Log, list, solve, or view problem trees |
| `attempt` | Log solution attempts and their outcomes |
| `todo` | Add, update, or list todos |
| `session` | Manage work sessions and conversations |
| `file` | Attach, list, remove, or search files |
| `git` | Init, status, sync, set remote, clone, history |
| `variable` | Store project variables (servers, config, endpoints) |
| `method` | Document project methods (auth flows, deployment steps) |
| `self_improve` | Claude's skill learning and session state |

### Key Workflow

The most important tool is `get_context`. At the start of any conversation about a project, Claude calls this to load everything it needs — components, open problems, recent changes, todos, and learnings. This is what gives Claude "memory" between sessions.

---

## Git Sync (Optional)

FlowState can sync your database between machines using Git.

### Setup

1. Create a **private** GitHub repo (e.g., `flowstate-data`)

2. Initialize and connect:
```
# Through Claude — just ask:
"Initialize FlowState git and set the remote to git@github.com:username/flowstate-data.git"
```

Or use the MCP tools directly: `git init` → `git set_remote` → `git sync`

3. On your other machine, clone the repo to the FlowState data directory:
   - **macOS:** `~/Library/Application Support/flowstate/`
   - **Windows:** `%LOCALAPPDATA%/flowstate/`
   - **Linux:** `~/.local/share/flowstate/`

### Syncing

Ask Claude to run `git sync` at any time, or call it through the MCP tool. It commits changes, pulls from remote (with rebase), and pushes.

---

## Desktop GUI (Optional)

FlowState includes a Tauri + React desktop app with visual views for managing your projects.

### Views

- **Dashboard** — project overview with stats
- **Tree View** — hierarchical component explorer
- **Kanban Board** — drag-and-drop task management
- **Timeline** — chronological change history
- **Search Panel** — full-text search across everything
- **Decision Tree** — problem/solution visualization
- **Story Mode** — narrative view of your project journey
- **Architecture Diagram** — visual component relationships
- **Files View** — manage file attachments
- **Quick Capture** — rapid entry for problems, todos, and learnings

### Building the GUI

Requires Node.js 18+ and Rust (for Tauri).

```bash
cd gui
npm install
npm run tauri dev    # Development
npm run tauri build  # Production build
```

---

## Database

FlowState uses SQLite. Your database is stored at:

- **macOS:** `~/Library/Application Support/flowstate/flowstate.db`
- **Windows:** `%LOCALAPPDATA%/flowstate/flowstate.db`
- **Linux:** `~/.local/share/flowstate/`

The database is created automatically on first run. The schema is in `database/schema.sql`.

---

## Project Structure

```
FlowState/
├── mcp-server/              # MCP server (Python)
│   ├── flowstate/
│   │   ├── server.py        # MCP server with 21 tool definitions
│   │   ├── database.py      # SQLite operations
│   │   ├── models.py        # Pydantic models
│   │   └── tools/           # Tool implementations
│   │       ├── core.py      # Projects, components, search
│   │       ├── todos.py     # Todo management
│   │       ├── problems.py  # Problem tracking
│   │       ├── learning.py  # Learnings and skills
│   │       ├── sessions.py  # Session management
│   │       ├── git_ops.py   # Git sync operations
│   │       ├── files.py     # File attachments
│   │       ├── variables.py # Project variables/methods
│   │       └── ...
│   ├── requirements.txt
│   └── pyproject.toml
├── gui/                     # Desktop GUI (Tauri + React)
│   ├── src/                 # React frontend
│   └── src-tauri/           # Rust backend
├── database/
│   └── schema.sql           # Database schema
├── scripts/                 # Utility scripts
│   ├── mcp-switch.py        # MCP server toggle utility
│   └── mcp-toggle           # Quick toggle wrapper
└── docs/                    # Build logs and notes
```

---

## Troubleshooting

**Claude can't find FlowState tools:**
Make sure `PYTHONPATH` in your Claude Desktop config points to the `mcp-server` directory (not the repo root). Restart Claude Desktop after changing the config.

**"Module not found" errors:**
Install dependencies: `pip install mcp pydantic`

**Database not created:**
FlowState creates the database automatically on first use. Make sure the data directory is writable.

**Claude Desktop ignores `cwd`:**
This is a known issue. Use `PYTHONPATH` in the `env` config instead of `cwd`.

---

## License

MIT License. See LICENSE for details.

## Contact

Questions, feedback, or ideas? Reach out at **john@dialectforge.com**

Built by John Martin & Claude.

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dialectforge](https://github.com/dialectforge)
- **Source:** [dialectforge/FlowStateV1.1](https://github.com/dialectforge/FlowStateV1.1)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-dialectforge-flowstatev1-1
- Seller: https://agentstack.voostack.com/s/dialectforge
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
