MCP Server for Running E2E Tests
e2e mcp server to automate validating your ai generated code
Overview
The Model Context Protocol (MCP) is an open protocol designed to connect AI agents to the source of their system or data, thereby reducing friction between context and the AI. This project provides a server for running end-to-end (E2E) tests to automate the validation of AI-generated code.
To use the MCP server, you need to set up your development environment by creating a virtual environment, installing the required packages, and adding your LLM API key. You can then run the MCP inspector tool to debug your setup.
- Automates the validation of AI-generated code through E2E tests. - Integrates with various AI agents, including OpenAI. - Provides a debugging tool for inspecting the MCP server.
- Validating AI-generated code in real-time.
- Enhancing the "Vibe Coding" workflow in AI IDEs like Cursor or Windsurf.
- Facilitating seamless integration between AI agents and data sources.
Add to your AI client
Use these steps to connect MCP Server for Running E2E Tests in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"e2e-mcp-m2rads": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-e2e-mcp-m2rads"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"e2e-mcp-m2rads": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-e2e-mcp-m2rads"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"e2e-mcp-m2rads": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-e2e-mcp-m2rads"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"e2e-mcp-m2rads": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-e2e-mcp-m2rads"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"e2e-mcp-m2rads": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-e2e-mcp-m2rads"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"e2e-mcp-m2rads": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-e2e-mcp-m2rads"
]
}
}
}FAQ
What are the prerequisites for using MCP?
You need Python 3.11 or higher and an LLM provider like OpenAI.
Is there a specific AI agent I must use?
No, you can use any AI you prefer as long as it supports the MCP protocol.
How do I debug issues with MCP?
You can run the MCP inspector tool using the command provided in the setup instructions.