MCP.so
ログイン
C

Cypress Po And Tests Generator MCP Server

@jprealini

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

jprealini

投稿者

Juan Pablo Realini

Cypress Po And Tests Generator MCP Server について

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

Cypress Po And Tests Generator MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "cypress-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@jprealini/cypress-mcp"
      ]
    }
  }
}

Cypress Po And Tests Generator MCP Server のツール

2

Crear archivos Page Object y Tests directamente en el proyecto Cypress

Generar Page Object y Tests de Cypress

概要

What is Cypress Po And Tests Generator?

This MCP server automatically generates complete Cypress Page Object classes and comprehensive test suites for any web page by scraping the page with Puppeteer and parsing HTML with Cheerio. It is for developers who want to quickly create structured Cypress test infrastructure.

How to use Cypress Po And Tests Generator?

Install via npm, then start the server with npx tsx main.ts. Use an MCP client to call the generateLocator tool with a URL parameter; it returns both a TypeScript Page Object class and a Cypress test suite.

Key features of Cypress Po And Tests Generator

  • Web scraping with Puppeteer for dynamic page rendering
  • HTML parsing with Cheerio to extract element information
  • Generates TypeScript Page Object classes with locators, getters, and interaction methods
  • Generates comprehensive Cypress test suites including positive, negative, accessibility, and performance tests
  • Supports multiple element types: buttons, inputs, links, selects, textareas, forms
  • Intelligently detects common workflows like login, search, and navigation patterns

Use cases of Cypress Po And Tests Generator

  • Automate creation of Cypress Page Objects and tests for a new web application
  • Rapidly set up test coverage for an existing website without manual coding
  • Generate regression test suites for pages with many interactions
  • Validate page structure and element accessibility as part of CI

よくある質問

1

What does the server output?

It outputs two files: a TypeScript Page Object class (`.ts`) and a Cypress test suite (`.cy.ts`) containing positive, negative, workflow, accessibility, performance, and edge case tests.

2

What are the runtime dependencies?

The server requires Node.js, and its dependencies include @modelcontextprotocol/sdk, puppeteer, cheerio, zod, and typescript.

3

Does the server handle dynamic content?

Yes, Puppeteer runs in headless mode and waits for network idle to capture dynamically loaded content.

4

What transport or authentication does the server use?

The server uses the Model Context Protocol (MCP) with a tool-based interface; no specific authentication is mentioned.

5

Are there any known limitations?

The server only generates tests based on the current page state; it may not capture every dynamic interaction. Error handling includes invalid URLs and network failures.

コメント

「開発者ツール」の他のコンテンツ