Xray Cloud
FreeNot checkedMCP server for Xray Cloud test management that enables importing automation results and managing tests, test executions, and test sets in Jira.
About
MCP server for Xray Cloud test management that enables importing automation results and managing tests, test executions, and test sets in Jira.
README
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 |
|---|---|---|---|
import_execution_junit |
REST | write | Import JUnit XML results into a Test Execution |
import_execution_xray |
REST | write | Import native Xray-JSON execution results |
get_tests |
GraphQL | read | Query Test issues by JQL |
create_test |
GraphQL | write | Create a Manual/Cucumber/Generic Test (with steps) |
update_test |
GraphQL | write | Change a Test's type and/or append steps |
get_test_executions |
GraphQL | read | Query Test Executions by JQL |
create_test_execution |
GraphQL | write | Create a Test Execution, optionally seeded with tests |
add_tests_to_execution |
GraphQL | write | Add tests to an existing execution |
add_tests_to_test_set |
GraphQL | write | Add tests to an existing Test Set |
The write tools mutate shared Jira/Xray state — review the target before running them.
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_URLvia DefaultAzureCredential (az loginlocally, managed identity in Azure). Useful when you don't want secrets in env.
Configuration
| Var | Required | Default | Purpose |
|---|---|---|---|
XRAY_CLIENT_ID / XRAY_CLIENT_SECRET |
one of the two methods | — | Direct credentials |
XRAY_KEY_VAULT_URL |
(if not using direct vars) | — | Azure Key Vault to read secrets from |
XRAY_CLIENT_ID_SECRET_NAME |
no | xray-client-id |
Key Vault secret name for the client id |
XRAY_CLIENT_SECRET_SECRET_NAME |
no | xray-client-secret |
Key Vault secret name for the client secret |
XRAY_BASE_URL |
no | https://xray.cloud.getxray.app |
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.
Installing Xray Cloud
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/madhawar/xray-mcp-azureFAQ
Is Xray Cloud MCP free?
Yes, Xray Cloud MCP is free — one-click install via Unyly at no cost.
Does Xray Cloud need an API key?
No, Xray Cloud runs without API keys or environment variables.
Is Xray Cloud hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Xray Cloud in Claude Desktop, Claude Code or Cursor?
Open Xray Cloud on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Notion
Read and write pages in your workspace
by NotionLinear
Issues, cycles, triage — from Claude
by LinearGoogle Drive
Search and read your Drive files
by Googlemindsdb/mindsdb
Connect and unify data across various platforms and databases with [MindsDB as a single MCP server](https://docs.mindsdb.com/mcp/overview).
by mindsdbCompare Xray Cloud with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All productivity MCPs
