目标流程 MCP 服务器是为方便与 AI 助手集成而设,借助 Targetprocess 的 Model Context Protocol (MCP) 服务器,可通过命令行或桌面应用程序与强大的项目管理工具——目标流程进行交互,有效管理工作项、提升项目管理效率。
目标流程(Targetprocess)是一款强大的项目管理工具,可对用户故事、任务、缺陷等各类工作项进行跟踪和管理。为实现与 AI 助手的便捷集成,我们推出了 Targetprocess 的 Model Context Protocol (MCP) 服务器,支持通过命令行或桌面应用程序与目标流程展开交互。
克隆仓库:
git clone --recursive https://github.com/modelcontextprotocol/targetprocess-mcp.git
cd targetprocess-mcp
构建镜像并启动容器:
docker build -t targetprocess-mcp .
docker run -it -p 3000:3000 targetprocess-mcp
npm install
node build/index.js
TARGETPROCESS_DOMAIN=your-domain.tpondemand.com
TARGETPROCESS_USERNAME=your-username
TARGETPROCESS_PASSWORD=your-password
创建 config/targetprocess.json 文件:
{
"domain": "your-domain.tpondemand.com",
"credentials": {
"username": "your-username",
"password": "your-password"
}
}
可搜索目标流程中的实体(如用户故事、任务、缺陷等)。
{
"type": "UserStory",
"where": "EntityState.Name eq 'Open'",
"take": 10,
"include": ["Project", "Team"]
}
能获取特定实体的详细信息。
{
"type": "UserStory",
"id": 123456,
"include": ["Project", "Team"]
}
可在目标流程中创建新实体。
{
"type": "UserStory",
"name": "故事名称",
"description": "详细描述...",
"project": { "id": 123 },
"team": { "id": 456 }
}
可更新目标流程中的现有实体。
{
"type": "UserStory",
"id": 123456,
"name": "更新后的名称",
"description": "更新后的描述..."
}
take 参数来控制返回的结果数量。where 条件以提高查询效率。include 参数选择需要的关联数据,避免不必要的加载。支持与以下工具集成:
POST /api/entities/search
GET /api/entities/{id}
POST /api/entities
PUT /api/entities/{id}
本项目遵循 MIT 许可证。请查阅 LICENSE 文件以获取详细信息。
通过以上文档,您可以轻松地将目标流程与 AI 工具集成,提升项目管理效率。