Changelog

What shipped recently across the TestRelic SDKs, Cloud Platform, MCP server, and CLI.

October 2026


MCP Server·

MCP tools report real results, or say why they can't

Several MCP tools returned placeholders, blanks or misleading numbers. Each now returns the real answer, or the platform's own reason for not having one.

  • Errors say why. When the platform explains a failure (sign-in, not-found and server errors), the tool includes that explanation instead of a bare status line. A missing endpoint or resource gives a clear error rather than "Cannot read properties of undefined", and a feature the platform doesn't offer yet reads "This feature is not available on the platform yet." Five failed lookups in a row, such as a mistyped run ID, no longer block every other tool for 30 seconds.
  • tr_ai_rca and tr_suggest_fix stop returning placeholders. The 0%-confidence result that read "not yet available" is gone. tr_ai_rca falls back to an analysis of the run's failures written by your assistant, marked "(sampled fallback)". This needs an assistant that supports MCP sampling. Without it the result reads "RCA not available." tr_suggest_fix returns the reason it has no suggestion.
  • tr_recent_runs pages. Passing the cursor from one page returns the next one, not the first again.
  • tr_ask_ai says why an answer stopped, as "Ask AI stopped:" followed by the reason, instead of a blank reply.
  • tr_replay_failure gives a command you can run for the run's framework: npx playwright test -g, npx jest -t or npx vitest run -t with the test title quoted, or npx cypress run --spec with the spec file.
  • tr_user_journeys lists the paths your tests walk, with how many times tests took each one and the share that passed, in place of placeholder rows. They come from test runs, not user analytics.
  • Failure text is clean. Terminal colour codes and a doubled "Error: Error:" no longer appear in failure messages, and error_type is the error's own type, such as TimeoutError.
  • Smaller fixes. tr_ai_usage no longer shows a budget of 0 when the platform doesn't report one, tr_marketplace_validate gives the reason credentials were rejected, and tr_flaky_audit no longer fails when the platform returns no scores.

Released as @testrelic/mcp 3.4.5. The same release raises the minimum Node version and changes what some tools take and return, covered in its own entry for this date.

Cloud PlatformCLI·

Signing in to Studio no longer signs the CLI out, or the other way round

On a computer with both Studio and the CLI, signing in to one used to revoke the other's token, so its next request failed with "Authentication required". Each now keeps its own.

  • Separate tokens per app. Studio's sign-in token is now named TestRelic Studio (<computer name>) in Settings → MCP Tokens, and the CLI's stays TestRelic CLI (<computer name>). Signing in again replaces only the same app's earlier token on that computer.
  • Mind the 10-token limit. A computer that uses both apps holds two tokens, and each user can hold 10. If you're at the limit, delete an unused token in Settings → MCP Tokens before signing in.
  • A clearer MCP error. A revoked or expired token on the MCP endpoints now answers "Bearer token is invalid, expired, or revoked. Mint a new MCP PAT at /settings/mcp-tokens."
  • Ask AI usage counts each model call once. A reply that both reasoned and called a tool was counted two or three times against your token meters.

Until a computer's next Studio sign-in, its existing Studio token can still be listed as TestRelic CLI (<computer name>).

CLI·

Studio's chat never goes quiet on a message, and leaves no processes behind

A message sent in Studio's chat is now always either answered or reported, and Studio cleans up the processes it starts.

  • No more endless "Working on it…". The CLI acknowledges each message. If the assistant doesn't, Studio says "Your last message wasn't answered." and offers Restart the assistant, which keeps the chat and sends the message again. The composer stays usable throughout.
  • Messages aren't lost while the assistant restarts. One sent meanwhile is held and delivered when it's back, and a reconnect can no longer drop a message or run it twice.
  • No leftover processes. MCP servers such as Playwright MCP now stop with the session that started them, and closing Studio ends its chat sessions instead of leaving tr running.
  • One update at a time. Studio and CLI updates can't run in two windows at once or replace the binaries under a running chat.
  • The token stays off the command line. Studio hands its token to the CLI in the TRC_TOKEN environment variable, and the CLI keeps it from every process it starts, MCP servers included.
  • Clearer sign-in failures. Sign-in errors now include the server's own hint, and testrelic config list shows the Claude API key only as set.

