Core Tools
TestSprite MCP Server provides 6 core tools that work together to deliver comprehensive automated testing. Your AI assistant uses these tools automatically when you request testing.testsprite_bootstrap_tests
testsprite_bootstrap_tests
Purpose: Initialize testing environment and configurationParameters:Response:
The tool returns next_action instructions that guide the AI to:
localPort
(number): Port where your application is running (default: 5173)type
(string): Project type - “frontend” or “backend”projectPath
(string): Absolute path to your project directorytestScope
(string): Testing scope - “codebase” or “diff”
- Start your application if not running
- Generate code summary automatically
- Continue with the testing workflow
- Detects project type and structure
- Checks if application is running on specified port
- Initializes testing configuration, whether it should test the entire codebase or just the code diffs
- Opens TestSprite configuration portal
- Automatically proceeds to code analysis
testsprite_generate_code_summary
testsprite_generate_code_summary
Purpose: Analyze codebase and generate architectural summaryParameters:Response:
The tool creates a
projectRootPath
(string): Absolute path to project root
code_summary.json
file in your project containing:- Project architecture analysis
- Framework and dependency detection
- Feature mapping
- Entry point identification
- Scans entire project structure
- Identifies technologies and frameworks
- Analyzes code patterns and architecture
- Generates comprehensive code summary file
- Required for subsequent testing steps
testsprite_generate_standardized_prd
testsprite_generate_standardized_prd
Purpose: Generate standardized Product Requirements DocumentParameters:Response:
Creates a
projectPath
(string): Absolute path to project root
standard_prd.json
file containing:- Product overview and goals
- User stories with acceptance criteria
- Functional requirements
- Technical specifications
- Analyzes code to understand product functionality
- Creates structured PRD document
- Saves standardized format for test generation
- Essential foundation for test planning
testsprite_generate_frontend_test_plan
testsprite_generate_frontend_test_plan
Purpose: Generate comprehensive frontend test planParameters:Response:
Creates a
projectPath
(string): Absolute path to project rootneedLogin
(boolean): Whether authentication is required (default: true)
frontend_test_plan.json
file with:- UI interaction test cases
- Form validation scenarios
- Navigation and routing tests
- Visual regression checks
- Authentication flows (if needLogin is true)
- Analyzes frontend components and features
- Generates UI-specific test scenarios
- Creates comprehensive test coverage plan
- Automatically proceeds to test execution
testsprite_generate_backend_test_plan
testsprite_generate_backend_test_plan
Purpose: Generate comprehensive backend test planParameters:Response:
Creates a
projectPath
(string): Absolute path to project root
backend_test_plan.json
file with:- API endpoint testing
- Functional integration testing
- Database operation tests
- Authentication and authorization
- Error handling scenarios
- Analyzes backend APIs and services
- Generates comprehensive API test scenarios
- Creates database and integration tests
- Handles authentication configurations
- Automatically proceeds to test execution
testsprite_generate_code_and_execute
testsprite_generate_code_and_execute
Purpose: Generate and execute comprehensive test suiteParameters:Response:
Executes tests and creates:
projectName
(string): Name of the project (typically the root directory name)projectPath
(string): Absolute path to project roottestIds
(array): Specific test IDs to run (default: [] - runs all tests)additionalInstruction
(string): Additional testing instructions (default: "")
- Individual test files for each test case
- Test execution results
- Bug reports and fix recommendations
testsprite_tests/tmp/test_results.json
with comprehensive resultstmp/report_prompt.json
for AI analysisTestSprite_MCP_Test_Report.md
- human-readable test reportTestSprite_MCP_Test_Report.html
- HTML test report
- Generates actual test code (Playwright, Cypress, etc.)
- Executes tests against your running application
- Provides detailed results with screenshots/videos
- Identifies bugs and suggests fixes
- Creates comprehensive test reports
Tool Chain Workflow
The tools work together in a specific sequence following the complete TestSprite workflow:File Structure
After running the tools, your project will have:Expandable File Structure
Error Handling
Tools provide comprehensive error handling:Best Practices
Ensure Application is Running
Ensure Application is Running
The bootstrap tool checks if your app is running on the specified port
Use Absolute Paths
Use Absolute Paths
Always provide full absolute paths for
projectPath
Authentication Setup
Authentication Setup
Provide login or authentication credentials in the TestSprite configuration portal for testing workflows
Incremental Testing
Incremental Testing
Use
testIds
parameter to run specific test casesAdditional Instructions
Additional Instructions
Provide context-specific instructions for better test generation
Common Workflows
Simply prompt your AI assistant:The AI will automatically:
- Bootstrap the testing environment
- Analyze your codebase
- Generate comprehensive test plans
- Execute all tests
- Provide results and fix recommendations