wopee-mcp 1.0.1
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 +441 -0
- package/LICENSE +200 -0
- package/QUICK_START.md +50 -0
- package/README.md +658 -0
- package/dist/config.d.ts +48 -0
- package/dist/config.js +165 -0
- package/dist/config.js.map +1 -0
- package/dist/graphql/client.d.ts +34 -0
- package/dist/graphql/client.js +75 -0
- package/dist/graphql/client.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +672 -0
- package/dist/index.js.map +1 -0
- package/dist/tools/wopee_dispatch_agent.d.ts +8 -0
- package/dist/tools/wopee_dispatch_agent.js +41 -0
- package/dist/tools/wopee_dispatch_agent.js.map +1 -0
- package/dist/tools/wopee_dispatch_analysis.d.ts +8 -0
- package/dist/tools/wopee_dispatch_analysis.js +50 -0
- package/dist/tools/wopee_dispatch_analysis.js.map +1 -0
- package/dist/tools/wopee_fetch_analysis_suites.d.ts +8 -0
- package/dist/tools/wopee_fetch_analysis_suites.js +81 -0
- package/dist/tools/wopee_fetch_analysis_suites.js.map +1 -0
- package/dist/tools/wopee_generate_app_context.d.ts +8 -0
- package/dist/tools/wopee_generate_app_context.js +62 -0
- package/dist/tools/wopee_generate_app_context.js.map +1 -0
- package/dist/tools/wopee_generate_general_user_stories.d.ts +8 -0
- package/dist/tools/wopee_generate_general_user_stories.js +62 -0
- package/dist/tools/wopee_generate_general_user_stories.js.map +1 -0
- package/dist/tools/wopee_generate_test_cases.d.ts +8 -0
- package/dist/tools/wopee_generate_test_cases.js +74 -0
- package/dist/tools/wopee_generate_test_cases.js.map +1 -0
- package/dist/tools/wopee_generate_user_stories.d.ts +8 -0
- package/dist/tools/wopee_generate_user_stories.js +74 -0
- package/dist/tools/wopee_generate_user_stories.js.map +1 -0
- package/dist/tools/wopee_get_app_context.d.ts +8 -0
- package/dist/tools/wopee_get_app_context.js +41 -0
- package/dist/tools/wopee_get_app_context.js.map +1 -0
- package/dist/tools/wopee_get_test_cases.d.ts +9 -0
- package/dist/tools/wopee_get_test_cases.js +43 -0
- package/dist/tools/wopee_get_test_cases.js.map +1 -0
- package/dist/tools/wopee_get_user_stories.d.ts +8 -0
- package/dist/tools/wopee_get_user_stories.js +41 -0
- package/dist/tools/wopee_get_user_stories.js.map +1 -0
- package/dist/types/index.d.ts +425 -0
- package/dist/types/index.js +143 -0
- package/dist/types/index.js.map +1 -0
- package/env.example +7 -0
- package/package.json +117 -0
package/INTEGRATION.md
ADDED
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
# VS Code & Cursor Integration Guide
|
|
2
|
+
|
|
3
|
+
This guide provides detailed instructions for integrating the Wopee.io MCP server with VS Code and Cursor editors.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
### One-Click Installation
|
|
8
|
+
|
|
9
|
+
**For both VS Code and Cursor:**
|
|
10
|
+
|
|
11
|
+
1. Open your editor
|
|
12
|
+
2. Press `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac)
|
|
13
|
+
3. Type "MCP: Install Server" and select it
|
|
14
|
+
4. Enter: `wopee-mcp`
|
|
15
|
+
5. Configure your API key when prompted
|
|
16
|
+
|
|
17
|
+
That's it! The Wopee MCP server is now ready to use.
|
|
18
|
+
|
|
19
|
+
## 🔐 Environment Configuration
|
|
20
|
+
|
|
21
|
+
**Recommended Approach: Use .env files**
|
|
22
|
+
|
|
23
|
+
The Wopee.io MCP server automatically loads configuration from `.env` files, making it more secure than hardcoding API keys in configuration files.
|
|
24
|
+
|
|
25
|
+
### Setting up .env file
|
|
26
|
+
|
|
27
|
+
1. **Create a .env file in your project root:**
|
|
28
|
+
```bash
|
|
29
|
+
# Copy the example file
|
|
30
|
+
cp .env.example .env
|
|
31
|
+
|
|
32
|
+
# Edit with your actual API key
|
|
33
|
+
nano .env
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
2. **Add your configuration:**
|
|
37
|
+
```bash
|
|
38
|
+
# Wopee API Configuration
|
|
39
|
+
WOPEE_API_KEY=your_actual_api_key_here
|
|
40
|
+
WOPEE_PROJECT_UUID=your_project_uuid_here
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The server will automatically load your `.env` file from the project root directory (where `package.json` is located).
|
|
44
|
+
|
|
45
|
+
## Prerequisites
|
|
46
|
+
|
|
47
|
+
Before starting, ensure you have:
|
|
48
|
+
|
|
49
|
+
- **VS Code** with MCP extension or **Cursor** (built-in MCP support)
|
|
50
|
+
- **Node.js 18+** installed
|
|
51
|
+
- **Wopee API key** from [wopee.io](https://wopee.io)
|
|
52
|
+
|
|
53
|
+
## VS Code Integration
|
|
54
|
+
|
|
55
|
+
### Installing the MCP Extension
|
|
56
|
+
|
|
57
|
+
If you don't have the MCP extension:
|
|
58
|
+
|
|
59
|
+
1. Open VS Code
|
|
60
|
+
2. Go to Extensions (`Ctrl+Shift+X` or `Cmd+Shift+X`)
|
|
61
|
+
3. Search for "MCP" or "Model Context Protocol"
|
|
62
|
+
4. Install the official MCP extension
|
|
63
|
+
|
|
64
|
+
### Method 1: One-Click Installation (Recommended)
|
|
65
|
+
|
|
66
|
+
1. **Open Command Palette**: `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac)
|
|
67
|
+
2. **Type**: `MCP: Install Server`
|
|
68
|
+
3. **Enter package name**: `wopee-mcp`
|
|
69
|
+
4. **Configure API key** when prompted
|
|
70
|
+
5. **Restart VS Code** if required
|
|
71
|
+
|
|
72
|
+
### Method 2: Manual Configuration
|
|
73
|
+
|
|
74
|
+
1. **Install globally**:
|
|
75
|
+
```bash
|
|
76
|
+
npm install -g wopee-mcp
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
2. **Open VS Code settings** (`Ctrl+,` or `Cmd+,`)
|
|
80
|
+
|
|
81
|
+
3. **Search for "MCP"** in settings
|
|
82
|
+
|
|
83
|
+
4. **Add server configuration**:
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"mcp.servers": {
|
|
87
|
+
"wopee": {
|
|
88
|
+
"command": "wopee-mcp",
|
|
89
|
+
"args": [],
|
|
90
|
+
"env": {}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
5. **Restart VS Code**
|
|
97
|
+
|
|
98
|
+
### Method 3: Workspace Configuration
|
|
99
|
+
|
|
100
|
+
For project-specific configuration, create `.vscode/settings.json`:
|
|
101
|
+
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"mcp.servers": {
|
|
105
|
+
"wopee": {
|
|
106
|
+
"command": "wopee-mcp",
|
|
107
|
+
"args": [],
|
|
108
|
+
"env": {}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Cursor Integration
|
|
115
|
+
|
|
116
|
+
### Method 1: One-Click Installation (Recommended)
|
|
117
|
+
|
|
118
|
+
1. **Open Command Palette**: `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac)
|
|
119
|
+
2. **Type**: `MCP: Install Server`
|
|
120
|
+
3. **Enter package name**: `wopee-mcp`
|
|
121
|
+
4. **Configure API key** when prompted
|
|
122
|
+
5. **Restart Cursor** if required
|
|
123
|
+
|
|
124
|
+
### Method 2: Manual Configuration
|
|
125
|
+
|
|
126
|
+
1. **Install globally**:
|
|
127
|
+
```bash
|
|
128
|
+
npm install -g wopee-mcp
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
2. **Open Cursor settings** (`Ctrl+,` or `Cmd+,`)
|
|
132
|
+
|
|
133
|
+
3. **Navigate to MCP settings** in the sidebar
|
|
134
|
+
|
|
135
|
+
4. **Add server configuration**:
|
|
136
|
+
```json
|
|
137
|
+
{
|
|
138
|
+
"mcp.servers": {
|
|
139
|
+
"wopee": {
|
|
140
|
+
"command": "wopee-mcp",
|
|
141
|
+
"args": [],
|
|
142
|
+
"env": {
|
|
143
|
+
"WOPEE_API_KEY": "your_api_key_here",
|
|
144
|
+
"WOPEE_PROJECT_UUID": "your_project_uuid_here",
|
|
145
|
+
"WOPEE_API_URL": "https://api.wopee.io/"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
5. **Restart Cursor**
|
|
153
|
+
|
|
154
|
+
## Using the Tools
|
|
155
|
+
|
|
156
|
+
Once configured, you can use Wopee tools in your chat interface:
|
|
157
|
+
|
|
158
|
+
### Available Tools
|
|
159
|
+
|
|
160
|
+
#### 1. Dispatch Analysis
|
|
161
|
+
```
|
|
162
|
+
@wopee wopee_dispatch_analysis
|
|
163
|
+
Suite Analysis Config:
|
|
164
|
+
- Username: testuser
|
|
165
|
+
- Password: testpass
|
|
166
|
+
- Cookies Preference: ACCEPT_ALL
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
#### 2. Dispatch Agent
|
|
170
|
+
```
|
|
171
|
+
@wopee wopee_dispatch_agent
|
|
172
|
+
Analysis Identifier: analysis-123
|
|
173
|
+
Test Cases: [{"testCaseId": "test-1", "userStoryId": "story-1"}]
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
#### 3. Generate App Context
|
|
177
|
+
```
|
|
178
|
+
@wopee wopee_generate_app_context
|
|
179
|
+
Suite UUID: suite-123
|
|
180
|
+
Extra Prompt: Focus on user authentication flows
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
#### 4. Generate General User Stories
|
|
184
|
+
```
|
|
185
|
+
@wopee wopee_generate_general_user_stories
|
|
186
|
+
Suite UUID: suite-123
|
|
187
|
+
Extra Prompt: Include high-level business requirements
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
#### 5. Generate User Stories
|
|
191
|
+
```
|
|
192
|
+
@wopee wopee_generate_user_stories
|
|
193
|
+
Suite UUID: suite-123
|
|
194
|
+
Extra Prompt: Include edge cases and error scenarios
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
#### 6. Generate Test Cases
|
|
198
|
+
```
|
|
199
|
+
@wopee wopee_generate_test_cases
|
|
200
|
+
Suite UUID: suite-123
|
|
201
|
+
Extra Prompt: Generate comprehensive test coverage
|
|
202
|
+
Selected User Stories: ["story-1", "story-2"]
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
#### 7. Get App Context
|
|
206
|
+
```
|
|
207
|
+
@wopee wopee_get_app_context
|
|
208
|
+
Suite UUID: suite-123
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
#### 8. Get User Stories
|
|
212
|
+
```
|
|
213
|
+
@wopee wopee_get_user_stories
|
|
214
|
+
Suite UUID: suite-123
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
#### 9. Get Test Cases
|
|
218
|
+
```
|
|
219
|
+
@wopee wopee_get_test_cases
|
|
220
|
+
Suite UUID: suite-123
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
#### 10. Fetch Analysis Suites
|
|
224
|
+
```
|
|
225
|
+
@wopee wopee_fetch_analysis_suites
|
|
226
|
+
Project UUID: project-123
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Example Workflow
|
|
230
|
+
|
|
231
|
+
1. **Start with analysis**:
|
|
232
|
+
```
|
|
233
|
+
@wopee wopee_dispatch_analysis
|
|
234
|
+
Suite Analysis Config:
|
|
235
|
+
- Username: testuser
|
|
236
|
+
- Password: testpass
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
2. **Generate app context**:
|
|
240
|
+
```
|
|
241
|
+
@wopee wopee_generate_app_context
|
|
242
|
+
Suite UUID: [from previous step]
|
|
243
|
+
Extra Prompt: Focus on user registration and login flows
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
3. **Generate general user stories**:
|
|
247
|
+
```
|
|
248
|
+
@wopee wopee_generate_general_user_stories
|
|
249
|
+
Suite UUID: [from step 1]
|
|
250
|
+
Extra Prompt: Include high-level business requirements
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
4. **Create detailed user stories**:
|
|
254
|
+
```
|
|
255
|
+
@wopee wopee_generate_user_stories
|
|
256
|
+
Suite UUID: [from step 1]
|
|
257
|
+
Extra Prompt: Include error handling and edge cases
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
5. **Generate test cases**:
|
|
261
|
+
```
|
|
262
|
+
@wopee wopee_generate_test_cases
|
|
263
|
+
Suite UUID: [from step 1]
|
|
264
|
+
Extra Prompt: Generate comprehensive test coverage
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
6. **Execute tests**:
|
|
268
|
+
```
|
|
269
|
+
@wopee wopee_dispatch_agent
|
|
270
|
+
Suite UUID: [from step 1]
|
|
271
|
+
Analysis Identifier: [from step 1]
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
## Troubleshooting
|
|
275
|
+
|
|
276
|
+
### Common Issues
|
|
277
|
+
|
|
278
|
+
#### 1. "Command not found" Error
|
|
279
|
+
|
|
280
|
+
**Problem**: The `wopee-mcp` command is not found.
|
|
281
|
+
|
|
282
|
+
**Solutions**:
|
|
283
|
+
- Install globally: `npm install -g wopee-mcp`
|
|
284
|
+
- Check Node.js is in PATH: `node --version`
|
|
285
|
+
- Restart your terminal/editor
|
|
286
|
+
|
|
287
|
+
#### 2. "API key not configured" Error
|
|
288
|
+
|
|
289
|
+
**Problem**: API key is missing or invalid.
|
|
290
|
+
|
|
291
|
+
**Solutions**:
|
|
292
|
+
- Verify API key set in .env file
|
|
293
|
+
- Check environment variables are set correctly
|
|
294
|
+
- Ensure API key is valid at [wopee.io](https://wopee.io)
|
|
295
|
+
|
|
296
|
+
#### 3. "Connection failed" Error
|
|
297
|
+
|
|
298
|
+
**Problem**: Cannot connect to Wopee API.
|
|
299
|
+
|
|
300
|
+
**Solutions**:
|
|
301
|
+
- Check internet connection
|
|
302
|
+
- Verify API URL is correct: `https://api.wopee.io/`
|
|
303
|
+
- Test API key validity
|
|
304
|
+
- Check firewall/proxy settings
|
|
305
|
+
|
|
306
|
+
#### 4. Tools Not Appearing
|
|
307
|
+
|
|
308
|
+
**Problem**: Wopee tools don't show up in chat interface.
|
|
309
|
+
|
|
310
|
+
**Solutions**:
|
|
311
|
+
- Restart your editor (VS Code/Cursor)
|
|
312
|
+
- Check MCP server logs in output panel
|
|
313
|
+
- Verify server configuration
|
|
314
|
+
- Run `wopee-mcp --version` to test installation
|
|
315
|
+
|
|
316
|
+
#### 5. Permission Errors
|
|
317
|
+
|
|
318
|
+
**Problem**: Permission denied when installing or running.
|
|
319
|
+
|
|
320
|
+
**Solutions**:
|
|
321
|
+
- Use `sudo` for global installation (Linux/Mac)
|
|
322
|
+
- Check file permissions
|
|
323
|
+
- Run as administrator (Windows)
|
|
324
|
+
|
|
325
|
+
### Debugging Steps
|
|
326
|
+
|
|
327
|
+
1. **Check installation**:
|
|
328
|
+
```bash
|
|
329
|
+
wopee-mcp --version
|
|
330
|
+
wopee-mcp --help
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
2. **Test API connection**:
|
|
334
|
+
```bash
|
|
335
|
+
curl -H "api_key: YOUR_API_KEY" https://api.wopee.io/
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
3. **Check MCP server logs**:
|
|
339
|
+
- Open Output panel in VS Code/Cursor
|
|
340
|
+
- Select "MCP" from dropdown
|
|
341
|
+
- Look for error messages
|
|
342
|
+
|
|
343
|
+
4. **Verify configuration**:
|
|
344
|
+
- Check MCP server settings
|
|
345
|
+
- Ensure environment variables are set
|
|
346
|
+
- Validate JSON configuration syntax
|
|
347
|
+
|
|
348
|
+
### Getting Help
|
|
349
|
+
|
|
350
|
+
- **Check logs**: Look in the MCP server output panel
|
|
351
|
+
- **Verify installation**: Run `wopee-mcp --help` in terminal
|
|
352
|
+
- **Test connection**: Use a simple tool like `wopee_dispatch_analysis`
|
|
353
|
+
- **Community support**: Check the repository issues
|
|
354
|
+
- **Documentation**: Refer to the main README.md
|
|
355
|
+
|
|
356
|
+
## Advanced Configuration
|
|
357
|
+
|
|
358
|
+
### Custom Environment Variables
|
|
359
|
+
|
|
360
|
+
You can set additional environment variables:
|
|
361
|
+
|
|
362
|
+
```json
|
|
363
|
+
{
|
|
364
|
+
"mcp.servers": {
|
|
365
|
+
"wopee": {
|
|
366
|
+
"command": "wopee-mcp",
|
|
367
|
+
"args": [],
|
|
368
|
+
"env": {
|
|
369
|
+
"WOPEE_API_KEY": "your_api_key_here",
|
|
370
|
+
"WOPEE_PROJECT_UUID": "your_project_uuid_here",
|
|
371
|
+
"WOPEE_API_URL": "https://api.wopee.io/",
|
|
372
|
+
"NODE_ENV": "production",
|
|
373
|
+
"DEBUG": "wopee:*"
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
### Multiple Server Instances
|
|
381
|
+
|
|
382
|
+
You can run multiple instances with different configurations:
|
|
383
|
+
|
|
384
|
+
```json
|
|
385
|
+
{
|
|
386
|
+
"mcp.servers": {
|
|
387
|
+
"wopee-prod": {
|
|
388
|
+
"command": "wopee-mcp",
|
|
389
|
+
"args": [],
|
|
390
|
+
"env": {
|
|
391
|
+
"WOPEE_API_KEY": "prod_api_key",
|
|
392
|
+
"WOPEE_API_URL": "https://api.wopee.io/"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"wopee-dev": {
|
|
396
|
+
"command": "wopee-mcp",
|
|
397
|
+
"args": [],
|
|
398
|
+
"env": {
|
|
399
|
+
"WOPEE_API_KEY": "dev_api_key",
|
|
400
|
+
"WOPEE_API_URL": "https://api.dev.wopee.io/"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
### Custom Arguments
|
|
408
|
+
|
|
409
|
+
You can pass custom arguments to the server:
|
|
410
|
+
|
|
411
|
+
```json
|
|
412
|
+
{
|
|
413
|
+
"mcp.servers": {
|
|
414
|
+
"wopee": {
|
|
415
|
+
"command": "wopee-mcp",
|
|
416
|
+
"args": ["--verbose", "--debug"],
|
|
417
|
+
"env": {
|
|
418
|
+
"WOPEE_API_KEY": "your_api_key_here"
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
## Best Practices
|
|
426
|
+
|
|
427
|
+
1. **Use environment variables** for sensitive data like API keys
|
|
428
|
+
2. **Test with dry-run** before using in production
|
|
429
|
+
3. **Keep API keys secure** and don't commit them to version control
|
|
430
|
+
4. **Use workspace-specific** configurations for different projects
|
|
431
|
+
5. **Monitor logs** for debugging and performance insights
|
|
432
|
+
6. **Update regularly** to get the latest features and fixes
|
|
433
|
+
|
|
434
|
+
## Support
|
|
435
|
+
|
|
436
|
+
For additional help:
|
|
437
|
+
|
|
438
|
+
- **Documentation**: Check the main README.md
|
|
439
|
+
- **Issues**: Create an issue in the repository
|
|
440
|
+
- **Community**: Join the Wopee community discussions
|
|
441
|
+
- **Email**: Contact support at [help@wopee.io](mailto:help@wopee.io)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity granting the License.
|
|
13
|
+
|
|
14
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
15
|
+
other entities that control, are controlled by, or are under common
|
|
16
|
+
control with that entity. For the purposes of this definition,
|
|
17
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
18
|
+
direction or management of such entity, whether by contract or
|
|
19
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
20
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
21
|
+
|
|
22
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
23
|
+
exercising permissions granted by this License.
|
|
24
|
+
|
|
25
|
+
"Source" shall mean the preferred form for making modifications,
|
|
26
|
+
including but not limited to software source code, documentation
|
|
27
|
+
source, and configuration files.
|
|
28
|
+
|
|
29
|
+
"Object" shall mean any form resulting from mechanical
|
|
30
|
+
transformation or translation of a Source form, including but
|
|
31
|
+
not limited to compiled object code, generated documentation,
|
|
32
|
+
and conversions to other media types.
|
|
33
|
+
|
|
34
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
35
|
+
Object form, made available under the License, as indicated by a
|
|
36
|
+
copyright notice that is included in or attached to the work
|
|
37
|
+
(which shall not include communications that are clearly marked or
|
|
38
|
+
otherwise designated in writing by the copyright owner as "Not a Work").
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based upon (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and derivative works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control
|
|
57
|
+
systems, and issue tracking systems that are managed by, or on behalf
|
|
58
|
+
of, the Licensor for the purpose of discussing and improving the Work,
|
|
59
|
+
but excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Work".
|
|
61
|
+
|
|
62
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
63
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
64
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
65
|
+
copyright license to use, reproduce, modify, merge, publish,
|
|
66
|
+
distribute, sublicense, and/or sell copies of the Work, and to
|
|
67
|
+
permit persons to whom the Work is furnished to do so, subject to
|
|
68
|
+
the following conditions:
|
|
69
|
+
|
|
70
|
+
The above copyright notice and this permission notice shall be
|
|
71
|
+
included in all copies or substantial portions of the Work.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright notice to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Support. You may choose to offer, and to
|
|
166
|
+
charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or support.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
178
|
+
|
|
179
|
+
To apply the Apache License to your work, attach the following
|
|
180
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
181
|
+
replaced with your own identifying information. (Don't include
|
|
182
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
183
|
+
comment syntax for the file format. We also recommend that a
|
|
184
|
+
file or class name and description of purpose be included on the
|
|
185
|
+
same "printed page" as the copyright notice for easier
|
|
186
|
+
identification within third-party archives.
|
|
187
|
+
|
|
188
|
+
Copyright 2024 Wopee Labs
|
|
189
|
+
|
|
190
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
191
|
+
you may not use this file except in compliance with the License.
|
|
192
|
+
You may obtain a copy of the License at
|
|
193
|
+
|
|
194
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
195
|
+
|
|
196
|
+
Unless required by applicable law or agreed to in writing, software
|
|
197
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
198
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
199
|
+
See the License for the specific language governing permissions and
|
|
200
|
+
limitations under the License.
|
package/QUICK_START.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Quick Start Guide
|
|
2
|
+
|
|
3
|
+
## 🚀 One-Click Installation
|
|
4
|
+
|
|
5
|
+
### VS Code / Cursor
|
|
6
|
+
1. `Ctrl+Shift+P` → "MCP: Install Server"
|
|
7
|
+
2. Enter: `wopee-mcp`
|
|
8
|
+
3. Add your API key into .env file
|
|
9
|
+
|
|
10
|
+
## 🛠 Available Tools
|
|
11
|
+
|
|
12
|
+
| Tool | Purpose | Example |
|
|
13
|
+
|------|---------|---------|
|
|
14
|
+
| `wopee_dispatch_analysis` | Start app analysis | `@wopee wopee_dispatch_analysis Project UUID: project-123` |
|
|
15
|
+
| `wopee_dispatch_agent` | Execute tests | `@wopee wopee_dispatch_agent Project UUID: project-123 Suite UUID: suite-123` |
|
|
16
|
+
| `wopee_generate_app_context` | Generate app context | `@wopee wopee_generate_app_context Project UUID: project-123 Suite UUID: suite-123` |
|
|
17
|
+
| `wopee_generate_general_user_stories` | Generate general user stories | `@wopee wopee_generate_general_user_stories Project UUID: project-123 Suite UUID: suite-123` |
|
|
18
|
+
| `wopee_generate_user_stories` | Generate detailed user stories | `@wopee wopee_generate_user_stories Project UUID: project-123 Suite UUID: suite-123` |
|
|
19
|
+
| `wopee_generate_test_cases` | Generate test cases | `@wopee wopee_generate_test_cases Project UUID: project-123 Suite UUID: suite-123` |
|
|
20
|
+
| `wopee_get_app_context` | Get existing app context | `@wopee wopee_get_app_context Project UUID: project-123 Suite UUID: suite-123` |
|
|
21
|
+
| `wopee_get_user_stories` | Get existing user stories | `@wopee wopee_get_user_stories Project UUID: project-123 Suite UUID: suite-123` |
|
|
22
|
+
| `wopee_get_test_cases` | Get existing test cases | `@wopee wopee_get_test_cases Project UUID: project-123 Suite UUID: suite-123` |
|
|
23
|
+
| `wopee_fetch_analysis_suites` | Fetch all analysis suites | `@wopee wopee_fetch_analysis_suites Project UUID: project-123` |
|
|
24
|
+
|
|
25
|
+
## 🔧 Manual Installation
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install -g wopee-mcp
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## ⚙️ Configuration
|
|
32
|
+
|
|
33
|
+
Set environment variables:
|
|
34
|
+
```bash
|
|
35
|
+
export WOPEE_API_KEY=your_api_key_here
|
|
36
|
+
export WOPEE_PROJECT_UUID=your_project_uuid_here
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 🆘 Troubleshooting
|
|
40
|
+
|
|
41
|
+
- **Command not found**: `npm install -g wopee-mcp`
|
|
42
|
+
- **API key error**: Check environment variables
|
|
43
|
+
- **Connection failed**: Verify internet and API key
|
|
44
|
+
- **Tools not showing**: Restart editor
|
|
45
|
+
|
|
46
|
+
## 📚 More Info
|
|
47
|
+
|
|
48
|
+
- [Full Integration Guide](INTEGRATION.md)
|
|
49
|
+
- [Main Documentation](README.md)
|
|
50
|
+
- [Publishing Guide](PUBLISHING.md)
|