qtm4j-mcp-server
Provides tools for managing test cases, test cycles, and execution results in QMetry Test Management for Jira (QTM4J).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@qtm4j-mcp-server Search for test case PE26-TC-2"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
qtm4j-mcp-server
MCP server for QTM4J (QMetry Test Management for Jira) Open API at qtmcloud.qmetry.com/rest/api/latest.
Published package: @denis-platonov/qtm4j-mcp-server
MCP Registry name: io.github.denis-platonov/qtm4j
Supported Clients
Client | Status | Notes |
Cursor | Supported | Configure with |
JetBrains IDEs | Supported | Configure in AI Assistant MCP settings |
VS Code | Supported | Configure in |
Antigravity | Supported | Configure in |
Related MCP server: QTM4J MCP Server
Tools
Tool | Description |
| Create a new test cycle (run) |
| Search for a test case by key (e.g. PE26-TC-2) |
| Search test cases with pagination and optional summary filters |
| Fetch and merge paginated test case results across a project |
| Create a new test case, optionally placing it in folders |
| List all test cases in a cycle |
| Add a test case to a cycle |
| Update execution result (Pass/Fail) |
| Close a test cycle |
| Get presigned URL for attachment upload |
| Add one or more steps to a test case version |
| Add a test case version to one or more folders |
| Create a test case folder in a project |
| Fetch a test case by ID or key |
| Fetch full details for a specific test case version |
| List or search steps on a test case version |
| List project test case folders with flat paths |
| Remove a test case version from folders |
| Update a test case version description |
| Update an existing test step |
| Update a test case version summary |
The full set of tools (including search_test_cases with startAt, list_all_project_test_cases, folder and step helpers) is defined in src/tools.ts. After npm run build, run npm run list-tools to print every registered tool name — use this to confirm Cursor is using this build (you should see list_all_project_test_cases).
Cursor: use the local build for full functionality
npx @denis-platonov/qtm4j-mcp-server may be an older npm release. To guarantee tools such as list_all_project_test_cases and correct startAt handling:
In this directory:
npm install && npm run build.Merge
cursor-mcp.example.jsoninto your user Cursor config~/.cursor/mcp.json(Windows:%USERPROFILE%\.cursor\mcp.json). Adjust theargspath to your absolutedist/index.js.Run
npm run list-toolsand confirm the tool count matches expectations.Restart Cursor or toggle the MCP server off/on.
Cursor workspace tool descriptors
If you use Cursor’s workspace mcps/<server>/tools/*.json hints for the agent, keep those JSON schemas in sync with src/tools.ts (same parameter names as the Zod definitions). Rebuild and restart MCP after changing tools.
Setup
Prerequisites
Node.js 20+
QTM4J Open API key (generate from Jira: QMetry > Configuration > Open API)
Use with Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"qtm4j": {
"command": "npx",
"args": ["-y", "@denis-platonov/qtm4j-mcp-server"],
"env": {
"QTM4J_API_KEY": "your-api-key",
"QTM4J_BASE_URL": "https://qtmcloud.qmetry.com/rest/api/latest",
"QTM4J_PROJECT_ID": "10800"
}
}
}
}Use with JetBrains IDEs
In JetBrains AI Assistant, open Tools > AI Assistant > Model Context Protocol (MCP) and add:
{
"mcpServers": {
"qtm4j": {
"command": "npx",
"args": ["-y", "@denis-platonov/qtm4j-mcp-server"],
"env": {
"QTM4J_API_KEY": "your-api-key",
"QTM4J_BASE_URL": "https://qtmcloud.qmetry.com/rest/api/latest",
"QTM4J_PROJECT_ID": "10800"
}
}
}
}Restart AI Assistant after saving the configuration.
Use with VS Code
Add this to your user or workspace MCP configuration file, typically .vscode/mcp.json or your profile-level mcp.json:
{
"servers": {
"qtm4j": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@denis-platonov/qtm4j-mcp-server"],
"env": {
"QTM4J_API_KEY": "your-api-key",
"QTM4J_BASE_URL": "https://qtmcloud.qmetry.com/rest/api/latest",
"QTM4J_PROJECT_ID": "10800"
}
}
}
}Use with Antigravity
In Antigravity, open Manage MCP Servers and then View raw config, then add this to mcp_config.json:
{
"mcpServers": {
"qtm4j": {
"command": "npx",
"args": ["-y", "@denis-platonov/qtm4j-mcp-server"],
"env": {
"QTM4J_API_KEY": "your-api-key",
"QTM4J_BASE_URL": "https://qtmcloud.qmetry.com/rest/api/latest",
"QTM4J_PROJECT_ID": "10800"
}
}
}
}Build
npm install
npm run buildTesting
Run the hermetic test suite:
npm testRun once without watch mode:
npm run test:runGenerate a coverage report:
npm run test:coverageRun opt-in live integration tests against a real QTM4J environment:
npm run test:liveLive tests are skipped unless the required environment is present. The live suite currently supports:
Read-focused checks using
QTM4J_API_KEY,QTM4J_BASE_URL, andQTM4J_PROJECT_IDSearch coverage with
QTM4J_LIVE_TEST_CASE_KEYCycle listing coverage with
QTM4J_LIVE_TEST_CYCLE_IDAttachment URL coverage with
QTM4J_LIVE_TEST_EXECUTION_IDOptional mutation checks only when
QTM4J_LIVE_ENABLE_MUTATIONS=1
Example:
QTM4J_API_KEY=your-api-key \
QTM4J_PROJECT_ID=10800 \
QTM4J_LIVE_TEST_CASE_KEY=PE26-TC-2 \
QTM4J_LIVE_TEST_CYCLE_ID=PE26-R1 \
QTM4J_LIVE_TEST_EXECUTION_ID=12345 \
npm run test:liveLocal Development
Copy cursor-mcp.example.json into ~/.cursor/mcp.json (merge with existing mcpServers) and set args to the absolute path of dist/index.js, for example on Windows:
"args": ["C:/Users/you/projects/qa-all-in-one/tools/qtm4j-mcp-server/dist/index.js"]
Optional: NODE_TLS_REJECT_UNAUTHORIZED": "0" in env only if you must use self-signed TLS.
Publish
This repository uses a tag-driven GitHub Actions release workflow.
Align
package.jsonandserver.jsonto the release version.Build and verify locally:
npm run build
npm run test:runCommit the release-prep changes.
Create and push the release tag:
git tag v1.1.0
git push origin sync/desktop-qtm4j-source
git push origin v1.1.0GitHub Actions will verify the tag matches
package.jsonandserver.json, publish the npm package, and then publishserver.jsonto the MCP Registry.
You can then verify discovery with:
curl "https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.denis-platonov/qtm4j"GitHub Actions
This repo includes two workflows:
CI: runsnpm run build,npm run test:run, andnpm run test:coverageon pushes tomainand on pull requestsRelease: runs on tags matchingv*, verifies the tag matchespackage.jsonandserver.json, publishes to npm, and then publishesserver.jsonto the MCP Registry
To use the release workflow, add this repository secret:
NPM_TOKEN: npm access token with permission to publish@denis-platonov/qtm4j-mcp-server
Then cut a release like this:
git tag v1.1.0
git push origin v1.1.0Environment Variables
Variable | Required | Default | Description |
| Yes | — | QTM4J Open API key |
| No |
| API base URL |
| No | — | Default project ID (avoids passing it in every call) |
| No | — | Set to |
Available Tools
21 toolsadd_test_case_stepsB
Create test steps on a test case version (POST …/teststeps). steps[].stepDetails is required.
Inputs: testCaseId (required), steps (required), projectId, versionNo, +1 more.
add_test_case_to_cycleB
Add a test case to a test cycle. Returns the execution ID.
Inputs: testCycleId (required), testCaseId (required), versionNo.
add_test_case_to_foldersB
Add a test case version to folders (PUT …/versions/{no} with folders.add). Use folder ids from list_test_case_folders.
Inputs: testCaseId (required), addFolderIds (required), projectId, versionNo.
close_test_cycleB
Close a test cycle by setting its status to Done.
Inputs: testCycleId (required), statusId (required), projectId.
create_test_caseB
Create a new test case in QTM4J. Returns testCaseId, versionNo, and optional folderId / pickedFolder / folderWarning. Use folderId, or autoPickFolder with optional folderKeywords.
Inputs: summary (required), projectId, folderId, autoPickFolder, +1 more.
create_test_case_folderB
Create a testcase folder (POST /projects/{projectId}/testcase-folders). parentId -1 = root.
Inputs: folderName (required), projectId, parentId, description.
create_test_cycleB
Create a new test cycle (run) in QTM4J. Returns the cycle ID.
Inputs: summary (required), projectId.
get_attachment_urlB
Get a presigned URL for uploading an attachment to a test case execution.
Inputs: testCycleId (required), fileName (required), testCaseExecutionId (required), projectId.
get_test_caseA
GET /testcases/{id}; on failure resolves by key via search. Optional versionNo returns version details instead of slim record.
Inputs: testCaseId (required), projectId, versionNo.
get_test_case_detailsB
GET /testcases/{id}/versions/{no} full version payload. Optional fields= comma-separated.
Inputs: testCaseId (required), projectId, versionNo, scope, +1 more.
get_test_case_stepsB
POST …/teststeps/search (QTM4J GetTestStepRequest). Pagination: query startAt & maxResults (max 100). Body is {} to list all steps, or { filter: { stepDetails?, testData?, expectedResult? } } — no projectId in the filter. Optional sort is a query parameter.
Inputs: testCaseId (required), projectId, versionNo, startAt, +6 more.
list_all_project_test_casesA
Fetches all pages of /testcases/search for a project until a short page or maxPages. Merges rows and dedupes by test case key when present. Use for exporting or counting beyond a single page.
Inputs: projectId, key, summaryContains, maxResultsPerPage, +1 more.
list_cycle_test_casesB
List all test cases in a test cycle with their execution IDs.
Inputs: testCycleId (required).
list_test_case_foldersC
GET /projects/{id}/testcase-folders plus flatFolders (id, name, path).
Inputs: projectId, withCount.
remove_test_case_from_foldersB
Remove a test case version from folders (PUT …/versions/{no} with folders.delete).
Inputs: testCaseId (required), removeFolderIds (required), projectId, versionNo.
search_test_caseB
Search for a test case by key (e.g. PE26-TC-2). Returns test case ID and version.
Inputs: key (required), projectId.
search_test_casesA
Paginated POST /testcases/search. Returns the raw API JSON (includes data, total, startAt, maxResults when provided). Use startAt/maxResults for paging; summaryContains adds a leading ~ for contains-style summary filter when not already present.
Inputs: projectId, key, summaryContains, summary, +2 more.
update_execution_statusC
Update execution result (Pass/Fail) for a test case execution in a cycle.
Inputs: testCycleId (required), testCaseExecutionId (required), executionResultId (required), projectId.
update_test_case_descriptionB
Update the description field on a test case version (PUT …/testcases/{id}/versions/{no} with description).
Inputs: testCaseId (required), description (required), projectId, versionNo.
update_test_case_stepA
Edit an existing test step (PUT …/versions/{v}/teststeps with a JSON array). stepId is the numeric id from get_test_case_steps. Provide at least one of stepDetails, expectedResult, testData.
Inputs: testCaseId (required), stepId (required), projectId, versionNo, +4 more.
update_test_case_summaryA
Update the summary (title) on a test case version (PUT …/testcases/{id}/versions/{no} with summary).
Inputs: testCaseId (required), summary (required), projectId, versionNo.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Each tool has a clearly distinct purpose. Even similar operations like 'get_test_case' vs 'get_test_case_details' are differentiated by their descriptions and the level of detail returned. The three 'add_' tools target different entities (steps, cycle, folders), so no ambiguity.
All tool names follow a consistent 'verb_noun' pattern with snake_case. Verbs like 'add_', 'create_', 'get_', 'list_', 'update_' are used appropriately, making the tool set predictable and easy to navigate.
21 tools is well-scoped for a test management server. Each tool serves a specific function without overloading the user. The count is large enough to cover essential operations but not excessive.
The tool set lacks several obvious operations: no 'list_test_cycles' (only list test cases within a cycle), no delete tools for test cases, cycles, or folders, no 'remove_test_case_from_cycle'. These gaps could hinder agents from completing full workflows.
Maintenance
Related MCP Connectors
Official MCP server for Qase — manage test cases, runs, suites, defects via AI tools.
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
MCP server for AI access to Swagger by SmartBear.
Free test management over MCP: projects, test cases, plans, runs, environments and tasks.
Related MCP Servers
- AlicenseAqualityFmaintenanceQA Sphere MCP server that enables Large Language Models to interact directly with test management system test cases, supporting AI-powered development workflows and test case discovery.1528 npm23MIT
- AlicenseAqualityDmaintenanceAn MCP server that exposes the QMetry Test Management for Jira Cloud REST API as tools for MCP-compatible clients. It enables users to manage test cases, test cycles, test executions, test plans, folders, and automation rules through natural language interactions.3057 npmMIT
- AlicenseBqualityDmaintenanceMCP server to interact with the QMetry for Jira API, enabling management of test cases, test cycles, test plans, and more through well-defined tools.9388 npmApache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for Zephyr Scale test management enabling test case, test run, folder, and assignment operations via natural language.2MIT