QTM4J MCP Server
QTM4J MCP 서버
QMetry Test Management for Jira Cloud (QTM4J) REST API를 Claude(또는 모든 MCP 호환 클라이언트)가 호출할 수 있는 도구로 노출하는 MCP 서버입니다.
기능
주요 QTM4J 엔티티 전반에 걸친 가장 일반적인 CRUD 흐름을 도구로 제공합니다:
영역 | 도구 |
테스트 케이스 |
|
테스트 주기 |
|
테스트 실행 |
|
테스트 계획 |
|
폴더 |
|
자동화 |
|
모든 도구는 Zod를 사용하여 입력을 검증하고, startAt / maxResults를 통해 목록 엔드포인트의 페이지네이션을 처리하며, 속도 제한(HTTP 429) 응답 시 최대 3회까지 지수 백오프(exponential back-off)를 사용하여 자동으로 재시도합니다.
Related MCP server: qtm4j-mcp-server
요구 사항
Node.js 18+ (네이티브
fetch사용)QMetry API 키 (QMetry → API Keys에서 확인)
설정 (모든 클라이언트에서 동일)
1. 복제, 설치, 빌드:
git clone https://github.com/salehrifai42/qmetrymcp.git
cd qmetrymcp
npm install
npm run build2. API 키 추가 — 예시를 복사하여 키를 입력하세요:
cp .env.example .env그런 다음 .env를 편집하세요:
QTM4J_API_KEY=your-api-key-here
QTM4J_REGION=US.env는 git-ignored 처리되어 커밋되지 않습니다.
3. 저장소 디렉토리에서 에디터/IDE를 엽니다. 서버는 시작 시 .env를 자동으로 로드하므로 추가 설정이 필요 없습니다:
Claude Code — 이 디렉토리에서
claude를 실행하세요..mcp.json이 미리 구성되어 있으며qtm4j서버가 자동으로 연결됩니다.GitHub Copilot (VS Code) — VS Code에서 폴더를 열고 Copilot Chat을 Agent 모드로 전환하세요.
.vscode/mcp.json이 미리 구성되어 있으며qtm4j도구가 자동으로 나타납니다.
구성
서버는 두 가지 환경 변수를 읽습니다:
변수 | 필수 | 기본값 | 설명 |
| 예 | — | QMetry API 키, 모든 요청 시 |
| 아니오 |
|
|
로컬 구성 참조
일반적인 필드 값(프로젝트 ID, 상태, 우선순위, 실행 결과 ID, 폴더 ID 등)이 포함된 config.template.json이 제공됩니다. 로컬 참조를 위해 복사하세요:
cp config.template.json config.jsonconfig.json은 git-ignored 처리됩니다. MCP 서버는 환경 변수에서만 읽습니다.
수동 실행
QTM4J_API_KEY=your-key npm start서버는 stdio를 통해 MCP와 통신합니다. 일반적으로 직접 실행하지 않으며, MCP 클라이언트가 이를 생성합니다.
MCP 클라이언트 구성
Claude Code (CLI)
.mcp.json은 이 저장소와 함께 제공되며 프로젝트 디렉토리에서 Claude Code를 열면 자동으로 감지됩니다. 확인 방법:
claude mcp list세션 내에서 /mcp를 실행하여 연결된 서버와 해당 도구를 확인하세요.
Claude Desktop
macOS의 경우 ~/Library/Application Support/Claude/claude_desktop_config.json을 편집하고 Claude Desktop을 다시 시작하세요:
{
"mcpServers": {
"qtm4j": {
"command": "node",
"args": ["/path/to/qmetrymcp/dist/index.js"],
"env": {
"QTM4J_API_KEY": "your-api-key-here",
"QTM4J_REGION": "US"
}
}
}
}GitHub Copilot (VS Code)
.vscode/mcp.json은 이 저장소와 함께 제공되며 VS Code에서 폴더를 열면 자동으로 감지됩니다. Copilot Chat을 Agent 모드로 전환하면 qtm4j 도구가 자동으로 나타납니다.
사용해 보기
연결되면 어시스턴트에게 다음과 같이 질문해 보세요:
QMetry 프로젝트 10011에서 상태가 "To Do"인 테스트 케이스를 검색해서 처음 5개만 보여줘.
클라이언트는 { projectId: 10011, status: ["To Do"], maxResults: 5 }와 함께 search_test_cases를 호출하고 응답을 렌더링합니다.
테스트 주기 FS-TR-747의 모든 실행을 가져와서 실행되지 않은 항목은 Pass로 표시해.
도구 호출 예시
// Search test cases in project with numeric ID 10011
{
"name": "search_test_cases",
"arguments": {
"projectId": 10011,
"status": ["Approved"],
"maxResults": 20
}
}
// Update an execution result (executionResultId: 239444=Pass, 239441=Fail, 239443=Not Executed)
{
"name": "update_test_execution",
"arguments": {
"cycleId": "gxMbioKJsyEr3E",
"testCaseExecutionId": 287595809,
"executionResultId": 239444,
"comment": "Verified on staging"
}
}오류 처리
2xx 이외의 응답은 HTTP 상태와 파싱된 API 본문을 포함한 도구 오류를 반환합니다.
네트워크 오류는 설명적인 오류 메시지를 반환합니다.
429 응답은 지수 백오프를 사용하여 자동으로 재시도됩니다(총 최대 3회).
참고
projectId는 프로젝트 키(예: "FS")가 아닌 숫자 형태의 Jira 프로젝트 ID(예:10011)여야 합니다. Jira 프로젝트 URL에서 확인할 수 있습니다:…?projectId=10011&projectKey=FS.검색 엔드포인트는
POST /…/search를 사용합니다. 필터는 본문의filter아래에 들어가며, 페이지네이션/정렬은 쿼리 문자열에 들어갑니다. MCP 핸들러가 이를 자동으로 래핑합니다.204 No Content를 반환하는 "업데이트" 엔드포인트는 간단한{ message: "…" }페이로드로 해결됩니다.Swagger 사양에는 현재 프레임워크 스타일의 자동화 가져오기 결과 엔드포인트(예: JUnit/TestNG/Cucumber 수집)가 문서화되어 있지 않습니다. 여기의 자동화 도구는 사양에 노출된 규칙 실행 및 규칙 연결 흐름을 다룹니다.
Available Tools
30 toolsbulk_update_test_executionsA
Apply the same execution result, environment, or build to multiple test case executions at once. Use testCycleTestCaseMapIds from get_test_cycle_executions (the 'testCycleTestCaseMapId' field). Returns 204 on success.
Inputs: cycleId (required), testCycleTestCaseMapIds (required), executionResultId, environmentId, +1 more.
clone_test_casesA
Bulk clone one or more test cases into a target project and optional folder. Returns a background task object with a taskId and progressUrl to poll for completion.
Inputs: testcaseIds (required), projectId (required), folderId.
create_folderA
Create a new folder under an existing parent folder. Use parentId=0 for root-level. folderName is required. Returns the created folder with its id. Use list_folders first to find valid parentId values.
Inputs: projectId (required), folderName (required), folderType (required), parentId (required), +1 more.
create_test_caseB
Create a new test case in QMetry. Returns the created test case object including its internal id and key (e.g. FS-TC-123). Priority, status, labels, and components use integer IDs — see field_reference.json for valid values.
Inputs: projectId (required), summary (required), precondition, priority, +7 more.
create_test_cycleA
Create a new test cycle in QMetry. Returns the created cycle with its internal id and key (e.g. FS-TR-123). Use list_folders with folderType=TESTCYCLE to find valid folderId values.
Inputs: projectId (required), summary (required), description, priority, +6 more.
create_test_planA
Create a new test plan in QMetry. Returns the created plan with its internal id and key (e.g. FS-TP-44). Use list_folders with folderType=TESTPLAN to find valid folderId values.
Inputs: projectId (required), summary (required), description, priority, +4 more.
create_test_stepsB
Add one or more test steps to a specific version of a test case. Each step has stepDetails (required), expectedResult, and testData. Returns the created step objects with their IDs.
Inputs: id (required), versionNo (required), steps (required).
delete_test_caseA
Permanently delete a specific version of a test case. If it is the only version, the test case is removed entirely. Returns 204 on success.
Inputs: id (required), versionNo (required).
delete_test_cycleA
Permanently delete a test cycle and all its execution records. This is irreversible. Returns 204 on success.
Inputs: id (required).
delete_test_planA
Permanently delete a test plan. This does not delete the linked test cycles. Returns 204 on success.
Inputs: id (required).
get_linked_test_cyclesA
List all test cycles currently linked to a test plan. Returns paginated list with id, key, status, priority per cycle. Use the plan's internal id (not key).
Inputs: id (required), startAt, maxResults, sort, +1 more.
get_test_caseA
Get a test case by its internal ID or key (e.g. FS-TC-31950). Returns an array of versions, each with versionNo, isLatestVersion, aiGenerated flag, and any test steps.
Inputs: id (required).
get_test_cycleA
Get a test cycle by its key (e.g. FS-TR-747) or internal id. Returns id, key, status, priority, projectId, archived flag. The internal 'id' returned here is required by get_test_cycle_executions and update_test_execution.
Inputs: id (required).
get_test_cycle_executionsA
List all test case executions linked to a test cycle. Requires the internal cycle id (from get_test_cycle, not the key). Returns testCycleTestCaseMapId (needed for bulk_update), testCaseExecutionId (needed for update_test_execution), key, status, and priority per test case.
Inputs: id (required), startAt, maxResults, sort, +1 more.
get_test_planA
Get a test plan by its key (e.g. FS-TP-43) or internal id. Returns id, key, projectId, archived flag. Use the internal 'id' when calling link/unlink/get_linked_test_cycles.
Inputs: id (required).
link_automation_ruleA
Associate an automation rule with a test cycle so it can be triggered for that cycle. automationRuleKey is the rule's string key from your QMetry automation config. Returns 200 on success.
Inputs: cycleId (required), automationRuleKey (required).
link_test_cycles_to_planA
Link one or more existing test cycles to a test plan. Use the plan's internal id (from get_test_plan or search_test_plans). testcycleIds are numeric integer IDs. Returns 204 on success.
Inputs: id (required), testcycleIds (required).
list_foldersA
List folders of a given type in a project as a nested tree with id, name, parentId, and children. Provide folderId to return only that subtree instead of the full project tree (recommended for large projects).
Inputs: projectId (required), folderType (required), folderId.
run_automation_rulesA
Trigger an automation rule to run against a specific test cycle. testCycleId is the internal id string (from get_test_cycle). Returns a background task object with taskId and progressUrl to poll for completion.
Inputs: automationRuleKey (required), projectId (required), testCycleId (required).
search_test_casesA
Search test cases in a project with optional filters. Returns total count and paginated data with id, key, version info, archived flag. Use status/priority name strings (e.g. 'To Do', 'High') not IDs. projectId must be numeric (10011). Set recursive=true with a folderId to count across all subfolders (returns total only, no data).
Inputs: projectId (required), labels, components, recursive, +9 more.
search_test_cyclesA
Search test cycles in a project. Returns total count and paginated list with id, key, status, priority, archived. The 'id' field in results is the internal ID needed for execution tools.
Inputs: projectId (required), folderId, status, priority, +6 more.
search_test_plansB
Search test plans in a project. Returns total count and paginated list with id, key, projectId, archived. The 'id' field is the internal ID needed for linking cycles.
Inputs: projectId (required), folderId, status, priority, +6 more.
unlink_automation_ruleA
Remove the association between an automation rule and a test cycle. Returns 200 on success.
Inputs: cycleId (required), automationRuleKey (required).
unlink_test_cycles_from_planA
Remove the link between one or more test cycles and a test plan. Does not delete the cycles themselves. Returns 204 on success.
Inputs: id (required), testcycleIds (required).
update_test_caseB
Update fields on a specific version of a test case. Requires both the test case id and versionNo (usually 1 for latest). Priority and status take integer IDs. Returns 204 on success.
Inputs: id (required), versionNo (required), summary, precondition, +7 more.
update_test_cycleA
Update a test cycle's metadata (summary, description, priority, status, dates, custom fields). Pass the internal id or key. Returns 204 on success.
Inputs: id (required), summary, description, priority, +5 more.
update_test_executionA
Update a single test case execution result inside a test cycle. Use testCaseExecutionId from get_test_cycle_executions. executionResultId: 239443=Not Executed, 239444=Pass, 239441=Fail, 239442=Work In Progress, 239440=Blocked. Returns 204 on success.
Inputs: cycleId (required), testCaseExecutionId (required), executionResultId, environmentId, +3 more.
update_test_planC
Update a test plan's priority or custom fields. Returns 204 on success.
Inputs: id (required), priority, customFields.
update_test_step_executionA
Update a single step-level execution result within a test case execution. testStepExecutionId comes from get_test_cycle_executions step data. Returns 200 with updated step data.
Inputs: cycleId (required), testStepExecutionId (required), executionResultId, actualResult, +1 more.
update_test_stepsA
Update existing test steps on a test case version. Each step must include its step id (from create_test_steps or get_test_case response). Returns the updated step objects.
Inputs: id (required), versionNo (required), steps (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Each tool targets a distinct entity or operation (folders, test cases, cycles, plans, executions, automation rules, linking). Despite high tool count, descriptions make purposes clear with no overlapping functionality.
All tools use a consistent verb_noun pattern in snake_case (e.g., create_folder, update_test_execution, search_test_plans). Variations between get/list/search are semantically justified by the operation type.
30 tools is on the high side, but the domain (test management) requires many entities and operations. While borderline heavy, most tools serve essential functions without redundancy.
Covers CRUD for core entities (test cases, cycles, plans, folders), steps, executions (single/bulk), linking, and automation. Missing delete for folders and some retrieval details, but core workflows are complete.
Maintenance
Related MCP Connectors
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
Official MCP server for Qase — manage test cases, runs, suites, defects via AI tools.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- 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.93269 npmApache 2.0
- AlicenseAqualityDmaintenanceMCP server for QTM4J (QMetry Test Management for Jira) Open API, enabling test case and cycle management via natural language.2150 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Zephyr Scale test management enabling test case, test run, folder, and assignment operations via natural language.2MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that connects AI assistants to Xray Cloud for Jira test management, enabling natural language interaction with tests, test plans, executions, and CI result imports.MIT