Supports CI/CD integration with GitHub Actions for automated test execution monitoring and result submission through the AutoSpectra integration feature.
Supports CI/CD integration with Jenkins for automated test execution monitoring and result submission through the AutoSpectra integration feature.
Provides comprehensive integration with TestRail's test management platform, enabling management of projects, test suites, test cases, test runs, and results. Includes advanced features like project health analysis, bulk operations, coverage reports, trend analysis, flakiness detection, and AutoSpectra test automation framework integration.
TestRail MCP Server
A comprehensive Model Context Protocol (MCP) server for TestRail integration, providing seamless access to TestRail's test management capabilities through MCP tools with advanced project management, reporting, and AutoSpectra integration.
π Features
Core TestRail Integration
Complete TestRail API Coverage: Projects, suites, cases, runs, results, plans, milestones
MCP Protocol Integration: Native MCP server implementation
Type-Safe: Full TypeScript support with comprehensive type definitions
Bulk Operations: Support for bulk test case and result operations
Real-time Updates: WebSocket support for real-time TestRail updates
Advanced Project Management
ποΈ Advanced Project Creation: Template-driven project setup with predefined structures
π Project Health Analysis: Comprehensive project structure analysis with recommendations
β‘ Bulk Suite Management: Efficient bulk operations on test suites with validation
π― Template System: Pre-built templates for functional, API, performance, security, and mobile testing
Comprehensive Reporting & Analytics
π Project Dashboards: Interactive dashboards with metrics, trends, and failure analysis
π Test Case Metrics: Detailed analysis of test case execution patterns and health
π Coverage Reports: Comprehensive test coverage analysis by priority, type, and automation
π Trend Analysis: Historical trend analysis with pass rate and completion tracking
π― Flakiness Detection: Automated identification of flaky tests
AutoSpectra Integration
π Seamless Sync: Direct integration with AutoSpectra test automation framework
π CI/CD Ready: Built-in support for GitHub Actions, Jenkins, and other CI/CD platforms
π Auto Case Creation: Automatic test case creation from AutoSpectra test results
π Real-time Monitoring: Live test execution monitoring and result submission
Enterprise Features
π Security: Enterprise-grade security with encrypted credentials and audit logging
β‘ Performance: Optimized for large datasets with rate limiting and batching
π‘οΈ Error Handling: Comprehensive error handling with retry logic and graceful degradation
π Comprehensive Testing: Unit, integration, and E2E tests with 95%+ coverage
π Project Structure
β‘ Quick Start
Prerequisites
Node.js 16.0 or higher
TestRail instance with API access
TestRail API key
Installation
π€ Quick Setup with AI Coding Agents
Interactive Setup (Recommended):
Manual Configuration Examples:
Claude Desktop:
Cursor IDE:
Windsurf IDE:
π See
Development
π§ Configuration
Create a .env file based on .env.example:
π Available MCP Tools
The TestRail MCP Server provides the following tools:
Connection & Authentication
connect_testrail- Connect to TestRail instancetest_connection- Test TestRail connection
Basic Project Management
get_projects- List all projectsget_project- Get specific projectcreate_project- Create new project
Advanced Project Management π
create_advanced_project- Create project with templates and initial structureanalyze_project_structure- Analyze project health with recommendationsbulk_manage_suites- Perform bulk operations on test suitescreate_advanced_suite- Create suite with templates and structure
Suite & Section Management
get_suites- List suites in projectcreate_suite- Create new suiteget_sections- List sections in suitecreate_section- Create new section
Test Case Management
get_cases- List test casesget_case- Get specific test casecreate_case- Create new test caseupdate_case- Update existing test casedelete_case- Delete test case
Test Run Management
get_runs- List test runscreate_run- Create new test runupdate_run- Update test runclose_run- Close test run
Test Execution
get_tests- List tests in runadd_result- Add test resultadd_bulk_results- Add multiple resultsget_results- Get test results
Advanced Reporting & Analytics π
generate_project_dashboard- Generate comprehensive project dashboardgenerate_execution_report- Generate detailed test execution reportsanalyze_case_metrics- Analyze test case metrics and healthgenerate_coverage_report- Generate comprehensive test coverage reportsgenerate_report- Generate custom test reports
AutoSpectra Integration π
autospectra_sync- Synchronize AutoSpectra test results with TestRail
Legacy Tools (Still Available)
get_test_stats- Get test statisticsget_execution_trends- Get execution trends
π Documentation
API Documentation - Detailed API reference
User Guides - Step-by-step tutorials
Coding Agents Setup - Integration with Claude, Cursor, Windsurf, and other AI tools
AutoSpectra Integration - Advanced test automation integration
Getting Started - Complete setup guide
Examples - Code examples and use cases
π§ͺ Testing
π€ Contributing
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureCommit your changes:
git commit -m 'Add amazing feature'Push to the branch:
git push origin feature/amazing-featureOpen a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Support
π Related Projects
This server cannot be installed