qasphere-mcp-server
v1.1.7
Published
Model Context Protocol (MCP) server for QA Sphere test management integration. Complete CRUD operations for test cases, folders, tags, and more.
Maintainers
Readme
QA Sphere MCP Server
A complete Model Context Protocol (MCP) server for QA Sphere integration with full API support. Allows AI assistants like Cursor to interact with QA Sphere test management system.
✨ Features
- 📁 Projects - Get all projects or specific project details
- 📝 Test Cases - Full CRUD operations (Create, Read, Update, Delete)
- 📂 Folders - Organize test cases with folders
- 🏷️ Tags - Categorize test cases with tags
- 📋 Preconditions - Manage shared preconditions
- 📊 Test Plans - Get and create test plans
- 🎯 Requirements - Link requirements to test cases
📦 Installation
Using with npx (Recommended - No installation needed)
npx -y qasphere-mcp-serverGlobal Installation
npm install -g qasphere-mcp-server🚀 Quick Setup with Cursor
Step 1: Get Your QA Sphere API Key
- Log in to your QA Sphere account
- Click on your profile (top right)
- Go to Settings → API Keys
- Click Create API Key
- Copy the generated API key
Step 2: Configure Cursor
- Open Cursor Settings (
Ctrl/Cmd + ,) - Search for "MCP" or go to Features → Model Context Protocol
- Click Edit Config or open the config file
- Add the following configuration (also available in
cursor-config.example.json):
{
"mcpServers": {
"qasphere": {
"command": "npx",
"args": ["-y", "qasphere-mcp-server"],
"env": {
"QASPHERE_API_KEY": "your-api-key-here",
"QASPHERE_BASE_URL": "https://your-company.your-region.qasphere.com/api/public/v0"
}
}
}
}Replace the following values:
your-api-key-here- with your API key from Step 1https://your-company.your-region.qasphere.com/api/public/v0- with your QA Sphere URL
Save the config file
Restart Cursor
Step 3: Verify It Works
Open Cursor chat and try:
Show me all QA Sphere projectsIf everything is configured correctly, you'll see your QA Sphere projects! 🎉
🔧 Environment Variables
Configure these in your Cursor MCP config (as shown above):
QASPHERE_API_KEY- Your QA Sphere API key (required)QASPHERE_BASE_URL- Your QA Sphere instance URL (required)- Format:
https://{company}.{region}.qasphere.com/api/public/v0 - Example:
https://home-923.eu1.qasphere.com/api/public/v0
- Format:
LOG_LEVEL- Optional:debug,info,warn,error(default:info)REQUEST_TIMEOUT- Optional: Timeout in milliseconds (default:30000)
🛠️ Available Tools (25 methods)
Projects (2 tools)
qasphere_list_projects- Get all projectsqasphere_get_project- Get project details by ID
Test Cases (6 tools) ⭐
qasphere_list_test_cases- List test cases with filtersqasphere_get_test_case- Get test case detailsqasphere_create_test_case- Create new test caseqasphere_update_test_case- Update test case (full)qasphere_patch_test_case- Partially update test caseqasphere_delete_test_case- Delete test case
Folders (5 tools)
qasphere_list_folders- List folders in projectqasphere_get_folder- Get folder detailsqasphere_create_folder- Create new folderqasphere_update_folder- Update folderqasphere_delete_folder- Delete folder
Tags (4 tools)
qasphere_list_tags- List tags in projectqasphere_create_tag- Create new tagqasphere_update_tag- Update tagqasphere_delete_tag- Delete tag
Preconditions (2 tools)
qasphere_list_preconditions- List shared preconditionsqasphere_create_precondition- Create new precondition
Test Plans (3 tools)
qasphere_list_test_plans- List test plansqasphere_get_test_plan- Get test plan detailsqasphere_create_test_plan- Create new test plan
Requirements (3 tools)
qasphere_list_requirements- List requirementsqasphere_get_requirement- Get requirement detailsqasphere_link_requirement- Link requirement to test case
💡 Usage Examples in Cursor
Example 1: List Projects
Show me all my QA Sphere projectsExample 2: Create Test Case
Create a new test case in project abc123:
- Title: "Login with valid credentials"
- Priority: high
- Steps:
1. Navigate to login page
2. Enter valid username and password
3. Click login button
- Expected: User should be logged in successfullyExample 3: Organize Tests
Create a folder called "Authentication Tests" in project abc123,
then create 3 test cases for login, logout, and password resetExample 4: Bulk Operations
List all test cases in project abc123 that have the tag "regression"📖 API Response Format
All tools return JSON responses:
Success Response
{
"success": true,
"data": { /* API response data */ },
"message": "Optional success message"
}Error Response
{
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": { /* Additional context */ }
}
}🔍 Error Codes
AUTH_ERROR- Authentication failed (check API key)NOT_FOUND- Resource not foundVALIDATION_ERROR- Invalid request parametersSERVER_ERROR- QA Sphere server errorAPI_ERROR- General API errorTOOL_NOT_FOUND- Unknown tool requestedUNKNOWN_ERROR- Unexpected error
🛠️ Development
Prerequisites
- Node.js 18+
- npm or yarn
- QA Sphere account with API access
Build from Source
git clone https://github.com/denys-ispaniuk/qasphere-mcp.git
cd qasphere-mcp
npm install
npm run buildLocal Development
npm run dev # Watch modeTesting Locally
Create a .env file:
QASPHERE_API_KEY=your-key
QASPHERE_BASE_URL=https://your-company.your-region.qasphere.com/api/public/v0Run:
npm start📝 Publishing to npm
npm run build
npm publish🤝 Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
📄 License
MIT License - see LICENSE file for details
🆘 Support
- Issues: GitHub Issues
- Email: [email protected]
- Documentation: https://docs.qasphere.com/api/api_intro
🗺️ Roadmap
- [ ] Support for test runs and results
- [ ] Batch operations for bulk updates
- [ ] Caching for improved performance
- [ ] Custom field support
- [ ] File upload capabilities
- [ ] Webhook integration
📝 Changelog
0.1.0 (Initial Release)
- ✅ 25 tools for test management
- ✅ Projects, test cases, folders, tags support
- ✅ Preconditions, test plans, requirements support
- ✅ Full CRUD operations
- ✅ Type-safe TypeScript implementation
- ✅ Comprehensive error handling
- ✅ Works with npx - no installation needed
Made with ❤️ for QA professionals using AI-powered workflows
🔗 Related Projects
- TestRail MCP - MCP server for TestRail
- Model Context Protocol - Official MCP documentation
