@democratize-quality/mcp-server 1.1.7 → 1.1.9
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/LICENSE +658 -12
- package/README.md +165 -10
- package/package.json +2 -2
- package/src/skills/test-execution/SKILL.md +777 -0
- package/src/utils/agentInstaller.js +68 -3
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npx @democratize-quality/mcp-server@latest --agents
|
|
|
18
18
|
|
|
19
19
|
**What this does:**
|
|
20
20
|
- ✅ Installs the MCP server
|
|
21
|
-
- ✅ Sets up
|
|
21
|
+
- ✅ Sets up 4 AI-powered testing skills
|
|
22
22
|
- ✅ Configures VS Code integration automatically
|
|
23
23
|
- ✅ Creates project folders (`.agents/skills/`, `.github/skills/`, `.claude/skills/`, `.vscode/`)
|
|
24
24
|
- ✅ Works with: GitHub Copilot, Codex CLI, Claude Code, Cursor, and 10+ other tools
|
|
@@ -292,7 +292,7 @@ This MCP server provides **7 powerful tools** for comprehensive API testing:
|
|
|
292
292
|
|
|
293
293
|
## 🌐 Agent Skills (Universal AI Capabilities)
|
|
294
294
|
|
|
295
|
-
When you install with `--agents`, you get
|
|
295
|
+
When you install with `--agents`, you get 4 intelligent testing skills that work across all major AI coding tools:
|
|
296
296
|
|
|
297
297
|
### 1. 📋 /api-planning - The Strategist
|
|
298
298
|
|
|
@@ -378,7 +378,114 @@ Sample Collection includes:
|
|
|
378
378
|
Import into Postman and start testing!
|
|
379
379
|
```
|
|
380
380
|
|
|
381
|
-
### 3.
|
|
381
|
+
### 3. ⚡ /test-execution - The Runner
|
|
382
|
+
|
|
383
|
+
**What it does:** Executes API tests directly from test plans without code
|
|
384
|
+
|
|
385
|
+
**Best for:**
|
|
386
|
+
- Running tests immediately after planning
|
|
387
|
+
- Quick API validation without writing code
|
|
388
|
+
- Executing specific test sections
|
|
389
|
+
- Generating comprehensive HTML test reports
|
|
390
|
+
|
|
391
|
+
**Example: Execute Tests from Plan**
|
|
392
|
+
```
|
|
393
|
+
1. After creating a test plan, type /test-execution or mention test execution
|
|
394
|
+
|
|
395
|
+
You: Execute tests from section 1 of the test plan
|
|
396
|
+
|
|
397
|
+
2. Skill: I'll execute the tests from section 1 of your test plan using the api_request tool with a unique session ID. After execution, I'll generate an HTML report with all results.
|
|
398
|
+
|
|
399
|
+
3. When prompted, allow the tool call "Run api_request democratize-quality (MCP Server)"
|
|
400
|
+
|
|
401
|
+
Execution Results:
|
|
402
|
+
✅ GET /api/v1/Books - List all books (200 OK, 145ms)
|
|
403
|
+
✅ GET /api/v1/Books/1 - Get book by ID (200 OK, 98ms)
|
|
404
|
+
✅ POST /api/v1/Books - Create new book (201 Created, 203ms)
|
|
405
|
+
✅ PUT /api/v1/Books/1 - Update book (200 OK, 156ms)
|
|
406
|
+
✅ DELETE /api/v1/Books/1 - Delete book (204 No Content, 87ms)
|
|
407
|
+
|
|
408
|
+
Test Summary:
|
|
409
|
+
- Total: 5 tests
|
|
410
|
+
- Passed: 5 (100%)
|
|
411
|
+
- Failed: 0 (0%)
|
|
412
|
+
- Total Time: 689ms
|
|
413
|
+
|
|
414
|
+
📊 HTML Report: ./api-test-reports/test-execution-1739597400000-report.html
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
**Example: Execute Full Test Plan**
|
|
418
|
+
```
|
|
419
|
+
You: /test-execution run all tests from the test plan and generate a report
|
|
420
|
+
|
|
421
|
+
Skill: Executing entire test plan...
|
|
422
|
+
|
|
423
|
+
Progress:
|
|
424
|
+
📋 Section 1: Books API (5 tests)
|
|
425
|
+
✅ GET /api/v1/Books
|
|
426
|
+
✅ GET /api/v1/Books/{id}
|
|
427
|
+
✅ POST /api/v1/Books
|
|
428
|
+
✅ PUT /api/v1/Books/{id}
|
|
429
|
+
✅ DELETE /api/v1/Books/{id}
|
|
430
|
+
|
|
431
|
+
📋 Section 2: Authors API (4 tests)
|
|
432
|
+
✅ GET /api/v1/Authors
|
|
433
|
+
✅ GET /api/v1/Authors/{id}
|
|
434
|
+
✅ POST /api/v1/Authors
|
|
435
|
+
✅ DELETE /api/v1/Authors/{id}
|
|
436
|
+
|
|
437
|
+
📋 Section 3: Users API (4 tests)
|
|
438
|
+
✅ GET /api/v1/Users
|
|
439
|
+
✅ POST /api/v1/Users
|
|
440
|
+
❌ PUT /api/v1/Users/{id} - 404 Not Found
|
|
441
|
+
✅ DELETE /api/v1/Users/{id}
|
|
442
|
+
|
|
443
|
+
Final Summary:
|
|
444
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
445
|
+
Total: 13 tests
|
|
446
|
+
Passed: 12 (92.3%)
|
|
447
|
+
Failed: 1 (7.7%)
|
|
448
|
+
Total Time: 1.8s
|
|
449
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
450
|
+
|
|
451
|
+
📊 Comprehensive HTML Report Generated:
|
|
452
|
+
./api-test-reports/full-plan-execution-report.html
|
|
453
|
+
|
|
454
|
+
Open in browser for:
|
|
455
|
+
- Detailed request/response logs
|
|
456
|
+
- Timing analysis and charts
|
|
457
|
+
- Visual pass/fail indicators
|
|
458
|
+
- Validation results
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
**Example: Execute with CRUD Workflow**
|
|
462
|
+
```
|
|
463
|
+
You: /test-execution run the Books CRUD tests with request chaining
|
|
464
|
+
|
|
465
|
+
Skill: Executing CRUD workflow with request chaining...
|
|
466
|
+
|
|
467
|
+
Step 1: CREATE book
|
|
468
|
+
✅ POST /api/v1/Books
|
|
469
|
+
📌 Extracted: bookId = 42
|
|
470
|
+
|
|
471
|
+
Step 2: READ created book
|
|
472
|
+
✅ GET /api/v1/Books/42
|
|
473
|
+
📌 Verified: Book exists with correct data
|
|
474
|
+
|
|
475
|
+
Step 3: UPDATE book
|
|
476
|
+
✅ PUT /api/v1/Books/42
|
|
477
|
+
📌 Verified: Book updated successfully
|
|
478
|
+
|
|
479
|
+
Step 4: DELETE book
|
|
480
|
+
✅ DELETE /api/v1/Books/42
|
|
481
|
+
📌 Verified: Book deleted (204 No Content)
|
|
482
|
+
|
|
483
|
+
Workflow Complete: All 4 operations successful! ✅
|
|
484
|
+
|
|
485
|
+
📊 Report: ./api-test-reports/crud-workflow-report.html
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
### 4. 🔬 /test-healing - The Fixer
|
|
382
489
|
|
|
383
490
|
**What it does:** Automatically diagnoses and repairs failing tests
|
|
384
491
|
|
|
@@ -540,13 +647,56 @@ Import the generated collection into Postman and start testing!
|
|
|
540
647
|
|
|
541
648
|
**Result:** Professional Postman collection ready to share with your team
|
|
542
649
|
|
|
650
|
+
### Scenario 3: Quick API Validation Without Code
|
|
651
|
+
|
|
652
|
+
**Goal:** Execute API tests immediately without generating code files
|
|
653
|
+
|
|
654
|
+
```
|
|
655
|
+
Step 1:
|
|
656
|
+
/api-planning create test plan from
|
|
657
|
+
https://fakerestapi.azurewebsites.net/swagger/v1/swagger.json
|
|
658
|
+
focusing on Books and Users endpoints
|
|
659
|
+
|
|
660
|
+
Step 2:
|
|
661
|
+
/test-execution run all tests from the test plan and generate HTML report
|
|
662
|
+
|
|
663
|
+
Step 3:
|
|
664
|
+
Open the generated HTML report to see detailed results!
|
|
665
|
+
```
|
|
666
|
+
|
|
667
|
+
**What you get:**
|
|
668
|
+
- ⚡ Instant test execution without writing code
|
|
669
|
+
- 📊 Interactive HTML report with:
|
|
670
|
+
- Pass/fail indicators for each endpoint
|
|
671
|
+
- Request/response details
|
|
672
|
+
- Response timing analysis
|
|
673
|
+
- Visual charts and statistics
|
|
674
|
+
- ✅ Quick validation of API before writing automated tests
|
|
675
|
+
- 🔄 Easy to re-run for regression testing
|
|
676
|
+
|
|
677
|
+
**Use cases:**
|
|
678
|
+
- Quick API health checks
|
|
679
|
+
- Validating API after deployments
|
|
680
|
+
- API exploration and documentation
|
|
681
|
+
- Testing APIs before committing to test code
|
|
682
|
+
- Sharing test results with non-technical stakeholders
|
|
683
|
+
|
|
684
|
+
**Alternative workflow with specific sections:**
|
|
685
|
+
```
|
|
686
|
+
You: /test-execution execute section 1 (Books API) from the test plan
|
|
687
|
+
|
|
688
|
+
Result:
|
|
689
|
+
✅ 5/5 tests passed
|
|
690
|
+
📊 Report: ./api-test-reports/books-section-report.html
|
|
691
|
+
```
|
|
692
|
+
|
|
543
693
|
---
|
|
544
694
|
|
|
545
695
|
## 🔧 Calling Individual Tools
|
|
546
696
|
|
|
547
697
|
### When to Use Individual Tools
|
|
548
698
|
|
|
549
|
-
**Use skills (/api-planning, /test-generation, /test-healing) when:**
|
|
699
|
+
**Use skills (/api-planning, /test-generation, /test-execution, /test-healing) when:**
|
|
550
700
|
- You want AI assistance and recommendations
|
|
551
701
|
- You're working on complex, multi-step workflows
|
|
552
702
|
- You need explanations and best practices
|
|
@@ -1242,17 +1392,22 @@ npm run dev
|
|
|
1242
1392
|
|
|
1243
1393
|
---
|
|
1244
1394
|
|
|
1245
|
-
##
|
|
1395
|
+
## License
|
|
1246
1396
|
|
|
1247
|
-
|
|
1397
|
+
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
|
|
1248
1398
|
|
|
1249
|
-
|
|
1399
|
+
Copyright (C) 2025 Democratize Quality
|
|
1250
1400
|
|
|
1251
|
-
|
|
1401
|
+
This program is free software: you can redistribute it and/or modify it under
|
|
1402
|
+
the terms of the GNU Affero General Public License as published by the Free
|
|
1403
|
+
Software Foundation, either version 3 of the License, or (at your option) any
|
|
1404
|
+
later version.
|
|
1252
1405
|
|
|
1253
|
-
|
|
1406
|
+
If you modify this software and run it as a network service, you must make your
|
|
1407
|
+
modified source code available to users of that service under the same license.
|
|
1254
1408
|
|
|
1255
|
-
|
|
1409
|
+
See the [LICENSE](LICENSE) file for the full license text, or visit
|
|
1410
|
+
https://www.gnu.org/licenses/agpl-3.0.html
|
|
1256
1411
|
|
|
1257
1412
|
---
|
|
1258
1413
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@democratize-quality/mcp-server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"main": "mcpServer.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"democratize-quality-mcp": "cli.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"end-to-end-testing"
|
|
49
49
|
],
|
|
50
50
|
"author": "Raj Uppadhyay",
|
|
51
|
-
"license": "
|
|
51
|
+
"license": "AGPL-3.0-or-later",
|
|
52
52
|
"description": "MCP Server for democratizing quality through browser automation and comprehensive API testing capabilities",
|
|
53
53
|
"homepage": "https://github.com/uppadhyayraj/democratize-quality-mcp-server#readme",
|
|
54
54
|
"repository": {
|