MCP Jira Xray Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Jira Xray ServerExtract tests for ticket PROJ-123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Jira Xray Server
A Model Context Protocol (MCP) server for extracting test information from Jira Xray. This server connects to Jira instances with Xray Test Management and extracts test cases related to specific tickets.
Features
š Extract tests related to any Jira ticket
š List test executions linked to tickets
šØ Configurable JSON output format
š¾ Automatic saving to the
extractionsfolderš Secure connection using Jira API tokens
Related MCP server: Xray MCP Server
Installation
Prerequisites
Node.js 17 or higher
A Jira instance with Xray Test Management
Jira API token
Setup
Clone this repository or install via npm:
git clone <repository-url>
cd mcp-jira-xray
npm installRun the interactive setup:
npm run setupThis will guide you through:
Entering your Jira host URL
Providing your Jira email
Adding your API token
Validating the connection
Configuring output format
Or manually create a .env file:
cp .env.example .env
# Edit .env with your credentialsGetting a Jira API Token
Click "Create API token"
Give it a label and copy the token
Use this token in your
.envfile
Configuration
Jira Connection
The server requires three configuration values:
JIRA_HOST: Your Jira instance URL (e.g.,https://mycompany.atlassian.net)JIRA_EMAIL: Your Jira account emailJIRA_API_TOKEN: Your Jira API token
Output Format
The OUTPUT_FORMAT environment variable defines the JSON structure for extracted test data. You can customize this to match your needs.
Default format:
{
"ticketId": "",
"test": "",
"testCases": []
}Custom format example:
{
"ticket": {
"id": "",
"name": ""
},
"tests": {
"cases": []
}
}The server will populate the fields based on these keys:
ticketIdā The Jira ticket IDtestā The ticket summarytestCasesā Array of test case descriptions
Usage
With VS Code
Good news! The server is already configured for this project in .vscode/mcp.json.
Quick Start:
Make sure you've run
npm run setup(configuration complete)Open Command Palette:
Cmd/Ctrl + Shift + PType: "MCP: Enable" and press Enter
Try: "Extract tests for ticket PROJ-123" in Copilot Chat
š See VSCODE-SETUP.md for complete VS Code installation guide
With Claude Desktop
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"jira-xray": {
"command": "node",
"args": ["/absolute/path/to/mcp-jira-xray/build/index.js"]
}
}
}Available Tools
1. extract_tests
Extracts all tests related to a given Jira ticket.
Parameters:
ticketId(string): The Jira ticket ID (e.g., "PROJ-123")
Example:
Extract tests for ticket PROJ-123Output:
Test execution details
All test cases with descriptions
Saved to
extractions/PROJ-123_<timestamp>.json
2. list_test_executions
Lists all test executions linked to a Jira ticket.
Parameters:
ticketId(string): The Jira ticket ID
Example:
List test executions for PROJ-123Output:
List of test execution keys
Test execution summaries
Execution statuses
Output Files
All extracted test data is saved to the extractions/ folder with the following naming convention:
extractions/<TICKET-ID>_<TIMESTAMP>.jsonExample: extractions/PROJ-123_2024-01-15T10-30-45-123Z.json
Development
Interactive Setup
Run the setup wizard:
npm run setupValidate Configuration
Test your Jira connection:
npm run validateThis will:
Check your .env configuration
Test connection to Jira
Verify authentication
List accessible projects
Confirm permissions
Build
npm run buildThis compiles TypeScript to JavaScript in the build/ directory.
Project Structure
mcp-jira-xray/
āāā src/
ā āāā index.ts # Main MCP server entry point
ā āāā jira-client.ts # Jira API client
ā āāā config.ts # Configuration management
ā āāā output-handler.ts # File output handling
āāā build/ # Compiled JavaScript (generated)
āāā extractions/ # Output files (generated)
āāā .env # Environment configuration
āāā .env.example # Example configuration
āāā package.json
āāā tsconfig.json
āāā README.mdTroubleshooting
"Missing required environment variables"
Make sure your .env file exists and contains all required variables (JIRA_HOST, JIRA_EMAIL, JIRA_API_TOKEN).
"Failed to get ticket"
Verify your Jira credentials are correct
Check that the ticket ID exists in your Jira instance
Ensure your API token has appropriate permissions
"Xray API not available"
The server tries multiple methods to extract test data. If Xray-specific APIs aren't available, it falls back to standard Jira JQL queries. This may happen if:
Xray is not installed on your Jira instance
Your account doesn't have Xray permissions
Connection Issues
Ensure your
JIRA_HOSTincludes the protocol (https://)Check that your network allows connections to Jira
Verify your API token is valid and not expired
License
MIT
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
Support
For issues and questions:
Check existing [GitHub Issues](/issues)
Create a new issue with detailed information
Include your Jira and Xray versions
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables integration with Xray Cloud APIs for comprehensive test management including creating and managing test cases, test executions, test plans, and test sets. Supports CI/CD automation and test result tracking through GraphQL APIs.23473ISC
- FlicenseBqualityFmaintenanceEnables AI assistants to interact with Xray Test Management for both Cloud and Server deployments. Supports test execution, importing results from multiple formats (JUnit, Cucumber, Robot Framework, TestNG), and managing test plans and executions.83
- Alicense-qualityDmaintenanceEnables to interact with Jira AIO Test Case Management System, allowing retrieval of test cases, projects, folders, and search functionality.Apache 2.0
- AlicenseAqualityDmaintenanceEnables interaction with Xray Cloud and Data Center for test management, including authentication, GraphQL queries, test execution/plan management, and result import via MCP.97MIT
Related MCP Connectors
Connect to Atlassian Jira, Confluence, and Compass to search, create, and manage your work.
Task manager your agent can fully operate: boards, tasks, sprints, roles, worklogs, day planner.
Generate answers & visualizations from your engineering data to track software development health.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sajithrw/mcp-jira-xray'
If you have feedback or need assistance with the MCP directory API, please join our Discord server