TestivAI Open Source logo

TestivAI Open Source

Local MCP visual regression testing with DOM-aware verdicts, diff images, and snapshot explanations without an API key.

Install TestivAI Open Source

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-33": {
      "command": "npx",
      "args": [
        "-y",
        "testivai"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio mcp-33 -- npx -y testivai

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y testivai

npm error code ENOVERSIONS npm error No versions available for testivai npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-11T14_13_15_914Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

TestivAI Open Source provides local visual regression checks for AI-assisted web development, with the MCP tool explain_snapshot exposing evidence from captured snapshots. It compares screenshots with page DOM data and, where available, computed styles to distinguish structural changes, style changes, render noise, and unhealthy captures. Runs produce diff images, an HTML report, and machine-readable results.json without an account, API key, or hosted service. Reach for it when an agent needs to verify UI changes and explain whether a visual difference is intentional before a human approves a baseline.

Use cases

  • Run visual checks after an AI agent changes UI code
  • Inspect DOM-aware explanations for screenshot differences
  • Review mobile web baselines across device profiles
  • Approve intended visual baselines from a pull request
  • Publish self-contained visual reports to GitHub Pages

Key features

  • Local screenshot capture and visual diffs
  • DOM- and computed-style-aware verdicts
  • MCP explain_snapshot tool
  • Selector attribution and layout-shift detection
  • Machine-readable results.json output
  • Playwright and WebdriverIO adapters

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

21/21 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · testivai (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.

How TestivAI Open Source works

What TestivAI Open Source MCP server does

TestivAI Open Source adds visual verification to an AI agent's web development workflow. It works with locally captured browser snapshots and gives the agent structured evidence about what changed, rather than requiring it to inspect screenshots alone. The workflow is designed for modern web applications tested through Playwright or WebdriverIO, with shared baselines and reports across supported adapters.

The project is local-first and MIT-licensed. Captures, comparisons, and the self-contained HTML report remain on the local machine. No account, API key, or network service is required, which makes the workflow suitable for agent sandboxes and offline development.

How it works

A capture includes a screenshot and a page DOM snapshot by default. Several adapters also record an element map and computed-style information. TestivAI combines these layers when evaluating a difference:

  • DOM changes are summarized with additions and removals.
  • Matching DOM with changed styles is reported as a style-only change.
  • Matching DOM and styles with a small, scattered pixel difference may be marked as likely render noise.
  • Missing style data is reported as styles not compared rather than being treated as noise.
  • Failed web-font or stylesheet loads produce an unhealthy-capture result.

The result includes per-snapshot status, diff percentages, DOM summaries, region data, and capture-health information in visual-report/results.json. Diff images and an HTML report provide the visual side of the review. The explain_snapshot MCP tool supplies layered evidence, including selector movement, changed elements, style-only changes, and whole-page shifts, so the connected model can write the explanation.

Setup and configuration

Add the project's visual-verification instructions to AGENTS.md or CLAUDE.md so an agent knows when to run the checks and how to interpret their results. The documented workflow runs npx playwright test; TestivAI captures screenshots through the test setup, after which the agent reads visual-report/results.json.

Claude Code users can install the testivai-report plugin from the TestivAI marketplace to display the report and screenshots in the application. Baselines are kept in the repository, and human approval can happen in a pull request through a /testivai approve comment.

Tools and capabilities

  • Compare screenshots with DOM and computed-style evidence.
  • Expose explain_snapshot for agent-readable change analysis.
  • Produce region-level diffs with bounding boxes.
  • Attribute movement or changes to selectors and elements.
  • Detect broad page shifts, including content moved by an injected banner.
  • Support Playwright JavaScript/TypeScript and Python, WebdriverIO, and experimental Playwright Java adapters.
  • Use Playwright device emulation for mobile web baselines.

GitHub Actions can post diffs and process approval comments, while a companion action can publish reports to GitHub Pages.

Limitations and notes

Computed-style comparison depends on the adapter providing element-map data on both captures. The crawler, Playwright Python, and Playwright Java paths do not provide that comparison in the same way, so identical-DOM differences may be reported as styles not compared. The style check covers a fixed property list and does not rule out changes involving size, overflow, transforms, or images. A large or concentrated difference can therefore require inspection even when DOM and styles match.

The project is intended to complement, not automatically replace, Playwright's built-in screenshot assertions. Baseline approval remains a human decision in the pull-request workflow.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about TestivAI Open Source

TestivAI Open Source is an MCP server that connects AI agents to a local visual regression workflow for web applications. Its main tools and outputs include the explain_snapshot tool, screenshot diff images, DOM and computed-style evidence, verdicts for visual changes, and machine-readable results.json files, with no account or API key required.

Set up the documented visual-verification instructions in AGENTS.md or CLAUDE.md, then run the Playwright test command used by the project. TestivAI writes results to visual-report/results.json; Claude Code users can also install the testivai-report plugin from the TestivAI marketplace.

Yes, TestivAI Open Source is intended for AI agents including Cursor. The agent can run the project's visual tests, read results.json, and use the snapshot evidence to decide whether a change is structural, stylistic, likely render noise, or requires visual inspection.

Yes, it runs locally without an API key, account, or hosted AI service. The explain_snapshot workflow provides evidence to the connected model, which writes the narrative explanation rather than sending the capture to a hosted TestivAI service.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTestivAI Open Source AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-33?style=directory)](https://allmcps.com/mcp/mcp-33)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-33"><img src="https://allmcps.com/api/badge/mcp-33?style=directory" alt="TestivAI Open Source on AllMCPs" /></a>