qtm4j-mcp-server
MCP server for QTM4J (QMetry Test Management for Jira) Open API, enabling test case and cycle management via natural language.
README
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 npx in ~/.cursor/mcp.json |
| JetBrains IDEs | Supported | Configure in AI Assistant MCP settings |
| VS Code | Supported | Configure in .vscode/mcp.json or user profile mcp.json |
| Antigravity | Supported | Configure in mcp_config.json via raw config |
Tools
| Tool | Description |
|---|---|
create_test_cycle |
Create a new test cycle (run) |
search_test_case |
Search for a test case by key (e.g. PE26-TC-2) |
search_test_cases |
Search test cases with pagination and optional summary filters |
list_all_project_test_cases |
Fetch and merge paginated test case results across a project |
create_test_case |
Create a new test case, optionally placing it in folders |
list_cycle_test_cases |
List all test cases in a cycle |
add_test_case_to_cycle |
Add a test case to a cycle |
update_execution_status |
Update execution result (Pass/Fail) |
close_test_cycle |
Close a test cycle |
get_attachment_url |
Get presigned URL for attachment upload |
add_test_case_steps |
Add one or more steps to a test case version |
add_test_case_to_folders |
Add a test case version to one or more folders |
create_test_case_folder |
Create a test case folder in a project |
get_test_case |
Fetch a test case by ID or key |
get_test_case_details |
Fetch full details for a specific test case version |
get_test_case_steps |
List or search steps on a test case version |
list_test_case_folders |
List project test case folders with flat paths |
remove_test_case_from_folders |
Remove a test case version from folders |
update_test_case_description |
Update a test case version description |
update_test_case_step |
Update an existing test step |
update_test_case_summary |
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 build
Testing
Run the hermetic test suite:
npm test
Run once without watch mode:
npm run test:run
Generate a coverage report:
npm run test:coverage
Run opt-in live integration tests against a real QTM4J environment:
npm run test:live
Live 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_ID - Search coverage with
QTM4J_LIVE_TEST_CASE_KEY - Cycle listing coverage with
QTM4J_LIVE_TEST_CYCLE_ID - Attachment URL coverage with
QTM4J_LIVE_TEST_EXECUTION_ID - Optional 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:live
Local 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:run
- Commit 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.0
- GitHub 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.0
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
QTM4J_API_KEY |
Yes | — | QTM4J Open API key |
QTM4J_BASE_URL |
No | https://qtmcloud.qmetry.com/rest/api/latest |
API base URL |
QTM4J_PROJECT_ID |
No | — | Default project ID (avoids passing it in every call) |
NODE_TLS_REJECT_UNAUTHORIZED |
No | — | Set to 0 for self-signed certs |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。