TaskChampion MCP

io.github.GabiUp2由 GitHub 账号 GabiUp2 发布v1.0.4更新于 Oct 24, 2026

MCP server for Taskwarrior 3.x, TaskChampion, and Timewarrior task management.

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

让 AI 助手通过本地的 task 和 timew 命令行工具读取、创建、修改和完成任务,并管理时间记录。

可以做什么
它封装 task 和 timew 命令行工具,并将其暴露为结构化的 MCP 工具,使助手可以读取、批注、创建、完成和删除任务,并管理时间条目。它附带任务模式预设(minimal、gtd、scrum、kanban 以及一个自定义示例),用于向模型描述你的任务结构。首次运行有引导流程,用于设置角色和模式,相关工具包括 get_runtime_capabilities、get_initialization_status、propose_initialization_options、use_preset_schema、save_initial_schema 和 reload_configuration。
适用场景
当你已经用 Taskwarrior 3.x 或 Timewarrior 管理任务和时间,并希望助手协助项目规划、任务拆分和时间跟踪,同时不交出任务数据库控制权时,适合使用。它面向本机上的终端工作流。
运行要求
以 stdio 方式在本地运行的进程,从 PyPI 安装 taskchampion-mcp,用 uvx 或 pip 运行。需要 Python 3.10+、PATH 中的 Taskwarrior 3.x,时间跟踪功能可选需要 Timewarrior。在操作类工具可用前,必须在 ~/.config/taskchampion-mcp/config.toml 中设置 role 以及 schema 或 schema_path。未声明认证、环境变量或请求头。
安装前请注意
该服务器让助手间接写入你的任务命令行,因此角色很关键:CONTRIBUTOR 可读取和修改,GENERATOR 还可创建,MANAGER 还可完成和删除。通过 MCP 自行提升为 MANAGER 会被拒绝,更改角色需手动编辑 config.toml。破坏性操作支持 dry_run 和确认令牌,操作默认写入审计日志;连接前请检查角色和确认设置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 TaskChampion MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

TaskChampion MCP

A Model Context Protocol server for Taskwarrior 3.x, TaskChampion, and Timewarrior.

For the bearded Unix jockeys and keyboard cowboys who manage their life from the terminal — and now want their LLM to lend a hand. 🧔⌨️

[PyPI version] [GitHub release] [License] [Python] [MCP Registry] [Glama]

Latest release: v1.0.4 — pip install taskchampion-mcp / uvx taskchampion-mcp


What Is This?

TaskChampion MCP is a Model Context Protocol server that lets LLMs read, create, modify, and manage your Taskwarrior tasks and Timewarrior time entries. It wraps the task and timew CLI tools and exposes them as structured MCP tools that any compatible AI assistant can call.

Why? The author self-hosts TaskChampion on a home server and wanted a clean way for LLMs to cooperate on project planning, task decomposition, and time tracking — without giving up control of the task database.


Supported Platforms

PlatformTransportStatus
Neovim (via Claude Code CLI)stdiov1.0.4
Cursorstdiov1.0.4
Windsurfstdiov1.0.4
VS Code (Copilot MCP)stdiov1.0.4
Claude Desktopstdiov1.0.4
HTTP/SSE transportsHTTP/SSEDeferred to v1.x

Requirements:

  • Python 3.10+
  • Taskwarrior 3.x (TaskChampion sync)
  • Timewarrior (optional, for time tracking features)

Quick Install

bash
# With uv (recommended)uv tool install taskchampion-mcp
# With pippip install taskchampion-mcp

Then configure your IDE's MCP settings to use:

json
{  "mcpServers": {    "taskchampion": {      "command": "taskchampion-mcp-server",      "args": []    }  }}

Per-target install guides: Claude Desktop | Windsurf | Cursor | Neovim


First Run

On a fresh install with no config.toml, the server boots in onboarding mode. All tools are visible in tools/list, but operational tools return structured schema_unset errors until onboarding completes (ADR 19). You finish onboarding by persisting two keys in ~/.config/taskchampion-mcp/config.toml:

  • role — what the LLM can do (CONTRIBUTOR / GENERATOR / MANAGER)
  • schema or schema_path — which task schema the server validates against

Three ways to get there:

  1. Let the LLM walk you through it. Connect your IDE to the MCP server with no config and ask: "Help me set up TaskChampion MCP." The LLM calls get_runtime_capabilities first, sees mode: "onboarding", then uses get_initialization_status -> propose_initialization_options -> use_preset_schema (or save_initial_schema). The server auto-reloads on success -- no restart needed.
  2. Run the CLI wizard: ./dev.sh init (interactive) or ./dev.sh init --preset gtd --role CONTRIBUTOR --non-interactive (scripted).
  3. Edit config.toml by hand -- see quick_start.md. Two keys, then call reload_configuration from the LLM (or restart the IDE).

The three paths are interchangeable and produce identical state. Pick by who should be doing the typing -- see initialization_flows.md for the decision guide.


Permission Levels

Control what the LLM can do with your tasks via three cumulative roles:

