Skip to content

Commit 3de7af8

Browse files
committed
Add visible usage example for MCP Server in README
1 parent 529ffaa commit 3de7af8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,32 @@ This Java-based test automation framework is designed to support **end-to-end te
6868
- `POST /mcp/test-code-review` — Automated AI code review for test code
6969
- `GET /mcp/report` — List test run reports and logs
7070

71+
**Usage Example:**
72+
73+
Start the MCP server:
74+
```bash
75+
mvn exec:java -Dexec.mainClass="org.k11techlab.framework.ai.mcp.MCPServer"
76+
```
77+
78+
Generate a page object from a prompt file:
79+
```bash
80+
curl -X POST http://localhost:8090/mcp/generate-page-object \
81+
-H "Content-Type: application/json" \
82+
-d '{"promptFile":"k11softwaresolutions/pages/pageobject_creation_prompt_multi.txt"}'
83+
```
84+
85+
Review a test code snippet with AI:
86+
```bash
87+
curl -X POST http://localhost:8090/mcp/test-code-review \
88+
-H "Content-Type: text/plain" \
89+
--data-binary @YourTestFile.java
90+
```
91+
92+
Fetch a list of test run reports and logs:
93+
```bash
94+
curl http://localhost:8090/mcp/report
95+
```
96+
7197

7298
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.
7399

0 commit comments

Comments
 (0)