wopee-mcp 1.1.1 → 1.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.
Files changed (48) hide show
  1. package/package.json +25 -100
  2. package/INTEGRATION.md +0 -361
  3. package/LICENSE +0 -200
  4. package/QUICK_START.md +0 -53
  5. package/README.md +0 -498
  6. package/dist/config.d.ts +0 -48
  7. package/dist/config.js +0 -164
  8. package/dist/config.js.map +0 -1
  9. package/dist/graphql/client.d.ts +0 -34
  10. package/dist/graphql/client.js +0 -75
  11. package/dist/graphql/client.js.map +0 -1
  12. package/dist/index.d.ts +0 -2
  13. package/dist/index.js +0 -670
  14. package/dist/index.js.map +0 -1
  15. package/dist/tools/wopee_dispatch_agent.d.ts +0 -8
  16. package/dist/tools/wopee_dispatch_agent.js +0 -41
  17. package/dist/tools/wopee_dispatch_agent.js.map +0 -1
  18. package/dist/tools/wopee_dispatch_analysis.d.ts +0 -8
  19. package/dist/tools/wopee_dispatch_analysis.js +0 -50
  20. package/dist/tools/wopee_dispatch_analysis.js.map +0 -1
  21. package/dist/tools/wopee_fetch_analysis_suites.d.ts +0 -8
  22. package/dist/tools/wopee_fetch_analysis_suites.js +0 -78
  23. package/dist/tools/wopee_fetch_analysis_suites.js.map +0 -1
  24. package/dist/tools/wopee_generate_app_context.d.ts +0 -8
  25. package/dist/tools/wopee_generate_app_context.js +0 -62
  26. package/dist/tools/wopee_generate_app_context.js.map +0 -1
  27. package/dist/tools/wopee_generate_general_user_stories.d.ts +0 -8
  28. package/dist/tools/wopee_generate_general_user_stories.js +0 -62
  29. package/dist/tools/wopee_generate_general_user_stories.js.map +0 -1
  30. package/dist/tools/wopee_generate_test_cases.d.ts +0 -8
  31. package/dist/tools/wopee_generate_test_cases.js +0 -74
  32. package/dist/tools/wopee_generate_test_cases.js.map +0 -1
  33. package/dist/tools/wopee_generate_user_stories.d.ts +0 -8
  34. package/dist/tools/wopee_generate_user_stories.js +0 -74
  35. package/dist/tools/wopee_generate_user_stories.js.map +0 -1
  36. package/dist/tools/wopee_get_app_context.d.ts +0 -8
  37. package/dist/tools/wopee_get_app_context.js +0 -41
  38. package/dist/tools/wopee_get_app_context.js.map +0 -1
  39. package/dist/tools/wopee_get_test_cases.d.ts +0 -9
  40. package/dist/tools/wopee_get_test_cases.js +0 -43
  41. package/dist/tools/wopee_get_test_cases.js.map +0 -1
  42. package/dist/tools/wopee_get_user_stories.d.ts +0 -8
  43. package/dist/tools/wopee_get_user_stories.js +0 -41
  44. package/dist/tools/wopee_get_user_stories.js.map +0 -1
  45. package/dist/types/index.d.ts +0 -419
  46. package/dist/types/index.js +0 -137
  47. package/dist/types/index.js.map +0 -1
  48. package/env.example +0 -7
