TestMind
Open-source intelligent testing AI platform. MCP Server + Agent hybrid architecture — let AI generate, execute, and analyze your tests.
Why TestMind?
- 🤖 AI-Driven: Claude Code / OpenCode / Cursor act as the "brain" — they understand your API specs and generate high-quality test cases.
- ⚡ Dual Mode: Use Agent + MCP for AI-powered workflows, or CLI standalone for CI/CD pipelines with zero AI dependency.
- 🔌 MCP-Native: Built on the Model Context Protocol — any MCP-compatible agent can drive TestMind out of the box.
- 📐 Spec-Driven: Point at an OpenAPI/Swagger spec, and TestMind generates structured, maintainable test cases automatically.
Quick Start
# Install
pip install testmind-ai
# Initialize a new test project
testmind init my-project --type api --base-url https://api.example.com --agent claude
# Discover and parse your API spec
testmind discover-spec https://api.example.com
testmind fetch-url https://api.example.com/openapi.json
testmind parse-spec specs/openapi.json
# Run tests
testmind run --env dev --tags smoke
# View results
testmind results --status fail
# Start MCP Server (for AI agent integration)
testmind serve
Architecture
┌──────────────────────┐ MCP Protocol ┌──────────────────────────────┐
│ AI Agent (Brain) │ ◄──────────────────► │ TestMind MCP Server │
│ Claude / OpenCode │ │ • 18 MCP tools │
│ Generate, Analyze, │ │ • Spec parsing │
│ Strategy decisions │ │ • Case execution │
└──────────────────────┘ │ • Results analysis │
│ • Security scanning │
│ • Performance benchmarking │
┌──────────────────────┐ └──────────────────────────────┘
│ TestMind CLI │
│ Zero AI, pure exec │ │ HTTP
│ For CI/CD pipelines │ ┌──────────────────────────────┐
└──────────────────────┘ │ Your API / Web App │
└──────────────────────────────┘
Features
Core Engine
- Runner: Topological sort, concurrent execution, retry, fail-fast, env filtering
- Assertions: status_code, jsonpath, header, response_time, json_schema, body_contains, custom
- Variables: 5-tier priority system + built-in functions (timestamp, uuid, random, etc.)
- Hooks: before/after, setup/teardown at project/suite/case level
MCP Tools (18 total)
| Category | Tools |
|---|---|
| Spec | discover_spec, fetch_url, parse_spec, save_spec, save_requirements |
| Execution | validate_case, save_case, run_cases, get_results, list_cases |
| Project | init_project, get_config |
| Web UI | browser_navigate, browser_click, browser_type, browser_screenshot, browser_get_text, browser_close |
CLI Commands
testmind init # Create new project
testmind run # Execute test cases
testmind results # View test results
testmind analyze # Analyze trends & failures
testmind perf run # Performance benchmarking (p50/p90/p95/p99)
testmind security scan # SQL injection, XSS, path traversal scanning
testmind suite create # Group cases into suites
testmind approve # Review & approve pending cases
Installation Options
# Core installation
pip install testmind-ai
# With crypto support (encrypted secrets)
pip install testmind-ai[crypto]
# With web UI testing (Playwright)
pip install testmind-ai[web]
# Full development setup
pip install testmind-ai[dev,crypto,web]
Project Structure (after testmind init)
my-project/
├── testmind/
│ ├── project.json # Project config
│ ├── envs/ # Environment configs (dev/staging/prod)
│ ├── specs/ # API specifications
│ ├── cases/ # Test cases (JSON)
│ ├── suites/ # Test suites
│ ├── hooks/ # Custom hook scripts
│ ├── results/ # Execution results + HTML reports
│ └── logs/ # Audit & run logs
├── .claude/ # Claude Code integration (auto-generated)
├── .opencode/ # OpenCode integration (auto-generated)
└── .cursorrules # Cursor rules (auto-generated)
Requirements
- Python 3.10+
- No external services required — runs entirely locally
License
MIT © TestMind Team
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
testmind_ai-0.5.0.tar.gz
(103.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
testmind_ai-0.5.0-py3-none-any.whl
(139.0 kB
view details)
File details
Details for the file testmind_ai-0.5.0.tar.gz.
File metadata
- Download URL: testmind_ai-0.5.0.tar.gz
- Upload date:
- Size: 103.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67c46f7ffa76bbf816c5340a919b4d1aa85933947fda70f4b13f2328ddab8d98
|
|
| MD5 |
5842d6f48ee7eec4876209615b7a8009
|
|
| BLAKE2b-256 |
7d327755375a4f51904ede0c0716fe5fc54290ad34cf85f1bf02e38e71361faa
|
File details
Details for the file testmind_ai-0.5.0-py3-none-any.whl.
File metadata
- Download URL: testmind_ai-0.5.0-py3-none-any.whl
- Upload date:
- Size: 139.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9767c67c3d627d3535cb503fa90022c9da2c55c94d959f3ddf3b8cae24d96da
|
|
| MD5 |
677ae7073b8509c59aaeb8ddefa0902d
|
|
| BLAKE2b-256 |
42ee6580378267dc8c0cd36ddd9e4c93553dc272a76df415e977d5666cc3c6c7
|