返回市场
智能熊-MCP

智能熊-MCP

作者:SmartBear17 星标更新:2025-11-21

项目介绍

<div align="center"> <a href="https://www.smartbear.com"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://assets.smartbear.com/m/79b99a7ff9c81a9a/original/SmartBear-Logo_Dark-Mode.svg"> <img alt="SmartBear logo" src="https://assets.smartbear.com/m/105001cc5db1e0bf/original/SmartBear-Logo_Light-Mode.svg"> </picture> </a> <h1>SmartBear MCP 服务器</h1> <!-- 徽标 --> <div> <a href="https://github.com/SmartBear/smartbear-mcp/actions/workflows/test.yml"><img src="https://github.com/SmartBear/smartbear-mcp/actions/workflows/test.yml/badge.svg?branch=main" alt="测试状态"></a> <a href="https://smartbear.github.io/smartbear-mcp/"><img src="https://img.shields.io/badge/覆盖率-动态-brightgreen" alt="覆盖率"></a> <a href="https://www.npmjs.com/package/@smartbear/mcp"><img src="https://img.shields.io/npm/v/@smartbear/mcp" alt="npm 版本"></a> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-兼容-blue" alt="MCP 兼容"></a> <a href="https://developer.smartbear.com/smartbear-mcp"><img src="https://img.shields.io/badge/文档-最新-blue.svg" alt="文档"></a> </div> </div> <br />

这是一个模型上下文协议(MCP)服务器,它提供了AI助手无缝访问SmartBear的一系列测试和监控工具的能力,包括BugSnagReflectSwaggerPactFlowPact BrokerQMetryZephyrCollaborator

什么是MCP?

模型上下文协议(MCP) 是一个开放标准,使AI助手能够安全地连接到外部数据源和工具。此服务器通过自然语言接口公开SmartBear的API,允许您查询测试数据、分析性能指标,并直接从您的AI工作流中管理测试自动化。

支持的工具

查看各个指南以获取建议的提示和支持的工具和资源:

预备条件

  • Node.js 20+ 和 npm
  • 访问SmartBear产品(BugSnag、Reflect、Swagger、QMetry或Zephyr)
  • 您希望集成的产品的有效API令牌

安装

MCP服务器作为npm包@smartbear/mcp分发,使其易于集成到您的开发工作流程中。

服务器使用您与SmartBear产品一起使用的API密钥或认证令牌启动。它们是可选的,如果未使用该产品,可以从配置中移除。对于BugSnag,如果您提供项目API密钥,它将把所有搜索范围缩小到BugSnag仪表板中的单个项目。如果您希望同时跨多个项目进行交互,请留空。

VS Code与Copilot

为了快速设置,使用命令面板中的“MCP:添加服务器…”命令来添加@smartbear/mcp npm包。

<details> <summary><strong>📋 手动安装</strong></summary>

或者,您可以使用npx(或全局安装)@smartbear/mcp包来运行服务器,并在您的.vscode/mcp.json文件中添加以下内容:

