xray-cloud-mcp
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., "@xray-cloud-mcpimport JUnit results from my latest test run"
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.
xray-cloud-mcp
An MCP server for Xray Cloud (test management for Jira). It lets an MCP client (Claude Code, Claude Desktop, etc.) import automation results and manage Xray test entities — Tests, Test Executions, and Test Sets — directly.
Tools
Tool | API | Read/Write | Purpose |
| REST | write | Import JUnit XML results into a Test Execution |
| REST | write | Import native Xray-JSON execution results |
| GraphQL | read | Query Test issues by JQL |
| GraphQL | write | Create a Manual/Cucumber/Generic Test (with steps) |
| GraphQL | write | Change a Test's type and/or append steps |
| GraphQL | read | Query Test Executions by JQL |
| GraphQL | write | Create a Test Execution, optionally seeded with tests |
| GraphQL | write | Add tests to an existing execution |
| GraphQL | write | Add tests to an existing Test Set |
The write tools mutate shared Jira/Xray state — review the target before running them.
Related MCP server: mcp-zephyr-scale
Credentials
Create an Xray API Key in Jira → Xray → Global Settings → API Keys (for a service user).
This yields a client_id + client_secret. The server resolves them at startup, never from a
file on disk, in this order:
Direct env vars
XRAY_CLIENT_ID+XRAY_CLIENT_SECRET, if both are set — simplest for local use and CI.Azure Key Vault — read from the vault at
XRAY_KEY_VAULT_URLviaDefaultAzureCredential(az loginlocally, managed identity in Azure). Useful when you don't want secrets in env.
Configuration
Var | Required | Default | Purpose |
| one of the two methods | — | Direct credentials |
| (if not using direct vars) | — | Azure Key Vault to read secrets from |
| no |
| Key Vault secret name for the client id |
| no |
| Key Vault secret name for the client secret |
| no |
| Xray Cloud endpoint |
If you only need direct env-var auth, the
@azure/*dependencies are still installed but never invoked. Remove them and the Key Vault branch insrc/config.tsif you want a leaner build.
Build
npm install
npm run build # -> dist/
npm run auth-check # resolves credentials + obtains a token (prints no secret)Use with an MCP client
Add to your MCP client config (e.g. Claude Code's .mcp.json or Claude Desktop's config),
pointing at the built entrypoint:
{
"mcpServers": {
"xray": {
"command": "node",
"args": ["/absolute/path/to/xray-cloud-mcp/dist/index.js"],
"env": {
"XRAY_CLIENT_ID": "your-client-id",
"XRAY_CLIENT_SECRET": "your-client-secret"
}
}
}
}Or, with Azure Key Vault instead of inline secrets:
"env": {
"XRAY_KEY_VAULT_URL": "https://your-vault.vault.azure.net"
}Notes
Description on create: some Jira projects make the Description field mandatory;
create_testdefaults it to the summary so creation never fails for lack of one.Importing results: point
import_execution_junitat the JUnit XML your test runner produces (Playwright, Jest, JUnit, etc.). Useimport_execution_xrayfor the richer native Xray JSON.stdio only: the server speaks MCP over stdio; diagnostics go to stderr (stdout is the protocol channel).
License
MIT — see LICENSE.
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.
Latest Blog Posts
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/madhawar/xray-mcp-azure'
If you have feedback or need assistance with the MCP directory API, please join our Discord server