AllRight Charlie Quiz MCP
MCP server for adaptive, agent-driven testing of the AllRight Charlie registration quiz, observing UI after every action and handling dynamic steps.
README
AllRight Charlie Quiz MCP
Standalone MCP server for adaptive, agent-driven testing of the Charlie registration quiz:
https://stage.allright.com/uk/app/sign-up/long/charlie/age-range
The server observes the currently rendered UI after every action instead of assuming a fixed step order, copy, selectors, or A/B assignment.
Architecture
src/mcpowns browser observation, actions, safety and artifacts.src/agentchooses actions, generates synthetic data and logs decisions.src/domainverifies deterministic business evidence.tests/stage.mcp.e2e.tsonly connects those layers into an executable run.
The agent adapts to ordinary A/B screens, while phone, email, safety and completion remain deterministic.
Install and build
npm install
npx playwright install chromium
npm run build
Run
npm run mcp
The MCP server uses stdio, so a manually started process waits silently for an MCP client. To run the automated test against the real AllRight stage:
npm test
The test launches the compiled MCP server as a child process, performs the MCP
handshake, opens the real Charlie stage quiz, navigates its current dynamic
steps, submits synthetic names and a generated Ukrainian phone, and requires the
terminal text Дякуємо! Ваш запит отримано.
It also requires a successful non-GET backend response. That confirms that the
terminal UI was accompanied by a server-side mutation. Definitive database
assertions for both user created and trial booked require a trusted company
stage API or database access; this limitation is reported rather than hidden.
The runner does not assume that the quiz contains 21 steps. It continues through the currently assigned A/B path until the terminal text appears. A high action budget exists only as loop protection; reaching a particular step number is never treated as success.
To watch the complete flow in a visible Chromium window:
npm run test:headed
Actions are slowed down so each real stage transition remains visible. Chromium
stays open on the final screen for 20 seconds before the test closes it. On the
phone step the runner selects Ukraine (+380) and generates operator code 63
plus seven random digits. This flow submits the form and creates real stage
entities.
Safety
MCP starts with allowSideEffects: false. Both generic and named-button tools
block the phone/email commit boundary in this mode. The real E2E runner opts in
explicitly because it is intended to create an authorized synthetic stage
registration. Never point it at production.
Synthetic names use valid Ukrainian test values; the unique email contains the
mcp.e2e marker and run ID. Cleanup can be added behind the domain layer when
an authorized company test-data API is available.
Diagnostics and CI
Each run writes test-results/<run-id>/trace.zip, browser video,
evidence.png, business-evidence.json, and agent-decisions.json. Open a
trace with:
npx playwright show-trace test-results/<run-id>/trace.zip
Run deterministic tests without external side effects:
npm run test:unit
Recommended CI: test:unit on every PR and test:ci on a protected schedule.
Use mcp.json as the MCP client configuration. If the client
resolves paths outside this directory, replace the relative script path with the
absolute path to dist/src/mcp/server.js.
Available tools:
quiz_startquiz_observequiz_actquiz_click_named_buttonquiz_named_button_statequiz_select_phone_countryquiz_scrollquiz_waitquiz_dismiss_overlaysquiz_evidencequiz_close
quiz_start defaults to allowSideEffects: false, which blocks final
registration/booking actions through every click tool.
The test approach, CI/CD proposal, assumptions, risks, and limitations are in
docs/CHARLIE_QUIZ_TEST_STRATEGY.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。