MCP tools reference

Curated list of TestRelic MCP tools by capability—core, coverage, creation, healing, impact, triage, signals, devtools, ai, marketplace, apps, artifacts, and memory—with links to the full upstream catalog.

All tools are exposed to MCP clients with the tr_ prefix. Enable the matching capability or the tool will not be registered.

TestRelic MCP — Tools67 / 67 shown
core
tr_list_reposList repositories you can access.
tr_recent_runsRecent test runs with filters (status, framework).
tr_describe_repoRepo metadata and integration summary.
tr_get_configResolved MCP configuration (capabilities, paths).
tr_healthConnectivity and cache health — good first call.
tr_integration_statusLive check for a specific integration type.
tr_fetch_cachedRetrieve a large payload by cache_key after truncation.
coverage
tr_user_journeysTop user journeys (usage-backed).
tr_coverage_gapsRanked gaps between journeys and tests.
tr_coverage_reportProgress toward coverage targets.
tr_test_mapMap tests to journeys and code nodes.
creation
tr_plan_testMarkdown plan from a journey or goal.
tr_generate_testRunnable test code from a plan.
tr_dry_run_testTypecheck / list tests on generated output.
tr_generate_assertionStable assertion snippet for a step.
tr_list_templatesAvailable framework templates.
healing
tr_heal_runProposed patch for a failing run.
tr_suggest_locatorPrefer stable locators over brittle selectors.
tr_replay_failureArtefacts and steps to reproduce offline.
impact
tr_analyze_diffBlast radius and tests touched by a diff.
tr_risk_scoreLightweight risk signal from journey usage.
tr_select_testsMUST / SHOULD / OPTIONAL buckets for testing.
triage
tr_diagnose_runCompact failure summary for a run.
tr_compare_runsDiff two runs for regressions or fixes.
tr_flaky_auditRank flaky tests over a window.
tr_search_failuresText search across failures.
tr_ai_rcaRoot-cause narrative when available.
tr_suggest_fixPlatform suggestion for a failing test.
tr_create_jiraCreate or dedupe a Jira issue.
tr_dismiss_flakyMark known-flaky with a reason.
tr_classify_failureFast first read on why one test failed, or defer.
signals
tr_user_impactCorrelate a run with user- and log-based impact.
tr_production_signalQuery production logs (LogQL) in a window.
tr_affected_sessionsSessions cohort for comms or rollback.
devtools
tr_project_trendsPass rate, duration, flakiness trends.
tr_active_alertsActive platform alerts.
tr_index_repoIndex a local checkout for semantic search.
tr_search_codeVector search over indexed code.
tr_cache_statsCache layer counters for debugging.
ai
tr_ai_list_toolsCatalog of every Ask-AI tool with its input schema.
tr_ai_executeRun one Ask-AI tool by name.
tr_ask_aiRun the Ask AI agent for one message.
tr_ai_list_conversationsList your Ask AI conversations.
tr_ai_get_conversationFull message history of one conversation.
tr_ai_new_conversationCreate an empty conversation.
tr_ai_delete_conversationPermanently delete a conversation.
tr_ai_usageThis month's AI token usage against the allowance.
marketplace
tr_marketplace_list_appsIntegration catalog with connection status.
tr_marketplace_get_appDetail and config fields for one app.
tr_marketplace_list_connectionsOnly the connected apps.
tr_marketplace_validateCheck credentials without saving them.
tr_marketplace_connectConnect an API-key, basic or PAT app.
tr_marketplace_start_oauthStart OAuth for an OAuth-only app.
tr_marketplace_disconnectRemove an app's credentials.
tr_marketplace_invokeUnified operation runner on a connected app.
apps
tr_apps_listEvery app the org can connect, with its state.
tr_apps_list_actionsThe actions one connected app exposes.
tr_apps_connectStart an OAuth connection.
tr_apps_disconnectRevoke an app connection.
tr_apps_executeRun an action on a connected app.
artifacts
tr_artifacts_listList artifacts, filtered by conversation, repo, type.
tr_artifacts_getFull JSON payload of one artifact.
tr_artifacts_exportExport to PNG or PDF (link valid about an hour).
tr_artifacts_save_to_fileWrite an artifact's JSON to a file.
memory
tr_get_repo_memoryCompact digest of the repo's memory.
tr_list_repo_memoriesRaw, filterable list of memory entries.
tr_save_repo_memorySave an entry (default category: insight).

