Cross-browser end-to-end testing tool.
## TestCafe MCP Server: Cross-Browser End-to-End Testing The **TestCafe MCP Server** integrates the TestCafe testing framework into Google Antigravity, enabling cross-browser end-to-end testing without WebDriver dependencies through AI-assisted test development. ### Why TestCafe MCP? - **No WebDriver**: Works directly with browsers without WebDriver installation or configuration - **Automatic Waiting**: Built-in smart waiting eliminates flaky tests from timing issues - **Multi-Browser**: Test on Chrome, Firefox, Safari, Edge, and even mobile browsers - **TypeScript Native**: First-class TypeScript support with excellent IDE integration - **Parallel Testing**: Run tests in parallel across multiple browsers simultaneously ### 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 TestCafe tests on Chrome and Firefox in parallel with video recording" }] ) ``` #### 2. Test Development ```python # Create tests response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Generate TestCafe test for user login with email and password validation" }] ) ``` #### 3. Page Objects ```python # Build page objects response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create TestCafe page object model for the checkout flow pages" }] ) ``` #### 4. Debugging ```python # Debug tests response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Analyze failed test screenshots and identify why element was not found" }] ) ``` ### Configuration ```json { "mcpServers": { "testcafe": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-testcafe"], "env": { "TESTCAFE_BROWSERS": "chrome,firefox", "TESTCAFE_CONCURRENCY": "3" } } } } ``` ### Use Cases **Cross-Browser Testing**: Verify application works correctly across all target browsers. **Regression Testing**: Automate regression tests for continuous quality assurance. **CI/CD Integration**: Add reliable e2e tests to deployment pipelines. **Mobile Web Testing**: Test responsive designs on mobile browser emulations. The TestCafe MCP Server provides reliable cross-browser testing without the complexity of WebDriver setup and maintenance.
{
"mcpServers": {
"testcafe": {}
}
}