Skip to main content

md-todo-hub

把本地多个项目里散落在 Markdown 中的待办项,索引成一个共享的小型数据库(SQLite), 通过 MCP 提供给大模型使用:跨项目查进度、按优先级排下一步、把完成状态写回原文档。

  • Markdown 是唯一事实来源,索引只是查询层;所有写操作双写数据库与原文件。
  • 支持表格行(| P1-1 | 标题 | 来源 | 影响 | ⏳ |)与清单(- [ ] 文本)两种格式。
  • 索引库默认在 ~/.md-todo/index.db,可用 MD_TODO_HOME 改位置。

安装与启动(MCP)

# 直接运行 MCP server(stdio)
uvx --from md-todo-hub md-todo-hub

# 可选:启用语义检索 / 语义查重
uvx --from "md-todo-hub[semantic]" md-todo-hub

MCP 客户端配置示例:

{
  "mcpServers": {
    "md-todo-hub": {
      "type": "stdio",
      "command": "uvx",
      "args": ["--from", "md-todo-hub", "md-todo-hub"],
      "env": { "PYTHONUTF8": "1" }
    }
  }
}

命令行(同一套索引)

uvx --from md-todo-hub mdtodo register ~/project/foo   # 登记并索引一个项目
uvx --from md-todo-hub mdtodo overview                 # 跨项目进度总览
uvx --from md-todo-hub mdtodo next --limit 5           # 下一步该做什么
uvx --from md-todo-hub mdtodo search "登录"             # 全文检索
uvx --from md-todo-hub mdtodo status P1-1 done         # 标记完成(写回 Markdown)

主要 MCP 工具

工具 作用
register_project / unregister_project / list_projects 项目注册表
index_projects 增量 / 全量刷新索引
get_overview 跨项目进度仪表盘
get_next_actions 按优先级排序的待办队列
search_all structured / fts / semantic / hybrid 检索
locate_item 定位 ID 所在项目与文件
update_status 改状态并双写 Markdown
sync_from_md / reconcile Markdown 与索引对账

环境变量

变量 说明 默认值
MD_TODO_HOME 索引库目录 ~/.md-todo
MD_TODO_DOCS 默认 Markdown 根目录 <cwd>/docs
MD_TODO_LEGACY_DB 设为 1 回到 v0.2 的单项目库模式 关闭
EMBEDDING_API_KEY / EMBEDDING_BASE_URL / EMBEDDING_MODEL 可选语义检索 未配置则用 FTS5

上架产物(dist/release)

包 文件 用途
连接器 dist/release/md-todo-hub-connector-0.3.0.zip 开放平台「连接器」类目上传
技能 dist/release/md-todo-hub-skill-1.0.0.zip SkillHub 发布团队 Skill
专家 dist/release/md-todo-steward-expert-1.0.0.zip 开放平台「专家」类目上传

重新生成:bash scripts/build_release.sh(zip 顶层目录即包名,解压直接看到 .codebuddy-plugin/plugin.json)。

开发

python -m pytest docs_mcp/tests/ -v

MIT License.

Metadata

Release files for md-todo-hub 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for md-todo-hub 0.3.0
File Size Uploaded Provenance
md_todo_hub-0.3.0.tar.gz 35.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for md-todo-hub 0.3.0
File Interpreter ABI Platform
md_todo_hub-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 78.6 kB

Release files / md_todo_hub-0.3.0.tar.gz

Download URL md_todo_hub-0.3.0.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
098c0b843bb223607d499fab49992867c9782641cb32f0c0c587b3f38dc8eb7e
BLAKE2b-256 checksum
How to use checksums
5c6301b013daa3337fc38a0e18ab45b7a30e5f28c9bfe296d07904e8a0e97d57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / md_todo_hub-0.3.0-py3-none-any.whl

Download URL md_todo_hub-0.3.0-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a759b51facc34b8ba11e0c45e2b3546ce25107821b2279262236c3dcb9e1d316
BLAKE2b-256 checksum
How to use checksums
958ee9282bbcb240d80286f3d347ea76f1bcf12970086e8b7ddf5766b35a4966
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for md-todo-hub 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page