Skip to main content
Glama

tasks-toolkit

A small, self-contained task tracker (sprints → tasks → subtasks) with a CLI and an MCP server.

Contents

  • scripts/ — all tracker code (see table below).

  • pyproject.toml — ruff/mypy/pytest configuration.

Related MCP server: yt-toggl-mcp

Installation

pipx install tasks-toolkit
# or: uv tool install tasks-toolkit
tasks-init
tasks overview

Run with uvx

With uv installed, run commands directly from PyPI without a separate tool installation:

cd /path/to/your-project
uvx --from tasks-toolkit tasks-init
uvx --from tasks-toolkit tasks overview
uvx --from tasks-toolkit tasks next

Use --from tasks-toolkit because the package and executable names differ. The same form works for tasks-run, tasks-sprint, and tasks-mcp. To select a specific release, use --from tasks-toolkit==0.1.6. See the uv tools guide.

From source

git clone https://github.com/prachwal/tasks-toolkit.git
cd tasks-toolkit
python -m pip install -e .
tasks-init
tasks overview

Docker

docker build -t tasks-toolkit .
docker run --rm -i -v tasks-data:/data tasks-toolkit

Quick start (from source)

python3 scripts/tasks_init.py          # create tasks/tasks.db
python3 scripts/tasks.py overview      # show sprints
python3 scripts/tasks.py next          # next ready task

Data belongs to the current Git project (the main checkout when invoked from a worktree). Outside Git, it belongs to the current directory. Installed commands never use their installation directory for data. Override the location with TASKS_ROOT:

export TASKS_ROOT=/path/to/data
python3 scripts/tasks.py overview

MCP clients

The tasks-mcp command runs the same stdio server for every client. Set TASKS_ROOT to the absolute path of the project whose tasks you want to manage. It points to the project, not to the toolkit installation. An installed server needs no copy of this source repository. Use an absolute executable path if the client cannot find tasks-mcp on its PATH; command -v tasks-mcp shows it on Unix.

To launch the MCP server through uvx, use the following configuration in clients with an mcpServers section (such as Claude Desktop or Cursor):

{
  "mcpServers": {
    "tasks": {
      "command": "uvx",
      "args": ["--from", "tasks-toolkit", "tasks-mcp"],
      "env": {"TASKS_ROOT": "/absolute/path/to/your-project"}
    }
  }
}

Use the absolute path returned by command -v uvx if the client cannot find uvx. For the other client schemas below, use the same executable and arguments with the client's configuration keys.

Claude Desktop

Open Settings → Developer → Edit Config, merge this entry into claude_desktop_config.json, and restart the app:

{
  "mcpServers": {
    "tasks": {
      "command": "/absolute/path/to/tasks-mcp",
      "args": [],
      "env": {"TASKS_ROOT": "/absolute/path/to/your-project"}
    }
  }
}

See the official local-server setup guide for configuration locations and troubleshooting. The toolkit currently uses POSIX file locking (fcntl); run the server on macOS or Linux. The Windows Desktop app needs a launcher into a Linux environment such as WSL, rather than a native Windows Python process.

Claude Code

From your project directory, register a project-scoped stdio server:

claude mcp add --transport stdio --scope project \
  --env TASKS_ROOT="$(pwd)" tasks -- /absolute/path/to/tasks-mcp
claude mcp list

Claude Code saves project-scoped servers to .mcp.json; see its official MCP documentation.

VS Code / GitHub Copilot

Add a server to .vscode/mcp.json:

{
  "servers": {
    "tasks": {
      "type": "stdio",
      "command": "/absolute/path/to/tasks-mcp",
      "args": [],
      "env": {"TASKS_ROOT": "${workspaceFolder}"}
    }
  }
}

See VS Code's MCP configuration reference.

Cursor

Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "tasks": {
      "command": "/absolute/path/to/tasks-mcp",
      "env": {"TASKS_ROOT": "/absolute/path/to/your-project"}
    }
  }
}

OpenCode

Add this entry to opencode.json:

