全MCP服务器
MCP(模型上下文协议)服务器,用于任务管理和审批工作流。
安装
# Global installation
npm install -g .
# Or development dependencies
npm install用法
增添 mcp_settings.json:
{
"todo": {
"command": "node",
"args": ["/path/to/md-todo-mcp/build/index.js"]
}
}可用工具
create_todo-使用委派创建新任务get_todo_list-通过筛选获取任务列表edit_todo-编辑现有任务approve_todo-批准已完成的任务delete_todo-删除任务clear_completed_todos-清除已完成的任务
数据存储
数据存储在本地文件夹中 .todo-mcp-data/tasks.json
编排器提示示例
创建待办事项列表以进行代码审查
Create a todo list for reviewing code changes:
1. Analyze the modified files and identify key changes
2. Check for potential bugs or performance issues
3. Verify coding standards and best practices
4. Review test coverage for the changes
Delegate each step to appropriate mode and require user approval before execution.任务执行与进度跟踪
For todo task #1 "Analyze modified files":
- Use appropriate tools to examine the code changes
- Log findings to task history for user review
- Present summary of changes for confirmation
- If complex changes found, ask user for guidance on priority areas已完成任务的审批工作流
After completing todo task #3 "Verify coding standards":
- Present the standards review results to user
- Ask user: "Do these coding standards meet project requirements?"
- If user confirms, mark task as approved
- If user identifies issues, add feedback to task logs for revision任务日志结构
每个任务都包括全面的日志:
{
"logs": [
{
"timestamp": "2024-01-15T10:30:00Z",
"action": "TASK_CREATED",
"mode": "orchestrator",
"details": "Created task for code review workflow"
},
{
"timestamp": "2024-01-15T10:32:15Z",
"action": "ANALYSIS_COMPLETED",
"mode": "technical-review",
"details": "Completed initial code analysis with 5 findings"
}
]
}与编排器模式集成
编排者应当:
- 始终为复杂的多步骤任务创建待办事项列表
- 在执行之前,向用户展示待办事项列表以供编辑/批准
- 明确指出每个待办事项的委派任务
- 使用任务日志跟踪进度并维护执行历史记录
- 在关键决策点请求用户确认
- 处理用户反馈并将其纳入任务修订中
自然语言交互示例
使用简单的语言,而不是技术术语,比如:
- 看看PR有什么评论
- “检查当前分支的更改”
- “为代码评论创建任务列表”
- “显示当前任务的进展”
- “确认这一步骤。”
系统将自动将这些任务转换为具有适当授权的适当待办任务。
与作者联系
此工具由以下人员手工制作和维护 米基塔·杜什米基耶夫。查看我的作品并在社交媒体上联系:
- 🌍 网站: md-code.space
- 💻 GitHub:
- 🛒 VS代码市场: drboria扩展
- 👔 领英: 米基塔·杜什米基耶夫
- 📸 Instagram: @mdcode.官方
- 📱 试试看。: @mdcode.官方
______________________________________________________________________
*创建于2026年。代码就像没有明天一样。*
