Model Context Protocol 服务器用于任务管理,可让 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。
brew install node 进行安装)~/Library/Application Support/Claude/claude_desktop_config.json。
你可以按以下步骤找到该文件:
{
"tools": {
"taskmanager": {
"command": "npx",
"args": ["-y", "@kazuph/mcp-taskmanager"]
}
}
}
brew install node 安装)npm install -g tsx 安装)git clone https://github.com/kazuph/mcp-taskmanager.git
cd mcp-taskmanager
npm install
npm run build
npm install -g tsx
# 或者
pnpm add -g tsx
~/Library/Application Support/Claude/claude_desktop_config.json。
添加以下内容到你的 MCP 客户端配置中:{
"tools": {
"taskmanager": {
"args": ["tsx", "/path/to/mcp-taskmanager/index.ts"]
}
}
}
任务管理器支持两个主要的操作阶段:
action: "plan" | "execute" | "complete"tasks: 任务字符串数组(在 "plan" 操作时为必填)taskId: 任务标识符(在 "complete" 操作时为必填)getNext: Boolean 标志,用于请求下一个任务(在 "execute" 操作时使用)// 计划阶段
{
action: "plan",
tasks: ["任务 1", "任务 2", "任务 3"]
}
// 执行阶段
{
action: "execute",
getNext: true
}
// 完成任务
{
action: "complete",