{
  "mcp": {
    "tasks": {
      "type": "local",
      "command": ["/absolute/path/to/tasks-mcp"],
      "enabled": true,
      "environment": {"TASKS_ROOT": "/absolute/path/to/your-project"}
    }
  }
}

See the OpenCode MCP documentation.

Other stdio clients and source installs

Configure any MCP client to launch tasks-mcp, use stdio transport and pass TASKS_ROOT in the server environment. Clients use different JSON keys; adapt one of the examples above to the client's schema. To run from a source checkout, replace the executable with python3 and pass /absolute/path/to/tasks-toolkit/scripts/tasks_mcp.py as its first argument (or use that two-element array for OpenCode's command).

Verified task and sprint execution

Copy .tasks-toolkit.example.json to .tasks-toolkit.json, choose the checks for your project, and commit the configuration. Commands are argument arrays; no shell interpolation is performed. Every configured check must pass. Keep tmp/ and generated tasks/ files in .gitignore, as in this repository.

Runner names and commands are defined entirely in .tasks-toolkit.json:

{
  "default_runner": "coder",
  "runners": {
    "coder": ["python3", "tools/coder_adapter.py"],
    "backup-coder": ["/absolute/path/to/another-adapter"]
  },
  "checks": [["python3", "-m", "pytest", "-q"]],
  "timeout": 120
}

Replace these sample adapter commands with your own. Adapters receive the spec on stdin, edit files in their current working directory, leave changes uncommitted, and return nonzero on failure. There are no built-in providers or model choices. --runner NAME selects any registered adapter; otherwise default_runner is used. If no default is configured, select a runner explicitly. --fallback NAME uses the same registry; none is reserved to disable fallback. Reports and statistics accept any runner name containing letters, digits, underscores and hyphens.

Optional protected_paths adds project-specific files or directories to the built-in protection, for example "protected_paths": ["config/private/", "./credentials.json"]. Entries are relative to the project root; ./ and trailing separators are normalized. Absolute paths and entries containing .. are rejected. Directory entries protect the directory and its descendants. Planner commands resolve the project using the same current-directory, Git-worktree and TASKS_ROOT rules as the tracker; their helper scripts are loaded from the toolkit installation.

When upgrading from 0.1.4, register the command you previously relied on explicitly: implicit provider commands and the implicit default have been removed. Existing checkpoint and report runner names remain valid when registered in the configuration. Changing configuration still invalidates a resume checkpoint's approval fingerprint.

Installed commands are tasks-run and tasks-sprint; from source, the corresponding wrappers are scripts/run-task.sh and scripts/sprint-auto.sh.

Run one task in a clean working tree, with an explicit allowed scope:

tasks-run result \
  --file tmp/tasks/result.md --scope src/ --runner coder

Alternatively, --task-id 1.1 reads scope links from the tracker. The runner checks all actual tracked changes, deletions and untracked files, runs the configured checks and commits only verified changes. Input flags such as checks_green and tracker_done are never evidence. Failures preserve the working tree and write a report to tmp/runs/<name>.result.json. Exit codes: 0 verified, 1 rejected, 3 runner/configuration failure. Optional fallback runs only after a runner failure that left the working tree clean.

For a complete sprint, supply a plan containing sprint (slug, title, goal) and tasks (key, title, scope, spec_name, spec, depends_on). Specs must pass scripts/spec-lint.sh; dependencies reference earlier task keys. An answers file binds the reviewed goal, allowed paths and execution policy. policy.runner overrides the configured default; delegated decisions use the same registry:

{
  "goal_reviewed": true,
  "allowed_scopes": ["src/"],
  "policy": {
    "runner": "coder", "serial": true, "fallback": "none", "retries": 0,
    "push": false, "accept_flags": false, "reset": false, "clean": false
  }
}

Start from a clean main branch:

tasks-sprint --yolo-force \
  --goal "Implement the feature" --run-name feature \
  --answers tmp/plans/feature.answers.json --plan tmp/plans/feature.json

The lifecycle imports the plan, creates a sprint branch and worktree, executes tasks serially, checks the diff against task and approved scopes, and records verified commits in the tracker. Final checks precede a fast-forward into the unchanged approved main; no push is performed. Worktrees and checkpoints remain available for inspection.

