
Allure TestOps 的 MCP 服务器
概览
Allure TestOps 的生产准备 MCP 服务器专注于测试用例、发布、测试结果和测试计划。 - JWT 持有人认证与用户 API 令牌交换,支持内存缓存和到期时刷新。- 项目相关工具,可选默认项目通过 ALLURE_PROJECT_ID。- 项目范围操作可按 projectID 或 projectName 解析项目。- 测试用例自定义字段支持,包括查找和更新。- 本地 MCP 客户端(NPX 或本地构建)的 STDIO 传输。 - 测试用例:列表、搜索、获取、创建、更新、删除、恢复、概述、历史、场景、标签、问题、自定义字段 - 启动:列表、搜索、获取、创建、更新、删除、关闭、重新开放、统计数据、进度、添加测试用例/计划 - 测试结果:列表、搜索、获取、创建、更新、历史、分配、解决 - 测试计划:列表、获取、创建、更新、删除、运行 以用户为中心的运行时和集成文档在文档/使用/中: - docs/usages/README.md - docs/usages/docker.md - docs/usages/npx。
概述(AI 翻译)
Allure TestOps 的生产准备 MCP 服务器专注于测试用例、发布、测试结果和测试计划。
特色
- JWT 持有人认证与用户 API 令牌交换,支持内存缓存和到期时刷新。
- 项目感知工具,可选默认项目通过
ALLURE_PROJECT_ID。 - 项目范围操作按
projectId或projectName进行项目解析。 - 测试用例自定义字段支持,包括查找和更新。
stdio本地 MCP 客户端(npx或本地构建)的传输。
工具覆盖
- 测试用例:列表、搜索、获取、创建、更新、删除、恢复、概述、历史、场景、标签、问题、自定义字段
- 启动:列表、搜索、获取、创建、更新、删除、关闭、重新开启、统计、进度、添加测试用例/计划
- 测试结果:列出、搜索、获取、创建、更新、历史记录、分配、解决
- 测试计划:列出、获取、创建、更新、删除、运行
用户使用文档
面向用户的运行时和集成文档见 docs/usages/:
docs/usages/README.mddocs/usages/docker.mddocs/usages/npx.mddocs/usages/running-locally.mddocs/usages/integrations.mddocs/usages/examples/README.mddocs/usages/examples/test-cases.md
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Allure TestOps MCP
Production-ready MCP server for Allure TestOps focused on test cases, launches, test results, and test plans.
Features
- JWT bearer auth exchange from user API token, with in-memory caching and refresh on expiry.
- Project-aware tools with optional default project via
ALLURE_PROJECT_ID. - Project resolution by
projectIdorprojectNamefor project-scoped operations. - Test case custom field support, including lookup and updates.
stdiotransport for local MCP clients (npxor local build).
Tool Coverage
- Test cases: list, search, get, create, update, delete, restore, overview, history, scenario, tags, issues, custom fields
- Launches: list, search, get, create, update, delete, close, reopen, statistics, progress, add test cases/plans
- Test results: list, search, get, create, update, history, assign, resolve
- Test plans: list, get, create, update, delete, run
User Usage Docs
User-focused runtime and integration docs are in docs/usages/:
docs/usages/README.mddocs/usages/docker.mddocs/usages/npx.mddocs/usages/running-locally.mddocs/usages/integrations.mddocs/usages/examples/README.mddocs/usages/examples/test-cases.mddocs/usages/examples/launches.mddocs/usages/examples/test-results.mddocs/usages/examples/test-plans.mddocs/usages/examples/custom-fields.mddocs/usages/examples/workflows.md
Tool Catalog (GitHub Pages)
The auto-generated MCP tool catalog is published via GitHub Pages:
The page content is generated from source tool definitions. When a new tool is added to src/tools/*.ts, the Pages workflow regenerates docs/tools.json and updates the site automatically.
Authentication
This server follows the Allure TestOps API guide:
- Use your user-generated API token in
ALLURE_TOKEN. - Server exchanges it at
/api/uaa/oauth/token. - Received bearer JWT is cached and reused until near expiry.
Reference: https://docs.qameta.io/allure-testops/advanced/api/
Environment Variables
ALLURE_TESTOPS_URL=https://allure-testops.instance.com/
ALLURE_TOKEN=your-api-token
# Optional default project:
# ALLURE_PROJECT_ID=37
ALLURE_TESTOPS_URLrequiredALLURE_TOKENrequiredALLURE_PROJECT_IDoptional
If ALLURE_PROJECT_ID is not set, tools that require project scope must receive:
projectId, orprojectName(resolved via/api/project/suggest)
Run Locally
Prerequisites
- Node.js v18+ and npm
安装
npx -y github:armanayvazyan/allure-testops-mcp#v1.0.0配置
{
"mcpServers": {
"allure-testops": {
"command": "npx",
"args": ["-y", "github:armanayvazyan/allure-testops-mcp#v1.0.0"],
"env": {
"ALLURE_TESTOPS_URL": "https://allure-testops.instance.com",
"ALLURE_TOKEN": "your-api-token",
"ALLURE_PROJECT_ID": "37"
}
}
}
}