@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"mcpServers": {
|
|
||||||
"playwright": {
|
|
||||||
"command": "npx",
|
|
||||||
"args": ["-y", "@executeautomation/playwright-mcp-server"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
62
README.md
@@ -609,68 +609,6 @@ This project includes `.vscode/launch.json.default` and `.vscode/settings.json.d
|
|||||||
|
|
||||||
We've also included a list of recommended extensions in `.vscode/extensions.json`. Your editor should detect this file and show a human friendly list in the Extensions panel, linking each entry to its marketplace page.
|
We've also included a list of recommended extensions in `.vscode/extensions.json`. Your editor should detect this file and show a human friendly list in the Extensions panel, linking each entry to its marketplace page.
|
||||||
|
|
||||||
### Recommended MCP Integrations
|
|
||||||
|
|
||||||
#### Playwright Browser Automation
|
|
||||||
|
|
||||||
The Playwright MCP server enables LLM coding assistants (like Copilot, Claude Code, etc.) to control and inspect web browsers programmatically. This allows assistants to navigate websites, take screenshots, and interact with web pages on your behalf.
|
|
||||||
|
|
||||||
For ComfyUI_frontend development, you can ask coding assistants to use Playwright screenshots to continuously verify that your code changes produce the expected visual results.
|
|
||||||
|
|
||||||
##### Setup for Claude Code
|
|
||||||
|
|
||||||
After installing dependencies with `npm i`, the Playwright MCP server will be automatically available when you start Claude Code locally.
|
|
||||||
|
|
||||||
Here's how Claude Code can use the Playwright MCP server to inspect the interface of the local development server (assuming you're running the dev server at `localhost:5173`):
|
|
||||||
|
|
||||||
|
|
||||||
```
|
|
||||||
> navigate to localhost:5173 and take a screenshot.
|
|
||||||
tell me the items in the menubar
|
|
||||||
|
|
||||||
● I'll navigate to localhost:5173 and take a
|
|
||||||
screenshot to see the menubar items.
|
|
||||||
|
|
||||||
● playwright:playwright_navigate (MCP)(url: …
|
|
||||||
"http://local
|
|
||||||
host:5173")
|
|
||||||
⎿ Navigated to http://localhost:5173
|
|
||||||
|
|
||||||
● playwright:playwright_screenshot (MCP)(name: "lo…
|
|
||||||
alhost_5173
|
|
||||||
_menubar")
|
|
||||||
|
|
||||||
⎿ Screenshot saved to: ../../../Downloads/localho
|
|
||||||
st_5173_menubar-2025-05-30T17-23-00-942Z.png
|
|
||||||
⎿ Screenshot also stored in memory with name:
|
|
||||||
'localhost_5173_menubar'
|
|
||||||
|
|
||||||
● Read(../../../Downloads/localhost_5173_menubar-2…
|
|
||||||
25-05-30T17-23-00-942Z.png)
|
|
||||||
⎿ Read image (94.3KB)
|
|
||||||
|
|
||||||
● Based on the screenshot, I can see the menubar at
|
|
||||||
the top of the ComfyUI interface contains the
|
|
||||||
following items:
|
|
||||||
|
|
||||||
Main Menubar Items:
|
|
||||||
- Workflow - Menu for workflow-related actions
|
|
||||||
- Edit - Menu for editing operations
|
|
||||||
- Help - Menu for help and documentation
|
|
||||||
|
|
||||||
Additional UI Elements:
|
|
||||||
- ComfyUI Logo - On the far left
|
|
||||||
- Workflow Tab - Shows "Unsaved Workflow" with a
|
|
||||||
dropdown and close button
|
|
||||||
- Layout Controls - On the far right (grid view
|
|
||||||
and hamburger menu icons)
|
|
||||||
|
|
||||||
The interface shows a typical ComfyUI workflow
|
|
||||||
graph with nodes like "Load Checkpoint", "CLIP
|
|
||||||
Text Encode (Prompt)", "KSampler", and "Empty
|
|
||||||
Latent Image" connected with colored cables.
|
|
||||||
```
|
|
||||||
|
|
||||||
### Unit Test
|
### Unit Test
|
||||||
|
|
||||||
- `npm i` to install all dependencies
|
- `npm i` to install all dependencies
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 101 KiB |
1844
package-lock.json
generated
@@ -29,7 +29,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.8.0",
|
"@eslint/js": "^9.8.0",
|
||||||
"@executeautomation/playwright-mcp-server": "^1.0.5",
|
|
||||||
"@iconify/json": "^2.2.245",
|
"@iconify/json": "^2.2.245",
|
||||||
"@lobehub/i18n-cli": "^1.20.0",
|
"@lobehub/i18n-cli": "^1.20.0",
|
||||||
"@pinia/testing": "^0.1.5",
|
"@pinia/testing": "^0.1.5",
|
||||||
|
|||||||