Released as testrelic-cli 1.1.0.

MCP Server·

Generating a test from a plan works end to end

Calling tr_plan_test and then tr_generate_test now works with the parameter names the tools return, and the tools answer straight away with assistants that don't support MCP sampling.

  • tr_generate_test accepts what tr_plan_test returns. Passing cache_key, file_path and framework used to fail with "No plan found". cache_key now works like plan_cache_key, and file_path like file_name. Any directory in file_path is ignored: the file is still written to the generated folder of the output directory. framework (playwright, cypress, jest or vitest) overrides the plan's framework. The older names keep working.
  • tr_plan_test names the key to pass next. Its last line now gives the exact plan_cache_key for tr_generate_test.
  • No more dropped connections. MCP sampling is the server asking your assistant's model to write text. With an assistant that doesn't support it, the tools that rely on it (tr_plan_test, tr_generate_test, tr_generate_assertion, tr_heal_run and tr_suggest_locator) could wait a minute for a reply that never came, and on the hosted server the connection was lost. They now fall back to their built-in result straight away. Assistants that do support sampling are asked as before.
  • tr_diagnose_run always returns the same fields. Every result now has run, failures and flakiness, where a missing run or an all-passed run used to leave some out. If you checked for a missing failures or flakiness, check for an empty list instead.

Released as @testrelic/mcp 3.4.3, the first npm release since 3.4.1. If tr_generate_test still answers "Output validation error", your assistant is running an older copy: start it with npx -y @testrelic/mcp@latest.

MCP Server·

A self-hosted MCP server over HTTP needs a token beyond localhost

If you run @testrelic/mcp as an HTTP server on anything other than localhost, upgrading from 3.4.1 changes how clients connect. The default npx setup over stdio and servers bound to localhost need no token, as before. The cache key and rate limit changes below apply to them too.

  • Requests to /mcp need a token. When the server listens on a non-loopback address, such as --host 0.0.0.0 or the Docker image, every request must send Authorization: Bearer <token>, using the token the server itself is configured with (--token, TESTRELIC_MCP_TOKEN or a saved login). A request without it gets 401 with the code UNAUTHORIZED. The token is checked with TestRelic Cloud when a session opens, so one the platform rejects gets 401 too. /healthz stays open.
  • The server won't start without one. Beyond localhost with no token configured, startup stops and says why, unless the server is multi-tenant (below). If a proxy in front of the server already authenticates callers, set TESTRELIC_MCP_REQUIRE_AUTH=false.
  • New: one server for several people. On a server that requires a token, optionally set TESTRELIC_MCP_MULTI_TENANT=true, and each caller sends their own tr_mcp_ token instead of the server's. Tools then see that caller's organization and repositories, and cached results are kept apart per caller. The hosted server at mcp.testrelic.ai works this way.
  • The default repository no longer applies on a server that requires a token. --default-repo-id and TESTRELIC_DEFAULT_REPO_ID are ignored there, so pass project_id when the token can see more than one repository.
  • Clients that send an Origin header are no longer refused by a server reachable beyond localhost. It answered 403 "Invalid Origin header" to browser-based and editor clients. A localhost-only server still checks Origin, and the Host check is unchanged: behind a proxy, list your public hostname in TESTRELIC_MCP_PUBLIC_HOSTS.
  • Saved cache keys from 3.4.1 stop working, on any transport. A cache_key now belongs to the caller it was issued to, and tr_fetch_cached answers that an older key "was not issued to this session". Run the tool that issued it again instead of reusing a stored key.
  • Requests are rate limited. /mcp allows 600 requests a minute per connecting address. Beyond that the answer is 429 with the code RATE_LIMITED. Behind a proxy the server sees one address, so all callers share the limit.

