Gives agents tools and resources across SmartBear API Hub, Test Hub and Insight Hub.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add smartbear --env BEARQ_API_TOKEN='<BEARQ_API_TOKEN>' --env BUGSNAG_AUTH_TOKEN='<BUGSNAG_AUTH_TOKEN>' --env REFLECT_API_TOKEN='<REFLECT_API_TOKEN>' --env SWAGGER_API_KEY='<SWAGGER_API_KEY>' --env SWAGGER_FUNCTIONAL_TESTING_API_TOKEN='<SWAGGER_FUNCTIONAL_TESTING_API_TOKEN>' --env PACT_BROKER_TOKEN='<PACT_BROKER_TOKEN>' --env PACT_BROKER_PASSWORD='<PACT_BROKER_PASSWORD>' --env ZEPHYR_API_TOKEN='<ZEPHYR_API_TOKEN>' -- npx -y @smartbear/mcp~/.codex/config.toml
[mcp_servers.smartbear]
command = "npx"
args = ["-y", "@smartbear/mcp"]
env = { BEARQ_API_TOKEN = "<BEARQ_API_TOKEN>", BUGSNAG_AUTH_TOKEN = "<BUGSNAG_AUTH_TOKEN>", REFLECT_API_TOKEN = "<REFLECT_API_TOKEN>", SWAGGER_API_KEY = "<SWAGGER_API_KEY>", SWAGGER_FUNCTIONAL_TESTING_API_TOKEN = "<SWAGGER_FUNCTIONAL_TESTING_API_TOKEN>", PACT_BROKER_TOKEN = "<PACT_BROKER_TOKEN>", PACT_BROKER_PASSWORD = "<PACT_BROKER_PASSWORD>", ZEPHYR_API_TOKEN = "<ZEPHYR_API_TOKEN>" }
# codex mcp add smartbear --env BEARQ_API_TOKEN='<BEARQ_API_TOKEN>' --env BUGSNAG_AUTH_TOKEN='<BUGSNAG_AUTH_TOKEN>' --env REFLECT_API_TOKEN='<REFLECT_API_TOKEN>' --env SWAGGER_API_KEY='<SWAGGER_API_KEY>' --env SWAGGER_FUNCTIONAL_TESTING_API_TOKEN='<SWAGGER_FUNCTIONAL_TESTING_API_TOKEN>' --env PACT_BROKER_TOKEN='<PACT_BROKER_TOKEN>' --env PACT_BROKER_PASSWORD='<PACT_BROKER_PASSWORD>' --env ZEPHYR_API_TOKEN='<ZEPHYR_API_TOKEN>' -- npx -y @smartbear/mcp~/.cursor/mcp.json
{
"mcpServers": {
"smartbear": {
"command": "npx",
"args": [
"-y",
"@smartbear/mcp"
],
"env": {
"BEARQ_API_TOKEN": "<BEARQ_API_TOKEN>",
"BUGSNAG_AUTH_TOKEN": "<BUGSNAG_AUTH_TOKEN>",
"REFLECT_API_TOKEN": "<REFLECT_API_TOKEN>",
"SWAGGER_API_KEY": "<SWAGGER_API_KEY>",
"SWAGGER_FUNCTIONAL_TESTING_API_TOKEN": "<SWAGGER_FUNCTIONAL_TESTING_API_TOKEN>",
"PACT_BROKER_TOKEN": "<PACT_BROKER_TOKEN>",
"PACT_BROKER_PASSWORD": "<PACT_BROKER_PASSWORD>",
"ZEPHYR_API_TOKEN": "<ZEPHYR_API_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"smartbear": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smartbear/mcp"
],
"env": {
"BEARQ_API_TOKEN": "<BEARQ_API_TOKEN>",
"BUGSNAG_AUTH_TOKEN": "<BUGSNAG_AUTH_TOKEN>",
"REFLECT_API_TOKEN": "<REFLECT_API_TOKEN>",
"SWAGGER_API_KEY": "<SWAGGER_API_KEY>",
"SWAGGER_FUNCTIONAL_TESTING_API_TOKEN": "<SWAGGER_FUNCTIONAL_TESTING_API_TOKEN>",
"PACT_BROKER_TOKEN": "<PACT_BROKER_TOKEN>",
"PACT_BROKER_PASSWORD": "<PACT_BROKER_PASSWORD>",
"ZEPHYR_API_TOKEN": "<ZEPHYR_API_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"smartbear": {
"command": "npx",
"args": [
"-y",
"@smartbear/mcp"
],
"env": {
"BEARQ_API_TOKEN": "<BEARQ_API_TOKEN>",
"BUGSNAG_AUTH_TOKEN": "<BUGSNAG_AUTH_TOKEN>",
"REFLECT_API_TOKEN": "<REFLECT_API_TOKEN>",
"SWAGGER_API_KEY": "<SWAGGER_API_KEY>",
"SWAGGER_FUNCTIONAL_TESTING_API_TOKEN": "<SWAGGER_FUNCTIONAL_TESTING_API_TOKEN>",
"PACT_BROKER_TOKEN": "<PACT_BROKER_TOKEN>",
"PACT_BROKER_PASSWORD": "<PACT_BROKER_PASSWORD>",
"ZEPHYR_API_TOKEN": "<ZEPHYR_API_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"smartbear": {
"command": "npx",
"args": [
"-y",
"@smartbear/mcp"
],
"env": {
"BEARQ_API_TOKEN": "<BEARQ_API_TOKEN>",
"BUGSNAG_AUTH_TOKEN": "<BUGSNAG_AUTH_TOKEN>",
"REFLECT_API_TOKEN": "<REFLECT_API_TOKEN>",
"SWAGGER_API_KEY": "<SWAGGER_API_KEY>",
"SWAGGER_FUNCTIONAL_TESTING_API_TOKEN": "<SWAGGER_FUNCTIONAL_TESTING_API_TOKEN>",
"PACT_BROKER_TOKEN": "<PACT_BROKER_TOKEN>",
"PACT_BROKER_PASSWORD": "<PACT_BROKER_PASSWORD>",
"ZEPHYR_API_TOKEN": "<ZEPHYR_API_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"smartbear": {
"command": "npx",
"args": [
"-y",
"@smartbear/mcp"
],
"env": {
"BEARQ_API_TOKEN": "<BEARQ_API_TOKEN>",
"BUGSNAG_AUTH_TOKEN": "<BUGSNAG_AUTH_TOKEN>",
"REFLECT_API_TOKEN": "<REFLECT_API_TOKEN>",
"SWAGGER_API_KEY": "<SWAGGER_API_KEY>",
"SWAGGER_FUNCTIONAL_TESTING_API_TOKEN": "<SWAGGER_FUNCTIONAL_TESTING_API_TOKEN>",
"PACT_BROKER_TOKEN": "<PACT_BROKER_TOKEN>",
"PACT_BROKER_PASSWORD": "<PACT_BROKER_PASSWORD>",
"ZEPHYR_API_TOKEN": "<ZEPHYR_API_TOKEN>"
}
}
}
}远程托管
claude mcp add --transport http smartbear https://bugsnag.mcp.smartbear.com/mcp~/.codex/config.toml
[mcp_servers.smartbear]
url = "https://bugsnag.mcp.smartbear.com/mcp"
# codex mcp add smartbear --url https://bugsnag.mcp.smartbear.com/mcp~/.cursor/mcp.json
{
"mcpServers": {
"smartbear": {
"url": "https://bugsnag.mcp.smartbear.com/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"smartbear": {
"type": "http",
"url": "https://bugsnag.mcp.smartbear.com/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"smartbear": {
"httpUrl": "https://bugsnag.mcp.smartbear.com/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"smartbear": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://bugsnag.mcp.smartbear.com/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"smartbear": {
"url": "https://bugsnag.mcp.smartbear.com/mcp"
}
}
}需要的环境变量
BEARQ_API_TOKENBUGSNAG_AUTH_TOKENREFLECT_API_TOKENSWAGGER_API_KEYSWAGGER_FUNCTIONAL_TESTING_API_TOKENPACT_BROKER_TOKENPACT_BROKER_PASSWORDZEPHYR_API_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。