Cypress MCP Test Generator

Cypress MCP Test Generator

splunk-cypress-mcp•bymgandhi82

An MCP server that generates Cypress tests from natural language prompts written in plain English.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Processes natural language prompts to generate Cypress commands and assertions.
  • •Creates generated test files in the cypress/e2e directory.
  • •Automatically handles common scenarios such as cookie consent dialogs and includes retry mechanisms.

BEST FOR

  • •Generating a Cypress test for a navigation and search scenario described in plain English.
  • •Generating a Cypress test for a login flow.
  • •Generating a Cypress test for a form submission with success verification.

ABOUT SPLUNK-CYPRESS-MCP

Cypress MCP Test Generator is cataloged as an MCP server attributed to mgandhi82. An MCP server that generates Cypress tests from natural language prompts written in plain English. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Cypress MCP Test Generator are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

Upstream README

View this exact version on GitHub

README.md · 1a8924706c04 · Fetched 2026-11-13 12:07:33 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Cypress MCP Test Generator

This project provides a Model Context Protocol (MCP) server that generates Cypress tests from natural language prompts. Simply describe your test scenario in plain English, and the server will generate a fully functional Cypress test.

Table of Contents

Setup

Prerequisites

  • Node.js (v16 or higher)
  • npm (comes with Node.js)
  • VS Code
  • TypeScript

Installation

  1. Clone the repository:
git clone <repository-url>
cd your-project-directory
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Create VS Code MCP configuration:
mkdir -p .vscode
  1. Create .vscode/mcp.json with the following content (update the path to match your system):
{
  "servers": {
    "cypress-mcp": {
      "type": "stdio",
      "command": "node",
      "args": ["path/to/your/project/build/index.js"]
    }
  }
}

Usage

  1. Open your project in VS Code
  2. The MCP server will start automatically
  3. Open VS Code's command palette and type your test description
  4. The server will generate a Cypress test based on your description

How it Works

  1. Your natural language prompt is processed by the MCP server
  2. The server generates appropriate Cypress commands and assertions
  3. A new test file is created in the cypress/e2e directory
  4. The test is ready to run using Cypress

Example Prompts

Here are some example prompts you can use:

  1. Basic Navigation and Search:
"Go to google.com and search for 'cypress testing'"

Generated test will:

  • Navigate to Google
  • Handle cookie consent if present
  • Type search term
  • Verify search results
  1. Login Flow:
"Visit login page, enter username 'test@example.com', type password 'password123', click login button, and verify dashboard appears"

Generated test will:

  • Navigate to login page
  • Fill in credentials
  • Submit form
  • Verify successful login
  1. Form Submission:
"Navigate to contact-form.com, fill in name 'John Doe', enter email 'john@example.com', type message 'Hello World', click submit button, and verify success message appears"

Configuration

Project Structure

project-root/
├── src/
│   ├── index.ts          # MCP server implementation
│   └── cypress/
│       └── commands.ts   # Custom Cypress commands
├── cypress/
│   ├── e2e/             # Generated test files
│   └── support/         # Support files
└── .vscode/
    └── mcp.json         # MCP server configuration

Customizing the Server

You can customize test generation by modifying:

  • Test templates in src/index.ts
  • Custom commands in src/cypress/commands.ts
  • Error handling and retry mechanisms

Troubleshooting

Common Issues

  1. Server Not Starting

    • Verify paths in mcp.json are correct
    • Check build/index.js exists
    • Ensure Node.js version is compatible
  2. Test Generation Fails

    • Check prompt format
    • Verify server logs for errors
    • Ensure all dependencies are installed
  3. VS Code Integration Issues

    • Reload VS Code window
    • Check VS Code's output panel for errors
    • Verify .vscode/mcp.json configuration

Error Messages

  1. "Server exited before responding"

    • Check file paths in mcp.json
    • Rebuild the project
    • Restart VS Code
  2. "Cannot find module"

    • Run npm install
    • Check build folder exists
    • Rebuild the project

Logs Location

  • Server logs: VS Code's Output panel (Cypress MCP Server)
  • Generated test files: cypress/e2e directory
  • Build output: build directory

Script Commands

{
  "scripts": {
    "build": "tsc",
    "start": "node build/index.js",
    "dev": "tsc --watch",
    "cypress:open": "cypress open",
    "cypress:run": "cypress run"
  }
}

Best Practices for Prompts

  1. Be Specific

    • Include URLs when applicable
    • Specify exact text for inputs
    • Mention expected verifications
  2. Use Clear Actions

    • "visit" or "go to" for navigation
    • "type" or "enter" for input
    • "click" for button interactions
    • "verify" or "check" for assertions
  3. Include Verification Steps

    • Mention what should appear after actions
    • Include expected text or elements
    • Specify timeouts if needed

Support

For issues and questions:

  1. Check the troubleshooting guide
  2. Review server logs
  3. Check VS Code's output panel
  4. Verify file paths and configurations

Notes

  • The server automatically handles common scenarios like cookie consent dialogs
  • Generated tests include retry mechanisms for reliability
  • Custom commands are available for complex interactions
  • Tests are generated with TypeScript support

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Cypress MCP Test Generator from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/splunk-cypress-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools