# jandoer0/mcp-todo architecture

> Architecture diagram of the GitHub repository jandoer0/mcp-todo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jandoer0/mcp-todo
- Repository: https://github.com/jandoer0/mcp-todo

## Overview

OmniTask is a multi-user kanban task manager with a React web interface, FastAPI REST backend, and an MCP interface for AI agents. A user signs in, selects a board, manages lists and tasks, and sees summaries and budget totals; agents can perform task operations through MCP using the shared task service. The backend also supports per-board outgoing webhooks, currencies, recurring-task history, and administration. Edges reflect explicit README statements or shown imports/calls; some capability paths are documented but their implementation was not sampled, so those links are cited to the README.

Main entry points: [`backend/app/main.py`](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/main.py) (HTTP application), [`frontend/src/App.jsx`](https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/App.jsx) (Application UI), [`backend/app/services/task_service.py`](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/task_service.py) (Task lifecycle), [`backend/app/services/currency_service.py`](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/currency_service.py) (Currency conversion)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app_ui["Application UI<br/>[App.jsx]"]
  node_auth_ui["Authentication UI<br/>[Login.jsx]"]
  node_board_ui["Board and task UI<br/>[Board.jsx]"]
  node_task_form["Task editor<br/>[TaskForm.jsx]"]
  node_lists_ui["List manager<br/>[ListsManager.jsx]"]
  node_currency_ui["Currency manager"]
  node_admin_ui["Administration UI<br/>[AdminPanel.jsx]"]
  node_api_client["API client<br/>[client.js]"]
end

subgraph group_api["API and access"]
  node_fastapi["HTTP application<br/>[main.py]"]
  node_auth_routes["Authentication routes<br/>[auth.py]"]
  node_board_routes["Board and webhook routes<br/>[boards.py]"]
  node_task_routes["Task routes<br/>[tasks.py]"]
  node_mcp_routes["MCP tools<br/>[mcp.py]"]
  node_list_routes["List routes<br/>[lists.py]"]
  node_tag_routes["Tag routes<br/>[tags.py]"]
  node_currency_routes["Currency routes<br/>[currencies.py]"]
  node_summary_routes["Board summary<br/>[summary.py]"]
  node_admin_routes["Admin routes<br/>[admin.py]"]
  node_auth_core["JWT and identity<br/>[auth.py]"]
end

subgraph group_domain["Task and board domain"]
  node_board_rules["Board and list rules<br/>[board.py]"]
  node_models["Domain records<br/>[models.py]"]
end

subgraph group_services["Business services"]
  node_task_service["Task lifecycle<br/>[task_service.py]"]
  node_currency_service["Currency conversion"]
  node_notifications["Webhook notifications"]
  node_stats["Server statistics<br/>[server_stats.py]"]
end

subgraph group_state["Persistence and settings"]
  node_db[("SQL database<br/>[db.py]")]
  node_settings["Site settings<br/>[site_settings.py]"]
end

node_user(("User"))
node_agent(("AI agent"))
node_webhook_sink(("Webhook receiver"))
node_external_currency(("Currency rates"))

node_user -->|"uses"| node_app_ui
node_agent -->|"calls tools"| node_mcp_routes
node_app_ui -->|"renders"| node_auth_ui
node_app_ui -->|"renders"| node_board_ui
node_app_ui -->|"renders"| node_task_form
node_app_ui -->|"renders"| node_lists_ui
node_app_ui -->|"renders"| node_currency_ui
node_app_ui -->|"renders"| node_admin_ui
node_app_ui -->|"calls"| node_api_client
node_api_client -->|"HTTP requests"| node_fastapi
node_fastapi -->|"mounts"| node_auth_routes
node_fastapi -->|"mounts"| node_board_routes
node_fastapi -->|"mounts"| node_task_routes
node_fastapi -->|"mounts"| node_mcp_routes
node_fastapi -->|"mounts"| node_list_routes
node_fastapi -->|"mounts"| node_tag_routes
node_fastapi -->|"mounts"| node_currency_routes
node_fastapi -->|"mounts"| node_summary_routes
node_fastapi -->|"mounts"| node_admin_routes
node_auth_routes -->|"authenticates"| node_auth_core
node_task_routes -->|"delegates"| node_task_service
node_mcp_routes -->|"delegates"| node_task_service
node_board_routes -->|"uses"| node_task_service
node_board_routes -->|"dispatches tests"| node_notifications
node_list_routes -->|"uses"| node_board_rules
node_tag_routes -->|"uses"| node_board_rules
node_task_service -->|"resolves lists"| node_board_rules
node_task_service -->|"dispatches events"| node_notifications
node_task_service -->|"uses"| node_currency_service
node_currency_routes -->|"delegates"| node_currency_service
node_board_routes -->|"calculates budget"| node_currency_service
node_mcp_routes -->|"calculates budget"| node_currency_service
node_admin_routes -->|"reads statistics"| node_stats
node_task_service -->|"reads and writes"| node_models
node_currency_service -->|"reads and writes"| node_models
node_notifications -->|"sends events"| node_webhook_sink
node_notifications -->|"reads policy"| node_settings
node_admin_routes -->|"updates settings"| node_settings
node_fastapi -->|"initializes sessions"| node_db
node_db -->|"persists"| node_models
node_external_currency -.->|"sets rates"| node_currency_ui

