Epic生成器MCP服务器
使用Python的最小MCP服务器 mcp SDK(FastMCP助手),从检测到的工作包生成Epics和Stories(例如,通过GitHub Copilot提示启动的更改)。
- 章程:
.specify/memory/constitution.md - 规格:
.specify/specs/epic-generator.md - 入口点:
server.py
需求
- Python 3.10+(推荐3.11+)
- 安装依赖项:
pip install -r requirements.txt跑
通过stdio启动服务器:
python server.py与MCP兼容的客户端集成以调用 generate_epic 工具。
工具:generate_epic
输入:
{
"prompt": "string",
"files": [{"path": "string", "changeType": "modified|added|deleted", "diff": "string?"}],
"configuration": {"defaultDurationDays": 5, "storySplitStrategy": "auto|single"}
}输出:
{
"epic": { /* Epic */ },
"stories": [ { /* Story */ } ]
}开发快速测试
提供了一个小型测试流道:
python test_generate_epic.py它进口 generate_epic 直接验证基本合同(不需要外部客户端)。
