@testkase/mcp-server 2.0.12 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -95
- package/build/index.js +1029 -723
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@testkase/mcp-server)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
Model Context Protocol (MCP) server for TestKase API. Enables AI agents like Claude Desktop and GitHub Copilot to
|
|
6
|
+
Model Context Protocol (MCP) server for TestKase API. Enables AI agents like Claude Desktop and GitHub Copilot to manage the complete test management lifecycle — test cases, cycles, plans, execution, and reporting.
|
|
7
7
|
|
|
8
8
|
## Features
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
🤖 **AI-Ready** - Works with Claude Desktop, GitHub Copilot, and other MCP clients
|
|
10
|
+
- **Complete lifecycle** — test cases, cycles, plans, execution, and 40+ report types
|
|
11
|
+
- **Stateless** — every tool takes `projectId` explicitly (no state management required)
|
|
12
|
+
- **11 thoughtful tools** — fewer tools, broader coverage, designed for AI agents
|
|
13
|
+
- **Structured JSON** — all responses are JSON (AI agents format for users)
|
|
14
|
+
- **Secure** — PAT token authentication with auto-resolved organization
|
|
16
15
|
|
|
17
16
|
## Installation
|
|
18
17
|
|
|
@@ -32,8 +31,8 @@ npm install @testkase/mcp-server
|
|
|
32
31
|
|
|
33
32
|
### 1. Get Your PAT Token
|
|
34
33
|
|
|
35
|
-
1. Log in to [TestKase](https://
|
|
36
|
-
2. Navigate to **Settings
|
|
34
|
+
1. Log in to [TestKase](https://app.testkase.com)
|
|
35
|
+
2. Navigate to **Settings > Personal Access Tokens**
|
|
37
36
|
3. Click **"Generate New Token"**
|
|
38
37
|
4. Copy the token (starts with `xyz_`)
|
|
39
38
|
|
|
@@ -88,52 +87,65 @@ Edit your Copilot config file:
|
|
|
88
87
|
|
|
89
88
|
### 4. Start Using!
|
|
90
89
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
###
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
90
|
+
```
|
|
91
|
+
"List my projects"
|
|
92
|
+
"Show test cases in project PRJ-1001"
|
|
93
|
+
"Create a test cycle called 'Sprint 42 Regression' in project PRJ-1001"
|
|
94
|
+
"Execute TEST-1 as pass and TEST-2 as fail in cycle TCYCLE-5"
|
|
95
|
+
"Show me the execution summary report for project PRJ-1001"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Available Tools (11)
|
|
99
|
+
|
|
100
|
+
### 1. `list_projects`
|
|
101
|
+
List all projects the user has access to. Use this first to discover project IDs.
|
|
102
|
+
- **Params:** `search?`, `page?`, `limit?`
|
|
103
|
+
|
|
104
|
+
### 2. `get_project_structure`
|
|
105
|
+
Get folders, labels, and team members for a project.
|
|
106
|
+
- **Params:** `projectId`, `section?` (TESTCASE|TEST_CYCLE|TEST_PLAN), `include?` (folders,labels,members)
|
|
107
|
+
|
|
108
|
+
### 3. `search_testcases`
|
|
109
|
+
Search and list test cases with filters, sorting, and pagination.
|
|
110
|
+
- **Params:** `projectId`, `search?`, `filters?`, `page?`, `limit?`, `sortBy?`, `sortOrder?`
|
|
111
|
+
|
|
112
|
+
### 4. `get_testcase`
|
|
113
|
+
Get full details of a test case including test steps.
|
|
114
|
+
- **Params:** `projectId`, `testcaseId`
|
|
115
|
+
|
|
116
|
+
### 5. `manage_testcase`
|
|
117
|
+
Create, bulk create, update, or delete test cases.
|
|
118
|
+
- **Actions:** `create`, `create_bulk`, `update`, `delete`
|
|
119
|
+
- **Params:** `projectId`, `action`, + action-specific params (title, summary, priority, folder_id, labels, test_steps, testcases, ids, field, value)
|
|
120
|
+
|
|
121
|
+
### 6. `manage_folder`
|
|
122
|
+
Create, rename, move, or delete folders across all sections.
|
|
123
|
+
- **Actions:** `create`, `rename`, `move`, `delete`
|
|
124
|
+
- **Params:** `projectId`, `action`, `section?`, `name?`, `folderId?`, `parentId?`
|
|
125
|
+
|
|
126
|
+
### 7. `search_test_cycles`
|
|
127
|
+
List and search test cycles with execution progress.
|
|
128
|
+
- **Params:** `projectId`, `search?`, `folderId?`, `status?`, `page?`, `limit?`
|
|
129
|
+
|
|
130
|
+
### 8. `manage_test_cycle`
|
|
131
|
+
Full test cycle lifecycle management.
|
|
132
|
+
- **Actions:** `create`, `update`, `delete`, `get_details`, `get_testcases`, `link_testcases`, `unlink_testcases`, `assign_testcases`
|
|
133
|
+
- **Params:** `projectId`, `action`, `cycleId?`, + action-specific params
|
|
134
|
+
|
|
135
|
+
### 9. `execute_tests`
|
|
136
|
+
Record test execution results (single or bulk). This is the most critical tool for test execution workflows.
|
|
137
|
+
- **Params:** `projectId`, `cycleId`, `results` (JSON array with testcase_id, execution_status, actual_result?, environment?)
|
|
138
|
+
- Auto-detects single vs bulk execution by array length
|
|
139
|
+
|
|
140
|
+
### 10. `manage_test_plan`
|
|
141
|
+
Full test plan lifecycle management.
|
|
142
|
+
- **Actions:** `create`, `update`, `delete`, `list`, `get_details`, `link_cycles`, `unlink_cycles`, `get_cycles`, `get_testcases`
|
|
143
|
+
- **Params:** `projectId`, `action`, `planId?`, + action-specific params
|
|
144
|
+
|
|
145
|
+
### 11. `get_report`
|
|
146
|
+
Unified reporting with 40+ report types covering execution, coverage, trends, team, defects, and AI insights.
|
|
147
|
+
- **Params:** `projectId`, `report_type`, `test_cycle_ids?`, `test_plan_ids?`, `startDate?`, `endDate?`, `granularity?`
|
|
148
|
+
- **Report types:** execution_summary, execution_by_cycle, execution_by_tester, execution_by_priority, execution_by_environment, execution_by_folder, requirement_coverage, traceability_matrix, failed_requirements, uncovered_requirements, testcase_coverage, unlinked_testcases, defects_by_folder, tester_workload, testcase_distribution, execution_trend, execution_burnup, execution_burndown, test_creation, cycle_comparison, scorecard_by_folder, scorecard_by_tester, created_vs_executed, execution_by_automation, defects_by_cycle, defects_by_tester, requirement_coverage_trend, flaky_tests, release_readiness, risk_heatmap_folder, risk_heatmap_feature, testcase_quality, predictive_failure, smart_prioritization, tester_effectiveness, stale_tests, defect_hotspots, cycle_health, suite_optimization, requirement_risk_matrix, execution_velocity, project_health
|
|
137
149
|
|
|
138
150
|
## Configuration
|
|
139
151
|
|
|
@@ -160,41 +172,29 @@ Ask your AI agent:
|
|
|
160
172
|
}
|
|
161
173
|
```
|
|
162
174
|
|
|
163
|
-
##
|
|
175
|
+
## Migration from v2.0
|
|
164
176
|
|
|
165
|
-
|
|
166
|
-
```
|
|
167
|
-
"Show me testcases for project PRJ-1030 organization 1171"
|
|
168
|
-
"Get high priority active testcases from project PRJ-1030 org 1171"
|
|
169
|
-
"Find testcases about 'authentication' in project PRJ-1030 org 1171"
|
|
170
|
-
"Show testcases updated this week in project PRJ-1030 org 1171"
|
|
171
|
-
```
|
|
177
|
+
v2.1 is a redesign of the tool surface. Key changes:
|
|
172
178
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
### User Projects
|
|
187
|
-
```
|
|
188
|
-
"Show me all my projects"
|
|
189
|
-
"List all projects I have access to"
|
|
190
|
-
```
|
|
179
|
+
| v2 (14 tools) | v3 (11 tools) |
|
|
180
|
+
|---|---|
|
|
181
|
+
| `get_my_projects` + `set_active_project` + `get_active_project` | `list_projects` (stateless) |
|
|
182
|
+
| `get_folders` + `get_labels` | `get_project_structure` (combined) |
|
|
183
|
+
| `get_testcases` | `search_testcases` |
|
|
184
|
+
| `get_testcase_detail` | `get_testcase` |
|
|
185
|
+
| `create_testcase` + `create_bulk_testcase` + `update_testcase_field` + `delete_testcase` | `manage_testcase` (action-based) |
|
|
186
|
+
| `create_folder` | `manage_folder` (full CRUD, all sections) |
|
|
187
|
+
| N/A | `search_test_cycles` (NEW) |
|
|
188
|
+
| N/A | `manage_test_cycle` (NEW) |
|
|
189
|
+
| N/A | `execute_tests` (NEW) |
|
|
190
|
+
| N/A | `manage_test_plan` (NEW) |
|
|
191
|
+
| N/A | `get_report` (NEW - 40+ report types) |
|
|
191
192
|
|
|
192
193
|
## Troubleshooting
|
|
193
194
|
|
|
194
195
|
### "Authentication required" error
|
|
195
196
|
- Verify your PAT token is correct and starts with `xyz_`
|
|
196
|
-
- Check that the token hasn't been revoked
|
|
197
|
-
- Ensure it hasn't expired
|
|
197
|
+
- Check that the token hasn't been revoked or expired
|
|
198
198
|
|
|
199
199
|
### Tool not showing up
|
|
200
200
|
1. Restart your AI agent completely
|
|
@@ -204,7 +204,6 @@ Ask your AI agent:
|
|
|
204
204
|
### API connection issues
|
|
205
205
|
- Check that the API base URL is correct
|
|
206
206
|
- Verify the TestKase API is accessible
|
|
207
|
-
- Test with curl: `curl -H "Authorization: Bearer xyz_YOUR_TOKEN" https://apiqa.testkase.com/api/v1/projects/testcases/get-testcase/PROJECT_ID?organizationId=ORG_ID`
|
|
208
207
|
|
|
209
208
|
## Documentation
|
|
210
209
|
|
|
@@ -213,17 +212,9 @@ Ask your AI agent:
|
|
|
213
212
|
|
|
214
213
|
## Support
|
|
215
214
|
|
|
216
|
-
-
|
|
217
|
-
-
|
|
218
|
-
|
|
219
|
-
## Security
|
|
220
|
-
|
|
221
|
-
- PAT tokens are sent securely via HTTPS
|
|
222
|
-
- Tokens are validated by TestKase's backend
|
|
223
|
-
- Each user has their own unique token
|
|
224
|
-
- Tokens can be revoked at any time
|
|
215
|
+
- Email: support@testkase.com
|
|
216
|
+
- Website: [testkase.com](https://testkase.com)
|
|
225
217
|
|
|
226
218
|
## License
|
|
227
219
|
|
|
228
|
-
MIT
|
|
229
|
-
|
|
220
|
+
MIT
|