Use the same command with --resume to continue a clean checkpoint. Goal, answers, plan, configuration and Git refs must still match. A dirty or unexpectedly advanced worktree requires inspection; it is never reset, cleaned or blindly rerun.

Development checks

python3 -m pip install -e '.[dev]'
bash scripts/test_python_lint.sh
python3 -m pytest -q
bash scripts/test_spec_lint.sh

CI requires lint, type checking, all Python tests, shell tests and distribution builds to pass. VS Code tracker commands are provided in .vscode/tasks.json.

Scripts

Core tracker

File

Purpose

tasks.py

Task tracker CLI: sprints → tasks → subtasks, SQLite-backed (tasks/tasks.db).

tasks_init.py

Create an empty task database from scratch.

tasks_mcp.py

MCP server (stdio) exposing tracker operations as tools.

tasks_cli.py

CLI parser and entry point for the tracker.

tasks_commands.py

Command handlers for the tracker.

tasks_model.py

Core data model (nodes, statuses, walk/find/effective).

tasks_storage.py

SQLite storage layer.

tasks_render.py

Markdown rendering of the task view.

tasks_watch.py

Background watcher keeping the view and snapshot in sync with the DB.

tasks_plan_import.py

Atomic plan import for the sprint planner.

Sprint automation

File

Purpose

sprint_plan.py

Sprint plan tooling for the planner agent.

sprint-auto.sh / sprint_auto.py

Verified sprint execution and fast-forward integration (--yolo-force, --resume).

sprint_auto_state.py

Durable state, checkpoint and process-supervision primitives.

sprint_auto_preflight.py

Read-only approval preflight for the automated lifecycle.

sprint_auto_prepare.py

Prepare approved plans and branches.

sprint_auto_execute.py

Execute and accept guarded tasks.

sprint_auto_resume.py

Resume and finish owned sprints.

apply-plan.sh

Import a validated sprint plan (tmp/plans/<name>.json) into the tracker.

run-task.sh / task_runner.py

Run configured coders and verify actual changes before committing.

runner_config.py

Provider-independent runner registry, default selection and configuration validation.

task-report.sh

Report delegation progress to the tracker.

run_summary.py

Write a run summary JSON for finished runs.

run_stats.py

Delivery-speed statistics for delegation runners.

Spec / quality

File

Purpose

spec-lint.sh

Quality gate for delegated task specs.

Tests

File

Purpose

test_tasks.py

Tests for tasks.py.

test_tasks_mcp.py

Tests for tasks_mcp.py.

test_tasks_storage.py

Tests for tasks_storage.py.

test_tasks_plan_import.py

Tests for tasks_plan_import.py.

test_tasks_watch.py

Tests for tasks_watch.py.

test_run_stats.py

Tests for run_stats.py.

test_sprint_auto.py

Tests for sprint-auto.sh.

test_sprint_auto_state.py

Tests for sprint_auto_state.py.

test_sprint_auto_preflight.py

Tests for sprint_auto_preflight.py.

test_sprint_auto_prepare.py

Tests for sprint_auto_prepare.py.

test_sprint_auto_execute.py

Tests for sprint_auto_execute.py.

test_sprint_auto_resume.py

Tests for sprint_auto_resume.py.

test_spec_lint.sh

Tests for spec-lint.sh.

Test runners

File

Purpose

test_python_fast.sh

Fast Python tests (in-process).

test_python_slow.sh

Slow/subprocess-heavy Python tests.

test_python_lint.sh

Ruff + mypy.

License

MIT — see LICENSE.

Available Tools

19 tools
tasks_addA

Add a task under a sprint id, or a subtask under a task id (max depth: sprint > task > subtask).

Inputs: title (required), parent (required), after, assignee, +1 more.

tasks_add_sprintC

Create a sprint.

Inputs: title (required), end, goal, start.

tasks_briefA
Read-only

Context bundle for one item: description, dependencies with merge commits, spec link, notes, and the list of files the dependencies changed.

Inputs: id (required).

tasks_editA
Idempotent