package/package.json CHANGED
@@ -1,117 +1,42 @@
1
1
  {
2
- "name": "wopee-mcp",
3
- "version": "1.1.1",
4
- "description": "MCP server for Wopee.io autonomous testing platform",
5
- "main": "dist/index.js",
6
2
  "type": "module",
3
+ "name": "wopee-mcp",
7
4
  "bin": {
8
- "wopee-mcp": "./dist/index.js"
5
+ "wopee-mcp": "./build/index.js"
9
6
  },
10
- "files": [
11
- "dist/**/*",
12
- "README.md",
13
- "LICENSE",
14
- "env.example",
15
- "INTEGRATION.md",
16
- "QUICK_START.md"
17
- ],
7
+ "version": "1.2.0",
8
+ "description": "Wopee.io MCP server",
9
+ "main": "./build/index.js",
18
10
  "scripts": {
19
- "build": "tsc && node scripts/add-js-extensions.js",
20
- "build:clean": "rm -rf dist && npm run build",
21
- "start": "node dist/index.js",
22
- "dev": "tsx src/index.ts",
23
- "test": "jest",
24
- "test:watch": "jest --watch",
25
- "test:coverage": "jest --coverage",
26
- "test:integration": "jest --testPathPattern=integration",
27
- "test:performance": "jest --testPathPattern=performance",
28
- "lint": "eslint src/**/*.ts",
29
- "lint:fix": "eslint src/**/*.ts --fix",
30
- "prepublishOnly": "npm run build:clean && npm test",
31
- "prepack": "npm run build:clean",
32
- "postpack": "echo 'Package ready for publishing'",
33
- "version": "npm run build:clean",
34
- "postversion": "git push && git push --tags",
35
- "publish:patch": "npm version patch && npm publish",
36
- "publish:minor": "npm version minor && npm publish",
37
- "publish:major": "npm version major && npm publish",
38
- "publish:dry-run": "npm run build:clean && npm publish --dry-run",
39
- "validate": "npm run lint && npm test && npm run build",
40
- "security:audit": "npm audit --audit-level=moderate",
41
- "security:check": "npm audit --audit-level=high",
42
- "deps:check": "npm outdated",
43
- "deps:update": "npx npm-check-updates -u",
44
- "deps:update:patch": "npx npm-check-updates -u --target patch",
45
- "deps:update:minor": "npx npm-check-updates -u --target minor",
46
- "deps:update:major": "npx npm-check-updates -u --target major"
11
+ "build": "tsc && chmod 755 build/index.js",
12
+ "build:clean": "rm -rf build && npm run build"
47
13
  },
14
+ "files": [
15
+ "build",
16
+ "README.md"
17
+ ],
48
18
  "keywords": [
49
- "mcp",
50
19
  "wopee",
20
+ "ai",
21
+ "mcp",
22
+ "server",
51
23
  "testing",
52
- "autonomous",
53
24
  "automation",
54
- "graphql",
55
- "model-context-protocol",
56
- "ai-testing",
57
- "test-automation",
58
- "quality-assurance"
25
+ "autonomous",
26
+ "quality assurance",
27
+ "model context protocol"
59
28
  ],
60
- "author": {
61
- "name": "Wopee Labs",
62
- "email": "contact@wopee.io",
63
- "url": "https://wopee.io"
64
- },
65
- "license": "Apache-2.0",
66
- "homepage": "https://github.com/autonomous-testing/wopee-mcp#readme",
67
- "repository": {
68
- "type": "git",
69
- "url": "git+https://github.com/autonomous-testing/wopee-mcp.git"
70
- },
71
- "bugs": {
72
- "url": "https://github.com/autonomous-testing/wopee-mcp/issues"
73
- },
74
- "funding": {
75
- "type": "github",
76
- "url": "https://github.com/sponsors/wopee-io"
77
- },
29
+ "author": "Sota Giorgadze <sota.giorgadze@wopee.io>",
30
+ "license": "ISC",
78
31
  "dependencies": {
79
- "@modelcontextprotocol/sdk": "^0.5.0",
80
- "dotenv": "^16.4.5",
81
- "graphql-request": "^6.1.0",
82
- "zod": "^3.23.8"
32
+ "@modelcontextprotocol/sdk": "^1.21.0",
33
+ "zod": "^3.25.76"
83
34
  },
84
35
  "devDependencies": {
85
- "@semantic-release/changelog": "^6.0.3",
36
+ "typescript": "^5.9.3",
37
+ "@types/node": "^24.10.0",
38
+ "semantic-release": "^24.2.7",
86
39
  "@semantic-release/git": "^10.0.1",
87
- "@semantic-release/npm": "^10.0.4",
88
- "@types/jest": "^29.5.11",
89
- "@types/node": "^20.11.0",
90
- "@typescript-eslint/eslint-plugin": "^6.21.0",
91
- "@typescript-eslint/parser": "^6.21.0",
92
- "eslint": "^8.56.0",
93
- "jest": "^29.7.0",
94
- "npm-check-updates": "^16.14.15",
95
- "semantic-release": "^22.0.12",
96
- "ts-jest": "^29.1.1",
97
- "tsx": "^4.7.0",
98
- "typescript": "^5.3.3"
99
- },
100
- "engines": {
101
- "node": ">=18.0.0",
102
- "npm": ">=8.0.0"
103
- },
104
- "os": [
105
- "darwin",
106
- "linux",
107
- "win32"
108
- ],
109
- "cpu": [
110
- "x64",
111
- "arm64"
112
- ],
113
- "publishConfig": {
114
- "access": "public",
115
- "registry": "https://registry.npmjs.org/"
40
+ "@semantic-release/changelog": "^6.0.3"
116
41
  }
117
42
  }