Released as @testrelic/mcp 3.4.3. To create a tr_mcp_ token, see MCP authentication. To use the hosted server instead of running your own, see the MCP quickstart.

MCP Server·

tr_replay_failure returns a replay plan instead of an error

tr_replay_failure failed with "Cannot read properties of undefined (reading 'map')" on runs with a failed test, so no replay plan came back. It now returns the plan.

  • The plan lists the failing test's own files. Under "Artefacts" you get links to up to 10 of the files uploaded for the test being replayed, such as its trace, video and screenshots, and never another test's recording. They are download links that expire. Call the tool again for fresh ones.
  • A test with no uploaded files says so. The plan still comes back, with "No uploaded artefacts for this test." in place of the list.
  • A run with no commit recorded still gets a plan. The checkout step says the run has no commit instead of printing an empty git checkout, and a run whose details can't be loaded no longer fails the whole call.
  • Also in this release: tr_generate_test writes a spec that parses even when a test name or step contains quotes, backslashes or line breaks.

Released as @testrelic/mcp 3.4.4.

September 2026


CLI·

Studio 1.0: one design, and screens that agree about your suite

Studio 1.0 moves every Code-mode screen onto one design and one vocabulary. It also fixes places where Studio said something about your suite that wasn't true.

  • A file Playwright won't load is called out. When a duplicate test title makes Playwright refuse a file, its tests read Blocked and sort right after failures, the status bar says "1 file can't run", and a run that would include it asks first, offering Fix with AI or Run the other N.
  • Roll-ups stop over-claiming. Needs rework no longer shows a clean run while a file can't run. Planner gains Partly proven and Blocked verdicts, and never reads Met off a partial run. Red means a failure and nothing else.
  • Uploads are named plainly. With uploading switched off, a run reads Upload off rather than failed, and the status bar says Uploads on or Uploads off. A run whose upload nobody can confirm is recorded in Test runs as Not confirmed.
  • Agent runs upload their own report, including a run whose card opened late, and never pick up an earlier run's report. The Upload step says "Nothing to upload" when there was nothing to send.
  • A past run no longer takes over the app. Picking one in Test runs shows it in Tests only, with Back to latest. The status bar, Planner and Settings keep showing the latest results.
  • Memory says which cloud project it's showing, and says when the folder isn't linked to one.
  • Pages are named after their nav labels, such as Source control, App servers and Run targets. Across these screens, text meets AA contrast, rows open from the keyboard, and reduced motion is respected.

Released as testrelic-cli 1.0.0.

CLI·

Studio keeps your chats and your uncommitted work

Studio 1.0 also closes the ways a chat's history or an uncommitted change could be lost.

  • Chats are never deleted behind your back. Reopening a chat after a relaunch no longer empties it, and a full storage quota no longer makes newer chats vanish at the next launch. A chat whose list entry went missing comes back under Archived (the chat list's filter, Status).
  • A Cloud chat continued on another device shows the turns taken there after the ones this computer already had. A reconnect never doubles it.
  • Discarding keeps a copy. Discarding changes in Source control, and Throw them away when you switch branch, first save a restore point holding everything they drop (staged edits, new files and ignored files included), so Undo or History → Journal can bring it back. If Studio can't make that copy, it refuses and changes nothing. Undo says plainly when something couldn't be put back, and where the copy is.
  • A branch switch never replaces a file you haven't committed. If the other branch tracks a file with the same name as one of your untracked or ignored files (a local .env, for example), the switch stops and changes nothing. Move the file aside to switch.
  • Sync no longer offers a force-push that would delete a teammate's commit after Studio undid a pull.
  • Fewer background processes. The CLI no longer starts its preset Appium MCP server on a computer with no Android SDK, adb or Xcode. It cost about four processes and 150–300 MB per chat.

Released as testrelic-cli 1.0.0.