🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@testivai/mcp

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testivai/mcp

MCP server exposing TestivAI visual regression results to AI coding agents

Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
517
-54.25%
Maintainers
1
Weekly downloads
 
Created
Source

@testivai/mcp

MCP (Model Context Protocol) server that gives AI coding agents eyes on your visual regression results. The agent changes UI code, runs your test suite, then uses these tools to find out what actually changed on screen — and whether it's real or just render noise.

Tools

ToolWhat it does
get_visual_resultsReads visual-report/results.json, returns a per-snapshot verdict: passed / likely render noise (DOM identical) / real structural change (with DOM summary)
get_snapshot_diffReturns the baseline, current, and diff images for one snapshot, so the agent can see the change
list_baselinesLists the committed baselines under .testivai/baselines/

By design there is no approve tool: promoting a baseline is a human decision. The verdicts tell the agent to suggest /testivai approve <name> on the PR instead.

Setup

Claude Code

claude mcp add testivai -- npx -y @testivai/mcp

Cursor / other MCP clients

// .cursor/mcp.json (or your client's equivalent)
{
  "mcpServers": {
    "testivai": { "command": "npx", "args": ["-y", "@testivai/mcp"] }
  }
}

The server reads the project from its working directory (pass --root <path> to override) and respects reportDir from .testivai/config.json.

Typical agent flow

  • Agent edits UI code.
  • Agent runs npx playwright test (the TestivAI reporter captures + diffs).
  • Agent calls get_visual_results → sees homepage: changed (4.2%) and the DOM changed (2 added, 1 removed).
  • Agent calls get_snapshot_diff homepage → looks at the images, confirms the change matches the task (or fixes its own regression).
  • Agent reports to the human: what changed, whether it looks intended, and which snapshots need /testivai approve.

Local mode only — no account, no API key, nothing leaves the machine.

Full integration guide (instructions-file level, MCP level, zero-test-suite apps, real transcript): docs/guides/ai-agents.md

Keywords

mcp

FAQs

Package last updated on 26 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts