快速入门
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"]
}
}
}📋 第三步:验证安装
重启 Claude Desktop
打开 Claude 聊天界面
查看可用工具列表
应该看到
taskflow_*系列工具:taskflow_filesystem_listDirectory taskflow_filesystem_readFile taskflow_filesystem_writeFile taskflow_shell_exec taskflow_git_status ...测试工具
尝试以下提示词:
列出当前目录的文件Claude 应该能调用
taskflow_filesystem_listDirectory并返回结果。
🎉 完成!
现在你的 Claude 已经拥有了强大的开发能力
📚 下一步
- 查看详细安装指南 - 了解详细安装步骤和高级配置
- 查看 MCP 工具参考 - 了解所有可用工具
- 查看集成指南 - 配置其他 AI 编辑器
💡 提示
| 提示 | 说明 |
|---|---|
| 🔍 工具发现 | Claude 会自动发现所有注册的 MCP 工具 |
| 📁 工作目录 | 默认使用 Claude 打开的项目目录 |
| 🔒 安全限制 | 所有操作都经过安全验证,不会执行危险命令 |
| ⏱️ 超时控制 | 所有操作都有超时限制,防止长时间运行 |
有什么问题随时问我