SmartBear MCP server
模型上下文协议(MCP)服务器,为AI助手提供对SmartBear测试和监控工具套件的无缝访问,包括 BugSnag, 反映, 气势, 填料流, 合约经纪人, QMetry, 和风 和 合作者.
什么是MCP?
这 模型上下文协议(MCP) 是一个开放标准,使人工智能助手能够安全地连接到外部数据源和工具。此服务器通过自然语言接口公开SmartBear的API,允许您直接从AI工作流查询测试数据、分析性能指标和管理测试自动化。
支持的工具
有关建议的提示和支持的工具和资源,请参阅单独的指南:
- 门户 -门户和产品管理功能 - 工作室 -API和域管理功能,包括通过提示和自动标准化生成AI驱动的API - 合同测试(PactFlow) -合同测试能力
远程MCP服务器
对于BugSnag、Swagger和Zephyr,SmartBear托管远程MCP服务器,您可以通过URL直接从MCP客户端连接到这些服务器-无需安装、Node.js或API令牌。身份验证是通过OAuth浏览器流处理的。
| 产品 | 服务器URL |
|---|---|
| 气势 | https://swagger.mcp.smartbear.com/mcp |
| BugSnag | https://bugsnag.mcp.smartbear.com/mcp |
| 和风 | https://zephyr.mcp.smartbear.com/mcp |
看 远程MCP服务器指南 用于每个客户端的设置说明。您可以同时连接到多个远程服务器。
需要反思、QMetry、PackFlow或协作者? 这些产品只能通过下面的本地npm包获得,该包将所有产品捆绑到一个MCP服务器中。
先决条件
- Node.js 20+和npm
- 访问SmartBear产品(BugSnag、Reflect、Swagger、QMetry或Zephyr)
- 要集成的产品的有效API令牌
本地MCP服务器安装(npm)
对于所有产品,或者如果你更喜欢在本地运行服务器,MCP服务器是作为npm包分发的 @smartbear/mcp,使其易于集成到您的开发工作流程中。
服务器使用您在SmartBear产品中使用的API密钥或身份验证令牌启动。它们是可选的,如果您不使用该产品,可以从您的配置中删除。对于BugSnag,如果您提供一个项目API键,它将把所有搜索缩小到BugSnag仪表板中的单个项目。如果您希望一次跨多个项目进行交互,请将此字段留空。
VS代码与副本
为了获得最快的设置,请使用命令面板中的“MCP:Add server…”命令添加 @smartbear/mcp npm包。
📋 Manual installation
或者,您可以使用 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}",
"SWAGGER_PORTAL_BASE_PATH": "${input:swagger_portal_base_path}",
"SWAGGER_REGISTRY_BASE_PATH": "${input:swagger_registry_base_path}",
"SWAGGER_UI_BASE_PATH": "${input:swagger_ui_base_path}",
"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}",
"COLLABORATOR_BASE_URL": "${input:collab_base_url}",
"COLLABORATOR_USERNAME": "${input:collab_username}",
"COLLABORATOR_LOGIN_TICKET": "${input:collab_login_ticket}"
}
}
},
"inputs": [
{
"id": "bugsnag_auth_token",
"type": "promptString",
"description": "BugSnag Auth Token - leave blank to disable BugSnag tools",
"password": true
},
{
"id": "bugsnag_project_api_key",
"type": "promptString",
"description": "BugSnag Project API Key - for single project interactions",
"password": false
},
{
"id": "reflect_api_token",
"type": "promptString",
"description": "Reflect API Token - leave blank to disable Reflect tools",
"password": true
},
{
"id": "swagger_api_key",
"type": "promptString",
"description": "Swagger API Key - leave blank to disable Swagger tools",
"password": true
},
{
"id": "swagger_portal_base_path",
"type": "promptString",
"description": "Swagger Portal API base path - only needed for on-premise installations (leave blank for cloud)",
"password": false
},
{
"id": "swagger_registry_base_path",
"type": "promptString",
"description": "Swagger Registry API base path - only needed for on-premise installations (leave blank for cloud)",
"password": false
},
{
"id": "swagger_ui_base_path",
"type": "promptString",
"description": "Swagger UI base path - only needed for on-premise installations (leave blank for cloud)",
"password": false
},
{
"id": "pact_broker_base_url",
"type": "promptString",
"description": "PactFlow or Pact Broker base url - leave blank to disable the tools",
"password": true
},
{
"id": "pact_broker_token",
"type": "promptString",
"description": "PactFlow Authentication Token",
"password": true
},
{
"id": "pact_broker_username",
"type": "promptString",
"description": "Pact Broker Username",
"password": true
},
{
"id": "pact_broker_password",
"type": "promptString",
"description": "Pact Broker Password",
"password": true
},
{
"id": "qmetry_api_key",
"type": "promptString",
"description": "QMetry Open API Key",
"password": true
},
{
"id": "qmetry_base_url",
"type": "promptString",
"description": "By default, connects to https://testmanagement.qmetry.com. Change to a custom QMetry server URL or a region-specific endpoint if needed.",
"password": false
},
{
"id": "zephyr_api_token",
"type": "promptString",
"description": "Zephyr API token - leave blank to disable Zephyr tools",
"password": true
},
{
"id": "zephyr_base_url",
"type": "promptString",
"description": "Zephyr API base URL. By default, connects to https://api.zephyrscale.smartbear.com/v2. Change to region-specific endpoint if needed.",
"password": false
},
{
"id": "collab_base_url",
"type": "promptString",
"description": "Collab base url",
"password": true
},
{
"id": "collab_username",
"type": "promptString",
"description": "Collab username",
"password": true
},
{
"id": "collab_login_ticket",
"type": "promptString",
"description": "Collab login ticket",
"password": true
}
]
}克劳德桌面版
将以下配置添加到您的 claude_desktop_config.json 通过以下方式启动MCP服务器 npx:
{
"mcpServers": {
"smartbear": {
"command": "npx",
"args": [
"-y",
"@smartbear/mcp@latest"
],
"env": {
"BUGSNAG_AUTH_TOKEN": "your_personal_auth_token",
"BUGSNAG_PROJECT_API_KEY": "your_project_api_key",
"REFLECT_API_TOKEN": "your_reflect_token",
"SWAGGER_API_KEY": "your_swagger_key",
"SWAGGER_PORTAL_BASE_PATH": "https://api.portal.swaggerhub.com/v1",
"SWAGGER_REGISTRY_BASE_PATH": "https://api.swaggerhub.com",
"SWAGGER_UI_BASE_PATH": "https://app.swaggerhub.com",
"PACT_BROKER_BASE_URL": "your_pactflow_or_pactbroker_base_url",
"PACT_BROKER_TOKEN": "your_pactflow_token",
"PACT_BROKER_USERNAME": "your_pact_broker_username",
"PACT_BROKER_PASSWORD": "your_pact_broker_password",
"QMETRY_API_KEY": "your_qmetry_api_key",
"QMETRY_BASE_URL": "https://testmanagement.qmetry.com",
"ZEPHYR_API_TOKEN": "your_zephyr_api_token",
"ZEPHYR_BASE_URL": "https://api.zephyrscale.smartbear.com/v2",
"COLLABORATOR_BASE_URL": "your collab base url",
"COLLABORATOR_USERNAME": "your collab user name",
"COLLABORATOR_LOGIN_TICKET": "your collab login ticket"
}
}
}
}文档
有关详细介绍、示例和高级配置,请访问我们的📖 全部文件
本地开发
对于希望为SmartBear MCP服务器做出贡献的开发人员,请参阅 贡献.md 导游。
许可证
此MCP服务器根据MIT许可证获得许可。这意味着您可以根据MIT许可证的条款和条件自由使用、修改和分发软件。有关更多详细信息,请参阅 许可证 项目存储库中的文件。
支持
- 搜索未解决和已解决的问题 对于类似的问题
- 报告错误或请求功能
______________________________________________________________________
SmartBear MCP服务器 -将SmartBear的测试和监控生态系统的强大功能带入您的AI驱动的开发工作流程。