click node_app_ui "https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/App.jsx"
click node_auth_ui "https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/Login.jsx"
click node_board_ui "https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/Board.jsx"
click node_task_form "https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/TaskForm.jsx"
click node_lists_ui "https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/ListsManager.jsx"
click node_currency_ui "https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/CurrencyManager.jsx"
click node_admin_ui "https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/AdminPanel.jsx"
click node_api_client "https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/api/client.js"
click node_fastapi "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/main.py"
click node_auth_routes "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/auth.py"
click node_board_routes "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/boards.py"
click node_task_routes "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/tasks.py"
click node_mcp_routes "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/mcp.py"
click node_list_routes "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/lists.py"
click node_tag_routes "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/tags.py"
click node_currency_routes "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/currencies.py"
click node_summary_routes "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/summary.py"
click node_admin_routes "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/admin.py"
click node_auth_core "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/auth.py"
click node_task_service "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/task_service.py"
click node_board_rules "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/board.py"
click node_currency_service "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/currency_service.py"
click node_notifications "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/notification_service.py"
click node_stats "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/server_stats.py"
click node_models "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/models.py"
click node_db "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/db.py"
click node_settings "https://github.com/jandoer0/mcp-todo/blob/master/backend/app/site_settings.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_ui,node_auth_ui,node_board_ui,node_task_form,node_lists_ui,node_currency_ui,node_admin_ui,node_api_client,node_user toneBlue
class node_fastapi,node_auth_routes,node_board_routes,node_task_routes,node_mcp_routes,node_list_routes,node_tag_routes,node_currency_routes,node_summary_routes,node_admin_routes,node_auth_core toneAmber
class node_board_rules,node_models,node_webhook_sink toneMint
class node_task_service,node_currency_service,node_notifications,node_stats toneRose
class node_db,node_settings,node_agent,node_external_currency toneIndigo
```

## Components

### Web application

- [Application UI](https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Authentication UI](https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/Login.jsx): `frontend/src/components/Login.jsx`
- [Board and task UI](https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/Board.jsx): `frontend/src/components/Board.jsx`
- [Task editor](https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/TaskForm.jsx): `frontend/src/components/TaskForm.jsx`
- [List manager](https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/ListsManager.jsx): `frontend/src/components/ListsManager.jsx`
- [Currency manager](https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/CurrencyManager.jsx): `frontend/src/components/CurrencyManager.jsx`
- [Administration UI](https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/components/AdminPanel.jsx): `frontend/src/components/AdminPanel.jsx`
- [API client](https://github.com/jandoer0/mcp-todo/blob/master/frontend/src/api/client.js): `frontend/src/api/client.js`

### API and access

- [HTTP application](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/main.py): `backend/app/main.py`
- [Authentication routes](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/auth.py): `backend/app/routers/auth.py`
- [Board and webhook routes](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/boards.py): `backend/app/routers/boards.py`
- [Task routes](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/tasks.py): `backend/app/routers/tasks.py`
- [MCP tools](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/mcp.py): `backend/app/routers/mcp.py`
- [List routes](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/lists.py): `backend/app/routers/lists.py`
- [Tag routes](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/tags.py): `backend/app/routers/tags.py`
- [Currency routes](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/currencies.py): `backend/app/routers/currencies.py`
- [Board summary](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/summary.py): `backend/app/routers/summary.py`
- [Admin routes](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/routers/admin.py): `backend/app/routers/admin.py`
- [JWT and identity](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/auth.py): `backend/app/auth.py`

### Task and board domain

- [Board and list rules](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/board.py): `backend/app/board.py`
- [Domain records](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/models.py): `backend/app/models.py`

### Business services

- [Task lifecycle](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/task_service.py): `backend/app/services/task_service.py`
- [Currency conversion](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/currency_service.py): `backend/app/services/currency_service.py`
- [Webhook notifications](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/notification_service.py): `backend/app/services/notification_service.py`
- [Server statistics](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/services/server_stats.py): `backend/app/services/server_stats.py`

### Persistence and settings

- [SQL database](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/db.py): `backend/app/db.py`
- [Site settings](https://github.com/jandoer0/mcp-todo/blob/master/backend/app/site_settings.py): `backend/app/site_settings.py`

### Other components

- **User**
- **AI agent**
- **Webhook receiver**
- **Currency rates**

## Connections

- User → Application UI: uses (evidence: `README.md`)
- AI agent → MCP tools: calls tools (evidence: `README.md`)
- Application UI → Authentication UI: renders (evidence: `frontend/src/App.jsx`)
- Application UI → Board and task UI: renders (evidence: `frontend/src/App.jsx`)
- Application UI → Task editor: renders (evidence: `frontend/src/App.jsx`)
- Application UI → List manager: renders (evidence: `frontend/src/App.jsx`)
- Application UI → Currency manager: renders (evidence: `frontend/src/App.jsx`)
- Application UI → Administration UI: renders (evidence: `frontend/src/App.jsx`)
- Application UI → API client: calls (evidence: `frontend/src/App.jsx`)
- API client → HTTP application: HTTP requests (evidence: `frontend/src/api/client.js`)
- HTTP application → Authentication routes: mounts (evidence: `backend/app/main.py`)
- HTTP application → Board and webhook routes: mounts (evidence: `backend/app/main.py`)
- HTTP application → Task routes: mounts (evidence: `backend/app/main.py`)
- HTTP application → MCP tools: mounts (evidence: `backend/app/main.py`)
- HTTP application → List routes: mounts (evidence: `backend/app/main.py`)
- HTTP application → Tag routes: mounts (evidence: `backend/app/main.py`)
- HTTP application → Currency routes: mounts (evidence: `backend/app/main.py`)
- HTTP application → Board summary: mounts (evidence: `backend/app/main.py`)
- HTTP application → Admin routes: mounts (evidence: `backend/app/main.py`)
- Authentication routes → JWT and identity: authenticates (evidence: `backend/app/routers/auth.py`)
- Task routes → Task lifecycle: delegates (evidence: `backend/app/routers/tasks.py`)
- MCP tools → Task lifecycle: delegates (evidence: `backend/app/routers/mcp.py`)
- Board and webhook routes → Task lifecycle: uses (evidence: `backend/app/routers/boards.py`)
- Board and webhook routes → Webhook notifications: dispatches tests (evidence: `backend/app/routers/boards.py`)
- List routes → Board and list rules: uses (evidence: `backend/app/routers/lists.py`)
- Tag routes → Board and list rules: uses (evidence: `backend/app/routers/tags.py`)
- Task lifecycle → Board and list rules: resolves lists (evidence: `backend/app/services/task_service.py`)
- Task lifecycle → Webhook notifications: dispatches events (evidence: `backend/app/services/task_service.py`)
- Task lifecycle → Currency conversion: uses (evidence: `backend/app/services/task_service.py`)
- Currency routes → Currency conversion: delegates (evidence: `backend/app/routers/currencies.py`)
- Board and webhook routes → Currency conversion: calculates budget (evidence: `backend/app/routers/boards.py`)
- MCP tools → Currency conversion: calculates budget (evidence: `backend/app/routers/mcp.py`)
- Admin routes → Server statistics: reads statistics (evidence: `backend/app/routers/admin.py`)
- Task lifecycle → Domain records: reads and writes (evidence: `backend/app/services/task_service.py`)
- Currency conversion → Domain records: reads and writes (evidence: `backend/app/services/currency_service.py`)
- Webhook notifications → Webhook receiver: sends events (evidence: `backend/app/services/notification_service.py`)
- Webhook notifications → Site settings: reads policy (evidence: `backend/app/services/notification_service.py`)
- Admin routes → Site settings: updates settings (evidence: `backend/app/routers/admin.py`)
- HTTP application → SQL database: initializes sessions (evidence: `backend/app/main.py`)
- SQL database → Domain records: persists (evidence: `backend/app/db.py`)
- Currency rates → Currency manager: sets rates
