RR

reportportal/reportportal-mcp-server

开发工具

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

25 stars 25 forks 质量 89 趋势 20Apache-2.0

ReportPortal 的 MCP 服务器

概览

本 README 反映了当前的开发分支。有关最新工具和功能列表,请查看主分支的 README。 ReportPortal MCP 服务器是你的 ReportPortal 实例与 AI 聊天助手(如 Claude Desktop、GitHub Copilot、Cursor)之间的桥梁。简单来说,它让你可以用通俗易懂的英语提问,并直接从 ReportPortal 获得答案。它遵循官方 MCP 指南。 从2.x版本开始,服务器还集成了测试用例、文件夹、里程碑和测试计划,因此您可以通过同一个聊天界面浏览和管理测试设计数据。 例如,你可以不登录ReportPortal界面,而是问AI助手“上次运行中哪些测试失败了?”或“列出最近的5个测试运行”,它会帮你从ReportPortal获取这些信息。

概述(AI 翻译)

报告门户 MCP 服务器

文档说明: 本 README 反映了当前的开发分支。有关最新的工具和功能列表,请查看 main 分支的 README。

什么是ReportPortal MCP服务器?

ReportPortal MCP 服务器是你的 ReportPortal 实例与 AI 聊天助手(如 Claude Desktop、GitHub Copilot、Cursor)之间的桥梁。简单来说,它让你可以用通俗易懂的英语提问,并直接从 ReportPortal 获得答案。它遵循官方 MCP 指南。

从2.x版本开始,服务器还集成了ReportPortal测试案例管理系统(TMS)——包含测试案例、文件夹、里程碑和测试计划——因此您可以通过同一聊天界面浏览和管理测试设计数据。

例如,你可以不登录 ReportPortal 界面,而是问你的 AI 助手“上次运行中哪些测试失败了?”或“列出最近的5个测试运行”,它会帮你从 ReportPortal 获取这些信息。借助 TMS 支持,你还可以问诸如“在 Smoke 文件夹中列出测试用例”或“为当前冲刺里程碑创建测试计划。

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

README

以下为原文 README 节选,完整内容请查看原文。

ReportPortal MCP Server

What is the ReportPortal MCP Server?

The ReportPortal MCP Server is a bridge between your ReportPortal instance and AI chat assistants (such as Claude Desktop, GitHub Copilot, Cursor). In simple terms, it lets you ask questions in plain English about your test runs and get answers directly from ReportPortal. It follows the official MCP guidelines.

Starting with version 2.x, the server also integrates with the ReportPortal Test Case Management System (TMS) — test cases, folders, milestones, and test plans — so you can browse and manage test design data through the same chat interface.

For example, instead of logging into the ReportPortal UI, you could ask your AI assistant “What tests failed in the last run?” or “List the 5 most recent test runs,” and it will fetch that information from ReportPortal for you. With TMS support, you can also ask things like “List test cases in the Smoke folder” or “Create a test plan for the current sprint milestone.” This makes it easy for QA testers and managers to manage test cases, query test results and test assets using natural language, speeding up planning, analysis and reporting.

Why Use It?

  • Quick Test Insights: Instantly retrieve summaries of test runs, failure counts, or error details without writing code or navigating the UI.
  • TMS from Chat: Browse, create, and update test cases, folders, milestones, and test plans in ReportPortal TMS without leaving your AI assistant.
  • Chat-Based Queries: Use your favourite AI assistant (Claude, Cursor, etc.) to converse with ReportPortal data. It’s like having a smart test-reporting helper in your chat window.
  • Integration Flexibility: Works with any MCP-compatible AI tool. You simply point the tool at this server and it can run ReportPortal queries under the hood.
  • No Custom Scripts Needed: Common queries (listing runs, getting failures, analysis, TMS lookups) are built-in as simple “commands” you invoke via chat.

Prerequisites

Before setting up the MCP server, you need the following information from your ReportPortal instance:

ReportPortal Host URL (RP_HOST)

The URL of your ReportPortal instance:

  • Example: https://reportportal.example.com
  • For local: http://localhost:8080

Project Key (RP_PROJECT) — Optional

在 GitHub 查看完整 README

安装

docker run -i --rm -e RP_API_TOKEN -e RP_HOST -e RP_PROJECT reportportal/mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "reportportal": { // paste your chosen configuration here } } }