@testkase/mcp-server 2.0.13 → 2.2.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 CHANGED
@@ -1,229 +1,187 @@
1
- # @testkase/mcp-server
2
-
3
- [![npm version](https://img.shields.io/npm/v/@testkase/mcp-server.svg)](https://www.npmjs.com/package/@testkase/mcp-server)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
-
6
- Model Context Protocol (MCP) server for TestKase API. Enables AI agents like Claude Desktop and GitHub Copilot to interact with your TestKase testcase management system.
7
-
8
- ## Features
9
-
10
- ✨ **Get Testcases** - Retrieve testcases with advanced filtering and search
11
- 📊 **Pagination** - Control page size and navigate through results
12
- 🔍 **Advanced Filtering** - Filter by status, priority, dates, custom fields
13
- 🔎 **Search** - Text search and AI-powered semantic search
14
- 🔐 **Secure** - Uses Personal Access Token (PAT) authentication
15
- 🤖 **AI-Ready** - Works with Claude Desktop, GitHub Copilot, and other MCP clients
16
-
17
- ## Installation
18
-
19
- ### Global Installation (Recommended)
20
-
21
- ```bash
22
- npm install -g @testkase/mcp-server
23
- ```
24
-
25
- ### Local Installation
26
-
27
- ```bash
28
- npm install @testkase/mcp-server
29
- ```
30
-
31
- ## Quick Start
32
-
33
- ### 1. Get Your PAT Token
34
-
35
- 1. Log in to [TestKase](https://apiqa.testkase.com)
36
- 2. Navigate to **Settings → Personal Access Tokens**
37
- 3. Click **"Generate New Token"**
38
- 4. Copy the token (starts with `xyz_`)
39
-
40
- ### 2. Configure Your AI Agent
41
-
42
- #### For Claude Desktop
43
-
44
- Edit your Claude config file:
45
- - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
46
- - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
47
-
48
- ```json
49
- {
50
- "mcpServers": {
51
- "testkase": {
52
- "command": "npx",
53
- "args": ["-y", "@testkase/mcp-server"],
54
- "env": {
55
- "TESTKASE_API_BASE_URL": "https://apiqa.testkase.com",
56
- "TESTKASE_PAT_TOKEN": "xyz_your_pat_token_here"
57
- }
58
- }
59
- }
60
- }
61
- ```
62
-
63
- #### For GitHub Copilot (VS Code)
64
-
65
- Edit your Copilot config file:
66
- - **Windows**: `%APPDATA%\Code\User\globalStorage\github.copilot\mcp.json`
67
- - **macOS**: `~/Library/Application Support/Code/User/globalStorage/github.copilot/mcp.json`
68
-
69
- ```json
70
- {
71
- "mcpServers": {
72
- "testkase": {
73
- "command": "npx",
74
- "args": ["-y", "@testkase/mcp-server"],
75
- "env": {
76
- "TESTKASE_API_BASE_URL": "https://apiqa.testkase.com",
77
- "TESTKASE_PAT_TOKEN": "xyz_your_pat_token_here"
78
- }
79
- }
80
- }
81
- }
82
- ```
83
-
84
- ### 3. Restart Your AI Agent
85
-
86
- - **Claude Desktop**: Close and reopen completely
87
- - **VS Code**: Restart VS Code
88
-
89
- ### 4. Start Using!
90
-
91
- Ask your AI agent:
92
- - "Get testcases for project PRJ-1030 in organization 1171"
93
- - "Show high priority testcases from project ABC-123"
94
- - "Find testcases containing 'login' in project XYZ-456"
95
-
96
- ## Available Tools (26 Total)
97
-
98
- ### Testcases (12 tools)
99
- - **`get_testcases`** - Retrieve testcases with filtering, pagination, and search
100
- - **`get_testcase_detail`** - Get detailed information about a specific testcase
101
- - **`get_testcase_history`** - View complete change history of a testcase
102
- - **`create_testcase`** - Create a new testcase with optional test steps
103
- - **`create_bulk_testcase`** - Create multiple testcases at once
104
- - **`update_testcase_field`** - Update specific fields for one or multiple testcases
105
- - **`delete_testcase`** - Delete single or multiple testcases
106
- - **`clone_testcase`** - Clone an existing testcase with all its steps
107
- - **`create_test_step`** - Create or update test steps for a testcase
108
- - **`delete_test_step`** - Delete test steps from a testcase
109
- - **`download_testcases`** - Download testcases as CSV file
110
- - **`import_testcases`** - Import testcases from CSV file
111
-
112
- ### Folders (4 tools)
113
- - **`get_folders`** - Get folder/section structure of a project
114
- - **`create_folder`** - Create a new folder in a project
115
- - **`delete_folder`** - Delete a folder and its subfolders
116
- - **`update_folder`** - Rename or update folder details
117
-
118
- ### Labels (2 tools)
119
- - **`get_labels`** - Get all labels/tags available in a project
120
- - **`create_label`** - Create new labels for a project
121
-
122
- ### Projects (1 tool)
123
- - **`get_my_projects`** - Get all projects the user has access to
124
-
125
- ### Auth & Organization (2 tools)
126
- - **`get_user_profile`** - Get current logged-in user profile information
127
- - **`get_organization`** - Get current user organization details
128
-
129
- ### Integration (3 tools)
130
- - **`get_mapped_issues`** - Get mapped issues for a specific testcase
131
- - **`search_issues`** - Search issues from integrated platforms (Jira, GitHub, GitLab)
132
- - **`map_issues`** - Map integration issues to a TestKase requirement/defect
133
-
134
- ### AI & Issues (2 tools)
135
- - **`generate_testcases`** - Generate testcases using AI from requirement text
136
- - **`create_issue`** - Create or update a requirement or defect issue
137
-
138
- ## Configuration
139
-
140
- ### Environment Variables
141
-
142
- - **`TESTKASE_API_BASE_URL`**: API base URL (default: `https://apiqa.testkase.com`)
143
- - **`TESTKASE_PAT_TOKEN`**: Your Personal Access Token (required)
144
-
145
- ### Using with Different Environments
146
-
147
- **Production:**
148
- ```json
149
- "env": {
150
- "TESTKASE_API_BASE_URL": "https://api.testkase.com",
151
- "TESTKASE_PAT_TOKEN": "xyz_your_token"
152
- }
153
- ```
154
-
155
- **Local Development:**
156
- ```json
157
- "env": {
158
- "TESTKASE_API_BASE_URL": "http://localhost:8080",
159
- "TESTKASE_PAT_TOKEN": "xyz_your_token"
160
- }
161
- ```
162
-
163
- ## Usage Examples
164
-
165
- ### Basic Queries
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
- ```
172
-
173
- ### Detailed Information
174
- ```
175
- "Get detailed information about testcase TC-123 in project PRJ-1030 org 1171"
176
- "Show me the history of changes for testcase TC-456 in project PRJ-1030 org 1171"
177
- ```
178
-
179
- ### Project Organization
180
- ```
181
- "Show me all folders in project PRJ-1030 org 1171"
182
- "List all labels available in project PRJ-1030 org 1171"
183
- "Get all issues/defects for project PRJ-1030 org 1171"
184
- ```
185
-
186
- ### User Projects
187
- ```
188
- "Show me all my projects"
189
- "List all projects I have access to"
190
- ```
191
-
192
- ## Troubleshooting
193
-
194
- ### "Authentication required" error
195
- - 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
198
-
199
- ### Tool not showing up
200
- 1. Restart your AI agent completely
201
- 2. Check the config file path is correct
202
- 3. Verify the JSON syntax is valid
203
-
204
- ### API connection issues
205
- - Check that the API base URL is correct
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
-
209
- ## Documentation
210
-
211
- - [TestKase Documentation](https://docs.testkase.com)
212
- - [Model Context Protocol](https://modelcontextprotocol.io)
213
-
214
- ## Support
215
-
216
- - 📧 Email: support@testkase.com
217
- - 🌐 Website: [testkase.com](https://testkase.com)
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
225
-
226
- ## License
227
-
228
- MIT © TestKase
229
-
1
+ <p align="center">
2
+ <a href="https://testkase.com">
3
+ <img src="https://testkase.com/logo.png" alt="TestKase" width="120" />
4
+ </a>
5
+ </p>
6
+
7
+ <h3 align="center">@testkase/mcp-server</h3>
8
+
9
+ <p align="center">
10
+ Official MCP server for <a href="https://testkase.com">TestKase</a> — connect your AI agent to a complete test management platform.
11
+ </p>
12
+
13
+ <p align="center">
14
+ <a href="https://www.npmjs.com/package/@testkase/mcp-server"><img src="https://img.shields.io/npm/v/@testkase/mcp-server.svg?style=flat-square" alt="npm version" /></a>
15
+ <a href="https://www.npmjs.com/package/@testkase/mcp-server"><img src="https://img.shields.io/npm/dm/@testkase/mcp-server.svg?style=flat-square" alt="npm downloads" /></a>
16
+ <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square" alt="MIT License" /></a>
17
+ </p>
18
+
19
+ ---
20
+
21
+ ## What is this?
22
+
23
+ This package gives AI agents — Claude Desktop, GitHub Copilot, Cursor, or any [MCP](https://modelcontextprotocol.io)-compatible client — full access to your TestKase projects. Your agent can create test cases, run test cycles, record execution results, and pull reports, all through natural language.
24
+
25
+ **11 tools. Zero config beyond a token. Works out of the box.**
26
+
27
+ ## Quick Start
28
+
29
+ ### 1. Get a PAT token
30
+
31
+ Log in to [TestKase](https://app.testkase.com) > **Settings** > **Personal Access Tokens** > **Generate New Token**
32
+
33
+ ### 2. Add to your AI agent
34
+
35
+ <details>
36
+ <summary><strong>Claude Desktop</strong></summary>
37
+
38
+ Edit your config file:
39
+ - **Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
40
+ - **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
41
+
42
+ ```json
43
+ {
44
+ "mcpServers": {
45
+ "testkase": {
46
+ "command": "npx",
47
+ "args": ["-y", "@testkase/mcp-server"],
48
+ "env": {
49
+ "TESTKASE_API_BASE_URL": "https://api.testkase.com",
50
+ "TESTKASE_PAT_TOKEN": "xyz_your_token_here"
51
+ }
52
+ }
53
+ }
54
+ }
55
+ ```
56
+ </details>
57
+
58
+ <details>
59
+ <summary><strong>GitHub Copilot (VS Code)</strong></summary>
60
+
61
+ Edit your config file:
62
+ - **Windows:** `%APPDATA%\Code\User\globalStorage\github.copilot\mcp.json`
63
+ - **macOS:** `~/Library/Application Support/Code/User/globalStorage/github.copilot/mcp.json`
64
+
65
+ ```json
66
+ {
67
+ "mcpServers": {
68
+ "testkase": {
69
+ "command": "npx",
70
+ "args": ["-y", "@testkase/mcp-server"],
71
+ "env": {
72
+ "TESTKASE_API_BASE_URL": "https://api.testkase.com",
73
+ "TESTKASE_PAT_TOKEN": "xyz_your_token_here"
74
+ }
75
+ }
76
+ }
77
+ }
78
+ ```
79
+ </details>
80
+
81
+ <details>
82
+ <summary><strong>Claude Code (CLI)</strong></summary>
83
+
84
+ ```bash
85
+ claude mcp add testkase -e TESTKASE_API_BASE_URL=https://api.testkase.com -e TESTKASE_PAT_TOKEN=xyz_your_token_here -- npx -y @testkase/mcp-server
86
+ ```
87
+ </details>
88
+
89
+ <details>
90
+ <summary><strong>Cursor</strong></summary>
91
+
92
+ Add to `.cursor/mcp.json` in your project root:
93
+
94
+ ```json
95
+ {
96
+ "mcpServers": {
97
+ "testkase": {
98
+ "command": "npx",
99
+ "args": ["-y", "@testkase/mcp-server"],
100
+ "env": {
101
+ "TESTKASE_API_BASE_URL": "https://api.testkase.com",
102
+ "TESTKASE_PAT_TOKEN": "xyz_your_token_here"
103
+ }
104
+ }
105
+ }
106
+ }
107
+ ```
108
+ </details>
109
+
110
+ ### 3. Restart your agent and start talking
111
+
112
+ ```
113
+ "List my projects"
114
+ "Create a login test case in PRJ-1001 with steps"
115
+ "Run TEST-1 as pass in cycle TCYCLE-5"
116
+ "Show me the execution summary for PRJ-1001"
117
+ ```
118
+
119
+ ---
120
+
121
+ ## Tools
122
+
123
+ | Tool | Description |
124
+ |------|-------------|
125
+ | `list_projects` | List all accessible projects |
126
+ | `get_project_structure` | Get folders, labels, members, and field options for a project |
127
+ | `search_testcases` | Search test cases with filters, sorting, and pagination |
128
+ | `get_testcase` | Get full test case details including steps |
129
+ | `manage_testcase` | Create, bulk create, update, or delete test cases |
130
+ | `manage_folder` | Create, rename, move, or delete folders (all sections) |
131
+ | `search_test_cycles` | Search test cycles with execution progress |
132
+ | `manage_test_cycle` | Full cycle lifecycle — CRUD, link/unlink/assign test cases |
133
+ | `execute_tests` | Record execution results (single or bulk) |
134
+ | `manage_test_plan` | Full plan lifecycle — CRUD, link/unlink cycles, view test cases |
135
+ | `get_report` | Pull from 40+ report types (see below) |
136
+
137
+ ### Reporting
138
+
139
+ `get_report` covers execution, coverage, trends, team, defect, and AI-powered report types:
140
+
141
+ | Category | Report Types |
142
+ |----------|-------------|
143
+ | **Execution** | `execution_summary`, `execution_by_cycle`, `execution_by_tester`, `execution_by_priority`, `execution_by_environment`, `execution_by_folder`, `execution_by_automation` |
144
+ | **Coverage** | `requirement_coverage`, `traceability_matrix`, `failed_requirements`, `uncovered_requirements`, `testcase_coverage`, `unlinked_testcases` |
145
+ | **Trends** | `execution_trend`, `execution_burnup`, `execution_burndown`, `test_creation`, `requirement_coverage_trend`, `execution_velocity` |
146
+ | **Comparison** | `cycle_comparison`, `created_vs_executed`, `scorecard_by_folder`, `scorecard_by_tester` |
147
+ | **Team** | `tester_workload`, `testcase_distribution`, `tester_effectiveness` |
148
+ | **Defects** | `defects_by_cycle`, `defects_by_tester`, `defects_by_folder`, `defect_hotspots` |
149
+ | **AI Insights** | `predictive_failure`, `smart_prioritization`, `testcase_quality`, `stale_tests`, `flaky_tests`, `suite_optimization` |
150
+ | **Risk & Release** | `release_readiness`, `risk_heatmap_folder`, `risk_heatmap_feature`, `requirement_risk_matrix`, `cycle_health`, `project_health` |
151
+
152
+ ---
153
+
154
+ ## Configuration
155
+
156
+ | Variable | Required | Default | Description |
157
+ |----------|----------|---------|-------------|
158
+ | `TESTKASE_PAT_TOKEN` | Yes | — | Personal Access Token (starts with `xyz_`) |
159
+ | `TESTKASE_API_BASE_URL` | No | `https://api.testkase.com` | API endpoint |
160
+
161
+ ---
162
+
163
+ ## Troubleshooting
164
+
165
+ | Problem | Solution |
166
+ |---------|----------|
167
+ | "Authentication required" | Verify your token starts with `xyz_` and hasn't expired |
168
+ | Tool not showing up | Restart your AI agent completely; check JSON syntax in config |
169
+ | API connection errors | Verify `TESTKASE_API_BASE_URL` is reachable |
170
+
171
+ ---
172
+
173
+ ## Links
174
+
175
+ - [TestKase](https://testkase.com) — Product website
176
+ - [Documentation](https://docs.testkase.com) — Full platform docs
177
+ - [MCP Protocol](https://modelcontextprotocol.io) — Model Context Protocol spec
178
+
179
+ ## License
180
+
181
+ MIT
182
+
183
+ ---
184
+
185
+ <p align="center">
186
+ Built by <a href="https://testkase.com">TestKase</a>
187
+ </p>