RoleCan ReadCan Annotate/ModifyCan CreateCan Complete/Delete
CONTRIBUTOR✅✅❌❌
GENERATOR✅✅✅❌
MANAGER✅✅✅✅

Set the role in ~/.config/taskchampion-mcp/config.toml:

toml
[server]role = "GENERATOR"  # CONTRIBUTOR | GENERATOR | MANAGER

Task Schemas

Taskwarrior supports custom workflows via UDAs (User Defined Attributes). TaskChampion MCP ships with schema presets that teach the LLM your task structure:

SchemaDescription
minimalBuilt-in fields only (priority, project, tags)
gtdGetting Things Done (contexts, energy, next-actions)
scrumSprint-based (story points, sprint IDs, acceptance criteria)
kanbanBoard columns, WIP limits, classes of service
authors_custom_exampleAdvanced real-world example with lifecycle phases, hypothesis-driven research, and LLM provenance tracking

On first run, the MCP will prompt you to select a schema or auto-generate one from your existing tasks.


Security

This tool gives an LLM indirect access to your task management CLI. Security is not optional:

  • No shell execution — all CLI calls use subprocess argument lists, never shell=True
  • Input sanitization — all LLM inputs validated against allowlists before passing to CLI
  • Rate limiting — configurable per-minute/per-hour caps prevent runaway loops
  • Audit logging — every operation logged with timestamp, tool, parameters, result, and result_code
  • Code-tagged envelopes — every tool response includes a stable code field for machine-safe branching
  • Dry-run mode — every destructive operation supports dry_run preview without mutation
  • Confirmation mode — lifecycle operations use explicit confirmation tokens when confirmation is enabled
  • Sensitive field redaction — configurable fields hidden from LLM responses

See ADR 9, ADR 13, and ADR 14 for the full security and observability design.


Taskwarrior Compatibility

VersionStatus
Taskwarrior 3.x (TaskChampion)✅ Fully supported
Taskwarrior 2.x (Taskserver/taskd)⏳ Planned for future release

We focus on the modern Taskwarrior 3.x + TaskChampion stack. Taskserver (taskd) is deprecated and will receive limited support in a future version. See ADR 8.


Documentation

Folder / fileContents
docs/adrs/Architecture Decision Records
docs/references/Upstream tool reference (Taskd, TaskChampion, Timewarrior)
docs/manuals/quick_start.mdManual config.toml setup
docs/manuals/configuration_reference.mdFull config key reference with precedence rules
docs/manuals/schema_authoring.mdWriting custom task schemas
docs/manuals/security_model.mdSecurity controls for end-users
docs/manuals/initialization_flows.mdWhich init path to use (LLM-driven vs CLI vs hand-edit)
docs/manuals/targets/Per-IDE install guides (Claude Desktop, Windsurf, Cursor, Neovim)
docs/manuals/logrotate.mdAudit log rotation
docs/llm_context/LLM agent guidelines and tracked assumptions
docs/CONTRIBUTING.mdHow to contribute (branching, PRs, versioning)
docs/ROADMAP.mdFeature roadmap (v0.1.0 → v1.0.0)
docs/releases/v1.0.4.mdv1.0.2 release notes and install links
docs/manuals/release_checklist.mdPre-tag publish checklist
src/taskchampion_mcp/schemas/Bundled task schema presets (TOML)
scripts/setup_remote.shOne-shot remote-host bootstrap

Troubleshooting

Common first-run and config issues. Detailed walkthroughs live in docs/manuals/quick_start.md and docs/manuals/initialization_flows.md.

SymptomLikely causeFix
Tools return schema_unset errors after connecting~/.config/taskchampion-mcp/config.toml is missing either role or schema/schema_pathAdd both under [server] and call reload_configuration (or restart).
Linux Claude Desktop install completes but taskchampion never appearsPre-v0.3.0 lowercase path bug in dev.shUpdate to v0.3.0+. Linux: capital C in ~/.config/Claude/.
set_role("MANAGER") returns role_elevation_forbiddenSelf-elevation via MCP is forbidden (ADR 17)Hand-edit config.toml, then call reload_configuration.
MCP server fails on startup with Taskwarrior not found on PATHtask not installed or not on the MCP server's PATHInstall Taskwarrior 3.x. Set task_binary in config if needed.
Cowork / Claude Desktop: install JSON overwritten on quitWrote config while Claude Desktop was runningQuit Claude Desktop first, or use ./dev.sh reinstall claude -r.
Tool surface includes neither onboarding nor contributor toolsServer failed to start (check stderr)Run taskchampion-mcp-server from a shell to see the error.

For deeper failure modes, every MCP tool returns a stable error_code field (ADR 14) and every call is audit-logged (ADR 13) at ~/.local/share/taskchampion-mcp/audit.log by default.


Contributing

See docs/CONTRIBUTING.md for the full guide. Key points:


License

Apache License 2.0 — use freely for private and commercial purposes. Attribution required via the NOTICE file.

Copyright 2026 gabiup2


This project was bootstrapped with assistance from Claude claude-sonnet-4-20250514 via Windsurf Cascade.

来源:README.md,提交 f5af773

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分