demand-processor-mcp
v1.0.0
Published
MCP Server for intelligent demand processing, evaluation, and team collaboration
Maintainers
Readme
Demand Processor MCP Server
智能需求处理MCP服务器,为Claude Code提供需求分析、成本估算、工作量评估等能力。
功能特性
- 需求解析 - 自动解析需求描述,提取关键信息
- 成本计算 - 计算token消耗、API成本、人力成本
- 工作量估算 - 估算开发、测试、部署时间
- 可行性评估 - 评估技术可行性和资源需求
- 方案分析 - 比较不同解决方案的优劣
- 团队协作 - 创建协作agents
- 报告生成 - 生成完整的评估报告
安装
通过npm安装(推荐)
npm install -g demand-processor-mcp从源码安装
git clone <repository-url>
cd demand-processor-mcp
npm install
npm run build
npm link配置Claude Code
在 ~/.claude/settings.json 中添加:
{
"mcpServers": {
"demand-processor": {
"command": "demand-processor-mcp"
}
}
}重启Claude Code后,工具将自动可用。
使用示例
1. 解析需求
使用 parse_demand 工具解析以下需求:
"创建一个图片压缩工具,支持批量处理,输出格式可选"2. 计算成本
使用 calculate_cost 工具计算需求 req-xxx 的成本
复杂度:medium
模型:sonnet3. 估算工作量
使用 estimate_workload 工具估算需求 req-xxx 的工作量
复杂度:medium4. 生成报告
使用 generate_report 工具生成需求 req-xxx 的完整报告
格式:markdown工具列表
| 工具名称 | 描述 | 参数 |
|---------|------|------|
| parse_demand | 解析需求描述 | demand, source? |
| calculate_cost | 计算成本 | demandId, complexity, model? |
| estimate_workload | 估算工作量 | demandId, complexity |
| evaluate_feasibility | 评估可行性 | demandId, techStack? |
| analyze_solutions | 分析方案 | demandId, constraints? |
| create_team_agents | 创建团队agents | demandId, agentTypes |
| generate_report | 生成报告 | demandId, format? |
资源
demand://templates/demand- 需求文档模板demand://templates/evaluation- 评估报告模板demand://history/list- 历史需求列表
数据存储
所有数据存储在 ~/.demand-processor/ 目录:
~/.demand-processor/
├── demands/ # 需求信息
├── costs/ # 成本估算
├── workloads/ # 工作量估算
└── reports/ # 生成的报告开发
# 安装依赖
npm install
# 开发模式
npm run dev
# 构建
npm run build
# 监听模式
npm run watch许可证
MIT
贡献
欢迎提交Issue和Pull Request!
