End to End Testing via MCP

I’m currently trouble shooting some Cypress tests for Auth on NextJS and its really not going well. Its basically halted development on my project for like two weeks and a ton of Cursor credit.

I’m using the Cypress UI and opening the developer console to problem solve a lot and I’m anecdotally aware of BrowserTools MCP.

I’m just wondering if anyone can give me some advice about E2E tests and MCP because I’m not happy with my current setup.

Any tips welcome.

Hi Gareth,

I wrote an in-depth post about exactly this although I was using Playwright not Cypress - I had tried to use Playwright MCP myself and just found that it was extremely fragile and required a lot of:

a) prompting to keep it on track and,
b) lots of auth management/code wrangling
c) manual locator fixes because it doesn’t have access to the DOM

I did build an OSS MCP Server that fixes a lot of the problems - but here’s the write up and feel free to check out the server if you think it makes sense: Why AI Can't Write Good Playwright Tests (And How To Fix It) - DEV Community