
QTM4J
io.github.denis-platonov由 GitHub 帳號 denis-platonov 發布v1.1.0更新於 Oct 24, 2026
MCP server for QMetry Test Management for Jira (QTM4J) Open API.
概覽
針對 QTM4J(Jira 的 QMetry 測試管理)的在地 MCP 伺服器,讓助理搜尋、建立與更新測試案例、測試週期與執行結果。
- 可以做什麼
- 依關鍵字或 ID 搜尋並讀取測試案例、詳細資料、步驟與資料夾,支援分頁的專案層級清單與跨頁合併,可依摘要篩選並查看資料夾路徑。建立測試案例、資料夾與測試週期,並把測試案例加入資料夾或週期。新增、修改與移除測試案例步驟,更新測試案例版本的摘要或描述。更新執行結果(通過/失敗)、關閉測試週期,並列出週期內的測試案例。取得用於上傳附件的預簽章網址。
- 適用情境
- 適合團隊以 QTM4J 管理測試的情況:希望助理查詢測試案例、草擬或修改案例與步驟、整理資料夾,或記錄與更新執行結果,而不必切換到 Jira/QMetry 介面。
- 執行需求
- 透過 npm 套件以 stdio 在本機執行,需要 Node.js 20 以上。需要 QTM4J Open API 金鑰,放在 QTM4J_API_KEY 中,可於 Jira 的 QMetry > Configuration > Open API 產生。QTM4J_BASE_URL(預設為 QMetry 雲端 API)與 QTM4J_PROJECT_ID(預設專案)為選用。需要能連線至 QTM4J API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 QTM4J,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
qtm4j-mcp-server
[CI] [npm version] [Release] [License: MIT]
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
Tools
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:
Use with JetBrains IDEs
In JetBrains AI Assistant, open Tools > AI Assistant > Model Context Protocol (MCP) and add:
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:
Use with Antigravity
In Antigravity, open Manage MCP Servers and then View raw config, then add this to mcp_config.json:
Build
Testing
Run the hermetic test suite:
Run once without watch mode:
Generate a coverage report:
Run opt-in live integration tests against a real QTM4J environment:
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:
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:
- Commit the release-prep changes.
- Create and push the release tag:
- 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:
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:
Environment Variables
來源:README.md,提交 e865400
工具
0版本歷史
1- v1.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分