Xray MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP listen port (HTTP mode only). | 3000 |
| TRANSPORT | No | Transport: stdio or http. | stdio |
| PUBLIC_URL | No | Public base URL of this server. With OAUTH_ENCRYPTION_KEY, enables connector mode (HTTP mode only). | |
| TRUST_PROXY | No | Number of reverse-proxy hops to trust for the client IP (rate limiting). HTTP mode only. | 1 |
| XRAY_REGION | No | API region: global, us, eu, or au. | global |
| ALLOWED_HOSTS | No | Comma-separated allowed hosts for DNS rebinding protection (HTTP mode only). Rejects any other Host, including Kubernetes probe traffic; leave unset behind a load balancer. | |
| XRAY_CLIENT_ID | Yes | Xray Cloud API client ID (required for stdio mode). | |
| XRAY_CLIENT_SECRET | Yes | Xray Cloud API client secret (required for stdio mode). | |
| OAUTH_ENCRYPTION_KEY | No | 32 random bytes, base64-encoded. Seals OAuth tokens; rotate to sign everyone out. | |
| XRAY_CREDENTIAL_MODE | No | Credential mode: strict, shared-reads, or fully-shared. | strict |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| xray_get_test_detailsA | Get full details of an Xray test by issue ID, including steps, type, status, and relations. For Jira issue fields (assignee, components, etc.), use the Atlassian MCP server instead. |
| xray_get_expanded_testB | Get an Xray test with call-test steps resolved (nested step expansion). For Jira issue fields, use the Atlassian MCP server instead. |
| xray_list_testsC | List Xray tests with optional JQL filter and folder path. Supports pagination with limit/start parameters. |
| xray_list_expanded_testsA | List Xray tests with expanded (nested) step data. Defaults to limit 10 (not 50) because nested step resolution is expensive. Supports pagination with limit/start parameters. |
| xray_create_testC | Create a new Xray test (Manual, Cucumber, or Generic). Returns a confirmation with the new test issue ID. |
| xray_delete_testC | Delete an Xray test by issue ID. Returns a deletion confirmation. |
| xray_update_test_typeB | Change the test type of an Xray test (Manual, Cucumber, Generic). |
| xray_update_gherkin_definitionC | Update the Gherkin (BDD) definition of a Cucumber-type Xray test. |
| xray_update_unstructured_definitionB | Update the definition text of a Generic (unstructured) Xray test. |
| xray_add_test_stepC | Add a new step to a Manual Xray test. |
| xray_update_test_stepC | Update an existing step in a Manual Xray test. |
| xray_remove_test_stepC | Remove a specific step from a Manual Xray test by step ID. |
| xray_remove_all_test_stepsA | WARNING: This permanently removes ALL steps from the test. This action cannot be undone. Use xray_remove_test_step to remove individual steps safely. |
| xray_get_test_executionA | Get test execution details including runs, environments, and linked test plan. For Jira issue fields, use the Atlassian MCP server instead. |
| xray_list_test_executionsA | List test executions with optional JQL filter and pagination. For Jira issue fields, use the Atlassian MCP server instead. |
| xray_create_test_executionB | Create a new test execution, optionally linking tests and environments. Returns the new execution key. |
| xray_delete_test_executionB | Delete a test execution by issue key. This action cannot be undone. |
| xray_add_tests_to_executionB | Add one or more tests to an existing test execution. |
| xray_remove_tests_from_executionB | Remove one or more tests from a test execution. |
| xray_add_environments_to_executionC | Add test environments to an existing test execution. |
| xray_remove_environments_from_executionC | Remove test environments from a test execution. |
| xray_get_test_planA | Get a single Xray test plan by issue ID, including its tests and test executions. Returns plan details in TOON (compact) or JSON format. |
| xray_list_test_plansA | List Xray test plans with optional JQL filter and pagination. Returns paginated plan list with test and execution counts. |
| xray_create_test_planC | Create a new Xray test plan via Jira JSON payload. Optionally add tests immediately on creation. |
| xray_delete_test_planA | Delete an Xray test plan by issue ID. This action is irreversible. |
| xray_add_tests_to_planB | Add one or more tests to an existing Xray test plan. |
| xray_remove_tests_from_planB | Remove one or more tests from an existing Xray test plan. |
| xray_add_executions_to_planC | Add one or more test executions to an existing Xray test plan. |
| xray_remove_executions_from_planB | Remove one or more test executions from an existing Xray test plan. |
| xray_get_test_setB | Get a test set with its associated tests. Test sets group tests for reuse across executions. |
| xray_list_test_setsB | List test sets with optional JQL filter and pagination. Returns sets with associated test counts. |
| xray_create_test_setC | Create a new test set in a Jira project. Optionally include initial tests. |
| xray_delete_test_setC | Delete a test set by its Jira issue ID. This removes the test set issue from Jira. |
| xray_add_tests_to_setB | Add tests to an existing test set. Tests are referenced by their Jira issue IDs. |
| xray_remove_tests_from_setB | Remove tests from a test set. Tests are referenced by their Jira issue IDs. |
| xray_get_test_runB | Get a test run by test issue key and test execution issue key. Returns the run status, comment, and timing. |
| xray_get_test_run_by_idA | Get a test run by its internal Xray run ID. Use xray_get_test_run if you have test+execution keys instead. |
| xray_list_test_runsC | List all test runs for a given test issue, with pagination. |
| xray_list_test_runs_by_idB | Get multiple test runs by their internal Xray run IDs in a single request. |
| xray_update_test_run_statusC | Update the status of a test run. |
| xray_update_test_run_commentC | Update the comment on a test run. |
| xray_update_test_runB | Perform a full update of a test run: comment, assignee, dates, executedBy, and custom fields in one call. |
| xray_reset_test_runA | WARNING: Resets test run to initial state, clearing all status, comments, and step results. This action cannot be undone. |
| xray_update_step_statusC | Update the status of a specific step within a test run. |
| xray_update_step_commentC | Update the comment on a specific step within a test run. |
| xray_update_test_run_stepC | Perform a full update of a test run step via UpdateTestRunStepInput: status, comment, evidence, and defects in one call. |
| xray_update_example_statusC | Update the status of a specific example (BDD/data-driven test row) within a test run. |
| xray_update_iteration_statusB | Update the status of a specific iteration (data-set test row) within a test run. |
| xray_set_test_run_timerA | Control the execution timer for a test run. Set running=true to start, running=false to stop, reset=true to reset. |
| xray_get_preconditionA | Get an Xray precondition by issue ID, including precondition type, definition, and linked tests. For Jira issue fields (reporter, priority, labels) use the Atlassian MCP server. |
| xray_list_preconditionsB | List Xray preconditions with optional JQL filter and pagination. Preconditions define setup conditions that must be met before tests execute. |
| xray_create_preconditionB | Create a new Xray precondition issue. Preconditions define setup requirements (e.g. user logged in, database seeded) that must be satisfied before tests can execute. |
| xray_update_preconditionB | Update an existing Xray precondition's type and/or definition. At least one of preconditionType or definition must be provided. |
| xray_delete_preconditionA | Delete an Xray precondition permanently. This also unlinks it from all associated tests. This action cannot be undone. |
| xray_add_tests_to_preconditionC | Link one or more tests to an Xray precondition. The precondition will appear as a setup requirement for the linked tests. |
| xray_remove_tests_from_preconditionA | Unlink one or more tests from an Xray precondition. The precondition will no longer appear as a setup requirement for the unlinked tests. |
| xray_get_folderB | Get a folder in the Xray repository hierarchy by project and path. Returns folder name, path, test count, and immediate subfolders. |
| xray_create_folderC | Create a new folder in the Xray repository hierarchy. |
| xray_delete_folderB | WARNING: Deleting a folder may affect tests contained within it. Delete a folder from the Xray repository hierarchy by project and path. |
| xray_rename_folderC | Rename a folder in the Xray repository hierarchy. |
| xray_move_folderB | Move a folder to a new location in the Xray repository hierarchy. |
| xray_add_tests_to_folderC | Add tests to a folder in the Xray repository hierarchy. |
| xray_remove_tests_from_folderC | Remove tests from a folder in the Xray repository hierarchy. |
| xray_add_issues_to_folderC | Add issues (preconditions) to a folder in the Xray repository hierarchy. |
| xray_remove_issues_from_folderC | Remove issues (preconditions) from a folder in the Xray repository hierarchy. |
| xray_add_evidence_to_runA | Attach evidence to a test run. Pass base64-encoded file content with filename and mimeType. Evidence can be screenshots, PDFs, or log files. Use the Read tool or user attachment to obtain base64 content before calling this tool. |
| xray_remove_evidence_from_runC | Remove evidence attachments from a test run by their evidence IDs. |
| xray_add_defects_to_runA | Link Jira issues as defects to a test run. Pass an array of Jira issue keys (e.g. PROJ-123). For Jira issue fields, use the Atlassian MCP server instead. |
| xray_remove_defects_from_runC | Unlink Jira issues (defects) from a test run. |
| xray_add_evidence_to_stepA | Attach evidence to a specific step within a test run. Pass base64-encoded file content with filename and mimeType. Use the Read tool or user attachment to obtain base64 content before calling this tool. |
| xray_remove_evidence_from_stepB | Remove evidence attachments from a specific step within a test run. |
| xray_add_defects_to_stepB | Link Jira issues as defects to a specific step within a test run. For Jira issue fields, use the Atlassian MCP server instead. |
| xray_remove_defects_from_stepB | Unlink Jira issues (defects) from a specific step within a test run. |
| xray_import_xray_jsonA | Import test results in Xray JSON format. Pass the full JSON content as a string. Supports optional testExecInfo for execution-level metadata (summary, description, version). Use this tool to push Xray-native JSON test results into Xray Cloud. |
| xray_import_junitA | Import JUnit XML test results. Read the XML file via your Read tool and pass the full content here. Optionally provide testExecInfo for execution-level metadata (summary, description, version). Use this tool to push JUnit test results from Java/Maven/Gradle builds into Xray Cloud. |
| xray_import_cucumberB | Import Cucumber JSON test results. Read the Cucumber JSON output file and pass the full content here. Note: Cucumber import does not support multipart mode — execution metadata is embedded in the Cucumber JSON format. Use this tool to push Cucumber BDD test results into Xray Cloud. |
| xray_import_testngB | Import TestNG XML test results. Read the TestNG XML output file and pass the full content here. Optionally provide testExecInfo for execution-level metadata (summary, description, version). Use this tool to push TestNG test results from Java projects into Xray Cloud. |
| xray_import_nunitA | Import NUnit XML test results. Read the NUnit XML output file and pass the full content here. Optionally provide testExecInfo for execution-level metadata (summary, description, version). Use this tool to push NUnit test results from .NET projects into Xray Cloud. |
| xray_import_robotA | Import Robot Framework XML test results. Read the Robot Framework output.xml file and pass the full content here. Optionally provide testExecInfo for execution-level metadata (summary, description, version). Use this tool to push Robot Framework test results into Xray Cloud. |
| xray_import_behaveB | Import Behave JSON test results. Read the Behave JSON output file and pass the full content here. Note: Behave import does not support multipart mode — execution metadata is embedded in the Behave JSON format. Use this tool to push Python Behave BDD test results into Xray Cloud. |
| xray_import_feature_filesA | Import Cucumber .feature files into Xray Cloud to create or update test cases. Read the .feature file via your Read tool and pass the full content as a string. The projectKey parameter is required to specify which Jira project to import tests into. Note: If text/plain content type fails, the fallback is multipart/form-data wrapping. |
| xray_get_coverable_issueA | Get test coverage status for a Jira issue (story, bug, etc.). Returns whether the issue is covered by tests and the coverage percentage. For Jira issue details, use the Atlassian MCP server instead. |
| xray_list_coverable_issuesA | List Jira issues that can have test coverage (stories, bugs, etc.) with their current coverage status. For Jira issue fields, use the Atlassian MCP server instead. |
| xray_get_datasetB | Get a test dataset by test issue ID, including its parameters (columns) and rows of test data. |
| xray_list_datasetsB | List test datasets, optionally filtered by test, execution, or plan issue IDs. |
| xray_export_cucumber_featuresA | Export Cucumber feature files for the given test issue keys. Returns the feature file content inline. For multiple tests, feature files are separated by '--- FILE: {key}.feature ---' headers. |
| xray_get_project_settingsB | Get Xray configuration for a Jira project, including test types, test statuses, and step statuses. |
| xray_list_test_statusesB | List available test statuses in Xray. Optionally scope to a specific project to get project-specific statuses. |
| xray_list_step_statusesA | List available test step statuses in Xray. Optionally scope to a specific project to get project-specific step statuses. |
| xray_list_issue_link_typesA | List available issue link types in Xray. Note: For Jira's native link types, use the Atlassian MCP server instead. This returns Xray-specific link types used for test-to-requirement coverage. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 90 tools
Most tools target a clear resource+action, but there are genuine clusters of overlapping operations: partial updaters (xray_update_test_run_status, xray_update_test_run_comment, xray_set_test_run_timer) coexist with the full xray_update_test_run and xray_update_test_run_step, and get/list variants (xray_get_test_run vs xray_get_test_run_by_id, xray_list_tests vs xray_list_expanded_tests, xray_get_test_details vs xray_get_expanded_test) require reading descriptions to pick correctly. The eight format-specific import tools are distinguishable but easy to misselect at a glance. Descriptions do disambiguate in nearly every case, keeping this above a 2.
Every tool uses the xray_ prefix followed by a snake_case verb_noun pattern (get_/list_/create_/update_/delete_/add_/remove_/import_/export_), with resource names reused consistently across CRUD families (test, test_run, test_execution, test_plan, test_set, precondition, folder). Minor verb deviations like set_test_run_timer and reset_test_run are semantically motivated and still predictable.
At 90 tools this is far past the point where an agent can hold the surface in view, well into the 50+ range the rubric flags as excessive. The domain is genuinely broad (six resource types plus runs, steps, evidence, defects, imports, settings), so it is not arbitrary bloat, but consolidation is clearly possible — partial vs full update pairs, by-id vs by-key getters, and eight separate import tools that could be one parameterized tool.
Coverage is strong: full CRUD plus link/unlink for tests, executions, plans, sets, preconditions, folders, and runs, with imports for eight formats, exports, evidence, defects, and settings discovery. Gaps are minor but real — datasets are read-only (xray_get_dataset/xray_list_datasets with no create/update/delete for data rows), and there is no tool to create/remove test-to-requirement coverage links despite xray_list_issue_link_types being exposed.