2026-05-16 Source: Cursor 使用 Playwright MCP
Source File
AI 探索/Cusor 使用 Playwright MCP.md
Summary
Minimal how-to: JSON snippet for registering the Playwright MCP server in Cursor and an example natural-language prompt for driving browser automation tests (navigate, assert UI conditions, localStorage defaults).
Key Points
- MCP config uses
npxwith@playwright/mcp@latest. - Example workflow: navigate to a URL and specify assertions (card type, IDs, categories, default UI structure).
Related Concepts
- AI-assisted development
- 自动化测试(E2E 层位于该概念的测试金字塔顶端)
另见(本库相近资料)
- 来源:自动化测试(Playwright 在 E2E 中的工具栈定位)
Notes
Filename in the repo uses “Cusor”; the wiki page title keeps the user’s spelling for traceability.