k11-selenium-qa-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| QA_MCP_ROOT | No | The path to the test project the server should work on. If omitted, the current directory is used. | |
| QA_MCP_PYTHON | No | The Python interpreter to use for Python tests. If omitted, the server uses .venv/venv in the project, or its own Python. | |
| QA_MCP_BROWSER | No | Selects the browser to use. Supported values are edge or firefox; Chrome is used otherwise. | |
| QA_MCP_LANGUAGE | No | Overrides the detected project language. Supported values are python or java. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Selenium QA tools for Python (pytest) and Java (JUnit 5 / TestNG with Maven or Gradle) projects. Get locators from explore_page instead of guessing; they are verified to match exactly one element and are written in the project's language. Write tests with write_test, run them with run_tests, and for locator failures call heal_locator. Never put passwords in tool arguments: use ${ENV:NAME}.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| explore_pageC | Open a URL and list elements with Selenium locators verified to match exactly one element, most stable first. |
| check_locatorC | Count what a Selenium locator matches on a page (1 = good) and whether it is visible. |
| save_login_stateB | Log in once with steps and save cookies + localStorage to .qa-mcp/auth/.json for other tools. Use ${ENV:NAME} for credentials; values are never echoed. |
| review_user_storyA | Call this BEFORE parse_user_story. Finds what a careful tester would ask before writing tests: missing acceptance criteria, outcomes that can't be asserted, no user role, untestable words (fast, easy, many), limits without numbers, no failure path, missing preconditions, and (with context) terms the context never explains. Returns questions for a person to answer, each with why it matters and the words that raised it. If ready is false, ask the user these questions and wait; do not guess the answers. context: related product docs, glossary or notes; terms the story uses but this never explains become questions. |
| parse_user_storyA | Turn a user story, Gherkin scenarios or acceptance criteria into scenarios and a test skeleton: pytest for Python projects, JUnit 5 or TestNG for Java projects (package/class_name apply to Java). Call review_user_story first; the result includes a short review so open questions are never silently skipped. |
| write_testA | Write a test file. Python: into tests/ as test_*.py, *_test.py or conftest.py. Java: into src/test/java/ as a .java file (tests and Page Objects). Refuses other paths; won't overwrite unless asked. |
| run_testsA | Run the project's tests. Python: pytest (target = file or node id; keyword = -k). Java: Maven or Gradle (target = Class, pkg.Class or Class#method). Failing tests include the exact Selenium locator they were waiting for and where it is used. |
| capture_baselineB | While tests pass, fingerprint the element each locator matches (.qa-mcp/baselines.json) so healing can find it later. |
| heal_locatorA | Find the element a broken Selenium locator meant after a UI change and suggest a verified replacement, with confidence, reasons and the runner-up candidates. Never edits files. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| story_to_selenium | Guided workflow from a user story to a passing Selenium test (pytest, JUnit 5 or TestNG). |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Most tools have clearly distinct roles: story review vs. parsing, test writing vs. running, and locator checking vs. healing. The main overlap is between check_locator and explore_page, which both report locator matches, and between capture_baseline and heal_locator, which both involve element fingerprints. Descriptions do clarify the intended sequencing and differences, so confusion is limited.
All nine tools use a consistent snake_case verb_noun pattern: check_locator, write_test, review_user_story, parse_user_story, run_tests, capture_baseline, explore_page, heal_locator, save_login_state. There are no mixed casing or naming conventions. The pattern is predictable and easy for an agent to follow.
Nine tools is well within the ideal range and each maps to a meaningful step in the Selenium QA workflow. The set covers story intake, test authoring and execution, locator exploration and repair, baseline capture, and auth state saving without obvious redundancy. No tool feels like filler.
The surface covers the core Selenium QA lifecycle: review and parse stories, write and run tests, explore pages, check locators, capture baselines, heal broken locators, and save login state. Minor gaps remain, such as listing or clearing saved baselines/auth states and explicit test discovery or reporting. These are workaroundable and do not block the main workflow.