playwright-network-chaos-mcp
JSON →Dynamic network chaos in Playwright: 503s, latency, mid-flight drops
Install
npx playwright-network-chaos-mcp Tools · 8
- simulate_api_failure Intercepts requests matching a pattern and forces them to return an error status code. Checks if the app shows a fallback UI.
- inject_latency Adds artificial delay to matching requests. Checks if loading states appear while the app waits.
- block_resources Aborts requests to specified URL patterns — for testing third-party outages (analytics, CDNs, tracking pixels).
- simulate_network_drop Aborts requests mid-flight after a delay — simulating connection loss between request and response.
- trigger_system_network_error Aborts requests with an OS-level error code — simulating DNS failures, firewall blocks, and connection resets.
- simulate_stateful_failure Fails the first N requests then lets subsequent ones succeed — testing retry logic and recovery flows.
- inject_response_corruption Serves malformed responses at the protocol level — unterminated JSON, content-length lies, or truncated payloads.
- assert_chaos_handled Injects a chaos HTTP status and returns a structured pass/fail verdict — chaos_survived is true only when the fallback UI appears and there are no unhandled JS exceptions.