MCP

RWX makes an MCP (Model Context Protocol) server available for debugging failed tests.

With RWX, test results are a semantic output. Rather than having to scroll through logs, you can easily see which tests failed in the UI and via AI coding assistants.

Using the RWX MCP server requires the RWX CLI to be installed.

Below is an example of using RWX's MCP server with Claude Code. You can also see a demo recording on our blog.

> fix the test failures from this run:
  https://cloud.rwx.com/mint/rwx/runs/df4781e384584db98c3274a84f2bcfc2

⏺ I'll help you fix the test failures from that RWX run. Let me first
  get the details of the failed tests.

⏺ rwx - get_run_test_failures (MCP)(run_urls:
                                   ["https://cloud.rwx.com/mint/rwx/runs
                                   /df4781e384584db98c3274a84f2bcfc2"])
  ⎿  Failed tests:

     - src/calculator.test.ts
     … +2 lines (ctrl+r to expand)

⏺ Now let me examine the test file and the implementation to understand
  what's failing.

Claude Code

You can add the RWX MCP server to Claude Code by running the following command.

$ claude mcp add rwx -- rwx mcp serve

You can then see it in the list of servers.

$ claude mcp list
# Checking MCP server health...

# rwx: rwx mcp serve - ✓ Connected

Cursor / Visual Studio Code

Install MCP Server (Cursor)Install MCP Server (VS Code)

Both Cursor and Visual Studio Code support MCP servers in slightly different ways. You can click the links above to install the MCP server.

Alternatively, you can add an mcp.json file (if you don't already have one) to hold the MCP configuration, with options shown below.

ToolAccessFile
CursorGlobal~/.cursor/mcp.json
CursorWorkspace.cursor/mcp.json
Visual Studio CodeGlobal~/.vscode/mcp.json
Visual Studio CodeWorkspace.vscode/mcp.json

Once you have your mcp.json file, you can add the RWX MCP server as follows:

{
  "mcpServers": {
    "rwx": {
      "command": "rwx mcp serve",
      "args": []
    }
  }
}

For more information and other options, see the Cursor and Visual Studio Code documentation on MCP servers.

Other editors

Many other popular editors support MCP servers. See the documentation for your editor for more information on how to add one, and refer to the JSON above for the structure, which should be compatible with most editors.