wopee-mcp 1.0.4 → 1.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/INTEGRATION.md +3 -0
- package/QUICK_START.md +3 -0
- package/README.md +53 -8
- package/package.json +1 -1
package/INTEGRATION.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# VS Code & Cursor Integration Guide
|
|
2
2
|
|
|
3
|
+
[](#vs-code-integration)
|
|
4
|
+
[](#cursor-integration)
|
|
5
|
+
|
|
3
6
|
This guide provides detailed instructions for integrating the Wopee.io MCP server with VS Code and Cursor editors.
|
|
4
7
|
|
|
5
8
|
> **Note:** For general installation and usage, see [README.md](README.md). This guide focuses on IDE-specific setup and advanced configuration.
|
package/QUICK_START.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Quick Start Guide
|
|
2
2
|
|
|
3
|
+
[](INTEGRATION.md#vs-code-integration)
|
|
4
|
+
[](INTEGRATION.md#cursor-integration)
|
|
5
|
+
|
|
3
6
|
## 🚀 One-Click Installation
|
|
4
7
|
|
|
5
8
|
### VS Code / Cursor
|
package/README.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
A Model Context Protocol (MCP) server for integrating with the Wopee testing platform. This server provides tools for dispatching analysis, generating app context, user stories, test cases, and running test executions through GraphQL API calls.
|
|
4
4
|
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
[](INTEGRATION.md#vs-code-integration)
|
|
11
|
+
[](INTEGRATION.md#cursor-integration)
|
|
12
|
+
|
|
13
|
+
[](vscode:mcp/install?%7B%22name%22%3A%22playwright%22%2C%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22%40playwright%2Fmcp%40latest%22%5D%7D)
|
|
14
|
+
|
|
5
15
|
## Features
|
|
6
16
|
|
|
7
17
|
- **Dispatch Analysis**: Start analysis of web applications to understand their structure and behavior
|
|
@@ -22,6 +32,7 @@ See [INTEGRATION.md](INTEGRATION.md) for detailed installation instructions for
|
|
|
22
32
|
### Quick Install
|
|
23
33
|
|
|
24
34
|
**One-Click Installation (Recommended):**
|
|
35
|
+
|
|
25
36
|
1. Open VS Code or Cursor
|
|
26
37
|
2. Press `Ctrl+Shift+P` (or `Cmd+Shift+P` on Mac)
|
|
27
38
|
3. Type "MCP: Install Server" and select it
|
|
@@ -29,6 +40,7 @@ See [INTEGRATION.md](INTEGRATION.md) for detailed installation instructions for
|
|
|
29
40
|
5. Configure your API key when prompted
|
|
30
41
|
|
|
31
42
|
**Manual Installation:**
|
|
43
|
+
|
|
32
44
|
```bash
|
|
33
45
|
npm install -g wopee-mcp
|
|
34
46
|
```
|
|
@@ -58,6 +70,7 @@ Before using the Wopee MCP server, ensure you have:
|
|
|
58
70
|
For detailed integration instructions, see [INTEGRATION.md](INTEGRATION.md).
|
|
59
71
|
|
|
60
72
|
**Quick Setup:**
|
|
73
|
+
|
|
61
74
|
- VS Code: Install MCP extension, then use one-click installation
|
|
62
75
|
- Cursor: Built-in MCP support, use one-click installation
|
|
63
76
|
- Both: The server automatically loads `.env` files from your project root
|
|
@@ -67,6 +80,7 @@ For detailed integration instructions, see [INTEGRATION.md](INTEGRATION.md).
|
|
|
67
80
|
Once configured, you can use the Wopee tools in your chat interface:
|
|
68
81
|
|
|
69
82
|
#### Dispatch Analysis
|
|
83
|
+
|
|
70
84
|
```
|
|
71
85
|
@wopee wopee_dispatch_analysis
|
|
72
86
|
Project UUID: project-123
|
|
@@ -79,6 +93,7 @@ Suite Analysis Config:
|
|
|
79
93
|
```
|
|
80
94
|
|
|
81
95
|
#### Dispatch Agent
|
|
96
|
+
|
|
82
97
|
```
|
|
83
98
|
@wopee wopee_dispatch_agent
|
|
84
99
|
Project UUID: project-123
|
|
@@ -88,6 +103,7 @@ Test Cases: [{"testCaseId": "test-1", "userStoryId": "story-1"}]
|
|
|
88
103
|
```
|
|
89
104
|
|
|
90
105
|
#### Generate App Context
|
|
106
|
+
|
|
91
107
|
```
|
|
92
108
|
@wopee wopee_generate_app_context
|
|
93
109
|
Project UUID: project-123
|
|
@@ -96,6 +112,7 @@ Extra Prompt: Focus on user authentication flows
|
|
|
96
112
|
```
|
|
97
113
|
|
|
98
114
|
#### Generate General User Stories
|
|
115
|
+
|
|
99
116
|
```
|
|
100
117
|
@wopee wopee_generate_general_user_stories
|
|
101
118
|
Project UUID: project-123
|
|
@@ -104,6 +121,7 @@ Extra Prompt: Include high-level business requirements
|
|
|
104
121
|
```
|
|
105
122
|
|
|
106
123
|
#### Generate User Stories
|
|
124
|
+
|
|
107
125
|
```
|
|
108
126
|
@wopee wopee_generate_user_stories
|
|
109
127
|
Project UUID: project-123
|
|
@@ -112,6 +130,7 @@ Extra Prompt: Include edge cases and error scenarios
|
|
|
112
130
|
```
|
|
113
131
|
|
|
114
132
|
#### Generate Test Cases
|
|
133
|
+
|
|
115
134
|
```
|
|
116
135
|
@wopee wopee_generate_test_cases
|
|
117
136
|
Project UUID: project-123
|
|
@@ -121,6 +140,7 @@ Selected User Stories: ["story-1", "story-2"]
|
|
|
121
140
|
```
|
|
122
141
|
|
|
123
142
|
#### Get App Context
|
|
143
|
+
|
|
124
144
|
```
|
|
125
145
|
@wopee wopee_get_app_context
|
|
126
146
|
Project UUID: project-123
|
|
@@ -128,6 +148,7 @@ Suite UUID: suite-123
|
|
|
128
148
|
```
|
|
129
149
|
|
|
130
150
|
#### Get User Stories
|
|
151
|
+
|
|
131
152
|
```
|
|
132
153
|
@wopee wopee_get_user_stories
|
|
133
154
|
Project UUID: project-123
|
|
@@ -135,6 +156,7 @@ Suite UUID: suite-123
|
|
|
135
156
|
```
|
|
136
157
|
|
|
137
158
|
#### Get Test Cases
|
|
159
|
+
|
|
138
160
|
```
|
|
139
161
|
@wopee wopee_get_test_cases
|
|
140
162
|
Project UUID: project-123
|
|
@@ -142,6 +164,7 @@ Suite UUID: suite-123
|
|
|
142
164
|
```
|
|
143
165
|
|
|
144
166
|
#### Fetch Analysis Suites
|
|
167
|
+
|
|
145
168
|
```
|
|
146
169
|
@wopee wopee_fetch_analysis_suites
|
|
147
170
|
Project UUID: project-123
|
|
@@ -154,14 +177,17 @@ Returns an array of analysis suites with detailed information including suite UU
|
|
|
154
177
|
#### Common Issues
|
|
155
178
|
|
|
156
179
|
1. **"Command not found" error**:
|
|
180
|
+
|
|
157
181
|
- Ensure the package is installed globally: `npm install -g wopee-mcp`
|
|
158
182
|
- Check that Node.js is in your PATH
|
|
159
183
|
|
|
160
184
|
2. **"API key not configured" error**:
|
|
185
|
+
|
|
161
186
|
- Verify your API key is set in the environment variables
|
|
162
187
|
- Check the MCP server configuration in VS Code/Cursor settings
|
|
163
188
|
|
|
164
189
|
3. **"Connection failed" error**:
|
|
190
|
+
|
|
165
191
|
- Verify your internet connection
|
|
166
192
|
- Check if the Wopee API URL is correct
|
|
167
193
|
- Ensure your API key is valid
|
|
@@ -192,11 +218,13 @@ The server loads configuration from a `.env` file in the project root directory
|
|
|
192
218
|
### Setting up .env file
|
|
193
219
|
|
|
194
220
|
1. **Copy the example file:**
|
|
221
|
+
|
|
195
222
|
```bash
|
|
196
223
|
cp env.example .env
|
|
197
224
|
```
|
|
198
225
|
|
|
199
226
|
2. **Edit the .env file in the project root:**
|
|
227
|
+
|
|
200
228
|
```bash
|
|
201
229
|
# Wopee API Configuration
|
|
202
230
|
WOPEE_API_KEY=your_actual_api_key_here
|
|
@@ -205,14 +233,13 @@ The server loads configuration from a `.env` file in the project root directory
|
|
|
205
233
|
```
|
|
206
234
|
|
|
207
235
|
3. **For MCP integration, update your `mcp.json`:**
|
|
236
|
+
|
|
208
237
|
```json
|
|
209
238
|
{
|
|
210
239
|
"mcpServers": {
|
|
211
240
|
"wopee": {
|
|
212
241
|
"command": "npx",
|
|
213
|
-
"args": [
|
|
214
|
-
"wopee-mcp@latest"
|
|
215
|
-
],
|
|
242
|
+
"args": ["wopee-mcp@latest"],
|
|
216
243
|
"env": {}
|
|
217
244
|
}
|
|
218
245
|
}
|
|
@@ -226,6 +253,7 @@ The server loads configuration from a `.env` file in the project root directory
|
|
|
226
253
|
### Development
|
|
227
254
|
|
|
228
255
|
Run the server in development mode:
|
|
256
|
+
|
|
229
257
|
```bash
|
|
230
258
|
npm run dev
|
|
231
259
|
```
|
|
@@ -233,6 +261,7 @@ npm run dev
|
|
|
233
261
|
### Production
|
|
234
262
|
|
|
235
263
|
Build and run the server:
|
|
264
|
+
|
|
236
265
|
```bash
|
|
237
266
|
npm run build
|
|
238
267
|
npm start
|
|
@@ -241,16 +270,19 @@ npm start
|
|
|
241
270
|
### Testing
|
|
242
271
|
|
|
243
272
|
Run the test suite:
|
|
273
|
+
|
|
244
274
|
```bash
|
|
245
275
|
npm test
|
|
246
276
|
```
|
|
247
277
|
|
|
248
278
|
Run tests in watch mode:
|
|
279
|
+
|
|
249
280
|
```bash
|
|
250
281
|
npm run test:watch
|
|
251
282
|
```
|
|
252
283
|
|
|
253
284
|
Run tests with coverage:
|
|
285
|
+
|
|
254
286
|
```bash
|
|
255
287
|
npm run test:coverage
|
|
256
288
|
```
|
|
@@ -260,11 +292,13 @@ npm run test:coverage
|
|
|
260
292
|
#### Building the Package
|
|
261
293
|
|
|
262
294
|
Clean build (removes dist and rebuilds):
|
|
295
|
+
|
|
263
296
|
```bash
|
|
264
297
|
npm run build:clean
|
|
265
298
|
```
|
|
266
299
|
|
|
267
300
|
Validate the package:
|
|
301
|
+
|
|
268
302
|
```bash
|
|
269
303
|
npm run validate
|
|
270
304
|
```
|
|
@@ -272,6 +306,7 @@ npm run validate
|
|
|
272
306
|
#### Publishing to npm
|
|
273
307
|
|
|
274
308
|
**Prerequisites:**
|
|
309
|
+
|
|
275
310
|
1. Create an npm account at [npmjs.com](https://www.npmjs.com)
|
|
276
311
|
2. Login to npm: `npm login`
|
|
277
312
|
3. Ensure you have publish permissions for the package
|
|
@@ -279,31 +314,35 @@ npm run validate
|
|
|
279
314
|
**Publishing Workflow:**
|
|
280
315
|
|
|
281
316
|
1. **Prepare for release:**
|
|
317
|
+
|
|
282
318
|
```bash
|
|
283
319
|
./scripts/prepare-release.sh
|
|
284
320
|
```
|
|
285
321
|
|
|
286
322
|
2. **Publish the package:**
|
|
323
|
+
|
|
287
324
|
```bash
|
|
288
325
|
./scripts/publish.sh
|
|
289
326
|
```
|
|
290
327
|
|
|
291
328
|
3. **Or use npm scripts directly:**
|
|
329
|
+
|
|
292
330
|
```bash
|
|
293
331
|
# Dry run (test without publishing)
|
|
294
332
|
npm run publish:dry-run
|
|
295
|
-
|
|
333
|
+
|
|
296
334
|
# Publish patch version (1.0.0 -> 1.0.1)
|
|
297
335
|
npm run publish:patch
|
|
298
|
-
|
|
336
|
+
|
|
299
337
|
# Publish minor version (1.0.0 -> 1.1.0)
|
|
300
338
|
npm run publish:minor
|
|
301
|
-
|
|
339
|
+
|
|
302
340
|
# Publish major version (1.0.0 -> 2.0.0)
|
|
303
341
|
npm run publish:major
|
|
304
342
|
```
|
|
305
343
|
|
|
306
344
|
**Manual Publishing:**
|
|
345
|
+
|
|
307
346
|
```bash
|
|
308
347
|
# 1. Update version
|
|
309
348
|
npm version patch # or minor, major
|
|
@@ -317,6 +356,7 @@ npm publish
|
|
|
317
356
|
For detailed usage examples, see the [Usage Examples](#using-the-tools) section above and [EXAMPLES.md](EXAMPLES.md).
|
|
318
357
|
|
|
319
358
|
All tools require a `projectUuid` parameter. You can either:
|
|
359
|
+
|
|
320
360
|
- Pass `projectUuid` as a parameter to each tool call, or
|
|
321
361
|
- Set `WOPEE_PROJECT_UUID` in your `.env` file (tools will use it if not provided as a parameter)
|
|
322
362
|
|
|
@@ -342,7 +382,9 @@ All tools return responses in the following format:
|
|
|
342
382
|
```json
|
|
343
383
|
{
|
|
344
384
|
"success": true,
|
|
345
|
-
"data": {
|
|
385
|
+
"data": {
|
|
386
|
+
/* tool-specific data */
|
|
387
|
+
},
|
|
346
388
|
"message": "Success message",
|
|
347
389
|
"error": "Error message (only present if success is false)"
|
|
348
390
|
}
|
|
@@ -351,6 +393,7 @@ All tools return responses in the following format:
|
|
|
351
393
|
## Error Handling
|
|
352
394
|
|
|
353
395
|
The server provides detailed error messages for:
|
|
396
|
+
|
|
354
397
|
- Invalid parameters
|
|
355
398
|
- GraphQL API errors
|
|
356
399
|
- Network connectivity issues
|
|
@@ -400,6 +443,7 @@ tests/
|
|
|
400
443
|
### Code Quality
|
|
401
444
|
|
|
402
445
|
The project includes:
|
|
446
|
+
|
|
403
447
|
- TypeScript for type safety
|
|
404
448
|
- ESLint for code linting
|
|
405
449
|
- Jest for testing
|
|
@@ -437,6 +481,7 @@ See [AUTOMATION.md](AUTOMATION.md) for detailed information about the automation
|
|
|
437
481
|
To publish a new version:
|
|
438
482
|
|
|
439
483
|
1. **Automatic (recommended):**
|
|
484
|
+
|
|
440
485
|
```bash
|
|
441
486
|
git tag v1.0.0
|
|
442
487
|
git push origin v1.0.0
|
|
@@ -450,4 +495,4 @@ To publish a new version:
|
|
|
450
495
|
|
|
451
496
|
## Support
|
|
452
497
|
|
|
453
|
-
For issues and questions, please create an issue in the repository.
|
|
498
|
+
For issues and questions, please create an issue in the repository.
|