Skip to content

Commit 529ffaa

Browse files
committed
Add MCP Server to AI Enhancements section in README
1 parent 4c19478 commit 529ffaa

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,38 @@ This Java-based test automation framework is designed to support **end-to-end te
3636
- Conversational UI for natural language queries
3737
- Integrates with RAG and knowledge base for context-aware answers
3838
- Supports both local and cloud LLMs
39+
40+
### 🧠 Model Control Plane (MCP) Server — AI-Driven Test Generation & Review
41+
42+
- **Lightweight Java HTTP server** for AI-powered test automation workflows
43+
- **Endpoints for:**
44+
- Page object generation from prompt files
45+
- Playwright/Selenium test generation and execution
46+
- Automated code review of generated tests (`/mcp/test-code-review`)
47+
- Reporting: lists test run artifacts and logs (`/mcp/report`)
48+
- **Pluggable AI clients:** Supports RAG, OpenAI, and local LLMs for prompt completion and code review
49+
- **Playwright bridge:** Runs Playwright tests via a Node.js subprocess for browser automation
50+
- **MongoDB context store:** (optional) for storing workflow and conversation context
51+
- **Demo/test script:** [`scripts/test_mcp.sh`](scripts/test_mcp.sh) exercises all endpoints for quick validation
52+
53+
**Quick start:**
54+
55+
```bash
56+
# Start the MCP server (from project root)
57+
58+
# Or run directly with Java if built:
59+
60+
61+
# In another terminal, run the demo script:
62+
# 🚀 AI-Powered Features
63+
64+
**Endpoints:**
65+
- `POST /mcp/generate-page-object` — Generate page objects from prompt
66+
- `POST /mcp/generate-and-run-playwright-test` — Generate & run Playwright test
67+
- `POST /mcp/generate-and-run-selenium-test` — Generate & run Selenium test
68+
- `POST /mcp/test-code-review` — Automated AI code review for test code
69+
- `GET /mcp/report` — List test run reports and logs
70+
3971

4072
Built entirely with open-source libraries, this framework is **fully extensible**—ready to scale for validations involving files, emails, microservices, or third-party system integrations.
4173

@@ -61,6 +93,10 @@ flowchart TD
6193
C --> D[RAG Engine]
6294
C --> E[Self-Healing Engine]
6395
C --> J[Chatbot/NLP & Conversational AI]
96+
C --> M[MCP Server]
97+
M --> C
98+
M --> N[Playwright/Selenium Bridge]
99+
M --> O[Prompt Files]
64100
D --> F[Embedding Providers]
65101
D --> G[Embedding Cache]
66102
D --> H[Docs/Knowledge Base]
@@ -87,6 +123,10 @@ This framework now includes advanced AI-powered features for smarter, context-aw
87123
- **Persistent Embedding Cache:**
88124
- Embeddings are computed once per document chunk and reused for all future runs
89125
- Massive speedup and cost savings for repeated queries
126+
- **Model Control Plane (MCP) Server:**
127+
- Lightweight Java HTTP server for AI-powered test generation, review, and workflow orchestration
128+
- Exposes endpoints for page object generation, Playwright/Selenium test execution, automated code review, and reporting
129+
- Integrates with RAG, OpenAI, and local LLMs; bridges to Playwright/Selenium; supports prompt-driven automation
90130
- **AI Demo & Documentation:**
91131
- [Self-Healing Demo/Test Class](https://github.com/K11-Software-Solutions/k11TechLab-selenium-java-fullstack-framework/blob/main/src/main/java/org/k11techlab/framework/ai/selenium/selfhealing/SelfHealingDemo.java)
92132
- [RAGComponentsDemo.java (RAG Test Class)](https://github.com/K11-Software-Solutions/k11TechLab-selenium-java-fullstack-framework/blob/main/src/main/java/org/k11techlab/framework/ai/rag/demo/RAGComponentsDemo.java)

0 commit comments

Comments
 (0)