内容
<p align="center">
<img src="docs/assets/logo.svg" width="100" alt="Kanban Board MCP" />
</p>
<h1 align="center">Kanban Board MCP</h1>
<p align="center">
A personal Kanban board with a polished React UI and a Python MCP server — built for AI agent integration.
</p>
<p align="center">
<img src="https://img.shields.io/badge/React-18-61DAFB?style=flat-square&logo=react&logoColor=white" alt="React" />
<img src="https://img.shields.io/badge/TypeScript-5-3178C6?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript" />
<img src="https://img.shields.io/badge/Vite-8-646CFF?style=flat-square&logo=vite&logoColor=white" alt="Vite" />
<img src="https://img.shields.io/badge/Python-3.12+-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python" />
<img src="https://img.shields.io/badge/FastAPI-0.135-009688?style=flat-square&logo=fastapi&logoColor=white" alt="FastAPI" />
<img src="https://img.shields.io/badge/MCP-1.27-FF6B35?style=flat-square" alt="MCP" />
<img src="https://img.shields.io/badge/SQLite-003B57?style=flat-square&logo=sqlite&logoColor=white" alt="SQLite" />
</p>
---
## Features
- **Board, List and Timeline** views with drag and drop, filters (type, priority, assignee), search, and **Review / Testing** statuses.
- **Rich ticket detail**: WYSIWYG Markdown description (tables, task lists, code, pasted or uploaded images), acceptance criteria, sub-tickets, comments, blocks and links, estimates, dates, assignees and "Done requires" guards.
- **Docs space** per project: a page tree with a WYSIWYG editor stored as Markdown, drafts, versions with diff and restore, `[[page#section]]` and ticket-key references with backlinks, and a Recycle Bin.
- **Test cases** with pass / fail / running state per ticket and child ticket.
- **Real git branches**: link a ticket to a branch, see its commit graph against `main`, check it out, and use git worktrees.
- **Per-ticket Workspace** (a scratch folder with a file manager) and **Debug Space** (a journal of attempts, blockers and fixes).
- **Activity log** of who changed what (you, an AI agent, or a named member), with filters.
- **Idea Space** for early ideas, assumptions and micro-thoughts, promoted to tickets when ready.
- **MCP server for AI agents**: 9 tools over stdio or HTTP, with clear descriptions, annotations and fix-it error messages.
- **Splash screen and loading states** on web and desktop, plus an update-required notice when the UI is too old for the server.
- **Local-first**: SQLite, no external services; also packaged as an Electron desktop app.
## What's Inside
| | |
|---|---|
| **UI** | React 18 + Vite + TypeScript, CSS Modules, drag-and-drop (`@dnd-kit`) |
| **Server** | Python, FastAPI, MCP (Model Context Protocol), SQLite via SQLModel |
| **Storage** | Local-first — SQLite, no external services |
## Screenshots
### Board View

### Ticket Detail — WYSIWYG Markdown with images
Write rich text (tables, task lists, code, pasted images); it is stored as plain Markdown.

### Test Cases
Track pass / fail / running per ticket, including child tickets, and optionally block *Done* until every case passes.

### Git Branches
Link a ticket to a real branch, see its commits against `main`, and check it out from the UI.

### List View

### Timeline / Gantt

