mcp-xray
Allows interaction with Jira for managing Test Executions and Test Plans, importing test results, and validating connectivity between Xray and Jira.
Click on "Deploy 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-xray import test results from cucumber.json into test execution XRAY-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-xray
Servidor MCP para interactuar con Xray Cloud y Xray Data Center usando TypeScript 5.
Instalación
# Instalar dependencias
npm install
# Compilar el proyecto
npm run buildRelated MCP server: Xray MCP Server
Uso
Una vez compilado, ejecuta el servidor MCP:
node dist/index.jsEl servidor se comunica mediante stdio (stdin/stdout) siguiendo el protocolo MCP, por lo que requiere ser invocado por un cliente MCP compatible.
Funcionalidades iniciales
Soporte para despliegues
cloudydatacenterAutenticacion Xray Cloud mediante
client_idyclient_secretAutenticacion Jira para operaciones sobre Test Executions y Test Plans
Tool MCP para validar conectividad con Xray/Jira
Tool MCP para ejecutar consultas GraphQL en Xray Cloud
Tool MCP para importar resultados de ejecucion a Xray
Tools MCP para buscar, consultar y crear Test Executions
Tools MCP para buscar, consultar y crear Test Plans
Arquitectura modular orientada a testabilidad
Suite de tests con cobertura automatizada
Variables de entorno
Cloud
XRAY_DEPLOYMENT=cloud
XRAY_CLIENT_ID=your-client-id
XRAY_CLIENT_SECRET=your-client-secret
XRAY_BASE_URL=https://xray.cloud.getxray.app
XRAY_TOKEN_TTL_SECONDS=3000
JIRA_BASE_URL=https://your-domain.atlassian.net
JIRA_EMAIL=you@example.com
JIRA_API_TOKEN=your-jira-api-tokenData Center
XRAY_DEPLOYMENT=datacenter
JIRA_BASE_URL=https://jira.example.com
JIRA_PAT=your-personal-access-token
# Alternativa:
# JIRA_USERNAME=your-user
# JIRA_PASSWORD=your-password
XRAY_BASE_URL=https://jira.example.com
XRAY_TOKEN_TTL_SECONDS=3000Integración con VSCode
Para usar este servidor MCP en VSCode con GitHub Copilot, agrega la siguiente configuración a tu archivo de settings MCP:
Windows/Linux: %APPDATA%\Code\User\globalStorage\github.copilot-chat\mcp.json
macOS: ~/Library/Application Support/Code/User/globalStorage/github.copilot-chat/mcp.json
{
"mcpServers": {
"xray": {
"command": "node",
"args": [
"/ruta/absoluta/a/mcp-xray/dist/index.js"
],
"env": {
"XRAY_DEPLOYMENT": "cloud",
"XRAY_CLIENT_ID": "tu-client-id",
"XRAY_CLIENT_SECRET": "tu-client-secret",
"XRAY_BASE_URL": "https://xray.cloud.getxray.app",
"XRAY_TOKEN_TTL_SECONDS": "3000",
"JIRA_BASE_URL": "https://tu-dominio.atlassian.net",
"JIRA_EMAIL": "tu@email.com",
"JIRA_API_TOKEN": "tu-jira-api-token"
}
}
}
}Ajusta las variables de entorno según tu tipo de despliegue (cloud o datacenter). Una vez configurado, reinicia VSCode y el servidor MCP estará disponible para GitHub Copilot.
Scripts
npm run dev
npm run build
npm testNotas
xray_graphqlesta pensado para Cloud.Las operaciones sobre Test Executions y Test Plans se apoyan en Jira REST porque estas entidades viven como issues en Jira/Xray.
Para Data Center, la importacion usa la ruta clasica de Xray Server/Data Center bajo
/rest/raven/1.0.
Available Tools
9 toolsxray_check_connectionA
Validates authentication against the configured Xray deployment (cloud or datacenter) and Jira instance. Call this first to verify credentials are working before using other tools.
Inputs: no named parameters.
xray_create_test_executionA
Creates a new Test Execution issue in Jira/Xray. Requires a project key and summary. Optionally provide a description and additional Jira fields (e.g. labels, components).
Inputs: summary (required), projectKey (required), fields, description.
xray_create_test_planA
Creates a new Test Plan issue in Jira/Xray. Requires a project key and summary. Optionally provide a description and additional Jira fields (e.g. labels, components).
Inputs: summary (required), projectKey (required), fields, description.
xray_get_test_executionA
Fetches a single Test Execution issue from Jira by its issue key (e.g. 'OQA10-42', 'GAP-100'). Returns the full Jira issue details. Use the 'fields' parameter to limit which fields are returned.
Inputs: issueKey (required), fields.
xray_get_test_planA
Fetches a single Test Plan issue from Jira by its issue key (e.g. 'GAP-12471'). Returns the full Jira issue details. Use the 'fields' parameter to limit which fields are returned.
Inputs: issueKey (required), fields.
xray_graphqlA
Executes a GraphQL query against Xray Cloud. Only available for cloud deployments. Use this for advanced Xray-specific queries like fetching test runs, test steps, preconditions, or test sets.
Inputs: query (required), variables.
xray_import_execution_resultsA
Imports automated test execution results into Xray. Supports formats: junit, nunit, xunit, robot, testng, cucumber, behave, json. Provide the full report content as a string. Optionally target a specific project or existing Test Execution issue.
Inputs: format (required), reportContent (required), projectKey, testExecKey.
xray_search_test_executionsA
Searches for Test Execution issues in Jira using filters. The issuetype filter is applied automatically. Use 'projectKey' to filter by project (e.g. 'OQA10'), 'jql' for additional JQL conditions (e.g. 'status = "Done"'), and 'orderBy' for sorting (e.g. 'created DESC'). Example: to find recent test executions in project OQA10, use projectKey='OQA10' and orderBy='created DESC'.
Inputs: jql, fields, orderBy, maxResults, +1 more.
xray_search_test_plansA
Searches for Test Plan issues in Jira using filters. The issuetype filter is applied automatically. Use 'projectKey' to filter by project (e.g. 'GAP'), 'jql' for additional JQL conditions, and 'orderBy' for sorting (e.g. 'created DESC'). Example: to find test plans in project GAP, use projectKey='GAP'.
Inputs: jql, fields, orderBy, maxResults, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct resource and action: connection check, GraphQL query, import results, and CRUD operations for test executions and test plans. There is no overlap or ambiguity between tools.
Most tools follow the consistent xray_verb_noun pattern (e.g., get_test_plan, search_test_executions, create_test_execution). The exception is xray_graphql, which breaks the verb_noun convention but is still identifiable.
With 9 tools covering connection, querying, importing results, and managing test executions/plans, the server is well-scoped. Each tool serves a clear purpose without over-fragmentation.
The server covers create, get, and search for both test executions and test plans, plus import and GraphQL queries. However, it lacks update and delete operations for these entities, which are common lifecycle operations and would require workarounds.
Maintenance
Related MCP Connectors
Read and write Mission Control state via MCP — projects, tasks, subtasks, templates, status updates.
Read boards and items, create items, set field values and add comments in Plaky.
Run, debug, and triage tests from your IDE using natural language, no dashboard switching, no manual data transfers. The TestMu AI (formerly LambdaTest) MCP Server is a single remote server exposing four tool suites: HyperExecute — analyze your project, generate YAML configs and test runner commands, then monitor jobs and sessions. Automation — pull a TestID's details plus command, network, and console logs into one chat for instant root-cause analysis. Includes mobile app upload. SmartUI — explain pixel, layout, DOM, and perceptual changes in a visual regression run, with context-aware React/HTML/CSS fixes. Accessibility — audit any public URL or a local React app against WCAG and get ready-to-apply remediation steps. Connects over https://mcp.lambdatest.com/mcp using OAuth 2.1 — no API keys in your config. One-click install in Cursor; works with Claude, GitHub Copilot, Cline, and any MCP client. Tests execute on the TestMu AI cloud: 3,000+ browsers and 10,000+ real devices.
Manage repositories, users, releases, and automate GitHub workflows
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.2376 npm3ISC
- AlicenseBqualityDmaintenanceEnables 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.83MIT
- AlicenseAqualityCmaintenanceEnables to interact with Jira AIO Test Case Management System, allowing retrieval of test cases, projects, folders, and search functionality.7Apache 2.0
- AlicenseNot gradedqualityDmaintenanceManages Xray test cases, executions, and reports through natural language commands.MIT