QE-MCP
Provides quality enforcement for Android Compose projects, including a 4-lane testing model (Unit, Integration, Contract, E2E) and analysis of Kotlin source files for testability.
Classifies Kotlin files (ViewModels, Composables, Navigation) and enforces architecture-specific test requirements within the Android Compose strategy.
Enforces pytest-specific testing standards such as naming conventions, assertion counts, lane compliance, and behavioral Given/When/Then specs for Python tests.
Provides quality enforcement for Python codebases, including source analysis, test gap detection, test plan generation, and validation of generated tests against Python-specific standards.
Click on "Install 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., "@QE-MCPAnalyse repo for test gaps with python_pytest_v1"
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.
QE-MCP: Quality Enforcement Model Context Protocol Server
QE-MCP is a Python-based MCP (Model Context Protocol) server that enforces configurable Quality Assurance automation strategies. It acts as an intelligent bridge between AI coding agents and your codebase, ensuring that generated tests adhere to strict, repository-specific architectural and testing standards.
Overview
Unlike standard code generation, QE-MCP doesn't just write tests—it enforces a prescriptive strategy. By utilizing strategy plugins (like python_pytest_v1 or android_compose_v1), it guides AI agents to:
Analyze source code based on specific heuristics.
Determine exactly what tests need to be written (test lanes, coverage thresholds).
Generate prescriptive test plans using Given/When/Then behavioral specs.
Validate the generated test code against naming conventions, architectural boundaries, and minimum assertion counts.
Enforce quality gates before code can be accepted.
Related MCP server: MCP Unit Test Sensei
Features
V1 Core Tools
list_strategies&load_strategy: Manage active testing strategies.analyse_repo: Scans the repository, pairs source files with test files, computes coverage gaps, and produces an AI-ready prompt for deep semantic analysis.generate_test_plan: Creates a prescriptiveTC-001..Ntest plan for a specific file based on the strategy's spec rules.get_generation_brief: Assembles a comprehensive, strategy-specific prompt that instructs an AI agent exactly how to write the tests.validate_tests: Runs a 7-layer validation (Syntax, Naming, Spec completeness, Assertions, Lane compliance, bare assert checks, and skip limits) on generated tests.enforce: A hard quality gate that runs analysis and validation, failing if coverage thresholds or architectural rules are breached.get_report: Generates a detailed JSON or Markdown session report.
V2 Extension Tools
analyse_dependencies: Computes import graphs and module coupling scores (currently optimized for Python).diff_coverage: PR-scoped gap analysis usinggit diffto only enforce coverage on changed files.export_report: Exports the quality report to disk as JSON, Markdown, or HTML.watch_repo: Useswatchdogto monitor file changes and mark session states as stale.
Built-in Strategies
python_pytest_v1: A Python-based strategy enforcingpytestbest practices. It uses AST parsing to classify services, repositories, and utilities, enforcing strict spec fields based on the component type.android_compose_v1: A highly advanced strategy for Android Compose projects. It enforces a 4-lane testing model (Unit, Integration, Contract, E2E) and classifies Kotlin files (ViewModels, Composables, Navigation) using heuristics, flagging testability smells like coupled ViewModels or infinite animations.
Getting Started
Prerequisites
Python 3.11+
An MCP-compatible client or AI Agent framework
Installation
Clone the repository:
git clone <repository_url> cd Andriod-test-mcpInstall dependencies:
pip install mcp pydantic pyyaml # For V2 file watching features: pip install watchdog
Running the Server
Start the MCP server using standard I/O transport:
python server.pyThis allows your MCP client to connect to it as a standard local MCP server.
How to Use with an AI Agent
Initialize: The agent calls
load_strategywith the appropriate strategy (e.g.,android_compose_v1).Analyze: The agent calls
analyse_repoto find gaps in the codebase.Plan: For a file missing tests, the agent calls
generate_test_planproviding behavioral context.Brief: The agent gets instructions via
get_generation_brief.Generate: The agent writes the test code based on the brief.
Validate: The agent uses
validate_teststo ensure the generated code passes all strategy rules.Enforce: Finally,
enforceis called to ensure the entire repository meets the defined quality gates.
Developing Custom Strategies
You can create custom strategies by inheriting from BaseStrategy in strategy/base.py and implementing the required abstract methods (classify_source_file, validate_generated_test, etc.). Register your new strategy in the strategies.yaml manifest.
Built with FastMCP
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mov2day/Andriod-test-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server