Test Reporter MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Test Reporter MCP ServerWhy is checkout.spec.js flaky?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Test Reporter MCP Server
MCP (Model Context Protocol) server for Test Ledger that enables Claude Code to analyze flaky tests, find failure patterns, suggest fixes and more.
Installation
No installation required! Just add the configuration to Claude Code.
Related MCP server: Tesults MCP
Quick Start
1. Get your API key
Log into testledger.dev and go to Settings → API Keys to generate a key.
2. Configure Claude Code
Add this to your Claude Code MCP config:
Location: ~/.claude.json (global) or .mcp.json (project)
{
"mcpServers": {
"test-reporter": {
"command": "npx",
"args": ["-y", "@testledger/mcp@latest"],
"env": {
"TEST_LEDGER_API_KEY": "your-api-key-here"
}
}
}
}Tip: Using
@latestensures you always get the newest version with bug fixes.
3. Restart Claude Code
That's it! Claude Code now has access to your test results.
Usage
Once configured, you can ask Claude Code things like:
"Why is
checkout.spec.jsflaky?""What tests have been failing the most this week?"
"Show me recent test failures"
"Are there any tests that always fail together?"
With the /fix-flaky-test command
For the best experience, add the fix-flaky-test slash command to your project:
mkdir -p .claude/commands
curl -o .claude/commands/fix-flaky-test.md https://raw.githubusercontent.com/your-company/test-reporter-mcp/main/commands/fix-flaky-test.mdThen use it:
/fix-flaky-test
Test: LoginPage.should allow user to login with valid credentials
Error: element ("#submit-btn") still not clickable after 3000ms
at login.spec.js:42:24Available Tools
The MCP server provides these tools to Claude:
Tool | Description |
| Pass/fail/flaky statistics for a test |
| Time-of-day, browser, and version patterns |
| Tests that fail together (shared setup issues) |
| Project-wide flaky test leaderboard |
| Recent failures for quick triage |
| Failure rate over time |
Configuration Options
Environment Variable | Required | Description |
| Yes | Your API key from the dashboard |
| No | Custom API URL (default: |
| No | Default project ID to use for queries |
Example with all options
{
"mcpServers": {
"test-reporter": {
"command": "npx",
"args": ["-y", "@testledger/mcp"],
"env": {
"TEST_LEDGER_API_KEY": "tr_live_abc123",
"TEST_LEDGER_PROJECT_ID": "42"
}
}
}
}Troubleshooting
"Tool not found" errors
Restart Claude Code after updating config
Check for JSON syntax errors in your config file
Verify your API key is valid
"API error 401"
Your API key is invalid or expired. Generate a new one from the dashboard.
"API error 403"
Your API key doesn't have access to the requested project. Check project permissions.
Support
Documentation: testledger.dev
Issues: GitHub Issues
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/WillBrock/test-ledger-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server