E2E Test MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@E2E Test MCP Server Generate and run E2E tests for the login page, and auto-fix any failures."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
✨ 特性
🚀 一句话生成测试 — 告诉 AI "帮我测试登录页面",自动完成全部工作
🔧 智能错误修复 — 测试失败后 AI 自动分析并修复脚本
🎨 框架无关 — 支持 Element Plus、Ant Design、MUI 等主流 UI 框架
📊 可视化报告 — 自动生成 HTML 测试报告,失败截图一目了然
🧠 内置最佳实践 — 提供运行时 DOM 知识,引导 AI 使用稳定选择器
Related MCP server: Limetest MCP Server
🎬 效果演示
🚀 快速开始
方式一:直接使用(推荐)
无需手动克隆,npx 直接从 GitHub 运行:
{
"mcpServers": {
"e2e-test": {
"command": "npx",
"args": ["-y", "github:wjj9868/e2e-mcp-server"]
}
}
}方式二:克隆仓库
git clone https://github.com/wjj9868/e2e-mcp-server.git
cd e2e-mcp-server
npm install
npm run build{
"mcpServers": {
"e2e-test": {
"command": "node",
"args": ["/path/to/e2e-mcp-server/dist/index.js"]
}
}
}配置位置
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
.kiro/settings/mcp.json
在 Cursor 设置中添加 MCP 服务器配置
开始使用
只需告诉 AI:
帮我为登录页面写 E2E 测试AI 会自动完成:初始化项目 → 分析源码 → 生成测试 → 执行测试 → 修复问题
🛠️ 工具
工具 | 说明 |
| 初始化 Playwright 测试项目 |
| 执行测试并返回结构化结果 |
| 打开 HTML 测试报告 |
� 提示词
提示词 | 说明 |
| 运行时 DOM 结构、选择器策略、Playwright API |
| 测试失败排查指南 |
🎨 支持的 UI 框架
💭 设计理念
MCP 只做 AI 做不了的事
AI 负责 | MCP 负责 |
分析源码 | 初始化项目 |
设计测试场景 | 执行测试 |
生成测试代码 | 提供运行时 DOM 知识 |
修复失败测试 | 生成测试报告 |
传统方案用模板约束 AI,限制了 AI 的能力。本项目让 AI 充分发挥代码理解和生成能力,MCP 只提供 AI 无法自己推断的运行时信息。
📖 文档
📋 环境要求
Node.js >= 18.0.0
Playwright(通过
e2e_init自动配置)
🤝 贡献
欢迎提交 Issue 和 Pull Request!
📄 License
Available Tools
3 toolse2e_initB
初始化 E2E 测试项目,创建 Playwright 配置和目录结构
Inputs: projectDir (required), baseUrl.
e2e_reportC
打开 Playwright HTML 测试报告
Inputs: testDir.
e2e_runC
运行 E2E 测试并返回结果
Inputs: grep, headed, project, testDir, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool maps to a distinct lifecycle stage: setup, execution, and reporting. There is no plausible way to confuse e2e_init with e2e_run or e2e_report, and the prefixed names immediately signal the E2E domain.
All three tools follow the same e2e_<verb> pattern with short, unambiguous verbs. No mixing of conventions or casing.
Three tools is slightly thin but adequately covers the stated narrow purpose of scaffolding, running, and viewing E2E tests. A few more capabilities (e.g. running a filtered subset, scaffolding a new spec) would round it out.
The core loop of init -> run -> report is covered, but there are notable gaps: no way to create or modify individual test files, filter/run a single spec, or configure the runner after init. Agents hitting those needs would have to fall back to generic file/shell tools.
Maintenance
Related MCP Connectors
Write, run and check natural-language browser tests of your web app from your AI assistant.
Playwright browser automation — navigate, click, fill forms, extract, screenshot — 17 agent tools.
Approved test intent, reviewed Playwright automation and run evidence, inside your editor.
Direct access to Cypress tests results and accessibility reports in your AI workflow.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control browser automation through natural language prompts using Playwright, supporting visual element interaction, PDF generation, screenshots, and testing assertions.ISC
- AlicenseNot gradedqualityDmaintenanceEnables automated end-to-end testing powered by Playwright where test cases are defined in natural language and executed by AI. Uses lightweight snapshot analysis with vision mode fallback for sophisticated testing scenarios.3Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to control web browsers through Playwright automation, providing 50+ tools for navigation, interaction, testing, accessibility audits, and visual testing across Chromium, Firefox, and WebKit.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to execute browser automation, perform QA tasks, and generate test code through natural language commands using Playwright.7MIT