End-to-end testing framework for web applications.
## Cypress MCP Server: End-to-End Testing Framework The **Cypress MCP Server** integrates the powerful Cypress testing framework into Google Antigravity, enabling fast, reliable end-to-end testing of web applications with AI-assisted test development and debugging. ### Why Cypress MCP? - **Real Browser Testing**: Run tests in actual browsers with automatic waiting and retry mechanisms - **Time Travel Debugging**: Step through test execution with snapshots at each command for easy debugging - **Network Stubbing**: Control network requests with powerful stubbing and fixture support - **Component Testing**: Test individual components in isolation alongside end-to-end tests - **Dashboard Integration**: Track test results, recordings, and analytics with Cypress Cloud ### Key Features #### 1. Test Execution ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Run Cypress e2e tests for the checkout flow and capture video of failures" }] ) ``` #### 2. Test Generation ```python # Generate test cases response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Generate Cypress tests for the user registration form with validation" }] ) ``` #### 3. Network Mocking ```python # Configure network stubs response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Set up Cypress intercepts to mock API responses for testing error handling" }] ) ``` #### 4. Debugging ```python # Debug failures response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Analyze failed test snapshots and identify why the login test is timing out" }] ) ``` ### Configuration ```json { "mcpServers": { "cypress": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-cypress"], "env": { "CYPRESS_BASE_URL": "http://localhost:3000", "CYPRESS_RECORD_KEY": "your-record-key" } } } } ``` ### Use Cases **E2E Testing**: Validate complete user workflows from login to checkout work correctly. **Regression Testing**: Catch breaking changes before they affect users with comprehensive test suites. **Visual Testing**: Combine with screenshot comparison for visual regression detection. **API Testing**: Test API endpoints alongside UI tests for complete coverage. The Cypress MCP Server brings professional e2e testing into your AI-assisted workflow, enabling confident deployments with comprehensive test coverage.
{
"mcpServers": {
"cypress": {}
}
}