xray-cloud-mcp
MCP server for Xray Cloud test management that enables importing automation results and managing tests, test executions, and test sets in Jira.
README
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 |
|---|---|---|---|
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_URLviaDefaultAzureCredential(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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。