worktracker
Bidirectional sync with Hermes, allowing work items to be submitted, updated, and tracked through WorkTracker's unified kanban.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
WorkTracker
A single backend that unifies work items across every tool you work in — Hermes, Claude Code, Codex, Cline, Grok, the web UI, and any future connector. One canonical store, one kanban, one place to track what you actually have to do.
What it does
Multi-source, equal peers. Every connector (Hermes, Mavis / Claude Code, Codex, Cline, Grok, OpenClaw, the web UI) registers as a first-class plugin and submits items through the same command queue.
Single canonical store. WorkTracker is the source of truth. Item writes share command validation; all sources read from the same
work_itemscollection.Multi-board kanban. Boards are saved views — each pins a list of columns (label + status mapping) and an optional kind filter. Users pick a board from the kanban picker; admins CRUD them at
/admin/boardsor via the MCPworktracker.boards.*tools. The default board is the first thing every user sees.Dispatch enrichment. Items moving to "in progress" go through a pre-flight check that runs Grill (interrogate gaps) and Wayfind (map dependencies + propose solution) via a configured enricher source.
Plugin SDK. New connectors ship a
manifest.jsonand a bearer token; the Connector Admin UI registers them.REST + MCP + webhooks. Three surfaces; same auth, same brain. MCP exposes 29 tools across items, workflows, boards, files, clients, connectors, dispatch, and enrichment.
Live UI. Kanban with Firestore
onSnapshot; the card moves on the server and the browser updates the same frame.
WorkTracker 2.0 (M1)
Shared item model. Tasks, tickets, decisions, and reviews all have team-scoped human IDs, priority (None / Low / Medium / High / Urgent), assignee, labels, team-scale estimates, due date, and parent/sub-issues with progress. Kind-specific data is kept. Migrated 1.x minute estimates remain a read-only legacy field; there is no minutes-to-points conversion.
Relations and duplicates. Items support related, blocked-by, blocking, and duplicate relations, plus merge into a canonical item. Merges have no undo.
Views and keyboard. List and board show the same filtered set; toggle with Cmd/Ctrl-B. Item detail and display grouping / ordering are available. The keyboard layer includes a Cmd/Ctrl-K command menu and multi-select bulk actions with undo (Cmd/Ctrl-Z).
Team workflows. Each team configures statuses and allowed transitions per item kind at
/settings/workflows. Every REST and MCP route that changes workflows enforces owner/admin authorization on the server. Agent tokens have no admin scope for these edits.Migration. The v1-to-v2 migration provides a dry-run, no-loss check, idempotent second run, and rollback. It is emulator/fixture-only until separately authorized. See the migration runbook for how to run it; do not run it against production.
Themes and typography. Neutral Day and Night themes use Inter for UI text and IBM Plex Mono for code and keyboard hints.
Related MCP server: Tracker MCP Server
Repo layout
worktracker/ # this monorepo (npm workspaces)
├── apps/
│ └── api/ # Fastify + Cloud Functions v2 backend
│ ├── src/
│ │ ├── index.ts # Cloud Functions entry (api + brain)
│ │ ├── app.ts # Fastify app factory
│ │ ├── firestore.ts # Admin SDK init
│ │ ├── auth.ts # Bearer + admin middleware
│ │ ├── errors.ts # WorkTracker error types
│ │ ├── ids.ts # ULID generation
│ │ ├── repo.ts # work_item writes (the only writer)
│ │ ├── brain.ts # command evaluator (Firestore trigger)
│ │ ├── mcp.ts # JSON-RPC 2.0 MCP server
│ │ ├── config.ts # env config
│ │ ├── routes/ # REST routes
│ │ │ ├── health.ts
│ │ │ ├── items.ts
│ │ │ ├── sources.ts
│ │ │ ├── commands.ts
│ │ │ └── webhooks.ts
│ │ └── connectors/
│ │ └── hermes.ts # Hermes bidirectional sync
│ └── tests/
│ └── brain.test.ts # e2e brain tests
├── packages/
│ └── types/ # @worktracker/types — shared contracts
├── web/ # @worktracker/web — Next.js UI
│ ├── app/
│ │ ├── page.tsx # List / board
│ │ ├── sources/page.tsx # Sources + register
│ │ ├── admin/page.tsx # Connector Admin + Enricher Pool
│ │ └── layout.tsx # Day / Night theme initialization
│ ├── lib/
│ │ ├── api.ts # REST client
│ │ ├── firebase.ts # Firebase client SDK init
│ │ └── useItemsSubscription.ts # Live onSnapshot hook
│ └── tailwind.config.ts
├── firebase.json # Functions + Hosting + Emulators
├── firestore.rules # per-collection access rules
├── firestore.indexes.json # composite indexes
├── tsconfig.base.json
└── package.json # npm workspaces rootStack
Backend — Node 20+, TypeScript, Fastify, Firebase Admin SDK, Cloud Functions v2, Firestore triggers. Queued commands are processed by the brain Cloud Function; M1 relation, merge, and bulk actions use the same command evaluator in transactions.
Web UI — Next.js 15.5.29, Tailwind, dnd-kit, TanStack Query, Firebase JS SDK for live
onSnapshotand email/password auth. Neutral Day / Night themes, Inter UI text, and IBM Plex Mono code / keyboard hints.MCP — JSON-RPC 2.0 mounted at
/mcpon the same Fastify process; the same bearer-token auth as the REST surface.LLM — MiniMax via the OpenAI-compatible API for body summarization, smart search, auto-classification, and the hosted-Grill fallback. The MCP source enrichment (Cline, Mavis, Hermes, Codex) uses the source's own LLM — the source agents own their enrichment quality.
Quick start (local dev)
# 1. Install deps
npm install
# 2. Start the Firestore + Functions + Auth + Hosting emulators
npm run emulators
# 3. In a second terminal, start the API in dev mode (it
# auto-connects to the emulator via FIRESTORE_EMULATOR_HOST).
WORKTRACKER_ADMIN_TOKEN=local-admin \
WORKTRACKER_ENV=local \
npm run dev:api
# 4. In a third terminal, start the web UI.
NEXT_PUBLIC_API_BASE=http://127.0.0.1:4001 \
NEXT_PUBLIC_FIREBASE_PROJECT_ID=demo-worktracker \
npm run dev:web
# 5. Visit http://localhost:3000/login and sign in with your
# Firebase email/password account. The first sign-in creates
# the WorkTracker admin account.The web UI needs Firebase client configuration (NEXT_PUBLIC_FIREBASE_API_KEY,
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN, NEXT_PUBLIC_FIREBASE_PROJECT_ID, and
NEXT_PUBLIC_FIREBASE_APP_ID) and an existing Firebase Auth email/password
account. /login signs in; it does not register a Firebase account. Subsequent
users need an admin-provided account. The API base is configured through
NEXT_PUBLIC_API_BASE; the admin bearer token is for API/MCP automation,
not the web sign-in form.
Deployment (Firebase)
# 1. Log in and pick your project.
firebase login
firebase use --add <your-firebase-project>
# 2. Set the admin token as a function env var.
firebase functions:secrets:set WORKTRACKER_ADMIN_TOKEN
# (paste the token when prompted; pick functions:secrets:allow)
# 3. Build + deploy.
npm run deployThis:
Deploys the
apiCloud Function (the Fastify + MCP app).Deploys the
brainCloud Function (the Firestore trigger).Deploys the
webNext.js app to Firebase Hosting.
CI secrets (GitHub Actions)
The live smoke job in .github/workflows/ci.yml runs scripts/smoke.sh
against the live API and web after every push to master. It needs three
repo secrets set under Settings → Secrets and variables → Actions:
Secret | Purpose |
| The canonical host the smoke test should hit (e.g. |
| The |
| A GCP service-account JSON key with the roles |
Until these are set, the live smoke job will fail with
Could not read json file /tmp/sa.json: Expecting value: line 2 column 1 (char 1)
and the run will surface as a red ✗ on master, but the API / web / image
builds remain green and production is unaffected.
Pushes
firestore.rulesandfirestore.indexes.json.
Data model
Core Firestore collections retained from 1.x:
work_items/{id}— the canonical record.work_items/{id}/events/{eventId}— append-only event log (sub-collection; cross-item reads use acollectionGroupquery).sources/{name}— registered connectors.commands/{id}— the brain's input queue; the trigger fires ononDocumentCreated.conflicts/{id}— every rejected command lands here for review.
Composite indexes on commands(source, source_event_id) for
idempotency, and on work_items(status, updated_at) /
work_items(source, updated_at) for the Kanban view.
Architecture
The end-to-end flow for queued commands:
A source (REST, MCP, webhook, or UI) submits a command by writing a
commands/{id}document withstatus: 'queued'.The
brainCloud Function fires ononDocumentCreated. It reads the currentwork_items/{id}(if any) in a transaction, evaluates the command (field-level validation, invariants, conflict check againstversion), and applies or rejects it.On apply: the work item and an event sub-document are written in the same transaction, and the command's status flips to
applied.On reject: a
conflictsdocument is written and the command flips torejectedwith a human-readable reason.The UI subscribes to
work_itemsvia FirestoreonSnapshotand re-renders without polling.
M1 relation, merge, and bulk actions apply commands synchronously
through the same evaluator and record applied commands and events
in their transactions. WorkTracker remains the only writer of
work_items; connectors do not write item documents directly.
The rules are defense-in-depth.
Hermes integration
The Hermes connector (apps/api/src/connectors/hermes.ts) handles
the bidirectional sync. For v0 it shells the hermes CLI to talk
to the local kanban; a Cloud Function scheduled ping keeps the
webhook subscription alive.
Operational runbook
50K reads/day, 20K writes/day, 1 GiB storage.
A single user is well under the limit. A runaway loop in the brain could exceed it; the brain has a write-throttle and the
conflictslog surfaces rejections.
Conflict resolution
When the brain rejects a command, the row lands in conflicts
with the rejected value, our value, and the reason. The Sources
view shows un-resolved conflicts; the Connector Admin lets the
user pick "ours" / "theirs" / merge.
Token rotation
POST /sources/<name> with rotate_api_key: true rotates a
source's bearer token. The previous token is invalidated
immediately.
Boards
A board is a saved kanban view — a list of columns (label + status mapping) and an optional kind filter. Items are not duplicated; the same work_items collection powers every board, the columns just bucket items by their status field.
{
"id": "01HW...",
"name": "Daily",
"description": "Tasks for today",
"kinds": ["task"],
"columns": [
{ "id": "todo", "label": "To Do", "statuses": ["open"] },
{ "id": "doing", "label": "Doing", "statuses": ["in_progress"] },
{ "id": "done", "label": "Done", "statuses": ["done", "cancelled"] }
],
"is_default": true
}A column's statuses is the set of WorkItem.status values that bucket into that column. So a single "Done" column can show both task done and ticket resolved if you put both in its statuses. The kanban renders columns top-to-bottom; drag a card from one column to another to transition it (the first status in the destination column is the new state).
Reading: every user can GET /api/boards and GET /api/boards/:id. The kanban reads these on load and stores the active board id in localStorage['worktracker.active_board_id'].
Writing (admin only): POST /api/boards, PATCH /api/boards/:id, DELETE /api/boards/:id. The web admin page at /admin/boards wraps these in a CRUD UI. Default boards (is_default: true) cannot be deleted.
Out of the box: a fresh deployment has no boards, so the kanban falls back to a 5-column Open / Ready / In Progress / Blocked / Done layout (the v0 behavior). Create a board in /admin/boards to take control.
MCP
The MCP (Model Context Protocol) server lets external clients — Claude Desktop, Cursor, custom agents, anything that speaks JSON-RPC 2.0 — read and write work items and boards through the same surface the web UI uses.
Endpoint
Path | Methods | Notes |
| JSON-RPC 2.0 | Conventional MCP path. Routed by Firebase Hosting rewrite to Cloud Run. |
| JSON-RPC 2.0 | Internal alias; same handler. Use this when calling through |
| (405) | MCP is request/response for now; SSE is wired but no server-push events fire yet. |
The transport is HTTP POST + JSON-RPC 2.0. The server speaks the 2024-11-05 protocol version. Responses are Content-Type: application/json for tools/list and Content-Type: text/event-stream (data: {…}\n\n per JSON-RPC result) for tools/call so a future SSE transport drops in without a client change.
Auth
Every request needs a bearer token:
Authorization: Bearer <WORKTRACKER_ADMIN_TOKEN> # operator admin
Authorization: Bearer <client bearer> # registered client / personal token
Authorization: Bearer <Firebase ID token> # signed-in userThe same requireSource preHandler that guards the REST API guards MCP.
Tools require read, read_write, or admin scope; higher scopes include
lower scopes. tools/list filters by effective scope, and tools/call
checks it again. Board reads require read; board mutations require admin.
Workflow edits additionally enforce owner/admin authorization on the server
across REST and MCP. Agent tokens cannot authorize those edits. Personal
admin tokens must have a currently enabled admin owner.
Initialize handshake
{ "jsonrpc": "2.0", "id": 1, "method": "initialize",
"params": { "protocolVersion": "2024-11-05",
"capabilities": {},
"clientInfo": { "name": "my-agent", "version": "1.0.0" } } }Response:
{ "jsonrpc": "2.0", "id": 1,
"result": { "protocolVersion": "2024-11-05",
"serverInfo": { "name": "worktracker", "version": "1.0.0" },
"capabilities": { "tools": {} } } }Discovery
{ "jsonrpc": "2.0", "id": 2, "method": "tools/list" }The registry has 29 tools total; discovery returns the subset allowed
by the caller's effective scope. The existing 23 tools keep their names
and semantics; new item fields are additive.
M1 adds six tools: worktracker.workflows.get,
worktracker.workflows.update, worktracker.items.relations,
worktracker.items.relate, worktracker.items.merge, and
worktracker.items.bulk_update.
The dotted names below come from
MCP_TOOL_NAMES. The Scope column gives
the minimum scope; owner/admin checks still apply where noted.
Work items (11)
Tool | Scope | Purpose |
| read | List filtered, paginated items. Set |
| read | Fetch one item with events and file pointers. |
| read_write | Queue a |
| read_write | Queue a patch with |
| read_write | Append a comment event to an item's timeline. |
| read_write | Create a typed link ( |
| read_write | Remove an existing typed link. |
| read | Read relations, sub-issues, and parent. |
| read_write | Add or remove related, blocked-by, or blocking relations. |
| read_write | Mark a duplicate and merge into its canonical item. No undo. |
| read_write | Update one field across selected items; returns a recorded bulk change for undo. |
Workflows (2)
Tool | Scope | Purpose |
| read | Read a team's workflow for one item kind. |
| admin + owner/admin check | Change statuses, ordering, default, or allowed transitions. Agent clients are forbidden. |
Boards (5)
Tool | Scope | Purpose |
| read | List all boards with full column definitions and the |
| read | Fetch one board by id. |
| admin | Create a board. Pass |
| admin | Update name / description / kinds / columns / |
| admin | Delete a board. The default board cannot be deleted — set another board as default first. |
Files (3)
Tool | Scope | Purpose |
| read | List file metadata for an item. |
| read | Fetch file metadata; file bytes are served by REST. |
| read_write | Attach a base64-encoded file. |
Clients (4)
Tool | Scope | Purpose |
| admin | List clients; personal-client visibility also requires the owner/admin check. |
| admin + owner/admin check | Mint a personal access token; the bearer is returned once. |
| admin + owner/admin check | Rotate a personal access token; the previous bearer is invalidated immediately. |
| read | Read the caller's identity, scope, and visible tools. |
Connectors (2)
Tool | Scope | Purpose |
| admin | List connectors. |
| admin | Read a connector and its run history. |
Dispatch and enrichment (2)
Tool | Scope | Purpose |
| read_write | Run dispatch pre-flight, enrichment, and transition. |
| read_write | Run Grill or Wayfind enrichment. |
End-to-end example
# 1. Initialize.
curl -sS -X POST https://worktracker-nyx.web.app/mcp \
-H "Authorization: Bearer $WORKTRACKER_ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize",
"params":{"protocolVersion":"2024-11-05","capabilities":{},
"clientInfo":{"name":"docs","version":"1.0"}}}'
# 2. Discover.
curl -sS -X POST https://worktracker-nyx.web.app/mcp \
-H "Authorization: Bearer $WORKTRACKER_ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
# 3. Create a "Today" board with two columns, as the default.
curl -sS -X POST https://worktracker-nyx.web.app/mcp \
-H "Authorization: Bearer $WORKTRACKER_ADMIN_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call",
"params":{"name":"worktracker.boards.create",
"arguments":{"name":"Today",
"columns":[
{"id":"doing","label":"Doing","statuses":["in_progress"]},
{"id":"done","label":"Done","statuses":["done","cancelled"]}
],
"is_default":true}}}'Connecting an MCP client
The MCP spec expects servers to live at a stable path, so a generic client just needs the URL and the bearer token. For Claude Desktop, point it at https://<host>/mcp with the admin token in the headers. For a custom agent, the tools/list payload is the full contract.
Errors
Code | Meaning |
| Parse error (malformed JSON). |
| Invalid request (missing |
| Method not found. |
| Invalid params (e.g. |
| Internal error (the brain or Firestore returned an unexpected failure). |
HTTP | Missing or invalid bearer token. |
HTTP | Forbidden caller, such as a disabled client or a workflow edit attempted without owner/admin authorization. |
HTTP | Request hit a path the service doesn't expose (e.g. you POSTed to |
HTTP | Wrong method (you |
Tests
# From the repository root: full workspace tests (including the brain
# e2e tests) under the Firestore + Auth emulators, project demo-wt2-m1.
npm run test:emu
# From the web workspace: isolated M1 component browser checks.
cd web
npm run test:m1:browserUse demo-wt2-m1 for the emulator suite; do not substitute a production
project. API integration tests that require Firestore/Auth can skip when
emulator hosts are absent, so plain npm test does not replace test:emu.
Browser checks require an existing Playwright module and Chromium. Set
PLAYWRIGHT_MODULE or PW_CHROMIUM_PATH when using an existing installation.
These fixtures cover Day/Night and desktop/mobile layouts with isolated
API/auth boundaries; they do not verify authenticated server behavior.
See the item browser guidance and
workflow browser guidance.
License
Private project. Not yet open-sourced.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP for Kanban AI boards—manage projects, tasks, and comments from AI tools.
Kanban board for teams and coding agents: manage tasks, subtasks, sprints and wiki pages via MCP.
Agile project management over MCP: boards, epics, roadmap, retros, whiteboards, wiki, metrics
Task & board management for AI agents + humans. Kanban, comments, digests via MCP.
Related MCP Servers
- FlicenseAqualityDmaintenanceIntegrates BusinessMap (formerly Kanbanize) project management capabilities with MCP-compatible applications, enabling board management, card operations, user management, and search.9-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to manage Kanban boards, cards, sessions, and automations through a unified MCP interface with real-time updates, supporting delegation, agent sessions, and human-in-the-loop interactions.AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to manage boards in an AL's Kanban instance, including listing workspaces and boards, creating and editing cards, moving cards between lists, setting due dates, and attaching local files directly to cards.MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to manage Kanban projects and tasks over MCP, including creating and listing projects/tasks, setting prerequisites, moving/archiving/restoring/deleting/reordering tasks, tracking history, and accessing attachments. Actions affecting multiple tasks return confirmation requests before applying changes.MIT