package/INTEGRATION.md DELETED
@@ -1,361 +0,0 @@
1
- # VS Code & Cursor Integration Guide
2
-
3
- [![Install in VS Code](https://img.shields.io/badge/VS%20Code-Install-blue?logo=visual-studio-code&style=for-the-badge)](#vs-code-integration)
4
- [![Install in Cursor](https://img.shields.io/badge/Cursor-Install-blue?logo=cursor&style=for-the-badge)](#cursor-integration)
5
-
6
- This guide provides detailed instructions for integrating the Wopee.io MCP server with VS Code and Cursor editors.
7
-
8
- > **Note:** For general installation and usage, see [README.md](README.md). This guide focuses on IDE-specific setup and advanced configuration.
9
-
10
- ## 🔐 Environment Configuration
11
-
12
- **Recommended Approach: Use .env files**
13
-
14
- The Wopee.io MCP server automatically loads configuration from `.env` files, making it more secure than hardcoding API keys in configuration files.
15
-
16
- ### Setting up .env file
17
-
18
- 1. **Create a .env file in your project root:**
19
- ```bash
20
- # Copy the example file
21
- cp .env.example .env
22
-
23
- # Edit with your actual API key
24
- nano .env
25
- ```
26
-
27
- 2. **Add your configuration:**
28
- ```bash
29
- # Wopee API Configuration
30
- WOPEE_API_KEY=your_actual_api_key_here
31
- WOPEE_PROJECT_UUID=your_project_uuid_here
32
- ```
33
-
34
- The server will automatically load your `.env` file from the project root directory (where `package.json` is located).
35
-
36
- ## Prerequisites
37
-
38
- Before starting, ensure you have:
39
-
40
- - **VS Code** with MCP extension installed, or **Cursor** (built-in MCP support)
41
- - **Node.js 18+** installed on your system
42
- - **Wopee API key** from [wopee.io](https://wopee.io)
43
-
44
- > **Quick Install:** Both editors support one-click installation via Command Palette → "MCP: Install Server" → `wopee-mcp`
45
-
46
- ## VS Code Integration
47
-
48
- ### Installing the MCP Extension
49
-
50
- If you don't have the MCP extension:
51
-
52
- 1. Open VS Code
53
- 2. Go to Extensions (`Ctrl+Shift+X` or `Cmd+Shift+X`)
54
- 3. Search for "MCP" or "Model Context Protocol"
55
- 4. Install the official MCP extension
56
-
57
- ### Quick Setup (One-Click Installation)
58
-
59
- 1. Open Command Palette: `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac)
60
- 2. Type: `MCP: Install Server`
61
- 3. Enter package name: `wopee-mcp`
62
- 4. Configure API key when prompted
63
-
64
- ### Manual Configuration
65
-
66
- If you prefer manual setup or need custom configuration:
67
-
68
- 1. **Install globally**:
69
- ```bash
70
- npm install -g wopee-mcp
71
- ```
72
-
73
- 2. **Open VS Code settings** (`Ctrl+,` or `Cmd+,`)
74
-
75
- 3. **Search for "MCP"** in settings
76
-
77
- 4. **Add server configuration**:
78
- ```json
79
- {
80
- "mcp.servers": {
81
- "wopee": {
82
- "command": "npx",
83
- "args": [
84
- "wopee-mcp@latest"
85
- ],
86
- "env": {}
87
- }
88
- }
89
- }
90
- ```
91
-
92
- 5. **Restart VS Code**
93
-
94
- ### Method 3: Workspace Configuration
95
-
96
- For project-specific configuration, create `.vscode/settings.json`:
97
-
98
- ```json
99
- {
100
- "mcp.servers": {
101
- "wopee": {
102
- "command": "npx",
103
- "args": [
104
- "wopee-mcp@latest"
105
- ],
106
- "env": {}
107
- }
108
- }
109
- }
110
- ```
111
-
112
- ## Cursor Integration
113
-
114
- ### Quick Setup (One-Click Installation)
115
-
116
- 1. Open Command Palette: `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac)
117
- 2. Type: `MCP: Install Server`
118
- 3. Enter package name: `wopee-mcp`
119
- 4. Configure API key when prompted
120
-
121
- ### Manual Configuration
122
-
123
- For custom setup:
124
-
125
- 1. **Install globally**:
126
- ```bash
127
- npm install -g wopee-mcp
128
- ```
129
-
130
- 2. **Open Cursor settings** (`Ctrl+,` or `Cmd+,`)
131
-
132
- 3. **Navigate to MCP settings** in the sidebar
133
-
134
- 4. **Add server configuration**:
135
- ```json
136
- {
137
- "mcp.servers": {
138
- "wopee": {
139
- "command": "npx",
140
- "args": [
141
- "wopee-mcp@latest"
142
- ],
143
- "env": {}
144
- }
145
- }
146
- }
147
- ```
148
-
149
- **Note:** The server automatically loads configuration from `.env` file. You can override with environment variables in the config if needed.
150
-
151
- 5. **Restart Cursor**
152
-
153
- ## Using the Tools
154
-
155
- Once configured, you can use Wopee tools in your chat interface. See [README.md](README.md#using-the-tools) and [EXAMPLES.md](EXAMPLES.md) for detailed tool usage.
156
-
157
- ### Example Workflow
158
-
159
- 1. **Start with analysis**:
160
- ```
161
- @wopee wopee_dispatch_analysis
162
- Suite Analysis Config:
163
- - Username: testuser
164
- - Password: testpass
165
- ```
166
-
167
- 2. **Generate app context**:
168
- ```
169
- @wopee wopee_generate_app_context
170
- Suite UUID: [from previous step]
171
- Extra Prompt: Focus on user registration and login flows
172
- ```
173
-
174
- 3. **Generate general user stories**:
175
- ```
176
- @wopee wopee_generate_general_user_stories
177
- Suite UUID: [from step 1]
178
- Extra Prompt: Include high-level business requirements
179
- ```
180
-
181
- 4. **Create detailed user stories**:
182
- ```
183
- @wopee wopee_generate_user_stories
184
- Suite UUID: [from step 1]
185
- Extra Prompt: Include error handling and edge cases
186
- ```
187
-
188
- 5. **Generate test cases**:
189
- ```
190
- @wopee wopee_generate_test_cases
191
- Suite UUID: [from step 1]
192
- Extra Prompt: Generate comprehensive test coverage
193
- ```
194
-
195
- 6. **Execute tests**:
196
- ```
197
- @wopee wopee_dispatch_agent
198
- Suite UUID: [from step 1]
199
- Analysis Identifier: [from step 1]
200
- ```
201
-
202
- ## Troubleshooting
203
-
204
- ### Common Issues
205
-
206
- #### 1. "Command not found" Error
207
-
208
- **Problem**: The `wopee-mcp` command is not found.
209
-
210
- **Solutions**:
211
- - Install globally: `npm install -g wopee-mcp`
212
- - Check Node.js is in PATH: `node --version`
213
- - Restart your terminal/editor
214
-
215
- #### 2. "API key not configured" Error
216
-
217
- **Problem**: API key is missing or invalid.
218
-
219
- **Solutions**:
220
- - Verify API key set in .env file
221
- - Check environment variables are set correctly
222
- - Ensure API key is valid at [wopee.io](https://wopee.io)
223
-
224
- #### 3. "Connection failed" Error
225
-
226
- **Problem**: Cannot connect to Wopee API.
227
-
228
- **Solutions**:
229
- - Check internet connection
230
- - Verify API URL is correct: `https://api.wopee.io/`
231
- - Test API key validity
232
- - Check firewall/proxy settings
233
-
234
- #### 4. Tools Not Appearing
235
-
236
- **Problem**: Wopee tools don't show up in chat interface.
237
-
238
- **Solutions**:
239
- - Restart your editor (VS Code/Cursor)
240
- - Check MCP server logs in output panel
241
- - Verify server configuration
242
- - Run `wopee-mcp --version` to test installation
243
-
244
- #### 5. Permission Errors
245
-
246
- **Problem**: Permission denied when installing or running.
247
-
248
- **Solutions**:
249
- - Use `sudo` for global installation (Linux/Mac)
250
- - Check file permissions
251
- - Run as administrator (Windows)
252
-
253
- ### Debugging Steps
254
-
255
- 1. **Check installation**:
256
- ```bash
257
- wopee-mcp --version
258
- wopee-mcp --help
259
- ```
260
-
261
- 2. **Test API connection**:
262
- ```bash
263
- curl -H "api_key: YOUR_API_KEY" https://api.wopee.io/
264
- ```
265
-
266
- 3. **Check MCP server logs**:
267
- - Open Output panel in VS Code/Cursor
268
- - Select "MCP" from dropdown
269
- - Look for error messages
270
-
271
- 4. **Verify configuration**:
272
- - Check MCP server settings
273
- - Ensure environment variables are set
274
- - Validate JSON configuration syntax
275
-
276
- ### Getting Help
277
-
278
- - **Check logs**: Look in the MCP server output panel
279
- - **Verify installation**: Run `wopee-mcp --help` in terminal
280
- - **Test connection**: Use a simple tool like `wopee_dispatch_analysis`
281
- - **Community support**: Check the repository issues
282
- - **Documentation**: Refer to the main README.md
283
-
284
- ## Advanced Configuration
285
-
286
- ### Custom Environment Variables
287
-
288
- You can set additional environment variables:
289
-
290
- ```json
291
- {
292
- "mcp.servers": {
293
- "wopee": {
294
- "command": "npx",
295
- "args": [
296
- "wopee-mcp@latest"
297
- ],
298
- "env": {
299
- "WOPEE_API_KEY": "your_api_key_here",
300
- "WOPEE_PROJECT_UUID": "your_project_uuid_here",
301
- "WOPEE_API_URL": "https://api.wopee.io/",
302
- "NODE_ENV": "production",
303
- "DEBUG": "wopee:*"
304
- }
305
- }
306
- }
307
- }
308
- ```
309
-
310
- **Note:** Usually, you don't need to set environment variables in the config since the server loads from `.env` files automatically.
311
-
312
- ### Multiple Server Instances
313
-
314
- You can run multiple instances with different configurations:
315
-
316
- ```json
317
- {
318
- "mcp.servers": {
319
- "wopee-prod": {
320
- "command": "npx",
321
- "args": [
322
- "wopee-mcp@latest"
323
- ],
324
- "env": {
325
- "WOPEE_API_KEY": "prod_api_key",
326
- "WOPEE_API_URL": "https://api.wopee.io/"
327
- }
328
- },
329
- "wopee-dev": {
330
- "command": "npx",
331
- "args": [
332
- "wopee-mcp@latest"
333
- ],
334
- "env": {
335
- "WOPEE_API_KEY": "dev_api_key",
336
- "WOPEE_API_URL": "https://api.dev.wopee.io/"
337
- }
338
- }
339
- }
340
- }
341
- ```
342
-
343
- **Note:** Custom arguments are rarely needed. The server loads configuration from `.env` files automatically.
344
-
345
- ## Best Practices
346
-
347
- 1. **Use environment variables** for sensitive data like API keys
348
- 2. **Test with dry-run** before using in production
349
- 3. **Keep API keys secure** and don't commit them to version control
350
- 4. **Use workspace-specific** configurations for different projects
351
- 5. **Monitor logs** for debugging and performance insights
352
- 6. **Update regularly** to get the latest features and fixes
353
-
354
- ## Support
355
-
356
- For additional help:
357
-
358
- - **Documentation**: Check the main README.md
359
- - **Issues**: Create an issue in the repository
360
- - **Community**: Join the Wopee community discussions
361
- - **Email**: Contact support at [help@wopee.io](mailto:help@wopee.io)