Cypress Page Object & Test GeneratorSAFE
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
This MCP server automatically generates Cypress Page Object classes for any web page provided.
NPM package:
[](https://www.npmjs.com/package/@jprealini/cypress-mcp)
Features
- Web Scraping: Uses Puppeteer to fetch and render web pages
- HTML Parsing: Uses Cheerio to parse HTML and extract element information
- Page Object Generation: Creates complete TypeScript Page Object classes with:
- Private element locators
- Public getter methods
- Interaction methods (click, type, select, etc.)
Sample prompt:
Create a page object file using the following url: https://www.saucedemo.com/
Generated Output
The server generates:
1. Page Object Class ({ClassName}.ts)
export class ExampleComLoginPage {
// Private elements
#elements = {
button_login: () => cy.get('#login-button'),
input_username: () => cy.get('input[name="username"]'),
link_home: () => cy.contains('a', 'Home')
}
// Public getters
get ButtonLogin() { return this.#elements.button_login() }
get InputUsername() { return this.#elements.input_username() }
get LinkHome() { return this.#elements.link_home() }
// Interaction methods
clickButtonLogin() { return this.#elements.button_login().click() }
typeInputUsername(text: string) { return this.#elements.input_username().type(text) }
clickLinkHome() { return this.#elements.link_home().click() }
}Element Types Supported
- Buttons: Click interactions with validation
- Input Fields: Type, clear, check/uncheck (for checkboxes/radio)
- Links: Click interactions with navigation verification
- Select Dropdowns: Select options with validat
c6e2025033f4OBSERVED · 2026-10-10Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add cypress-mcp -- npx -y @jprealini/[email protected]
{
"mcpServers": {
"cypress-mcp": {
"command": "npx",
"args": [
"-y",
"@jprealini/[email protected]"
]
}
}
}Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
generatePageObjectFile | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
cheerio, puppeteer, @modelcontextprotocol/sdk, zod
Gates applied: no_behavioural_pass.
c6e2025033f4full audit observations/trust-audit/mcp-server/jprealini__cypress-page-object-test-generator.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-10 | c6e2025033f4 | SAFE | B | 89 | first audit |
Questions
What tools does Cypress Page Object & Test Generator expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Cypress Page Object & Test Generator safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Cypress Page Object & Test Generator need?
No credential environment variables were found in its source, so it appears to need none.
How does Cypress Page Object & Test Generator run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @jprealini/cypress-mcp at 1.0.25.
How current is this page?
The grade is for one exact copy of the source (c6e2025033f4), read on 2026-10-10. The repository is watched and re-audited when it changes.