## Quick Start
### UI (Frontend)
```bash
cd ui
npm install
npm run dev # http://localhost:5173
```
### MCP Server (Backend)
Requires Python 3.12+ and [uv](https://docs.astral.sh/uv/). The database is created and migrated automatically on first start.
```bash
cd server
uv sync
uv run uvicorn main:app --reload --port 8000
```
## MCP Tools
The server exposes **9 tools** for AI agents over MCP (22 with the Idea Space tools enabled). The write tools each cover one area and take an `action`; every action's parameters are listed in the tool description, and a wrong call is answered with what that action accepts. The code is the `server/kanban_mcp/` package: `tools/` (the 9 tools), `operations/` (one function per verb, grouped by area), `common.py`, `registry.py`, `instructions.py`.
| Tool | Read / write | What it does |
|---|---|---|
| `get_projects` | read | All projects, or one project with its members (`project_id`) |
| `list_tickets` | read | Compact, paginated summaries (`status`, `priority`, `q`, `limit`/`offset`; `detail=true` for full objects) |
| `get_ticket` | read | Everything about one ticket plus its 10 most recent activity entries (long texts shortened); `activity_limit=N` (0 = none, negative = the whole history in full), `activity_since=<ISO time>`, or `view='comments'` for just the discussion |
| `docs_read` | read | Docs page tree: `list`, `get`, `search` (full-text, with snippets), `versions`, `version` (optionally a diff), `recycle_bin`, `check_links` |
| `manage_project` | write | `create`, `update` (name, color, linked git repo, worktree defaults), `add_member`, `remove_member` |
| `manage_ticket` | write | `create` (with `parent_id` for a sub-ticket), `update` (fields, status moves, assignee, dates, "Done requires" guards, `clear_fields`), `delete`, `workspace` (the ticket's scratch folder), `block`, `unblock`, `link`, `unlink`, `link_doc`, `unlink_doc` |
| `ticket_items` | write | Lists inside a ticket, chosen with `item`: `comment` (add, update, delete, restore), `work_log` (the Debug Space journal), `criterion` (acceptance criteria), `sub_task` (checklist steps), `test_case` |
| `ticket_branches` | write | `add`, `update`, `delete`, `checkout`: real git branches when the project has a linked repo |
| `docs_write` | write | `create`, `update` (a stale `base_version` is rejected; optional `title` renames and rewrites `[[links]]`), `move`, `duplicate`, `delete` (to the Recycle Bin), `restore`, `restore_version`, `import` (a local `.md` file or folder) |
**Idea Space** (hidden from MCP for now: set `KANBAN_MCP_IDEA_TOOLS=1` to expose these 13 tools; the web UI and REST API are unaffected)
- `list_idea_tickets`, `get_idea_ticket`, `get_idea_activity_trail`, `create_idea_ticket`, `update_idea_ticket`, `update_idea_status`, `promote_idea_to_ticket`, `delete_idea_ticket`
- `add_assumption`, `update_assumption_status`, `delete_assumption`, `add_microthought`, `delete_microthought`
**Conventions agents can rely on**
- The server sends usage instructions on connect (IDs, statuses, flow), and every tool carries read-only / destructive annotations (a write tool that has a `delete` action is marked destructive as a whole).
- Failures are real tool errors (`isError`) whose message says how to fix the call (and lists the valid ids); nothing fails silently.
- Tools that change a ticket return it without its activity log (large); sub-items can be addressed by id, test-case code (`TC-2`) or branch name.
- Omitted optional arguments mean "unchanged"; use `clear_fields` (on `manage_ticket` `update`) to empty a field. Changes are attributed to the AI agent in the Activity tab.
## Connecting AI Agents
### Easiest — Settings → MCP integrations
Open **Settings** in the app and use **MCP integrations** to install the server into **Claude Code** (runs `claude mcp add` in the User, Project or Local scope) or **Antigravity** (merges a `kanban` entry into `~/.gemini/config/mcp_config.json` or `.agents/mcp_config.json`). Each row also offers Copy command / Copy JSON, Test connection and Remove, and only ever touches the `kanban` entry. The manual options below do the same thing by hand.
### Option 1 — Stdio (recommended for VS Code / Claude Desktop)
The server launches as a subprocess — no manual startup needed. The database schema is created automatically on first run.
Add to VS Code `mcp.json` or Claude Desktop config:
```json
{
"servers": {
"kanban": {
"type": "stdio",
"command": "uv",
"args": ["--directory", "/path/to/kanban-board-mcp/server", "run", "mcp_stdio.py"]
}
}
}
```
### Option 2 — HTTP (when running the full server)
Start the server first:
```bash
cd server && uv run uvicorn main:app --port 8000
```
Then connect any MCP-compatible client to `http://localhost:8000/mcp/` (note the trailing slash — the mount only matches with it).
## Desktop App Release Status
The desktop app packages the full stack (React UI + FastAPI server + MCP stdio) into a single installable application via Electron.
| Platform | Status | Artifact |
|---|---|---|
| **macOS** (x64 + arm64) | Available | DMG — see [v1.4.5 release](https://github.com/iamcaominhtien/kanban-board-mcp/releases/tag/v1.4.5) |
| **Windows** (NSIS) | Not yet uploaded | Build from source: `./build-desktop.sh` |
| **Linux** | Not yet supported | — |
> **macOS note:** the app is not notarized — right-click → Open on first launch.
## More Docs
- [Server README](server/README.md)
- [UI README](ui/README.md)
- [Architecture](docs/arch/backend-architecture.md)
- [Changelog](CHANGELOG.md)
MCP 配置
以下是此 MCP Server 的配置信息,可直接复制到 Cursor 或其他 MCP 客户端中使用。
mcp.json
连接信息
猜你喜欢
everything-claude-code
完整的 Claude Code 配置集合 - agents、skills、hooks、commands、rules、MCPs。来自 Anthropic...
MarkItDown
将文件和办公文档转换为Markdown的Python工具。
awesome-claude-skills
一份精心整理的 Claude Skills、资源和工具列表,用于定制 Claude AI 工作流程
antigravity-awesome-skills
Claude Code/Antigravity/Cursor 的 130 多个 Agentic Skills 终极合集。 经过实战检验、高性能的 AI...
agentic-awesome-skills
适用于 Claude Code、Cursor、Codex CLI、Autohand Code、Gemini CLI、Antigravity 等的...
claude-context-mode
claude-context-mode插件减少MCP上下文膨胀,节省高达99%的tokens。