Todo MCP Server
一个用于Cursor集成的Todo任务管理MCP服务器,支持多用户配置。
✨ 功能特性
- 🔧 12个MCP工具: 完整的任务和项目管理功能
- 📊 3个资源: 任务统计、最近任务、逾期任务
- 💬 2个提示: 任务摘要、优化建议
- 🔐 多种认证: 支持Token和用户名密码认证
- 🌐 多服务器: 支持连接不同的Todo API服务器
- 🔄 同步更新: 与 todo-api 完全同步,支持项目和任务管理
📦 安装
通过PyPI安装:
pip install todo-mcp-server
或使用uvx(推荐):
uvx todo-mcp-server --help
🚀 使用方法
Cursor配置
在 ~/.cursor/mcp.json 中添加配置:
使用API Token认证
{
"mcpServers": {
"my-todo": {
"command": "uvx",
"args": [
"todo-mcp-server",
"--api-url=https://your-todo-server.com:3000",
"--api-token=your-secret-token"
]
}
}
}
使用用户名密码认证
{
"mcpServers": {
"my-todo": {
"command": "uvx",
"args": [
"todo-mcp-server",
"--api-url=https://your-todo-server.com:3000",
"--username=your-username",
"--password=your-password"
]
}
}
}
命令行参数
| 参数 | 必需 | 描述 | 示例 |
|---|---|---|---|
--api-url |
✅ | Todo API服务器地址 | https://api.example.com:3000 |
--api-token |
🔄 | API访问令牌 | abc123... |
--username |
🔄 | 用户名 | john.doe |
--password |
🔄 | 密码 | secret123 |
--timeout |
❌ | 请求超时时间(默认30秒) | 60 |
注:--api-token 或 --username + --password 必须提供其中一种。
🛠️ 可用工具
任务管理
- 创建任务: "帮我创建一个任务:完成项目文档"
- 查看任务: "显示我的待办任务列表"
- 更新任务: "将任务1标记为已完成"
- 删除任务: "删除任务1"
- 搜索任务: "搜索包含'项目'的任务"
- 获取任务详情: "显示任务1的详细信息"
项目管理
- 创建项目: "创建一个新项目:网站重构"
- 查看项目: "显示我的项目列表"
- 更新项目: "将项目1状态改为已完成"
- 删除项目: "删除项目1"
- 获取项目详情: "显示项目1的详细信息"
- 查看项目任务: "显示项目1下的所有任务"
资源访问
- 获取统计: "显示我的任务统计信息"
- 查看逾期: "显示所有逾期的任务"
🔄 同步更新
v1.1.0 更新内容
- ✅ API路径同步: 更新为与 todo-api 一致的路径格式
- ✅ 数据结构适配: 支持 todo-api 的数字优先级和分页机制
- ✅ 项目管理: 新增完整的项目 CRUD 操作
- ✅ 任务关联: 支持任务与项目的关联管理
- ✅ 错误处理: 优化错误处理和状态码检查
兼容性
- 与 todo-api v1.0+ 完全兼容
- 支持 PostgreSQL 和 SQLite 数据库
- 保持向后兼容性
🔧 开发
本地开发安装
git clone https://github.com/huangzhenxin/todo-mcp-server.git
cd todo-mcp-server
pip install -e .
测试
运行同步测试:
python test_sync_update.py
# 测试MCP服务器
todo-mcp-server --api-url=http://localhost:3000 --api-token=test
📄 许可证
MIT许可证 - 详见 LICENSE 文件。
🤝 贡献
欢迎提交Issue和Pull Request!
📞 支持
如有问题,请在GitHub上创建Issue: https://github.com/huangzhenxin/todo-mcp-server/issues
Metadata
Release files for todo-mcp-server 2.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| todo_mcp_server-2.1.4.tar.gz | 17.9 kB | Without provenance | Details for todo_mcp_server-2.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| todo_mcp_server-2.1.4-py3-none-any.whl | Python 3 | none | any | Details for todo_mcp_server-2.1.4-py3-none-any.whl |
Total release size: 39.3 kB
Release files / todo_mcp_server-2.1.4.tar.gz
| Download URL | todo_mcp_server-2.1.4.tar.gz |
|---|---|
| Size | 17.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a5c83fbaa7be4b20fac0c4d2478d8cb6c189e15b88237ce55ccd41a13a9c97e
|
|
BLAKE2b-256 checksum How to use checksums |
a07ad0f52239b795138d27e9654a8550b2fcab9e4c13c276783449e5894b3ec6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / todo_mcp_server-2.1.4-py3-none-any.whl
| Download URL | todo_mcp_server-2.1.4-py3-none-any.whl |
|---|---|
| Size | 21.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e8896ea2c836f8ffe0650cca97a84a9ada430d5b546bd83c7f59c46b48721c9
|
|
BLAKE2b-256 checksum How to use checksums |
7de42177a3001ba4fb6ad9f34842a02c624ae4fe81e39ea1e4f198dd65f54c0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for todo-mcp-server 2.1.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.