zephyr-mcp-server
v1.0.0
Published
MCP server for fetching Zephyr Scale test cases and test steps
Maintainers
Readme
Zephyr Scale MCP Server
This MCP server exposes tools to fetch:
- A Zephyr Scale test case by key
- Test steps (test script) for a Zephyr test case
It uses Zephyr Scale REST API v2 and requires only one environment variable:
API_KEY- your Zephyr Scale API key
Endpoints used
GET /v2/testcases/{testCaseKey}GET /v2/testcases/{testCaseKey}/testscript(primary)GET /v2/testcases/{testCaseKey}/teststeps(fallback when Zephyr returns the known 422 guidance error)
Available MCP tools
get_zephyr_test_case- Input:
{ "testCaseKey": "PROJECT-T1" } - Returns the full test case payload
- Input:
get_zephyr_test_steps- Input:
{ "testCaseKey": "PROJECT-T1" } - Tries:
https://api.zephyrscale.smartbear.com/v2/testcases/{testCaseKey}/testscript - If Zephyr returns
422with the "use the other API" message, it automatically falls back to:https://api.zephyrscale.smartbear.com/v2/testcases/{testCaseKey}/teststeps
- Input:
Install
npm install -g zephyr-mcp-serverOr use via npx:
API_KEY="your-zephyr-api-key" npx zephyr-mcp-serverRun locally
npm install
API_KEY="your-zephyr-api-key" npm startExample MCP configuration
Using the globally installed binary:
{
"mcpServers": {
"zephyr-scale": {
"command": "zephyr-mcp-server",
"env": {
"API_KEY": "your-zephyr-api-key"
}
}
}
}Using npx:
{
"mcpServers": {
"zephyr-scale": {
"command": "npx",
"args": ["zephyr-mcp-server"],
"env": {
"API_KEY": "your-zephyr-api-key"
}
}
}
}