Demo example of feedback loop from WTP MCP to drive development, video link
Setup testcases in your own project folder.
- Run
source setup.shorpowershell -ExecutionPolicy Bypass -File setup.ps1again. - Start the browser by running:
source browser.shorpowershell -ExecutionPolicy Bypass -File browser.ps1. - Open your project (CTrip, 12306 clone) in VSCode / Trae.
- Move the folder
./sample/.webtestpilotfrom this repo to your project foldercp -r ./sample/.webtestpilot/ .../path/to/ctrip-clone/. Your project should now look something like:
ctrip-cs3604/
├── .webtestpilot/
│ ├── .test/
│ ├── .fixture/
│ └── .environment/
├── frontend/
│ ├── package.json
│ └── ...
├── backend/
│ ├── package.json
│ └── ...
├── README.md
├── .gitignore
└── ...
- Update your .env file with latest keys.
- If you use VSCode, read from 2. VSCode, if Trae, read from 3. Trae
🎥 Video tutorial: VSCode Install WebTestPilot MCP Server.
Steps to add MCP Server to vscode:
- Ctrl + Shift + P, Search for "MCP: Add server"
- Choose stdio.
- Input command as below: (NOTE: Modify --env-file path to your computer.)
uvx --refresh --env-file "/path/to/folder/WebTestPilot-extension/.env" --from "git+https://github.com/code-philia/WebTestPilot@parallel#subdirectory=webtestpilot" webtestpilot-mcp
- Input Name: "WebTestPilot".
- Choose "Workspace" option.
For more details: Use MCP servers in VSCode.
- Use
which uvxto get the path and copy it.
which uvx
> /Users/your-name/.local/bin/uvx
> C://Users/your-name/uvx- Create or open file
.vscode/mcp.json, edit command to match.
{
"servers": {
"WebTestPilot": {
"type": "stdio",
"command": "/Users/your-name/.local/bin/uvx", <--------- `which uvx` output here.
"args": [
"--refresh",
"--env-file",
"/path/to/.../WebTestPilot-extension/.env", <--------- make sure .env file is correct.
"--from",
"git+https://github.com/code-philia/WebTestPilot@parallel#subdirectory=webtestpilot",
"webtestpilot-mcp"
]
}
},
"inputs": []
}-
Check if MCP tools are available in Copilot, if yes, good to go!.

-
Try asking "list gui tests" or "run test invalid phone number on prod".
-
When encounter "Allow" prompt, choose "Always allow tools from WebTestPilot ᕦ(ò_óˇ)ᕤ".

🎥 Video tutorial: Trae Install WebTestPilot MCP Server.
- Go to Trae Settings.
- Click MCP
- Add -> Add Manually
- Input the following json (NOTE: Make sure to update .env paths accordingly)
{
"mcpServers": {
"WebTestPilot": {
"command": "uvx",
"args": [
"--refresh",
"--env-file",
"/path/to/.../Cophi/WebTestPilot-extension/.env",
"--from",
"git+https://github.com/code-philia/WebTestPilot@parallel#subdirectory=webtestpilot",
"webtestpilot-mcp"
]
}
}
}- Click start button if needed.
- Once started and can see list of tools. Good to go!
- Choose agent: "Builder with MCP".
- Sample questions:
- "list out gui tests i have"
- "run test invalid phone number on prod"