Search or filter by capability to find a tool below — the same names and one-line purposes as the tables further down this page.

Deprecated aliases are opt-in

The tr_* names are the current namespace — 67 tools across 13 capabilities in 3.5.0, after a 3.3.0 dedupe pass removed duplicate and superseded names. The older testrelic_* names are off by default; enable them only while migrating with --legacy-aliases or TESTRELIC_MCP_LEGACY_ALIASES=1. Prefer the tr_* form in new prompts and configs.

Enabled caps
Tool registry
tr star tools
MCP client

For the full, machine-maintained table (every tool and description), see the @testrelic/mcp README on GitHub.

core

ToolPurpose
tr_list_reposList repositories you can access.
tr_recent_runsRecent test runs with filters. Filter by status (passed, failed, running, cancelled) and by framework (playwright, cypress, jest, vitest, pytest); limit 1–20 (default 5) with a cursor for the next page.
tr_describe_repoRepo metadata and integration summary.
tr_get_configResolved MCP configuration (capabilities, paths).
tr_healthConnectivity and cache health—good first call.
tr_integration_statusLive check for one integration type: jira, amplitude, grafana-loki, or github-actions.
tr_fetch_cachedRetrieve a large payload by cache_key when a result was truncated to the token budget.

coverage

ToolPurpose
tr_user_journeysTop user journeys (usage-backed).
tr_coverage_gapsRanked gaps between journeys and tests.
tr_coverage_reportProgress toward coverage targets.
tr_test_mapMap tests to journeys and code nodes.

creation

ToolPurpose
tr_plan_testMarkdown plan from a journey or goal.
tr_generate_testRunnable test code from a plan.
tr_dry_run_testType-check a generated test file with tsc --noEmit, using the TypeScript already installed. With no TypeScript available it returns no verdict rather than a failure. It does not run or list the tests.
tr_generate_assertionStable assertion snippet for a step.
tr_list_templatesAvailable framework templates.

healing

ToolPurpose
tr_heal_runProposed patch for a failing run.
tr_suggest_locatorPrefer stable locators over brittle selectors.
tr_replay_failureArtefacts and steps to reproduce offline.

impact

ToolPurpose
tr_analyze_diffBlast radius and tests touched by a diff.
tr_risk_scoreLightweight risk signal from journey usage.
tr_select_testsMUST / SHOULD / OPTIONAL buckets for testing.

triage

ToolPurpose
tr_diagnose_runCompact failure summary for a run. Run status reflects the run outcome, so a run containing failures is never reported as passed. Since 3.4.7 each test counts once, by its final attempt, so the failure list matches the run's own totals: a test that passed on retry is flaky, not failed. tr_compare_runs, tr_search_failures, tr_ai_rca, tr_create_jira, tr_heal_run and tr_replay_failure read the same list.
tr_compare_runsDiff two runs for regressions or fixes.
tr_flaky_auditRank flaky tests over a window.
tr_search_failuresText search across failures.
tr_ai_rcaRoot-cause narrative when available.
tr_suggest_fixPlatform suggestion for a failing test.
tr_create_jiraCreate or dedupe a Jira issue.
tr_dismiss_flakyMark known-flaky with a reason.
tr_classify_failureFast first read on why one test failed (run_id, test_id): flaky, product_bug, test_bug, environment, or selector_drift, with a confidence, from a classifier built into the MCP server (no model call). Returns defer instead of guessing when it isn't confident; use tr_diagnose_run or tr_ai_rca then.

signals

ToolPurpose
tr_user_impactCorrelate a run with user- and log-based impact.
tr_production_signalQuery production logs (LogQL) in a window.
tr_affected_sessionsSessions cohort for comms or rollback.

devtools

ToolPurpose
tr_project_trendsPass rate, duration, flakiness trends. Accepts a days window and returns the total run count for the window.
tr_active_alertsActive platform alerts.
tr_index_repoIndex a local checkout for semantic search.
tr_search_codeVector search over indexed code.
tr_cache_statsCache layer counters for debugging.

ai

