
JIRA Zephyr
โ 11from leorosignoli
Integrates with JIRA's Zephyr test management system.
JIRA Zephyr MCP Server
A Model Context Protocol (MCP) server that provides comprehensive integration with JIRA's Zephyr test management system. This server enables seamless test management operations including creating test plans, managing test cycles, executing tests, and reading JIRA issues.
Features
Core Capabilities
- Test Plan Management: Create and list test plans in Zephyr
- Test Cycle Management: Create and manage test execution cycles
- JIRA Integration: Read JIRA issue details and metadata
- Test Execution: Update test execution results and status
- Progress Tracking: Monitor test execution progress and statistics
- Issue Linking: Associate test cases with JIRA issues
- Reporting: Generate comprehensive test execution reports
Available Tools
- read_jira_issue - Retrieve JIRA issue information
- create_test_plan - Create new test plans in Zephyr
- list_test_plans - Browse existing test plans
- create_test_cycle - Create test execution cycles
- list_test_cycles - View test cycles with execution status
- execute_test - Update test execution results
- get_test_execution_status - Check test execution progress
- link_tests_to_issues - Associate tests with JIRA issues
- generate_test_report - Create test execution reports
Error Handling
The server implements comprehensive error handling:
- Input validation using Zod schemas
- API error mapping and user-friendly messages
- Network timeout handling
- Authentication error detection
Development
Scripts
npm run build- Build the TypeScript projectnpm run dev- Run in development mode with file watchingnpm run lint- Run ESLintnpm run typecheck- Run TypeScript type checking
Project Structure
src/
โโโ index.ts # Main MCP server entry point
โโโ clients/ # API clients
โ โโโ jira-client.ts # JIRA REST API client
โ โโโ zephyr-client.ts # Zephyr API client
โโโ tools/ # MCP tool implementations
โ โโโ jira-issues.ts # JIRA issue tools
โ โโโ test-plans.ts # Test plan management
โ โโโ test-cycles.ts # Test cycle management
โ โโโ test-execution.ts # Test execution tools
โโโ types/ # TypeScript type definitions
โ โโโ jira-types.ts # JIRA API types
โ โโโ zephyr-types.ts # Zephyr API types
โโโ utils/ # Utility functions
โโโ config.ts # Configuration management
โโโ validation.ts # Input validation schemasSecurity
- Never commit API tokens or credentials to the repository
- Use environment variables for all sensitive configuration
- Regularly rotate API tokens
- Implement proper access controls in your JIRA instance
Support
For issues and questions:
- Check the existing GitHub issues
- Create a new issue with detailed information
- Include error logs and configuration (without sensitive data)
Roadmap
- Support for Zephyr Squad (in addition to Zephyr Scale)
- Bulk test execution operations
- Advanced reporting with charts and metrics
- Test case creation and management
- Integration with CI/CD pipelines
- Custom field support for test management
npm installBefore it works, you'll need: JIRA_BASE_URLJIRA_USERNAMEJIRA_API_TOKENZEPHYR_API_TOKEN
Prerequisites
- Node.js 18.0.0 or higher
- JIRA instance with Zephyr Scale or Zephyr Squad
- Valid JIRA API credentials
- Zephyr API access token
Integration with Cursor
Clone the project, then add the following to your Cursor configuration:
{
"mcpServers": {
"jira-zephyr": {
"command": "node",
"args": ["/path/to/jira-zephyr-mcp/dist/index.js"],
"env": {
"JIRA_BASE_URL": "https://your-domain.atlassian.net",
"JIRA_USERNAME": "your-email@company.com",
"JIRA_API_TOKEN": "your-jira-api-token",
"ZEPHYR_API_TOKEN": "your-zephyr-api-token"
}
}
}
}Using Docker
Alternatively, you can configure Cursor to run the MCP server in Docker (ensure the image is built first):
{
"mcpServers": {
"jira-zephyr": {
"command": "docker",
"args": ["run", "--rm", "-i","-e","JIRA_BASE_URL","-e","JIRA_USERNAME","-e","JIRA_API_TOKEN","-e","ZEPHYR_API_TOKEN", "jira-zephyr-mcp"],
"env": {
"JIRA_BASE_URL": "https://your-domain.atlassian.net",
"JIRA_USERNAME": "your-email@company.com",
"JIRA_API_TOKEN": "your-jira-api-token",
"ZEPHYR_API_TOKEN": "your-zephyr-api-token"
}
}
}
}Installation (for development)
- Clone the repository:
git clone https://github.com/your-username/jira-zephyr-mcp.git
cd jira-zephyr-mcp- Install dependencies:
npm install- Build the project:
npm run buildConfiguration
- Copy the example environment file:
cp .env.example .env- Configure your JIRA and Zephyr credentials in
.env:
JIRA_BASE_URL=https://your-domain.atlassian.net
JIRA_USERNAME=your-email@company.com
JIRA_API_TOKEN=your-jira-api-token
ZEPHYR_API_TOKEN=your-zephyr-api-tokenGetting API Tokens
JIRA API Token
- Go to Atlassian Account Settings
- Navigate to Security โ API tokens
- Create a new API token
- Copy the token to your
.envfile
Zephyr API Token
- In JIRA, go to Apps โ Zephyr Scale โ API Access Tokens
- Generate a new token
- Copy the token to your
.envfile
Usage
Development
npm run devProduction
npm startRunning with Docker
You can containerize and run the MCP server using Docker.
Prerequisites
- Docker installed on your system
- The project cloned locally
Building the Docker Image
- Navigate to the project directory:
cd /path/to/jira-zephyr-mcp- Build the Docker image:
docker build -t jira-zephyr-mcp:latest .You can specify a different tag if desired, e.g., -t jira-zephyr-mcp:v1.0.0.
Running the Container
- Run the container with required environment variables:
docker run -d --name jira-zephyr-mcp \
-e JIRA_BASE_URL=https://your-domain.atlassian.net \
-e JIRA_USERNAME=your-email@company.com \
-e JIRA_API_TOKEN=your-jira-api-token \
-e ZEPHYR_API_TOKEN=your-zephyr-api-token \
jira-zephyr-mcp:latestNote: For integration with systems like Cursor, use the Docker configuration shown in the 'Integration with Cursor' section above. Ensure the image is built with the desired tag that matches your Cursor config. The server communicates via stdio, so ensure your setup supports this when running in a container.
Tool Usage Examples
Reading JIRA Issues
// Read basic issue information
await readJiraIssue({ issueKey: "ABC-123" });
// Read specific fields
await readJiraIssue({
issueKey: "ABC-123",
fields: ["summary", "status", "assignee"]
});Creating Test Plans
await createTestPlan({
name: "Release 2.0 Test Plan",
description: "Comprehensive testing for release 2.0",
projectKey: "ABC",
startDate: "2024-01-15",
endDate: "2024-01-30"
});Managing Test Cycles
// Create a test cycle
await createTestCycle({
name: "Sprint 10 Testing",
description: "Testing for sprint 10 features",
projectKey: "ABC",
versionId: "10001",
environment: "Production"
});
// List test cycles
await listTestCycles({
projectKey: "ABC",
limit: 25
});Test Execution
// Update test execution status
await executeTest({
executionId: "12345",
status: "PASS",
comment: "All tests passed successfully"
});
// Get execution status
await getTestExecutionStatus({ cycleId: "67890" });Generating Reports
// Generate JSON report
await generateTestReport({
cycleId: "67890",
format: "JSON"
});
// Generate HTML report
await generateTestReport({
cycleId: "67890",
format: "HTML"
});No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MITโ you can use, modify, and redistribute it under that license's terms.
License
MIT License - see LICENSE file for details