AA

armanayvazyan/allure-testops-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

21 stars 16 forks 质量 78 趋势 14MIT

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.md
  • docs/usages/docker.md
  • docs/usages/npx.md
  • docs/usages/running-locally.md
  • docs/usages/integrations.md
  • docs/usages/examples/README.md
  • docs/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 projectId or projectName for project-scoped operations.
  • Test case custom field support, including lookup and updates.
  • stdio transport for local MCP clients (npx or 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/:

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:

  1. Use your user-generated API token in ALLURE_TOKEN.
  2. Server exchanges it at /api/uaa/oauth/token.
  3. 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_URL required
  • ALLURE_TOKEN required
  • ALLURE_PROJECT_ID optional

If ALLURE_PROJECT_ID is not set, tools that require project scope must receive:

  • projectId, or
  • projectName (resolved via /api/project/suggest)

Run Locally

Prerequisites

  • Node.js v18+ and npm
在 GitHub 查看完整 README

安装

npx -y github:armanayvazyan/allure-testops-mcp#v1.0.0
新手?先看 mcpskill.org 教程 →

配置

{ "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" } } } }