Enable with --caps ai. Exposes the Ask AI tool catalog, a single-turn agent, conversation management, and token usage. Needs the Ask AI (mcp:ai) token scope.

ToolPurpose
tr_ai_list_toolsCatalog of every Ask-AI tool with its input schema. Call before tr_ai_execute.
tr_ai_executeRun one Ask-AI tool by name (tool_name, input); returns { result, artifact? }. This is how you generate artifacts: generate_dashboard, generate_report, generate_test_plan, generate_presentation, or generate_navigation_paths.
tr_ask_aiRun the Ask AI agent for one message (message, optional conversationId, repoId, runId, maxToolRounds 1–15). Returns the reply plus any artifacts.
tr_ai_list_conversationsPaginated list of your conversations (cursor, limit up to 50).
tr_ai_get_conversationFull message history of one conversation, with artifact references.
tr_ai_new_conversationCreate an empty conversation; pass its id as conversationId to tr_ask_ai.
tr_ai_delete_conversationPermanently delete a conversation and its messages.
tr_ai_usageThis month's AI token usage against the workspace's monthly allowance.

marketplace

Enable with --caps marketplace. First-class testing integrations (Jira, GitHub Actions, BrowserStack, LambdaTest, Sentry, Amplitude, Grafana Loki).

ToolPurpose
tr_marketplace_list_appsFull catalog with connection status, auth method, and the MCP capabilities each app unlocks.
tr_marketplace_get_appDetail for one app, including the configFields that tr_marketplace_connect needs.
tr_marketplace_list_connectionsOnly the connected apps, with status and connection time.
tr_marketplace_validateCheck API-key / basic / PAT credentials without saving them.
tr_marketplace_connectConnect an API-key / basic / PAT app (slug, credentials).
tr_marketplace_start_oauthStart OAuth for an OAuth-only app; returns a redirectUrl you open in a browser.
tr_marketplace_disconnectRemove an app's credentials from the org.
tr_marketplace_invokeUnified operation runner (slug, operation, args), for example jira.search or loki.query. Never pass secrets in args.

apps

Enable with --caps apps. Generic action runner for connected apps (Slack, Notion, Linear, HubSpot, Google Calendar, …).

ToolPurpose
tr_apps_listEvery app the org can connect, with its connection state.
tr_apps_list_actionsThe actions one connected app exposes, with input schemas.
tr_apps_connectStart an OAuth connection; returns a redirectUrl you open in a browser.
tr_apps_disconnectRevoke an app connection.
tr_apps_executeRun an action on a connected app (app, action, args). Never pass secrets in args.

artifacts

Enable with --caps artifacts. Manage artifacts produced by the Ask-AI agent.

ToolPurpose
tr_artifacts_listPaginated list, filterable by conversation, repo, and type.
tr_artifacts_getFull JSON payload of one artifact.
tr_artifacts_exportExport an artifact to PNG or PDF; returns a download link valid for about an hour.
tr_artifacts_save_to_fileWrite an artifact's JSON to a file under the output directory and return its path.

memory

Enable with --caps memory. Read and write repo memory — the team's durable, repo-scoped test-maintenance decisions, insights, maintenance notes, and constraints — so any assistant gets precise context on the next turn.

ToolPurpose
tr_get_repo_memoryCompact digest of the repo's memory. Call it before proposing test changes; entries about deleted tests are flagged.
tr_list_repo_memoriesRaw, filterable list (test_id, category, status active/archived/all, search, limit up to 200) with stats, including which entries no longer match a test.
tr_save_repo_memorySave an entry (title, content, optional category decision/insight/maintenance/context, default insight, and test_id). Needs the mcp:memory token scope.

Resources and prompts

Besides tools, the server exposes read-only resources, such as testrelic://repos/{repo_id}/journeys, testrelic://repos/{repo_id}/coverage-report, testrelic://repos/{repo_id}/gaps, testrelic://cache/{key}, testrelic://ai/conversations/{id}, testrelic://artifacts/{id}, testrelic://marketplace/apps, and testrelic://apps.

Ready-made prompts: create_test_from_gap, triage_and_heal, pr_impact_gate, connect_marketplace_app, ask_ai_with_context, generate_executive_report, and session_to_jira.

Security

Disclosure and versioning policy for the upstream project: SECURITY.md.

Was this page helpful?

On this page