refactor(mcp): 封装浏览器操作为 MCP 工具,移除手动浏览器操控逻辑

This commit is contained in:
knowen
2026-03-19 17:23:03 +08:00
parent 66bba6c4e7
commit f90dd8643a
5 changed files with 1245 additions and 73 deletions

View File

@@ -5,8 +5,8 @@
"main": "src/index.js",
"scripts": {
"demo": "node src/demo.js",
"daemon": "node src/daemon/server.js",
"test": "echo \"Error: no test specified\" && exit 1"
"mcp": "node src/mcp-server.js",
"daemon": "node src/daemon/server.js"
},
"keywords": [
"gemini",
@@ -18,6 +18,7 @@
"license": "ISC",
"description": "通过 CDP 操控 Gemini 网页进行 AI 问答与生图",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.27.1",
"puppeteer-core": "^24.39.1",
"puppeteer-extra": "^3.3.6",
"puppeteer-extra-plugin-stealth": "^2.11.2"