Assert
@assert-click/mcp
Servidor MCP para Assert — permite que tu agente de programación de IA genere, ejecute e inspeccione pruebas E2E sin salir del chat.
Describe un flujo de usuario en lenguaje sencillo. Assert genera una prueba de Playwright, la ejecuta en un navegador real y devuelve resultados a nivel de paso y capturas de pantalla de errores, todo desde una única llamada de herramienta en Cursor, Claude, Windsurf o cualquier agente compatible con MCP.
Regístrate gratis en assert.click para obtener tu clave API y ID de proyecto antes de usar este paquete.
Qué puede hacer tu agente
Generar — describe un flujo, obtén un escenario en Markdown listo para guardar y ejecutar
Ejecutar — ejecuta un escenario guardado o Markdown ad-hoc en un navegador Chromium real
Inspeccionar — obtén resultados de éxito/fallo a nivel de paso, mensajes de error y URLs de capturas de pantalla de fallos
Listar — explora los escenarios guardados para el proyecto
Related MCP server: aiTest MCP Server
Requisitos
Node.js
>=18.17Una clave de Assert con alcance de proyecto — obtén una en assert.click
Configuración
1. Crea assert.config.json en tu repositorio:
{
"projectApiKey": "assert_project_key_here",
"projectId": "project_123"
}2. Añade el servidor MCP a la configuración de tu agente:
{
"mcpServers": {
"assert": {
"command": "npx",
"args": ["-y", "@assert-click/mcp"],
"env": {
"ASSERT_CONFIG": "/absolute/path/to/assert.config.json"
}
}
}
}Eso es todo. Tu agente ahora tiene acceso a las cuatro herramientas de Assert.
Variables de entorno
ASSERT_API_KEY: Clave API (alternativa a guardarla enassert.config.json)ASSERT_PROJECT_ID: ID de proyecto predeterminado opcionalASSERT_CONFIG: Ruta opcional a un archivo o directorio de configuración
Archivos de configuración
El servidor MCP buscará estos archivos desde el directorio actual hacia arriba:
assert.config.jsonassert.config.local.json
assert.config.local.json se fusiona sobre assert.config.json.
Si prefieres secretos basados en variables de entorno en lugar de confirmar la clave:
{
"projectApiKeyEnv": "ASSERT_API_KEY",
"projectId": "project_123"
}Herramientas
assert_generate
Genera un escenario en Markdown a partir de una descripción en lenguaje sencillo.
Entrada:
description: string— qué debería poder hacer el usuariourl: string— la URL de inicioproject_id?: stringsave?: boolean— guardar en el proyecto (predeterminado: true)
Devuelve:
{
"scenario_id": "scenario_123",
"markdown": "URL: https://example.com/login\nSCENARIO: Login\nPROCESS:\n - Fill \"email\" with \"user@example.com\"\nEXPECT: Dashboard",
"saved": true
}assert_run
Ejecuta un escenario guardado o Markdown ad-hoc en un navegador real.
Entrada:
scenario_id?: stringmarkdown?: stringproject_id?: stringrequest_id?: string
Se debe proporcionar exactamente uno de scenario_id o markdown.
Devuelve:
{
"run_id": "run_123",
"status": "queued",
"estimated_duration_seconds": null
}assert_status
Obtén resultados a nivel de paso para una ejecución.
Entrada:
run_id: string
Devuelve:
{
"run_id": "run_123",
"status": "passed",
"duration_ms": 4200,
"steps": [
{
"description": "Fill email",
"status": "passed",
"error": null,
"screenshot_url": null
}
],
"failure_summary": null,
"full_log_url": null
}assert_list
Lista los escenarios guardados para un proyecto.
Entrada:
project_id?: stringcursor?: stringlimit?: number
Devuelve:
{
"scenarios": [
{
"id": "scenario_123",
"name": "Login flow",
"project_id": "project_123",
"last_run_status": "passed",
"last_run_at": "2026-03-31T10:00:00.000Z",
"url": "https://example.com/login"
}
],
"next_cursor": null
}Errores
Los errores se devuelven como JSON estructurado:
{
"error": {
"code": "INVALID_API_KEY",
"message": "The ASSERT_API_KEY is invalid or missing.",
"field": null
}
}Códigos comunes:
INVALID_API_KEYSCENARIO_NOT_FOUNDRUN_NOT_FOUNDVALIDATION_ERRORUPSTREAM_ERROR
Licencia
MIT
Available Tools
4 toolsassert_generateA
Generate a ready-to-run E2E test scenario in Assert Markdown format from a plain-English description. Optionally save it to Assert for later execution.
Inputs: description (required), url (required), project_id, save.
assert_listA
List existing E2E test scenarios saved in Assert. Use this to audit coverage before generating new tests. Supports filtering by project and pagination.
Inputs: project_id, cursor, limit.
assert_runA
Execute a test scenario and return a run ID. Accepts either a saved scenario_id or ad-hoc markdown. Runs are async — use assert_status to poll for completion.
Inputs: scenario_id, markdown, project_id, request_id.
assert_statusA
Poll a test run for its current status and step-level results. Returns pass/fail with actionable failure details and screenshot URLs for failed steps.
Inputs: run_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose with no overlap: generate creates tests, list retrieves existing ones, run executes tests, and status checks results. The descriptions explicitly differentiate their functions, making it easy for an agent to select the right tool without confusion.
All tool names follow a consistent 'assert_verb' pattern (assert_generate, assert_list, assert_run, assert_status), using snake_case and clear action verbs. This predictability enhances usability and reduces cognitive load for agents.
With 4 tools, the server is well-scoped for E2E test management, covering the full lifecycle: generate, list, run, and status check. Each tool earns its place without bloat, making the set efficient and focused on its domain.
The toolset provides complete CRUD-like coverage for E2E test scenarios: create (generate), read (list), execute (run), and monitor (status). There are no obvious gaps, as it supports both saved and ad-hoc tests with actionable feedback, enabling seamless agent workflows.
Maintenance
Related MCP Connectors
Find UI bugs, verify fixes and run tests on your web app from your AI coding agent.
Browser-based QA for AI-built software. Test pages with real browsers via agents.
Write, run and check natural-language browser tests of your web app from your AI assistant.
Let your coding agent QA what it builds: plain-English tests run in real Chrome or on iPhone, iPad and Android, with a verdict, replay and evidence for every check, and a fix prompt when something fails. Get your first 10 tests free, no card needed: https://testsy.dev
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to run reusable Playwright test fixtures against live deployments, providing structured test results, screenshots, and assertions.3MIT
- AlicenseAqualityCmaintenanceAI-native browser testing, directly from your coding agent.3MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to create, run, autocorrect, and monitor Playwright tests for your app with a local dashboard, credential vault, and public status page.16MIT
- AlicenseAqualityBmaintenanceEnables AI coding assistants to generate, score, run, and auto-heal Playwright E2E tests while enforcing domain-driven page object architecture and anti-flakiness rules.8MIT