Skip to content

快速入门

5 分钟开始使用 TaskFlow AI,让 Claude 拥有强大的开发能力


🎯 使用场景

场景一:让 Claude 帮你写代码

Claude: 帮我创建一个 React 组件,实现一个带搜索功能的列表

Claude 会自动使用 taskflow_filesystem 创建文件,使用 taskflow_code 验证代码。

场景二:让 Claude 帮你调试

Claude: 帮我检查这个项目的依赖问题

Claude 会使用 taskflow_shell 运行 npm audit,使用 taskflow_git 查看变更。

场景三:让 Claude 帮你部署

Claude: 帮我部署这个项目到生产环境

Claude 会使用 taskflow_git 提交代码,使用 taskflow_shell 执行部署命令。


📋 第一步:安装

bash
# 全局安装
npm install -g taskflow-ai

# 验证安装
taskflow --version

输出示例:

taskflow-ai v5.0.3

📋 第二步:配置 Claude Desktop

macOS

配置文件路径:~/Library/Application Support/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "taskflow": {
      "command": "npx",
      "args": ["-y", "taskflow-ai"]
    }
  }
}

Windows

配置文件路径:%APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "taskflow": {
      "command": "npx",
      "args": ["-y", "taskflow-ai"]
    }
  }
}

Linux

配置文件路径:~/.config/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "taskflow": {
      "command": "npx",
      "args": ["-y", "taskflow-ai"]
    }
  }
}

📋 第三步:验证安装

  1. 重启 Claude Desktop

  2. 打开 Claude 聊天界面

  3. 查看可用工具列表

    应该看到 taskflow_* 系列工具:

    taskflow_filesystem_listDirectory
    taskflow_filesystem_readFile
    taskflow_filesystem_writeFile
    taskflow_shell_exec
    taskflow_git_status
    ...
  4. 测试工具

    尝试以下提示词:

    列出当前目录的文件

    Claude 应该能调用 taskflow_filesystem_listDirectory 并返回结果。


🎉 完成!

现在你的 Claude 已经拥有了强大的开发能力


📚 下一步


💡 提示

提示说明
🔍 工具发现Claude 会自动发现所有注册的 MCP 工具
📁 工作目录默认使用 Claude 打开的项目目录
🔒 安全限制所有操作都经过安全验证,不会执行危险命令
⏱️ 超时控制所有操作都有超时限制,防止长时间运行

有什么问题随时问我

Released under the MIT License.