返回市场
软件规划mcp

软件规划mcp

作者:NightTrek386 星标更新:2025-03-14

项目介绍

软件规划工具 🚀

smithery 徽章

这是一个通过交互式、结构化方法促进软件开发规划的模型上下文协议(MCP)服务器。此工具帮助将复杂的软件项目分解成可管理的任务,跟踪实施进度,并维护详细的开发计划。

<a href="https://glama.ai/mcp/servers/a35c7qc7ie"> <img width="380" height="200" src="https://gips3.baidu.com/it/u=645464405,4136278258&fm=3081&app=3081&f=PNG?w=760&h=400" alt="软件规划工具 MCP 服务器" /> </a>

功能 ✨

  • 交互式规划会话:启动并管理开发规划会话
  • 待办事项管理:创建、更新并跟踪开发任务
  • 复杂度评分:为任务分配复杂度评分以进行更好的估算
  • 代码示例:在任务描述中包含相关的代码片段
  • 实施计划:保存并管理详细的实施计划

安装 🛠️

通过 Smithery 安装

要通过 Smithery 自动安装 Software Planning Tool for Claude Desktop:

npx -y @smithery/cli install @NightTrek/Software-planning-mcp --client claude

手动安装

  1. 克隆仓库
  2. 安装依赖项:
pnpm install
  1. 构建项目:
pnpm run build
  1. 添加到您的 MCP 设置配置(通常位于 ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):
{
  "mcpServers": {
    "software-planning-tool": {
      "command": "node",
      "args": [
        "/path/to/software-planning-tool/build/index.js"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}

可用工具 🔧

start_planning

开始一个具有特定目标的新规划会话。

{
  goal: string  // 要规划的软件开发目标
}

add_todo

向当前计划添加一个新的待办事项。

{
  title: string,         // 待办事项的标题
  description: string,   // 详细的描述
  complexity: number,    // 复杂度评分(0-10)
  codeExample?: string  // 可选的代码示例
}

get_todos

检索当前计划中的所有待办事项。

// 不需要参数

update_todo_status

更新待办事项的完成状态。

{
  todoId: string,     // 待办事项的ID
  isComplete: boolean // 新的完成状态
}

save_plan

保存当前的实施计划。

{
  plan: string  // 实施计划文本
}

remove_todo

从当前计划中移除一个待办事项。

{
  todoId: string  // 要移除的待办事项的ID
}

示例用法 📝

这里是一个使用软件规划工具的完整示例:

  1. 开始一个规划会话:
await client.callTool("software-planning-tool", "start_planning", {
  goal: "创建一个基于React的仪表盘应用程序"
});
  1. 添加一个待办事项:
const todo = await client.callTool("software-planning-tool", "add_todo", {
  title: "设置项目结构",
  description: "初始化带有必要依赖项的React项目",
  complexity: 3,
  codeExample: `
npx create-react-app dashboard
cd dashboard
npm install @material-ui/core @material-ui/icons
  `
});
  1. 更新待办事项的状态:
await client.callTool("software-planning-tool", "update_todo_status", {
  todoId: todo.id,
  isComplete: true
});
  1. 保存实施计划:
await client.callTool("software-planning-tool", "save_plan", {
  plan: `
# 仪表盘实施计划

## 阶段1:设置(复杂度:3)
- 初始化React项目
- 安装依赖项
- 设置路由

## 阶段2:核心功能(复杂度:5)
- 实现身份验证
- 创建仪表盘布局
- 添加数据可视化组件
  `
});

开发 🔨

项目结构

software-planning-tool/
  ├── src/
  │   ├── index.ts        # 主服务器实现
  │   ├── prompts.ts      # 规划提示和模板
  │   ├── storage.ts      # 数据持久化
  │   └── types.ts        # TypeScript 类型定义
  ├── build/              # 编译后的JavaScript
  ├── package.json
  └── tsconfig.json

构建

pnpm run build

测试

使用 MCP 检查器测试所有功能:

pnpm run inspector

许可证 📄

MIT


使用 Model Context Protocol 制作 ❤️