Qase MCP Server provides integration with the Qase test management platform. It offers functionality for creating and retrieving test cases, managing test suites, and executing test runs through a Model Context Protocol (MCP) server interface.
Before installation, ensure you have:
Install and build the server with the following commands:
# Install packages
npm install
# Build the server
npm run build
Add the following settings to your MCP configuration file (cline_mcp_settings.json
):
{
"mcpServers": {
"qase": {
"command": "node",
"args": ["path/to/qase-mcp-server/build/index.js"],
"env": {
"QASE_API_TOKEN": "your-api-token"
},
"disabled": false,
"autoApprove": []
}
}
}
Make sure to replace "your-api-token"
with your actual Qase API token.
Retrieves a list of all projects.
Input Parameters: None
Example Usage:
{
"name": "get_projects"
}
Retrieves test cases for a specified project.
Input Parameters:
project_code
: Project code (required)suite_id
: Suite ID (optional) - retrieves only test cases belonging to the specified suiteExample Usage:
{
"name": "get_test_cases",
"arguments": {
"project_code": "DEMO",
"suite_id": 123
}
}
Creates a new test case.
Input Parameters:
project_code
: Project code (required)title
: Test case title (required)description
: Test case description (optional)Example Usage:
{
"name": "create_test_case",
"arguments": {
"project_code": "DEMO",
"title": "Login Functionality Test",
"description": "Verification of user login functionality"
}
}
Creates a new test suite.
Input Parameters:
project_code
: Project code (required)title
: Test suite title (required)description
: Test suite description (optional)preconditions
: Test suite preconditions (optional)parent_id
: Parent suite ID (optional)Example Usage:
{
"name": "create_suite",
"arguments": {
"project_code": "DEMO",
"title": "Authentication Test Suite",
"description": "All test cases related to authentication",
"preconditions": "Test database must be initialized"
}
}
Creates a new test run.
Input Parameters:
project_code
: Project code (required)title
: Test run title (required)description
: Test run description (optional)cases
: List of test case IDs to include in the run (optional)Example Usage:
{
"name": "create_test_run",
"arguments": {
"project_code": "DEMO",
"title": "Regression Test Run",
"description": "Verification tests before v1.2.0 release",
"cases": [1, 2, 3]
}
}
Creates multiple test cases in a single operation.
Input Parameters:
project_code
: Project code (required)cases
: Array of test cases to create (required)
title
: Test case title (required)description
: Test case description (optional)suite_id
: ID of the suite where the test case belongs (optional)Example Usage:
{
"name": "create_test_cases_in_bulk",
"arguments": {
"project_code": "DEMO",
"cases": [
{
"title": "Login Success Pattern",
"description": "Verification with valid credentials",
"suite_id": 123
},
{
"title": "Login Failure Pattern",
"description": "Verification with invalid credentials",
"suite_id": 123
}
]
}
}
The tools may return the following types of errors:
Error messages will include specific information about the problem and how to resolve it.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.