Edit title, description, assignee, dependencies (--after replaces the list; empty clears) and, for sprints, goal/start/end. Pass either id or ids (exactly one). --title with multiple ids is rejected.

Inputs: id, end, ids, goal, +5 more.

tasks_listB
Read-only

List sprints/tasks/subtasks as an indented tree with their (derived) status.

Inputs: id, desc, text, notes, +4 more.

tasks_logB
Read-only

Print the audit log (optionally for one item, optionally since a timestamp).

Inputs: id, since.

tasks_moveA

Move an item to another parent (renumbers the subtree). Errors: unknown ids, moving a sprint, moving into own subtree, depth > MAX_DEPTH, same parent without --pos.

Inputs: id (required), new_parent (required), pos.

tasks_mvB

Move an item to another parent (renumbers the subtree).

Inputs: id (required), new_parent (required), pos.

tasks_nextA
Read-only

Next ready, unfinished leaf items (dependencies met) in the first unfinished sprint.

Inputs: count, assignee.

tasks_noteA

Append a dated note to an item (progress, decisions, pointers to patches).

Inputs: id (required), text (required).

tasks_overviewA
Read-only

All sprints in one call: derived status, counts per status and the goal.

Inputs: no named parameters.

tasks_removeA
DestructiveIdempotent

Delete an item and everything below it (cascades to notes and dependencies). Refused while other items depend on it. Two-step: call without confirm for a preview, then again with confirm=true.

Inputs: id (required), confirm.

tasks_set_statusA
Idempotent

Set a status on a leaf item. Parent statuses are derived (any blocked -> blocked, all done -> done, anything started/finished -> in progress). Blocking requires a reason. cascade_down applies the status to every leaf below a task or sprint. Pass either id or ids (exactly one).

Inputs: id, ids, reason, status, +1 more.

tasks_showA
Read-only

Show one or more items (description, assignee, dependencies, notes, derived status); brief=true prints one line per item.

Inputs: ids (required), brief.

tasks_sprintB
Read-only

One table of a sprint's tasks (status, assignee, progress) in a single call.

Inputs: id (required).

tasks_statsA
Read-only

Counts per status and open work per assignee.

Inputs: no named parameters.

tasks_viewA
Read-only

Return the rendered task view README (overall + current sprint + links to the per-sprint files).

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 19 tools

    Disambiguation2/5

    tasks_move and tasks_mv are effectively the same operation (both 'move an item to another parent, renumbers the subtree'), creating clear duplicate ambiguity. Additionally, the read surface (tasks_overview, tasks_sprint, tasks_stats, tasks_list, tasks_show, tasks_view, tasks_brief) overlaps heavily with only subtle distinctions between count views, table views, and rendered views.

    Naming Consistency3/5

    A consistent tasks_ prefix is applied throughout, but the suffix convention is mixed: noun-based (overview, stats, sprint, brief, log, view) alongside verb-based (add, edit, move, set_status, remove). The duplication between tasks_move and tasks_mv further erodes predictability.

    Tool Count3/5

    19 tools sits at the heavy end of the borderline range. Several read-oriented tools could be consolidated, and one is a straight duplicate, so not every tool clearly earns its place.

    Completeness4/5

    The surface covers the full lifecycle: create/edit/move/remove for sprints, tasks, and subtasks, plus status, notes, links, audit log, and derived-state views. Minor gaps like keyword search and bulk filtering exist but agents can work around them with list/view calls.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to manage a filesystem-based issue tracker through typed MCP tools such as list_tasks, create_task, change_task_status, log_work, and get_sprint, instead of shelling out to a CLI. Tasks and sprints are plain folders of Markdown files, so agents can create, claim, comment on, and move work by topic without any database or server state.
      20
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables MCP clients to query projects, fetch findings, trigger analysis, upload CycloneDX BOMs, and check async token status against an OWASP Dependency-Track instance via stdio.
      9
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables MCP-capable clients to drive Worksection projects, tasks, subtasks, comments, tags, people, time tracking, files, search, and reporting through a consistent set of tools over stdio.
      53
      MIT