TurnSignal
TurnSignal for Playwright
Source of the turnsignal npm package: the Playwright reporter, the turnsignal CLI and the TurnSignal MCP server for coding agents. MIT licensed.
TurnSignal keeps every Playwright test's results across CI runs and branches, and labels each failure as a new failure, also failing on main or known flaky. Package docs: packages/turnsignal/README.md.
MCP server
Read-only Playwright CI results for coding agents (Claude Code, Cursor, Copilot, ...). Before an agent "fixes" a failing test, it can check whether the failure is new in this pull request, already failing on main, or known flaky.
Tool | What it returns |
| Recent CI runs: verdict, status, branch, commit, counts, run id |
| One run's results: new failures, already failing, flaky, missing tests, with errors |
| One test's recent outcomes across runs |
| Tests that were flaky in the last N days, most flaky first |
{
"mcpServers": {
"turnsignal": {
"command": "npx",
"args": ["-y", "turnsignal", "mcp"],
"env": { "TURNSIGNAL_TOKEN": "<project token from https://app.turnsignal.ai>" }
}
}
}Claude Code: claude mcp add turnsignal -e TURNSIGNAL_TOKEN=<token> -- npx -y turnsignal mcp
The server talks JSON-RPC over stdio and only reads data the project token can see. It is listed in the official MCP Registry as ai.turnsignal/turnsignal.
Related MCP server: Playwright Report MCP
Layout
Path | What |
| Wire format, test identity, secret redaction |
| The Playwright reporter (crash-safe local copy, never changes your exit code) |
|
|
| The published package: an esbuild bundle of the three above |
npm ci
npm test # build + unit tests
npm run package # builds packages/turnsignal/distThe hosted service (API and web app) is not part of this repository; ADR-NNN references in code comments point to its internal design records. This repository is a mirror: changes land upstream and are synced here, so please report issues to hello@turnsignal.ai or open an issue. Questions: hello@turnsignal.ai.
Available Tools
4 toolsturnsignal_flaky_testsB
Tests that were flaky (failed, then passed on retry) in the last N days, most flaky first, with counts.
Inputs: days.
turnsignal_recent_runsA
Recent CI runs of this project, newest first: verdict, status, branch, commit, counts and run id. Use it to find a run to inspect.
Inputs: limit, branch.
turnsignal_runA
One run explained: the verdict, and every failed, flaky or missing test with its file:line, error message, code snippet, whether the failure is new or already on the default branch, and links to its trace/video/screenshot. Pass runId, or runKey (e.g. "github:1234567"), or neither for the latest run.
Inputs: runId, branch, runKey.
turnsignal_test_historyA
One test's recent results across runs (newest first): outcome, branch, run. Use it to tell a new breakage from a long-flaky test. testKey comes from turnsignal_run.
Inputs: testKey (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a clearly distinct scope: recent_runs lists runs, run details a single run, test_history tracks one test across runs, and flaky_tests aggregates flaky tests over a time window. The descriptions explicitly state the progression (find a run, inspect it, drill into a test) so an agent can pick the right tool without overlap confusion.
All names use a consistent turnsignal_ prefix with snake_case, giving a predictable pattern. The only minor wrinkle is the noun-phrase style (run vs recent_runs, test_history, flaky_tests) with a singular/plural pair that could momentarily blur, but it remains readable and coherent.
Four tools is a tight, well-scoped set for a read-only CI test inspection domain, with each tool covering a distinct layer (runs, run detail, test history, flaky aggregation). No tool feels redundant or missing at this scale.
The surface covers the core diagnostic lifecycle: find runs, explain a run, trace a single test over time, and surface flaky tests. Minor gaps exist (e.g. no way to list all tests in a run, compare runs, or fetch raw logs), but agents can work around these via the run detail tool.
Maintenance
Related MCP Connectors
Test analytics for AI agents: test history, flaky tests, failure clusters, coverage.
Approved test intent, reviewed Playwright automation and run evidence, inside your editor.
Read-only GitHub bounty, agent harness, Actions failure, flake, and MCP tool-drift decisions.
Triage failing GitHub Actions jobs and see what self-heal repaired, in natural language.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to summarize Playwright test runs, identify flaky tests, heuristically triage failures, generate Playwright test stubs, and retrieve recent GitHub CI status through MCP tool calls.5MIT
- AlicenseAqualityBmaintenanceAllows LLM agents to query Playwright JSON test results for run summaries and failure information.2MIT

failure-reportofficial
AlicenseNot gradedqualityBmaintenanceEnables querying Playwright test failure reports and execution results directly from AI assistants, allowing retrieval of test outcomes, failures, and report details.MIT
squally-mcpofficial
AlicenseAqualityBmaintenanceEnables coding agents to read Squally CI data, including test results, flakiness, and failure diagnostics.7164 npmMIT