Test MCP endpoint and tools

Use Test MCP tools to execute tests and retrieve test results in DevOps Test Hub, including project discovery, test listing, test run initiation, and result lookup.

Test MCP endpoint

You can use the following endpoint to connect to the Test MCP server:
https://<loop_hostname>/test/mcp

MCP tools available in Test

Use these tools when you need to run tests, list tests in a branch, or fetch test outcomes and details. Do not use these tools for build orchestration, deployment execution, repository pull request actions, or planning updates.

Parameter conventions:

  • projectId is required for all project-scoped operations.
  • branch must be a valid branch name in the target project.
  • assetId identifies the test asset to execute.
  • resultId identifies an execution result for detailed lookup.
  • Use IDs from prior list and get responses; do not infer IDs.
Tools Description Input Output
testhub__get_projects Retrieves a list of projects available in DevOps Test Hub. None

List of available projects.

testhub__list_tests Retrieves a list of tests in DevOps Test Hub for a specific project and branch. projectId, branch

List of tests for the specified project and branch.

testhub__run_test Runs a test in a specific project. projectId, assetId, branch

Details of the executed test, including execution ID.

testhub__get_result_by_id Retrieves the test run result and detailed result data. projectId, resultId

Test execution result and detailed data.

testhub__get_results Retrieves test result summaries for multiple executions in DevOps Test Hub. projectId, branch

Test result summaries for multiple executions.

To configure MCP endpoint in VS Code, See Configuring an MCP server endpoint in VS Code.