Skip to main content

MCP Server

Orangebeard has a Model Context Protocol (MCP) server. Connect an AI agent to it, such as a coding assistant, and the agent can read your test results: find failed runs, inspect logs and screenshots, and look up how similar failures were analyzed before.

The server is read-only: none of its tools changes anything in Orangebeard. It does not need an AI model to be configured in Orangebeard, because the agent uses its own.

info

This is the opposite direction of the MCP Servers tab in the organization settings. That tab gives the Orangebeard AI assistant access to external tools. This page is about external agents that use Orangebeard.

warning

Everything an agent reads, including logs and attachments, is passed on to that agent and to the AI provider behind it. Check that your organization allows this before you connect an agent.

Connecting an agent​

To connect, you need:

  • A personal access token with the MCP scope, with access to the organization and the project.
  • Membership of the project. A token never reaches more than you can access yourself.
  • An agent that supports MCP over streamable HTTP and can send a custom header. OAuth is not supported.

Server address​

https://app.orangebeard.io/{ORGANIZATION}/auto-test-pilot/mcp

Replace {ORGANIZATION} with the name of your organization, as it appears in the Orangebeard address. For private cloud environments, use your own host. Do not add a slash at the end.

The organization is part of the address. To use more than one organization, add a server for each of them, with different names.

Client configuration​

After you create a token with the MCP scope, Orangebeard shows these configurations with your token and address filled in. To set up a client by hand, replace {ORGANIZATION} and obp_YOUR_TOKEN in one of the examples below.

Run in a terminal:

claude mcp add --transport http orangebeard https://app.orangebeard.io/{ORGANIZATION}/auto-test-pilot/mcp --header "Authorization: Bearer obp_YOUR_TOKEN"
warning

These configurations contain your token in plain text. Keep the file private and never commit it to a repository.

Asking questions​

Tell the agent which project to look in, because no tool lists your projects. For example:

Which test runs in the Orangebeard project my-project failed this week, and what went wrong?

Tools​

ToolWhat it returns
get_test_runs_sinceThe test runs of a project in a period
get_last_runs_for_setThe latest runs of one test set
get_test_runOne test run and its tests
get_testOne test with steps, logs and attachments
get_test_timelineEarlier executions of a test
get_attachmentThe content of an attachment
get_historical_analysesEarlier analyses of similar failures

Every tool takes a project argument: the project name as it appears in the Orangebeard address. The agent finds run, test and attachment IDs in the results of other tools.

get_test_runs_since​

Finished test runs that started in a period, newest first.

ArgumentRequiredDescription
projectYesThe project name.
startTimeYesEarliest start time, for example 2026-11-01T00:00:00Z.
endTimeNoLatest start time, in the same format. Default: now.
statusNoPASSED, FAILED, STOPPED, SKIPPED, TIMED_OUT or INTERRUPTED.
testSetNameNoOnly runs of this test set.

Times are in UTC. A time with an offset, such as +02:00, is converted, and a time without an offset is read as UTC. A date without a time is not accepted.

For each run, the result contains the test set name, run ID, start and end time (milliseconds since 1970), status and the number of passed, failed, skipped and total tests.

One call returns at most 100 runs, together with:

  • totalRuns: the number of runs that match.
  • statusCounts: the number of runs per status in the period (and test set), regardless of the status argument.
  • returnedRuns: the number of runs in this result.
  • nextEndTime: present when there are older runs. The agent gets them by calling the tool again with the same arguments and this value as endTime.

get_last_runs_for_set​

The latest runs of a test set, at most 25.

ArgumentRequiredDescription
projectYesThe project name.
testSetNameYesThe test set name.

For each run, the result contains IDs, start and end time, status and test counts. The testsDefectTypes list counts the failed tests per defect type. In each entry, first is the number of failed tests and second is their defect type. In this example, 2 failed tests are classified as product bug and 1 is still to be investigated:

"testsDefectTypes": [
{ "first": 2, "second": "PRODUCT_BUG" },
{ "first": 1, "second": "TO_INVESTIGATE" }
]

get_test_run​

One test run with its status, analysis summary, and tests grouped by suite, with their defect analyses.

ArgumentRequiredDescription
projectYesThe project name.
testRunIdYesThe test run ID.
statusNoWhich tests to return: NOT_PASSED (default), ALL, PASSED, FAILED, SKIPPED, STOPPED, TIMED_OUT, INTERRUPTED or IN_PROGRESS.
offsetNoThe number of matching tests to skip. A whole number, default 0.

One call returns at most 50 tests. The page object in the result contains statusCounts (all tests of the run per status), matchingTests, returnedTests, offset and, when there are more tests, nextOffset. The agent gets the next tests by calling the tool again with the same arguments and that value as offset.

get_test​

One test: details, steps, logs, analysis and attachments.

ArgumentRequiredDescription
projectYesThe project name.
testRunIdYesThe test run ID.
testIdYesThe test ID.

get_test_timeline​

The previous 10 executions of a test, with test and run IDs, sequence number, status, issue type and start and end time. Useful to see whether a failure is new, ongoing or flaky.

ArgumentRequiredDescription
projectYesThe project name.
testIdYesThe test ID.

get_attachment​

An attachment, such as a screenshot or a response body.

ArgumentRequiredDescription
projectYesThe project name.
attachmentIdYesThe attachment ID.
Attachment typeResult
ImagesThe image, up to 4 MB. Larger images are left out.
Text (text/*, application/json, application/xml)The text. Of larger files, only the first 4 MB is returned.
Anything else, such as video, ZIP or PDFOnly information about the file, not its content.

get_historical_analyses​

The 5 most similar earlier defect analyses for a test, with their analysis status, defect classification, reasoning and similarity score.

ArgumentRequiredDescription
projectYesThe project name.
testIdYesThe test ID.

Limits​

  • Each user can make 120 requests per minute by default, shared by all of their tokens. When the limit is reached, the server answers with status 429 and a Retry-After header.
  • Text arguments cannot contain /, \, ?, #, % or ... Runs of a test set with one of these in its name cannot be requested by test set name.
  • Revoking a token, reducing its access or being unassigned from a project takes effect within 15 seconds at most.

Troubleshooting​

ResponseLikely cause
401The token is missing, mistyped, expired or revoked, or it does not have the MCP scope.
403 Access deniedThe token has no access to this organization or project, you are not a member of the project, or the project does not exist.
403 without that messageThe address ends with a slash, or the request comes from a web page. Requests from browsers are not accepted.
429Too many requests. Wait for the number of seconds in Retry-After.
503Access could not be checked at the moment. Try again later.
Error code -32602The agent passed an unknown, missing or invalid argument. The message says which.
The tool call failed. Check the arguments...The run, test or attachment does not exist in this project.

Technical details​

  • Transport: streamable HTTP. The server is stateless and only accepts POST requests.
  • Protocol versions: 2026-07-28, 2025-11-25 and 2025-06-18.
  • Authentication: Authorization: Bearer <personal access token>.
Ask Orangebeard