Testmo MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with Testmo test management platform. Built with FastMCP, this server enables AI assistants to interact directly with your Testmo instance for test case management.
Features
๐ Test Case Management - Create, read, update, and delete test cases
๐ Folder Organization - Create and manage folders to organize test cases
๐ Project Discovery - List projects, templates, and milestones
โ Step-by-Step Tests - Create detailed test cases with steps and expected results
๐ Test Run Support - List and manage test runs
๐ง Debug Tools - Built-in API debugging capabilities
Prerequisites
Python 3.10+
A Testmo account with API access
API token from your Testmo instance
Installation
1. Clone the Repository
2. Create Virtual Environment
3. Install Dependencies
4. Configure Environment Variables
Set your Testmo credentials as environment variables:
Getting your API token:
Log into your Testmo instance
Go to Settings โ API
Generate a new API token
Copy the token and use it in the environment variable
Usage
Running the MCP Server
The server will start and be ready to accept MCP connections from compatible AI assistants.
Integrating with Claude Desktop
Add the following to your Claude Desktop configuration (claude_desktop_config.json):
Integrating with Cursor
Add to your Cursor MCP settings:
Available Tools
Project Management
Tool | Description |
| List all projects to find project IDs |
| Get available templates for a project |
| List folders within a project |
| Get milestones for a project |
Test Case Operations
Tool | Description |
| Create a new test case with steps |
| Create test case with JSON-formatted steps |
| Create test case with raw JSON payload |
| Get details of a specific test case |
| List test cases in a project |
| Update an existing test case |
| Delete one or more test cases |
Folder Management
Tool | Description |
| Create a new folder for organizing test cases |
Test Run Operations
Tool | Description |
| List test runs in a project |
| Create a manual test run (note: limited API support) |
Debugging
Tool | Description |
| Test API connectivity and view configuration |
Examples
Creating a Test Case with Steps
Using natural language with an AI assistant:
"Create a test case called 'User Login Flow' with steps to navigate to login, enter credentials, and verify successful login"
The assistant will use the create_test_case tool with:
Listing Projects
"Show me all available Testmo projects"
The assistant will call list_projects and return:
Creating Organized Test Cases
"Create a folder called 'Authentication' in project 1, then create a test case inside it"
API Reference
This MCP server integrates with the Testmo REST API v1. Key endpoints used:
GET /api/v1/projects- List projectsPOST /api/v1/projects/{id}/cases- Create test casesGET /api/v1/projects/{id}/cases- List test casesPATCH /api/v1/projects/{id}/cases- Update test casesDELETE /api/v1/projects/{id}/cases- Delete test casesGET /api/v1/projects/{id}/folders- List foldersPOST /api/v1/projects/{id}/folders- Create folders
Priority Values
When creating test cases, use these priority IDs:
ID | Priority |
1 | Low |
2 | Medium |
3 | High |
4 | Critical |
Time Estimates
Estimates are specified in minutes:
Value | Duration |
15 | 15 minutes |
60 | 1 hour |
480 | 8 hours (1 day) |
Troubleshooting
API Connection Issues
Verify your
TESTMO_BASE_URLis correct (should be likehttps://your-instance.testmo.net)Check that your API token is valid and has appropriate permissions
Use the
debug_api_testtool to diagnose connectivity issues
Test Case Creation Fails
Ensure you're using a valid
project_id(uselist_projectsfirst)For step-based test cases, get the correct
template_idusingget_project_templatesVerify folder exists if specifying
folder_id
Steps Not Showing
Make sure to:
Use the "Case (steps)" template - get its ID via
get_project_templatesFormat steps correctly:
"1. Step description | Expected: expected result"
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.