The kanban for small dev teams and their AI agents: GitHub in, Claude and Cursor on top, one container to self-host.
- Your tasks live next to your code. A GitHub App turns issues and pull requests into tasks, and edits on a linked task go back to the issue.
- AI assistants are first-class users. Claude Code, Claude Desktop, Cursor and other MCP clients sign in over OAuth and work on tasks with the same permissions as a teammate. The in-app chat asks before it changes anything.
- It is small to run. One Bun container serves the API, realtime updates, the MCP server and the web app. Postgres is the only other service: no Redis, no queue server, no websocket server.
- Kanban boards: drag and drop, custom states, priorities, labels, due dates, list view.
- Sub-tasks and relations: parent/child tasks, plus
blocks,relatesandduplicateslinks. - Bulk actions: select up to 200 tasks and change state, priority, assignees or labels, delete or restore them, in one go.
- Inbox: notifications for assignments, @mentions, comments, status changes and due dates.
- Search: ⌘K command palette with Postgres full-text search over titles and descriptions.
- History: every change to a task is recorded and shown on the task.
- Trash: deleted tasks can be restored for 30 days, then they are purged.
- Smart Views: saved filters (assignee, state, labels, dates,
{{current_user}}, relative dates), shareable with teammates or publicly through a link with an optional password. - GitHub App, two-way: issues and PRs sync into tasks; task edits and comments sync back to the linked issue.
- Slack: notifications in a channel per project (FlowTask → Slack only).
- Outgoing webhooks: task and comment events posted to your URL, HMAC-SHA256 signed.
- MCP server: Claude Code, Claude Desktop, Cursor and other MCP clients connect over OAuth and get 19 task tools.
- In-app AI chat: an assistant that uses the same tools with your workspace's OpenRouter key (OpenAI, Anthropic and Google keys work too); it asks before changing anything.
- Realtime: changes appear live in every open tab (Server-Sent Events).
- Keyboard first: shortcuts everywhere; press
?for the list. - Workspaces and roles: owner, admin and member roles, with per-project access (everyone, selected members, or admins only).
The people, projects and tasks in these screenshots are made up (see Demo data).
Prerequisites: Bun 1.3 or newer, Docker (for Postgres), and a GitHub or Google OAuth app for signing in.
git clone https://github.com/flowful-ai/tasksflow.git
cd tasksflow
# 1. Postgres on 127.0.0.1:5432 (user, password and database: flowtask)
docker compose up -d
# 2. Dependencies
bun install
# 3. Environment
cp .env.example .env
# - BETTER_AUTH_SECRET and API_KEY_ENCRYPTION_KEY: openssl rand -hex 32
# - a sign-in provider: GITHUB_CLIENT_ID/GITHUB_CLIENT_SECRET (and
# VITE_GITHUB_CLIENT_ID with the same client id), or the Google pair
# 4. API on :3001 (applies migrations on boot) and web app on :3000
bun run devOpen http://localhost:3000. The web dev server proxies /api to the API.
Sign-up is through GitHub or Google only. For local GitHub sign-in, create an OAuth app at https://github.com/settings/developers with the callback URL http://localhost:3001/api/auth/callback/github (Google: http://localhost:3001/api/auth/callback/google). The first account becomes the app manager unless APP_MANAGER_EMAILS is set.
To try FlowTask without an OAuth app, or to get a populated board, seed a fictional team into a fresh local database:
bun --env-file=.env apps/api/scripts/seed-demo.tsIt creates a workspace with two projects, tasks, comments, notifications and a Smart View, and prints a session cookie for the demo owner. Set it as better-auth.session_token on localhost in your browser's developer tools and reload. The script refuses to run against a database that is not on localhost.
bun run dev # API + web app
bun run build # web app, then API bundle
bun run typecheck
bun run lint
bun run format:check
bun run test # database suites skip without TEST_DATABASE_URL
bun run test:integration # with TEST_DATABASE_URL set (see Contributing below)
bun run db:generate # new migration after editing apps/api/src/db/schema.ts
bun run db:migrate # apply migrations
bun run db:studio # Drizzle StudioThe MCP endpoint is https://<your-domain>/api/mcp (Streamable HTTP; /api/mcp/sse is an alias for older configurations). There are no API tokens to copy: the client registers itself, opens a browser window, and you approve access.
Claude Code
claude mcp add --transport http flowtask https://<your-domain>/api/mcpThen run /mcp in Claude Code and choose to authenticate.
Claude Desktop: Settings → Connectors → Add custom connector, URL https://<your-domain>/api/mcp. Claude connects from Anthropic's servers, so the URL must be reachable from the internet.
Cursor: add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"flowtask": { "url": "https://<your-domain>/api/mcp" }
}
}What happens on connect
- The client reads
/.well-known/oauth-protected-resource/api/mcpand/.well-known/oauth-authorization-server, then registers withPOST /api/mcp/oauth/register. - Your browser opens the FlowTask consent page (sign in first if needed). Pick the workspace and the tools to grant. Only workspace owners and admins can approve.
- The client receives a 15-minute access token and a 30-day rotating refresh token, bound to this server's MCP resource.
Owners and admins can see, narrow and revoke connections under Settings → MCP Connections. Details, the tool list and scopes: docs/mcp.md.
Production is one image (apps/api/Dockerfile: API bundle, built SPA and migrations) plus Postgres, described in docker-compose.prod.yml. The reference setup is Dokploy: route your domain to tasksflow-api on port 3001, set the environment, deploy. Migrations run on boot.
The production compose file refuses to start without POSTGRES_PASSWORD, BETTER_AUTH_SECRET, BETTER_AUTH_URL and API_KEY_ENCRYPTION_KEY.
- docs/deploy.md: Dokploy deployment, health checks, scaling, shutdown.
- docs/configuration.md: every environment variable.
- docs/integrations.md: creating the GitHub App and the Slack app.
- docs/backup-restore.md: backing up from the host and a restore drill.
| Layer | Technology |
|---|---|
| Runtime | Bun |
| Frontend | React, TypeScript, Vite, Tailwind CSS |
| Backend | Hono on Bun |
| Database | PostgreSQL 16 with Drizzle ORM |
| Jobs, realtime | Postgres (job queue table, LISTEN/NOTIFY to SSE) |
| Authentication | Better Auth (GitHub and Google sign-in) |
| AI | MCP (Streamable HTTP), Vercel AI SDK, OpenRouter |
- docs/architecture.md: how requests, events, jobs and realtime fit together.
- docs/api.md: every HTTP endpoint.
- docs/mcp.md: MCP tools, scopes and security.
- docs/configuration.md and docs/integrations.md: environment variables, GitHub App and Slack app setup.
- CHANGELOG.md and SECURITY.md.
- Fork the repository and create a branch.
- Read AGENTS.md and CLAUDE.md: layout, conventions and the database rules (schema changes go through
bun run db:generate). - Before opening a pull request, run
bun run format:check,bun run lint,bun run typecheckandbun run test. For database code, also run the integration suites against a scratch database:createdb flowtask_testin the dev Postgres, thenTEST_DATABASE_URL=postgresql://flowtask:flowtask@localhost:5432/flowtask_test bun run test:integration. - Open a pull request against
main. CI runs format, lint, typecheck, unit and integration tests, a migration drift check, the build, a dependency audit and the Docker build.
Report security issues privately: see SECURITY.md.
MIT License. See LICENSE for details.




