使用说明
项目设置指南
先决条件
- Node.js &npm
- Python 3.13+
pip(Python包安装程序)
MCP剧作家
您可以使用npm、mcp-get或Smithery安装该包:
- 使用npm:
npm install -g @executeautomation/playwright-mcp-server - 使用mcp get:
npx @michaellatman/mcp-get@latest install @executeautomation/playwright-mcp-server - 使用Smithery
npx @smithery/cli install @executeautomation/playwright-mcp-server --client claude
前端
- 下载
node_modules.zip,放置提取的node_modules内部文件夹frontend_ts,并将其解压缩。 - 导航到前端文件夹:
cd frontend_ts - 构建项目:
npm run dist - 启动开发服务器:
npm run dev
后端
- 创建并激活虚拟环境:
python -m venv venv source venv/bin/activate # On Linux/Mac .\venv\Scripts\activate # On Windows - 安装依赖项:
pip install -r ./backend/requirements.txt - 运行后端服务器:
python ./backend/app.py - (可选)完成后停用虚拟环境:
deactivate