MCP Testing (Incognito Mode)

Launch Chrome in incognito mode and execute MCP DevTools commands for cache-free testing.

Updated Oct 18, 2025
One-click install
npx skills add https://github.com/Lucasdoreac/mutuapix-workspace --skill mcp-testing-incognito-mode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: MCP Testing (Incognito Mode)
Source: https://github.com/Lucasdoreac/mutuapix-workspace/tree/main/.claude/skills/mcp-testing-incognito
Command: npx skills add https://github.com/Lucasdoreac/mutuapix-workspace --skill mcp-testing-incognito-mode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates frustrating debugging loops caused by aggressive browser caching during frontend testing. It ensures every test session starts fresh, preventing outdated code from persisting and wasting developer time.

Core Features & Use Cases

  • Incognito Mode Enforcement: Automatically launches Chrome in incognito mode for all tests, bypassing cache, localStorage, and cookies.
  • Comprehensive MCP DevTools Integration: Utilizes a full suite of Chrome DevTools commands for navigation, inspection, interaction, and performance tracing.
  • Use Case: After deploying a frontend fix, use this skill to automatically launch a clean browser, log in, navigate to the affected page, and verify the fix without any old cached code interfering.

Quick Start

Launch Chrome in incognito mode for testing

pkill -f "remote-debugging-port=9222" sleep 2 open -na "Google Chrome" --args
--remote-debugging-port=9222
--incognito
--new-window
"https://matrix.mutuapix.com/login"

Wait for Chrome to start

sleep 3

Then use MCP commands, e.g.,

mcp__chrome-devtools__list_pages()

Frequently Asked Questions about MCP Testing (Incognito Mode)

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent browser cache from interfering with frontend tests?

Incognito mode testing eliminates cache, localStorage, and cookies that can mask bugs. This skill automatically launches Chrome in incognito mode for each test session, ensuring every run starts fresh and old cached code never persists into your verification steps.

Can I automate Chrome DevTools commands for login flows and navigation?

Yes. This skill executes a full suite of MCP Chrome DevTools commands—navigate_page, fill_form, click, wait_for, list_network_requests, take_screenshot—within an incognito session, letting you automate login sequences, page transitions, and UI verification without manual browser interaction.

How do I set up automated testing with Chrome remote debugging and incognito mode?

Launch Chrome with --remote-debugging-port=9222 and --incognito flags, establish a remote debugging session, validate incognito state is active, then execute MCP DevTools commands to navigate, inspect elements, monitor network traffic, and capture screenshots with cache-free results.

What's the best way to debug frontend issues without stale cached assets?

Deploy a fix, then use incognito-mode automated testing to verify it immediately. This skill launches a clean browser session, logs in, navigates to the affected page, and confirms the fix works—all without cached code or outdated assets masking the real behavior.

Does this work for testing element inspection and network monitoring?

Yes. The skill covers element inspection via Chrome DevTools, network request listing, and console monitoring within incognito sessions, giving you full visibility into page behavior, API calls, and errors in a cache-free environment.

What happens if incognito mode doesn't activate during my test?

This skill validates that incognito mode is active before executing tests. If validation fails, the test halts rather than running with cached data, preventing false passes and ensuring every verification actually tests clean browser state.