@applitools/mcp 0.8.1 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,31 @@ All notable changes to the Applitools Eyes MCP will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.8.3](https://github.com/Applitools-Dev/sdk/compare/js/mcp@0.8.2...js/mcp@0.8.3) (2026-09-15)
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/core-base bumped to 1.39.0
14
+ #### Features
15
+
16
+ * NLP authoring (eyes.run) for eyes-playwright via the Eyes NLP service | AD-13296 ([#3936](https://github.com/Applitools-Dev/sdk/issues/3936)) ([c0f81d1](https://github.com/Applitools-Dev/sdk/commit/c0f81d1d3237945001ddf918954ee22a962aea03))
17
+
18
+ ## [0.8.2](https://github.com/Applitools-Dev/sdk/compare/js/mcp@0.8.1...js/mcp@0.8.2) (2026-09-14)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * lower the eyes-results node floor to 18 ([#4188](https://github.com/Applitools-Dev/sdk/issues/4188)) ([cbd832d](https://github.com/Applitools-Dev/sdk/commit/cbd832db46366d33c4686bf224634d8b17f85845))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * @applitools/eyes-results bumped to 0.2.4
29
+ #### Bug Fixes
30
+
31
+ * lower the eyes-results node floor to 18 ([#4188](https://github.com/Applitools-Dev/sdk/issues/4188)) ([cbd832d](https://github.com/Applitools-Dev/sdk/commit/cbd832db46366d33c4686bf224634d8b17f85845))
32
+
8
33
  ## [0.8.1](https://github.com/Applitools-Dev/sdk/compare/js/mcp@0.8.0...js/mcp@0.8.1) (2026-09-10)
9
34
 
10
35
 
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Applitools MCP Server
2
2
 
3
- The Applitools MCP server helps you create, update, and analyze visual tests using Applitools Eyes with our [Playwright (JavaScript/TypeScript) Fixtures SDK](https://applitools.com/docs/eyes/playwright), with support for more frameworks coming soon.
3
+ The Applitools MCP server helps you create, update, review, and resolve visual tests using Applitools Eyes across any of our supported SDKs.
4
4
 
5
- It connects to AI assistants through the Model Context Protocol (MCP), allowing tools like Cline, Claude Code, and IDE assistants to help you set up tests, add visual checkpoints, and configure cross-browser testing.
5
+ It connects to AI assistants through the Model Context Protocol (MCP), letting tools like Cursor, GitHub Copilot, Cline, and Claude Code (and more) set up tests, add visual checkpoints, configure cross-browser testing, and investigate visual test failures (accepting, rejecting, or adjusting the changes behind them) without ever leaving your IDE.
6
6
 
7
7
  To [learn more](https://applitools.com/docs/eyes/integrations/mcp-servers/applitools-mcp), please visit our MCP documentation.
8
8
 
@@ -10,31 +10,29 @@ To [learn more](https://applitools.com/docs/eyes/integrations/mcp-servers/applit
10
10
  This server is built for developers, testers, or QA working with AI-assisted workflows.
11
11
 
12
12
  It enables your AI assistant to:
13
+
13
14
  * Understand your project configuration
14
15
  * Guide Eyes setup
15
16
  * Add visual checkpoints and suggest best practices
16
- * Review your visual test results
17
+ * Investigate a batch, scenario, session, or step of visual test failures and tell you what changed, whether it's a bug, and why
18
+ * Accept, reject, or adjust match regions for a checkpoint, with your explicit approval before anything is committed to baseline
17
19
 
18
- All without requiring manual, error-prone steps.
20
+ All without requiring manual, error-prone steps, or leaving your IDE.
19
21
 
20
22
  ## Who is this for?
21
- * New users to test automation
22
- * No existing automation framework.
23
- * Playwright JavaScript engineers new to Applitools Eyes
24
- * Playwright is already used, but Eyes has not yet been installed or implemented.
25
- * Existing Eyes Playwright Fixtures users
26
- * Who want to use the MCP server to:
27
- * Add Ultrafast Grid coverage (cross-browser and device testing)
28
- * Quickly convert existing tests into visual tests using Appplitools visual AI
29
- * Retrieve and analyze your visual test results
23
+ * Engineers new to Applitools Eyes who haven't installed or implemented the Eyes SDK
24
+ * Existing Eyes SDK users who want to use the MCP server to add Ultrafast Grid coverage (cross-browser and device testing), convert existing tests into visual tests using Applitools visual AI, or retrieve and analyze visual test results
25
+ * Teams triaging visual test failures at scale
26
+ * Who want an AI assistant to investigate a batch of failing tests, gather evidence, and tell them exactly what changed and whether it needs attention, instead of clicking through the Eyes dashboard test by test
30
27
 
31
28
  ## Requirements & Limitations
32
29
  * Node.js 18 or newer
33
- * VS Code, Cursor, Claude Desktop, or any other MCP client assistant
34
- * Supports Playwright JavaScript/TypeScript projects and our [Playwright Fixtures SDK](https://applitools.com/docs/eyes/playwright) only.
35
- * It is recommended using the most recent versions of Playwright Node.js and our Playwright JavaScript Fixtures SDK
36
- * Requires projects utilizing [Playwright Test](https://playwright.dev/docs/api/class-test)
37
- * Requires access to your projects source code
30
+ * VS Code, Cursor, Claude Code, Cline, or any other MCP client assistant
31
+ * The setup and checkpoint tools (eyes_setup_project, eyes_setup_ufg, eyes_add_checkpoints_to_test) support only our [Playwright Fixtures SDK](https://applitools.com/docs/eyes/playwright). Support for additional SDK frameworks is coming soon!
32
+ * Use the latest versions of Playwright, Node.js, and our Playwright JavaScript Fixtures SDK
33
+ * Requires access to your project's source code (for the setup and checkpoint tools)
34
+ * The Inspection, Resolution, and Review tools (`eyes_inspect_*, eyes_resolve_*, eyes_review_*`) work with any Eyes test results, regardless of which SDK or language produced them, as they operate on already-captured batch, session, and DOM data
35
+ * These tools require additional separate read and write API keys
38
36
 
39
37
  ## Installation
40
38
  Recommended: VS Code Extension or Cursor MCP Install
@@ -42,10 +40,12 @@ Recommended: VS Code Extension or Cursor MCP Install
42
40
  The easiest way to start using Eyes MCP is through the Applitools VS Code extension or by installing the MCP server directly in Cursor.
43
41
 
44
42
  * Runs the MCP server automatically
45
- * Connects it to Copilot or Cursor's AI assistantd
43
+ * Connects it to Copilot or Cursor's AI assistant
46
44
  * Provide context-aware code edits
47
45
  * Surface visual test results inside your IDE or MCP client CLI of choice
48
46
 
47
+ Simply install the MCP server by clicking an option below:
48
+
49
49
  <a href="vscode:extension/applitools.mcp-vscode-extension">
50
50
  <img src="https://img.shields.io/badge/Install-VS_Code-007ACC?logo=visualstudiocode&logoColor=white">
51
51
  </a>
@@ -57,14 +57,6 @@ The easiest way to start using Eyes MCP is through the Applitools VS Code extens
57
57
 
58
58
  Alternatively, you can install the server manually by following the `Manual Setup` section below.
59
59
 
60
- ### What's Included
61
-
62
- * Automatic MCP server management
63
- * Seamless IDE + AI assistant integration
64
- * Context-aware assistance based on open files
65
- * Smart code edits and checkpoint suggestions
66
- * Visual test results directly inside your IDE
67
-
68
60
  ## Manual Setup
69
61
 
70
62
  If you prefer not to use the extension, you can install the MCP server manually by following the examples below.
@@ -145,7 +137,7 @@ Add the following to your `cline_mcp_settings.json` file:
145
137
 
146
138
  <details>
147
139
  <summary>Claude Code (CLI)</summary>
148
- Use the Claude Code CLI to add the Playwright MCP server:
140
+ Use the Claude Code CLI to add the Applitools MCP server:
149
141
 
150
142
  `claude mcp add applitools-mcp npx @applitools/mcp@latest`
151
143
  </details>
@@ -156,19 +148,68 @@ Use the Claude Code CLI to add the Playwright MCP server:
156
148
  Follow the MCP install [guide](https://modelcontextprotocol.io/docs/develop/connect-local-servers), and use the standard MCP configuration above.
157
149
  </details>
158
150
 
151
+ ## Authentication
152
+ Three keys control what the server can do, set as global environment variables, in a `.env` file in your project, or update the applitools-mcp configuration in your `mcp.json` file:
153
+
154
+ * APPLITOOLS_API_KEY: Used for test execution (unchanged; this is the key you already use to run Eyes visual tests). See [our documentation](https://applitools.com/docs/eyes/getting-started/retrieve-api-key) on retrieving your execution key.
155
+ * Note: The MCP server will look in additional places for this key. See the `eyes_verify_api_key` tool for details.
156
+ * APPLITOOLS_READ_KEY: A read-only key. Required for all Inspection tools, for all Resolution tools, and for Review tools running in either mode.
157
+ * APPLITOOLS_WRITE_KEY: A write-only key. Required for all Resolution tools and for Review tools running in resolve mode (the default).
158
+
159
+ How to get read-only and write-only API keys:
160
+
161
+ See [our documentation](https://applitools.com/docs/eyes/concepts/applitools-test-manager/admin/api-keys-view) on API key management.
162
+
163
+ 1. Go to the Applitools Admin API Keys page.
164
+ 2. Create or copy a read-only API key associated with your user and team.
165
+ 3. Create or copy a write-only API key associated with your user and team.
166
+ 4. Set it via a `.env` file in your project, a global environment variable, or the applitools-mcp configuration in your `mcp.json` file.
167
+
168
+ Note: `APPLITOOLS_API_KEY` (for test execution) is different from `APPLITOOLS_READ_KEY` and `APPLITOOLS_WRITE_KEY`. The Inspection, Resolution, and Review tools (`eyes_inspect_*, eyes_resolve_*, eyes_review_*`) require these separate read-only and write-only permission keys to query session data, review/inspect, and resolve your tests.
169
+
170
+ Example applitools-mcp mcp.json configuration with all three keys set:
171
+
172
+ ```
173
+ {
174
+ "mcpServers": {
175
+ "applitools-mcp": {
176
+ "type": "stdio",
177
+ "command": "npx",
178
+ "args": ["--yes", "@applitools/mcp@latest"],
179
+ "env": {
180
+ "APPLITOOLS_API_KEY": "<your execution API key>",
181
+ "APPLITOOLS_READ_KEY": "<your read-only key>",
182
+ "APPLITOOLS_WRITE_KEY": "<your write-only key>"
183
+ }
184
+ }
185
+ }
186
+ }
187
+ ```
188
+ Example .env file in your project with all three keys set:
189
+ ```
190
+ APPLITOOLS_API_KEY=<your execution API key>
191
+ APPLITOOLS_READ_KEY=<your read-only key>
192
+ APPLITOOLS_WRITE_KEY=<your write-only key>
193
+ ```
194
+
159
195
  ## Available Tools
160
196
 
161
- ### eyes_verify_api_key
162
- Checks your Applitools API key and optional Eyes server URL.
197
+ ### Setup & Configuration
198
+
199
+ #### eyes_verify_api_key
200
+ Validates your Applitools API key and, if provided, verifies connectivity to a specified Eyes server URL (e.g., non-public cloud).
163
201
 
164
202
  Searches common locations:
165
203
 
166
204
  * APPLITOOLS_API_KEY environment variable and/or APPLITOOLS_SERVER_URL, if applicable
167
- * .env
205
+ * .env file in your project
168
206
  * applitools.config.*
169
207
  * playwright.config.*
208
+ * applitools-mcp mcp.json configuration file
209
+
210
+ Supported Eyes SDKs: All
170
211
 
171
- ### eyes_setup_project
212
+ #### eyes_setup_project
172
213
  Guides the setup of Applitools Eyes in your Playwright project (Fixtures variant).
173
214
 
174
215
  Includes:
@@ -177,37 +218,125 @@ Includes:
177
218
  * Adding Eyes settings and dependency imports into your project files
178
219
  * Recommended defaults
179
220
 
180
- ### eyes_add_checkpoints_to_test
221
+ Supported Eyes SDKs: [Playwright TypeScript/JavaScript Fixtures](https://applitools.com/docs/eyes/playwright)
222
+
223
+ #### eyes_add_checkpoints_to_test
181
224
  Adds Eyes visual checkpoints to your existing Playwright test in line with best practices.
182
225
 
183
- ### eyes_setup_ufg
226
+ Supported Eyes SDKs: [Playwright TypeScript/JavaScript Fixtures](https://applitools.com/docs/eyes/playwright)
227
+
228
+ #### eyes_setup_ufg
184
229
  Configures the Ultrafast Grid (UFG) for cross-browser and cross-device testing. Guides you through UFG setup to run visual tests across multiple browsers, viewports, and devices simultaneously.
185
230
 
186
- ### eyes_fetch_visual_results
187
- Retrieves structured visual test results, including:
188
- * The Eyes batch name
189
- * The visual tests that ran
190
- * The visual test statuses (passed/failed/new/unresolved/etc.)
231
+ Supported Eyes SDKs: [Playwright TypeScript/JavaScript Fixtures](https://applitools.com/docs/eyes/playwright)
232
+
233
+ ### Inspection (read-only)
234
+ Requires `APPLITOOLS_READ_KEY`. These tools query batch, session, step, and DOM data without changing anything. Your assistant typically calls these on your behalf as part of a Review (see below); you can also ask for any of them directly for manual or ad-hoc investigation.
235
+
236
+ Supported Eyes SDKs: All
237
+
238
+ #### eyes_inspect_sessions
239
+ Lists a batch's sessions and batch-wide stats. Narrow to only unresolved or unsaved sessions, or shape the response to full detail, stats only, or a deduplicated list of scenario names. The entry point for browsing a batch. Use this first when asking "what's in this batch?" or "what still needs review?"
240
+
241
+ #### eyes_inspect_steps
242
+ Lists a session's steps: whether each is matching, plus baseline/checkpoint image and DOM IDs, sizes, and resolution status. Use when drilling into one session.
243
+
244
+ #### eyes_inspect_changed_areas
245
+ Returns a step's diff regions, clustered from raw pixel-level differences and already accounting for any regions you've added. Past 20 changed areas in a step, dense clusters are grouped into a single enclosing area, so your assistant focuses on what's meaningfully different rather than pixel noise.
246
+
247
+ #### eyes_inspect_image
248
+ Exports a baseline or checkpoint screenshot for a step, optionally cropped to a specific area.
249
+
250
+ #### eyes_inspect_image_diff
251
+ Exports the checkpoint screenshot with changed areas highlighted, so you can see at a glance what moved or changed.
252
+
253
+ #### eyes_inspect_dom
254
+ Exports a DOM capture for a step to a file, with a stable id assigned to every element so your assistant can reference "element 14" instead of an XPath or raw coordinates. Requires DOM capture to have been enabled when the test ran; returns no data (not an error) otherwise.
255
+
256
+ #### eyes_inspect_dom_diff
257
+ Returns the structural difference between a step's checkpoint and baseline DOM (only what actually changed), with pure position shifts and mass changes (e.g. "everything below moved down") automatically consolidated instead of listed element by element.
258
+
259
+ #### eyes_inspect_dom_search
260
+ Searches a DOM capture using a predicate query language, documented as its own MCP resource: combine property comparisons, geometry and size checks, ancestor/descendant relationships, and shortcut keywords like image or button with and/or/not, instead of requiring your assistant to read the entire capture.
261
+
262
+ #### eyes_inspect_evidence
263
+ Returns everything needed to review a step's changed areas in one call: for each area you ask about, the image diff plus the baseline and checkpoint screenshots, together with the step's whole DOM diff and the match regions currently in effect. Preferred over calling eyes_inspect_image_diff, eyes_inspect_image, eyes_inspect_dom_diff and eyes_inspect_regions separately; it is what a Review gathers its evidence with.
264
+
265
+ #### eyes_inspect_regions
266
+ Returns the match regions currently in effect for a step, combining regions defined in your test code with any added or changed since the test ran. Checked before adding a new region, so your assistant doesn't create an overlapping or duplicate one.
267
+
268
+ #### eyes_inspect_history
269
+ Returns a DOM node's diff history across prior runs, used as evidence that a change is recurring/dynamic content rather than a one-time real change.
270
+
271
+ ### Review (orchestration)
272
+ Requires APPLITOOLS_READ_KEY always, and additionally APPLITOOLS_WRITE_KEY when running in resolve mode (the default). This is the primary way to use these tools day-to-day: ask your assistant to review a batch, scenario, session, or step, and it drives the full investigation for you.
273
+
274
+ Supported Eyes SDKs: All
275
+
276
+ #### eyes_review_progress
277
+ Drives a guided investigation at whatever scope you ask for (a batch, a scenario, a session, or a single step), gathering the evidence (images, DOM diff, history) needed for each changed area before a finding can be reported. This is the tool your assistant reaches for when you say "review my batch" or "review this session"; it calls the Inspection tools internally in the right order, so you don't have to.
278
+
279
+ #### eyes_review_diff_report
280
+ Records a structured finding for one changed area: its classification, whether it's consistent with the surrounding page, bug status, expected status, and (if it's recurring/dynamic content) supporting evidence and a recommended mask. Requires your assistant to gather the relevant evidence first; a finding filed without it is rejected and redirected back to whichever inspection call is missing.
281
+
282
+ #### eyes_review_end
283
+ Summarizes and finalizes the investigation at the given scope, deduplicating every child finding into one clean summary with nothing dropped or double-counted. At the step level, this is also where a step's accept/reject/unresolved outcome is decided (in resolve mode).
284
+
285
+ Two Review modes:
286
+
287
+ * inspect: read-only. Produces a summary of what changed with no mutation. Good for a first look, or when you want to see findings before deciding what to do.
288
+ * resolve (the default): additionally applies masks for confirmed-dynamic diffs and decides each step's accept/reject/unresolved outcome automatically, as findings come in. Your assistant never has to call the Resolution tools independently to make this happen.
289
+
290
+ Either mode can be scoped to a whole batch or narrowed to a single scenario, session, or step. A completed inspect-mode review can later be promoted to resolve mode without redoing the investigation; its cached findings are simply replayed through the resolve-mode decision logic. Saving changes to the baseline, or resetting it, is never part of Review itself; ask separately for `eyes_resolve_save` (or `eyes_resolve_reset`), each of which still requires your explicit approval.
291
+
292
+ ### Resolution (mutating)
293
+
294
+ Requires both `APPLITOOLS_READ_KEY` and `APPLITOOLS_WRITE_KEY`. In ordinary use, you generally won't call these directly. Review applies the equivalent decisions automatically as it works through a batch. Reach for these tools directly only for one-off, manual resolution outside of a Review, e.g. accepting a single already-understood step without running a full investigation.
295
+
296
+ Supported Eyes SDKs: All
297
+
298
+ #### eyes_resolve_checkpoint
299
+ Marks a step's checkpoint as accepted or rejected. Accepted checkpoints replace the baseline once saved; rejected ones keep the existing baseline. By default, applies the same decision to every step sharing the identical diff, both within the session and across sibling sessions with the same scenario name.
300
+
301
+ #### eyes_resolve_regions
302
+ Adds, removes, or updates a step's match regions, read against either the baseline or the checkpoint image/DOM. Propagates the same way as eyes_resolve_checkpoint.
303
+
304
+ Note: This tool always requires your explicit approval before running
305
+
306
+ #### eyes_resolve_save
307
+ Commits every accepted/rejected step and every region change in the whole batch to the baseline — all of the batch's tests, not just the session you name. Until this runs, resolution decisions stay pending and the baseline is untouched.
308
+
309
+ Note: This tool always requires your explicit approval before running
310
+
311
+ #### eyes_resolve_reset
312
+ Restores a session's or batch's baseline to the revision the test originally ran against, and clears any pending resolution decisions.
191
313
 
192
- ### eyes_get_batch_url
193
- Extracts and converts Eyes test result URLs from console output. Parses test execution output to find session URLs and converts them to batch URLs for viewing all test results together in the Eyes dashboard.
314
+ Note: This tool always requires your explicit approval before running
194
315
 
195
- ## Getting started & Usage
316
+ ## Getting started & Usage Examples
196
317
  Ask your AI assistant about Applitools:
197
318
 
198
- * “Using the Applitools MCP server, perform the following tasks”
199
- * This prompt prefix is optional and can guide your LLM and direct it to use the MCP server for better results.
200
- * "Set up Applitools Eyes for my project"
319
+ * "Using the Applitools MCP server, perform the following tasks"
320
+ * This prompt prefix is optional and can guide your assistant to use the MCP server for better results.
201
321
  * "Verify my Applitools API key"
322
+ * "Set up Applitools Eyes for my Playwright project"
323
+ * For Playwright TypeScript/JavaScript
202
324
  * "Add Eyes visual checkpoints to my login.spec test"
325
+ * For Playwright TypeScript/JavaScript
203
326
  * "Configure cross-browser testing with the Applitools UFG"
327
+ * For Playwright TypeScript/JavaScript
204
328
  * "Show me the batch URL for my last test results"
205
- * "Provide me a summary of my last visual test results"
329
+ * "Analyze and summarize my batch results"
330
+ * "Review my last batch and tell me what changed"
331
+ * "Just show me what changed in this batch, don't resolve anything yet"
332
+ * "That all looks right. Go ahead and resolve it now"
333
+ * "Accept the checkout button diffs across all sessions in this scenario"
334
+ * "Is this diff on the timestamp element dynamic, or a real change?"
335
+ * "Reset this batch's baseline to what it originally ran against"
206
336
 
207
337
  ## Helpful links
208
338
 
209
339
  * [Applitools MCP Documentation](https://applitools.com/docs/eyes/integrations/mcp-servers/applitools-mcp)
210
- * [Applitools Playwright Fixtures SDK](https://applitools.com/docs/eyes/playwright)
211
340
  * [Contact Support](https://help.applitools.com/hc/en-us/requests/new)
212
341
 
213
342
  ---