Using an MCP Server to Fix Tests that Failed on CI

2 min read Original article ↗

We just shipped an MCP Server via the RWX CLI. Upgrade to at least version 1.11, and it'll be available via rwx mcp serve.

/bin/bash

$ brew upgrade rwx-cloud/tap/rwx

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 now, AI can easily see which tests failed via an MCP tool.

Claude, fix the tests that failed in this CI run

Add RWX to Claude's MCP configuration:

/bin/bash

$ claude mcp add rwx -- rwx mcp serve

You can then see it in the list of servers:

/bin/bash

Checking MCP server health...

rwx: rwx mcp serve - ✓ Connected

Here's a snippet from a Claude session that gets a list of tests that failed and fixes them.

claude

> 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"])

… +2 lines (ctrl+r to expand)

⏺ Now let me examine the test file and the implementation to understand

#Demo

Never miss an update

Get the latest releases and news about RWX and our ecosystem with our newsletter.

Share this post

Enjoyed this post? Please share it on your favorite social network!