使用说明
ai工厂扩建剧作家mcp
一 ai工厂 扩展,添加 剧作家MCP 服务器连接到您的所有代理。安装后,您的AI代理(Claude Code、Cline等)可以控制浏览器——导航页面、点击元素、填写表单、截图等。
安装
# from a git repo
ai-factory extension add https://github.com/dealenx/ai-factory-extension-playwright-mcp.git
# or from a local directory
ai-factory extension add ./ai-factory-extension-playwright-mcp
ai工厂将把Playwright MCP服务器配置合并到支持MCP的每个代理中。
里面是什么
ai-factory-extension-playwright-mcp/
├── extension.json # Extension manifest
├── mcp/
│ └── playwright.json # Playwright MCP server config
├── package.json
├── LICENSE
└── README.md
扩展名.json
{
"name": "ai-factory-extension-playwright-mcp",
"version": "1.0.0",
"description": "Playwright MCP server as an ai-factory extension",
"mcpServers": [
{
"key": "playwright",
"template": "./mcp/playwright.json",
"instruction": "Playwright MCP: Install Chrome to use a web browser"
}
]
}
mcp/剧作家.json
{
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
管理扩展
# List installed extensions
ai-factory extension list
# Remove the extension
ai-factory extension remove ai-factory-extension-playwright-mcp