{
  "servers": {
    "smartbear": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@smartbear/mcp@latest"
      ],
      "env": {
        "BUGSNAG_AUTH_TOKEN": "${input:bugsnag_auth_token}",
        "BUGSNAG_PROJECT_API_KEY": "${input:bugsnag_project_api_key}",
        "REFLECT_API_TOKEN": "${input:reflect_api_token}",
        "SWAGGER_API_KEY": "${input:swagger_api_key}",
        "PACT_BROKER_BASE_URL": "${input:pact_broker_base_url}",
        "PACT_BROKER_TOKEN": "${input:pact_broker_token}",
        "PACT_BROKER_USERNAME": "${input:pact_broker_username}",
        "PACT_BROKER_PASSWORD": "${input:pact_broker_password}",
        "QMETRY_API_KEY": "${input:qmetry_api_key}",
        "QMETRY_BASE_URL": "${input:qmetry_base_url}",
        "ZEPHYR_API_TOKEN": "${input:zephyr_api_token}",
        "ZEPHYR_BASE_URL": "${input:zephyr_base_url}",
        "COLLAB_BASE_URL": "${input:collab_base_url}",
        "COLLAB_USERNAME": "${input:collab_username}",
        "COLLAB_LOGIN_TICKET": "${input:collab_login_ticket}"
      }
    }
  },
  "inputs": [
      {
         "id": "bugsnag_auth_token",
         "type": "promptString",
         "description": "BugSnag认证令牌 - 留空以禁用BugSnag工具",
         "password": true
      },
      {
         "id": "bugsnag_project_api_key",
         "type": "promptString",
         "description": "BugSnag项目API密钥 - 用于单个项目交互",
         "password": false
      },
      {
         "id": "reflect_api_token",
         "type": "promptString",
         "description": "Reflect API令牌 - 留空以禁用Reflect工具",
         "password": true
      },
      {
         "id": "swagger_api_key",
         "type": "promptString",
         "description": "Swagger API密钥 - 留空以禁用Swagger工具",
         "password": true
      },
      {
         "id": "pact_broker_base_url",
         "type": "promptString",
         "description": "PactFlow或Pact Broker基础URL - 留空以禁用工具",
         "password": true
      },
      {
         "id": "pact_broker_token",
         "type": "promptString",
         "description": "PactFlow认证令牌",
         "password": true
      },
      {
         "id": "pact_broker_username",
        
         "type": "promptString",
         "description": "Pact Broker用户名",
         "password": true
      },
      {
         "id": "pact_broker_password",
         "type": "promptString",
         "description": "Pact Broker密码",
         "password": true
      },
      {
          "id": "qmetry_api_key",
          "type": "promptString",
          "description": "QMetry Open API密钥",
          "password": true
      },
      {
          "id": "qmetry_base_url",
          "type": "promptString",
          "description": "默认情况下,连接到https://testmanagement.qmetry.com。如有需要,更改到自定义QMetry服务器URL或特定区域端点。",
          "password": false
      },
      {
          "id": "zephyr_api_token",
          "type": "promptString",
          "description": "Zephyr API令牌 - 留空以禁用Zephyr工具",
          "password": true
      },
      {
          "id": "zephyr_base_url",
          "type": "promptString",
          "description": "Zephyr API基础URL。默认情况下,连接到https://api.zephyrscale.smartbear.com/v2。如有需要,更改到特定区域端点。",
          "password": false
      },
      {
          "id": "collab_base_url",
          "type": "promptString",
          "description": "Collab基础URL",
          "password": true
      },
      {
          "id": "collab_username",
          "type": "promptString",
          "description": "Collab用户名",
          "password": true
      },
      {
          "id": "collab_login_ticket",
          "type": "promptString",
          "description": "Collab登录票据",
          "password": true
      }
  ]
}
</details>

Claude Desktop

向您的claude_desktop_config.json添加以下配置,以通过npx启动MCP服务器:

{
  "mcpServers": {
    "smartbear": {
      "command": "npx",
      "args": [
        "-y",
        "@smartbear/mcp@latest"
      ],
      "env": {
        "BUGSNAG_AUTH_TOKEN": "您的个人认证令牌",
        "BUGSNAG_PROJECT_API_KEY": "您的项目API密钥",
        "REFLECT_API_TOKEN": "您的Reflect令牌",
        "SWAGGER_API_KEY": "您的Swagger密钥",
        "PACT_BROKER_BASE_URL": "您的PactFlow或PactBroker基础URL",
        "PACT_BROKER_TOKEN": "您的PactFlow令牌",
        "PACT_BROKER_USERNAME": "您的Pact Broker用户名",
        "PACT_BROKER_PASSWORD": "您的Pact Broker密码",
        "QMETRY_API_KEY": "您的QMetry API密钥",
        "QMETRY_BASE_URL": "https://testmanagement.qmetry.com",
        "ZEPHYR_API_TOKEN": "您的Zephyr API令牌",
        "ZEPHYR_BASE_URL": "https://api.zephyrscale.smartbear.com/v2",
        "COLLAB_BASE_URL": "您的Collab基础URL",
        "COLLAB_USERNAME": "您的Collab用户名",
        "COLLAB_LOGIN_TICKET": "您的Collab登录票据"
      }
    }
  }
}

文档

要详细了解介绍、示例和高级配置,请访问我们的📖 完整文档

本地开发

对于希望为SmartBear MCP服务器做出贡献的开发者,请参阅CONTRIBUTING.md指南。

许可证

此MCP服务器根据MIT许可证授权。这意味着您可以自由使用、修改和分发软件,但需遵守MIT许可证的条款和条件。如需更多详情,请参阅项目存储库中的LICENSE文件。

支持


SmartBear MCP服务器 - 将SmartBear测试和监控生态系统的力量带入您的AI驱动的开发工作流程。