With an already setup Cypress framework, pass the URL of the page you need to create a Page Object class and test cases for, and it will create the page object class with all locators, action methods (type, click), get methods, and main workflow methods, and a test file (cy.ts or cy.js) containing proposed positive and negative test cases, already coded based on the page object.
Sample prompt:
"Create the page object and tests for URL"
Server Config
{
"mcpServers": {
"cypress-mcp": {
"command": "npx",
"args": [
"-y",
"@jprealini/cypress-mcp"
]
}
}
}