Skip to main content

Task.md manager with CLI and MCP HTTP server.

Project description

better-todo-mcp

Python 库,用于按照 example/task.md 规范管理任务文件,提供:

  • 解析/渲染:mcp_tasks.parser
  • 任务操作:mcp_tasks.ops
  • 文件处理与自动重命名:mcp_tasks.storage
  • CLI:better-todo-cli
  • MCP HTTP 服务器:better-todo-mcp

安装

pip install -e .

CLI

  • 列表:better-todo-cli --file task.md list
  • 开始:better-todo-cli --file task.md start "主任务/子任务"
  • 完成:better-todo-cli --file task.md finish "主任务/子任务"(返回下一任务,若全完成自动重命名)
  • 添加:better-todo-cli --file task.md add "新任务" --parent 主任务 --desc 描述
  • 删除:better-todo-cli --file task.md delete "主任务/子任务"
  • 需求文档:better-todo-cli requirements --file requirements.md [--init] [--set "内容"]
  • 架构文档:better-todo-cli architecture --file architecture.md [--init] [--set "内容"]
  • 规划提示词:better-todo-cli start_plan

MCP 服务器

启动(任务文件默认存放在当前工作区的 .task/ 目录下,命令里的 --file task.md 实际指向 ./.task/task.md;目录不存在会自动创建,禁止绝对路径/.. 逃逸):

better-todo-mcp --file task.md --host 0.0.0.0 --port 8008

接口示例:

  • GET /tasks → 列表(包含状态、层级)
  • POST /tasks/start {path:"主任务/子任务"}(文件限定在 ./.task/)
  • POST /tasks/finish {path:"主任务/子任务"}(返回下一任务;若全完成自动重命名;文件限定在 ./.task/)
  • POST /tasks/add {title:"新任务",parent:"可选父任务",desc:["行1","行2"]}(文件限定在 ./.task/)
  • DELETE /tasks {path:"主任务/子任务"}(文件限定在 ./.task/)
  • GET /tasks/next → 返回当前优先任务(先 RUNNING 再 TODO)
  • GET /requirements / POST /requirements:读取/写入需求文档(默认 .task/requirements.md,不存在会用模板创建)
  • GET /architecture / POST /architecture:读取/写入架构文档(默认 .task/architecture.md,不存在会用模板创建)
  • POST /tasks/from-plan[{title, desc?, children:[{title, desc?}] }] 追加为主/子任务
  • GET /start_plan:返回规划提示词(用于模型产出需求/架构/任务拆解)

开发

pip install -e ".[dev]"
pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

better_todo_mcp-0.1.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

better_todo_mcp-0.1.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file better_todo_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: better_todo_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for better_todo_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0a74f1d8d37cb6e64d4476caed8c33ffce6cf3ba0eb54ba03b680d625d530f5a
MD5 b37bfbdd1f8a874585e1b87e93b6d79f
BLAKE2b-256 e803f69bc379a5b55e987e11f2fa1484d2ce5406de49ecaa84d5c2251891a818

See more details on using hashes here.

File details

Details for the file better_todo_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for better_todo_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24623795320fddb41fa80587f2a18aca72f1328a51a802404af608af1cfe5a9c
MD5 45da786540ceb46dba831c4d8266d36e
BLAKE2b-256 78cea5a203864f299d690613f53cdd6c7cc3461c5108b5c2be5ea69cfdf562f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page