TestRelic MCP overview
Model Context Protocol server that gives AI assistants TestRelic context—repos, runs, coverage gaps, test creation, healing, and impact analysis tied to your cloud data.
The TestRelic MCP server speaks the Model Context Protocol so coding assistants (Cursor, Claude Desktop, VS Code, and others) can use your TestRelic data: projects, recent runs, user journeys, coverage gaps, and suggested tests—without pasting screenshots or logs into chat.
It complements the SDK reporters: reporters send run data to the cloud; the MCP lets an agent query and act on that context while you write or fix tests.
- Transport
- stdio
- Tools registered
- 39
- Output dir
- .testrelic-output
- Cache dir
- .testrelic-cache
A hand-recreated slice of the editor extension's own status panel — click Start Server to connect and see the capabilities, tool count, and cache/output paths a real showStatus() call reports.
Cursor Marketplace plugin
The fastest way to try the MCP in Cursor:
- Open Cursor and search Settings → Plugins for
testrelic-mcp. - Click Install. Cursor wires up the MCP server automatically.
- Open the agent and ask something like "list my TestRelic projects".
The plugin connects to the hosted TestRelic MCP server over HTTP, which needs your MCP personal access token. See Authentication.
Live data needs a token
Every live call needs a personal access token (tr_mcp_*). Create one at platform.testrelic.ai/settings/mcp-tokens, then run npx @testrelic/mcp login (or set TESTRELIC_MCP_TOKEN=tr_mcp_…). --mock-mode is off by default: it is for sandboxes only and points the server at a local mock API from the source repository instead of the cloud. See Quickstart and Authentication.
Tool namespace (tr_*)
Tools are exposed with the tr_* prefix (for example tr_list_repos, tr_coverage_report, tr_heal_run, tr_analyze_diff). The older testrelic_* names are deprecated aliases, off by default since 3.3.0; turn them on with --legacy-aliases only while migrating. See the Tools reference.
Purpose
Use this overview to understand how the MCP server sits between your IDE and the TestRelic cloud, and where to go next for install, auth, and capabilities.
Architecture: MCP host and TestRelic
Tool traffic path (conceptual)
A tool call moves from your MCP host through stdio (local server) or streamable HTTP (hosted server) into the MCP server and out to TestRelic cloud APIs.
One token
You authenticate with a single MCP personal access token. Jira, Amplitude, Grafana Loki, TestMu AI, BrowserStack, and similar integrations are configured in the TestRelic cloud for your organization—not as extra secrets in MCP config.
Install & connect
Hosted MCP at mcp.testrelic.ai, stdio via npx @testrelic/mcp, or the Cursor marketplace plugin. Production uses your MCP token; mock mode is sandbox-only.
Authenticate
Create an MCP token in Settings, then save it with the login command or an environment variable.
Capabilities
Enable tool groups with --caps: core, coverage, creation, healing, impact, triage, signals, devtools, ai, marketplace, apps, artifacts, memory.
Use with your suite
End-to-end flow: SDK → cloud data → MCP in your IDE while you author, triage, or refactor tests.
Troubleshooting
| Symptom | What to try |
|---|---|
| Tool errors mentioning auth | Follow Authentication — MCP personal access token and mock mode. |
| Only mock or empty results | Disable --mock-mode when you expect live cloud data, and verify the token is set in the environment your MCP host uses. |
Source repository
Implementation and issue tracker: github.com/testrelic-ai/testrelic-mcp-server.