经 AI Skill Hub 精选评估,报告门户MCP服务器 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
报告门户MCP服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
报告门户MCP服务器 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/reportportal/reportportal-mcp-server
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"----mcp---": {
"command": "npx",
"args": ["-y", "reportportal-mcp-server"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 报告门户MCP服务器 执行以下任务... Claude: [自动调用 报告门户MCP服务器 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"____mcp___": {
"command": "npx",
"args": ["-y", "reportportal-mcp-server"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
The ReportPortal MCP server provides a comprehensive set of capabilities for interacting with ReportPortal:
Before setting up the MCP server, you need the following information from your ReportPortal instance:
Run task deps to install Go dependencies:
task deps
There are two ways to connect to the ReportPortal MCP Server: 1. Locally - via Docker (recommended) or using pre-built binaries. 2. Connecting to a remote MCP server (when the server is already deployed)
Each of these methods is suitable for any LLM provider.
The configurations below use the default stdio mode (MCP_MODE=stdio), which is the correct choice for all local AI tool integrations. To run the server in HTTP mode instead, add MCP_MODE=http to the env block (see the For developers section for details).
The MCP server is available on the official ReportPortal's DockerHub.
Configuration:
{
"reportportal": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"RP_API_TOKEN",
"-e",
"RP_HOST",
"-e",
"RP_PROJECT",
"reportportal/mcp-server"
],
"env": {
"RP_API_TOKEN": "your-api-token",
"RP_HOST": "https://your-reportportal-instance.com",
"RP_PROJECT": "YourProjectKeyFromReportPortal"
}
}
}
The OS pre-built binaries can be downloaded from the official releases on GitHub.
Configuration:
{
"reportportal": {
"command": "/path/to/reportportal-mcp-server-binary",
"args": ["stdio"],
"env": {
"RP_API_TOKEN": "your-api-token",
"RP_HOST": "https://your-reportportal-instance.com",
"RP_PROJECT": "YourProjectKeyFromReportPortal"
}
}
}
Choose your favourite AI Tool to connect.
```bash
go build -o reportportal-mcp-server ./cmd/reportportal-mcp-server ```
This creates an executable called reportportal-mcp-server.
task build
task docker:build
If connecting to a remote MCP server, verify it's accessible:
Via Browser:
http://your-mcp-server-host:port/
Should return server information and available endpoints.
Via curl (GET request):
```bash
Problem: Docker container exits immediately
Solutions: 1. Check container logs: docker logs <container-name> 2. Verify all required environment variables are set 3. Ensure environment variable values don't have syntax errors 4. Check Docker has permission to access the network
Problem: "docker: command not found"
Solutions: 1. Install Docker Desktop for your OS 2. Verify Docker is running: docker --version 3. For Linux, add user to docker group: sudo usermod -aG docker $USER
Here are some real-world examples of what you might ask your AI after setup (the assistant's response will be drawn from ReportPortal data):
Each query above corresponds to a "tool" provided by the MCP server, but you just phrase it naturally. The AI will invoke the correct command behind the scenes. These features let you query and manage your test reports in many ways through simple chat interactions.
This value is optional. When set, it defines the default project key used for all requests; individual tools can still override it per call via the projectKey argument.
The project key is the unique project identifier within the ReportPortal instance, do not use the project display name as project key. Find this on the ReportPortal general settings page:
https://your-rp-instance.com/ui/#organizations/{your-organization}/projects/{your_project}/settings/general
The server needs to know where your ReportPortal is and how to authenticate. Set these environment variables in your shell:
For stdio mode (default):
| Variable | Description | Required |
|---|---|---|
RP_HOST | The URL of your ReportPortal installation (e.g. https://myreportportal.example.com) | Yes |
RP_PROJECT | Your default project key in ReportPortal (unique project identifier within the ReportPortal instance, e.g. myorganization_myproject) | No |
RP_API_TOKEN | Your ReportPortal API token (for access) | Yes |
For HTTP mode:
Set MCP_MODE=http and configure the following: - RP_HOST: Required - The URL of your ReportPortal - RP_PROJECT: Optional - Your default project key (unique project identifier within the ReportPortal instance) - MCP_SERVER_PORT: Optional - HTTP server port (default: 8080) - MCP_SERVER_HOST: Optional - HTTP bind host (default: empty) - Authentication tokens must be passed per-request via Authorization: Bearer <token> header - RP_API_TOKEN environment variable is not used in HTTP mode
Example for stdio mode:
export RP_HOST="https://your-reportportal-instance.com"
export RP_PROJECT="YourProjectKeyFromReportPortal"
export RP_API_TOKEN="your-api-token"
./reportportal-mcp-server
Example for HTTP mode:
```bash export MCP_MODE=http export RP_HOST="https://your-reportportal-instance.com" export RP_PROJECT="YourProjectKeyFromReportPortal" export MCP_SERVER_PORT=8080 ./reportportal-mcp-server
Problem: "Environment variable not set"
Solutions: 1. Verify variable names are correct: RP_HOST, RP_PROJECT, RP_API_TOKEN 2. For Docker, check -e flags are specified correctly 3. For binary, export variables in the same shell session 4. Use echo $VAR_NAME (Linux/Mac) or $env:VAR_NAME (PowerShell) to verify
Problem: "Invalid JSON" configuration errors
Solutions: 1. Validate JSON syntax using a JSON validator 2. Remove trailing commas in JSON objects 3. Ensure all strings are properly quoted 4. Check for comments (JSON doesn't support comments) 5. Verify escape characters in paths (use \\ in Windows paths)
You can get an API token from your ReportPortal Profile or generate a new one. Security Note: Never commit tokens to version control or share them publicly.
When running in HTTP mode (MCP_MODE=http), the server exposes the following endpoints:
POST /mcp - Main MCP endpoint for JSON-RPC requestsPOST /api/mcp - Alternative MCP endpoint (same functionality)GET /mcp - SSE (Server-Sent Events) stream endpoint for MCP protocolGET /api/mcp - Alternative SSE stream endpointImportant: POST requests must be sent to /mcp or /api/mcp, not to the root endpoint /.
Request Format:
All MCP requests must follow the JSON-RPC 2.0 specification:
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_launches",
"arguments": {
"filter-cnt-name": "test",
"page": 1,
"page-size": 10
}
}
}
Example Request:
curl -X POST http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-reportportal-token" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_launches",
"arguments": {
"page": 1,
"page-size": 10
}
}
}'
GET / - Root endpoint, returns server information and available endpointsGET /health - Health check endpointGET /info - Server information and configurationGET /api/status - Server status (same as /info)GET /metrics - Analytics metrics (if analytics enabled)Note: The root endpoint / only accepts GET requests. POST requests to / will return a 404 error. Use /mcp or /api/mcp for MCP protocol requests.
curl -H "Authorization: Bearer your-api-token" \ https://your-reportportal-instance.com/api/v1/YourProjectKey/launch
**Via PowerShell:**
powershell
$headers = @{ "Authorization" = "Bearer your-api-token" } Invoke-RestMethod -Uri "https://your-reportportal-instance.com/api/v1/YourProjectKey/launch" -Headers $headers ```
Expected Results: - HTTP 200 OK response - Valid JSON response with launch data (if project has launches) - No authentication errors (401) or forbidden errors (403)
curl -X POST http://your-mcp-server-host:port/mcp \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your-api-token" \ -H "X-Project: YourProjectKey" \ -d '{ "jsonrpc": "2.0", "method": "tools/list", "id": 1 }'
**Via PowerShell:**
powershell
$headers = @{ "Content-Type" = "application/json" "Authorization" = "Bearer your-api-token" "X-Project" = "YourProjectKey" } $body = @{ jsonrpc = "2.0" method = "tools/list" id = 1 } | ConvertTo-Json
Invoke-RestMethod -Uri "http://your-mcp-server-host:port/mcp" -Method Post -Headers $headers -Body $body
**Via ping (network connectivity only):**
bash ping your-mcp-server-host ```
Expected Results: - Server responds to health checks - /info returns server configuration - MCP endpoint returns list of available tools - No connection refused or timeout errors
After configuration, verify the AI assistant can communicate with the MCP server:
Step 1: Check Available Tools
Ask your AI assistant:
"What ReportPortal tools are available?"
Expected response: A list of 31 tools including launches, test items, analysis tools, TMS tools, etc.
Step 2: Test Basic Query
Try a simple query:
"List the 5 most recent test launches"
Expected response: A formatted list of recent launches with names, statuses, and timestamps.
Step 3: Check Server Logs
Monitor logs to verify requests are being processed:
Docker:
```bash
Problem: AI assistant doesn't recognize MCP server
Solutions: 1. Verify configuration file syntax is valid JSON 2. Check configuration file is in the correct location 3. Restart the AI assistant after configuration changes 4. For Cursor/VS Code, check MCP extension is installed and enabled 5. Review AI assistant logs for error messages
Problem: Tools list is empty
Solutions: 1. Verify MCP server is running and accessible 2. Check server logs for startup errors 3. Ensure server mode matches client configuration (stdio vs HTTP) 4. For remote servers, verify URL ends with /mcp/
Ctrl+P and type >mcp in the search bar and select MCP: Open User Configuration.mcp.json where you need to add a new MCP server entry that runs the ReportPortal MCP Server:For local installation (Docker or binary):
Choose your preferred configuration from the Installation section and paste it inside the reportportal block.
{
"servers": {
"reportportal": {
// paste your chosen configuration here
}
}
}
For remote server:
Note: The remote server must be deployed and running in HTTP mode before connecting.
{
"servers": {
"reportportal": {
"url": "http://your-mcp-server-host:port/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer ${RP_API_TOKEN}",
"X-Project": "YourProjectKeyFromReportPortal"
}
}
}
}
}
Documentation: VS Code Copilot Guide.
For local installation (Docker or binary):
Choose your preferred configuration from the Installation section and paste it inside the reportportal block.
{
"servers": {
"reportportal": {
// paste your chosen configuration here
}
}
}
For remote server:
Note: The remote server must be deployed and running in HTTP mode before connecting.
{
"servers": {
"reportportal": {
"url": "http://your-mcp-server-host:port/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer ${RP_API_TOKEN}",
"X-Project": "YourProjectKeyFromReportPortal"
}
}
}
}
}
Ctrl + S or Command + S to save, or close the mcp.json file. The configuration should take effect immediately and restart all the MCP servers defined. You can restart the IDE if needed.Documentation: JetBrains Copilot Guide.
reportportal-mcp-server 是一个专为 ReportPortal 设计的 MCP (Model Context Protocol) 服务端实现。它通过 MCP 协议将 ReportPortal 的强大测试分析能力引入 AI 助手,让开发者能够通过自然语言直接与测试数据进行交互,实现智能化的测试结果查询与分析。
该 MCP server 为用户提供了与 ReportPortal 深度交互的全方位能力。通过集成,AI 助手可以调用一系列工具来检索测试��动记录 (launches)、查询测试项详情 (test items)、执行自动化分析,并支持与 TMS (测试管理系统) 工具链的协同工作,极大提升了测试数据的获取效率。
在部署 MCP server 之前,请确保您的开发环境已安装 Go 1.24.4 或更高版本。此外,您必须拥有一个可正常访问的 ReportPortal 实例,并准备好相应的访问凭证,以便 server 能够成功连接并获取测试数据。
您可以根据使用场景选择不同的安装方式:1. 本地部署(推荐):使用 Docker 运行,这是最便捷且隔离性最好的方式;也可以使用预编译的二进制文件。2. 远程连接:如果 MCP server 已在远程环境部署,您可以直接连接到远程服务。对于本地 AI 工具集成,建议使用默认的 stdio 模式(设置 MCP_MODE=stdio)。
配置完成后,您可以直接使用自然语言向 AI 助手提问。例如,您可以询问“最近 5 次测试启动的状态是什么?”或“在最近一次运行中哪些测试失败了?”。AI 助手会根据您的指令,自动调用 ReportPortal 的数据并生成易于理解的响应,无需手动编写复杂的查询语句。
在使用过程中,您需要通过环境变量进行身份验证与配置。对于 stdio 模式,请在 shell 中设置必要的环境变量。如果需要指定特定的项目,可以配置 RP_PROJECT 参数(注意:必须使用 ReportPortal 实例中的唯一项目标识符,而非显示名称)。请务必确保配置信息的安全性。
当服务器以 HTTP 模式(MCP_MODE=http)运行时,它会暴露一系列 API 端点。这包括用于 JSON-RPC 请求的 POST /mcp 端点,以及支持 SSE (Server-Sent Events) 的 GET /mcp 端点。开发者可以通过携带 RP_API_TOKEN 的 curl 命令或 PowerShell 命令来测试 API 的访问权限。
完成配置后,请务必验证 MCP server 的集成状态。您可以通过询问 AI 助手“有哪些 ReportPortal 工具可用?”来检查。如果集成成功,AI 助手应当能列出包括 launches、test items 及分析工具在内的 31 个可用工具列表,从而确认通信链路已完全打通。
如果在集成过程中遇到问题,请参考故障排除指南。常见的场景包括 AI 助手无法识别 MCP server,这通常与配置文件语法错误、路径不正确或 AI 客户端(如 Cursor/VS Code)未启用 MCP 扩展有关。建议在修改配置后重启 AI 助手以确保更改生效。
高质量的开源MCP工具,使用go语言开发
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:报告门户MCP服务器 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | reportportal-mcp-server |
| 原始描述 | 开源MCP工具:MCP server for ReportPortal。⭐21 · Go |
| Topics | mcpgoreportportal |
| GitHub | https://github.com/reportportal/reportportal-mcp-server |
| License | Apache-2.0 |
| 语言 | Go |
收录时间:2026-06-01 · 更新时间:2026-06-01 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端