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 "主任务/子任务"

MCP 服务器

启动:

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

接口示例:

  • GET /tasks → 列表(包含状态、层级)
  • POST /tasks/start {path:"主任务/子任务"}
  • POST /tasks/finish {path:"主任务/子任务"}(返回下一任务;若全完成自动重命名)
  • POST /tasks/add {title:"新任务",parent:"可选父任务",desc:["行1","行2"]}
  • DELETE /tasks {path:"主任务/子任务"}
  • GET /tasks/next → 返回当前优先任务(先 RUNNING 再 TODO)

开发

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.0.tar.gz (8.5 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.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: better_todo_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 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.0.tar.gz
Algorithm Hash digest
SHA256 11609c8f2d32236075bb9273f1e55f4618a84579304ac74572b8af8bd88b45b7
MD5 abf5a7d066cd2f76830b7edc59deee37
BLAKE2b-256 590bf7a5879e8eb45bb5c2efbcadef899921ddc35ab9f40ff4b78d89bec3b9cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for better_todo_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b33ae8304403bfe2fd74f104368d57f167ce7d54a4f2c89b731628a3d2e04e2
MD5 ea77cc5a02c8be00d8028d6c217425e2
BLAKE2b-256 03af28eed6c39fc823e903ed4d35f0575b55d48a11eff56518169aa4ab0a08f5

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