JohnXu22786/browser-automation0

web-bridge-mcp

dsh 插件:使用真实浏览器的自动化 MCP server。以无障碍树快照驱动导航、点击、填表、截图与 JS 执行,充当 agent 的眼睛和手。

包名
web-bridge-mcp
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JohnXu22786/browser-automation

Configuration

Priority: defaults < config file (--config or WEB_BRIDGE_CONFIG) < environment variables.

Environment variables (prefix WEB_BRIDGE_)

VariableDefaultDescription
WEB_BRIDGE_BROWSERchromiumEngine: chromium / firefox / webkit
WEB_BRIDGE_HEADLESStrueHeadless mode
WEB_BRIDGE_VIEWPORT1280x720Viewport size, e.g. 1440x900
WEB_BRIDGE_EXECUTABLECustom browser executable path
WEB_BRIDGE_USER_DATA_DIRUser data directory (persistent context; login state survives across sessions)
WEB_BRIDGE_PROXYProxy address, e.g. http://proxy:3128
WEB_BRIDGE_LOCALE / WEB_BRIDGE_TIMEZONELocale and browser timezone
WEB_BRIDGE_USER_AGENTCustom User-Agent
WEB_BRIDGE_IGNORE_HTTPS_ERRORSfalseIgnore certificate errors (debug only)
WEB_BRIDGE_SANDBOXtrueBrowser sandbox; set to false when no sandbox in container
WEB_BRIDGE_PERMISSIONSPermissions granted to the context, comma-separated (e.g. geolocation,clipboard-read)
WEB_BRIDGE_ACTION_TIMEOUT10000Per-action timeout (ms, 0 = unlimited)
WEB_BRIDGE_NAV_TIMEOUT60000Navigation timeout (ms, 0 = unlimited)
WEB_BRIDGE_SETTLE_MS500Wait for async tasks to settle after an action (ms)
WEB_BRIDGE_STORAGE_STATESession restore file path (non-persistent mode only)
WEB_BRIDGE_TEST_ID_ATTRdata-testidAttribute name used by the testid= selector
WEB_BRIDGE_CONFIGConfig file path

Config file

{
  "browser": { "name": "chromium", "headless": true, "viewport": { "width": 1280, "height": 720 } },
  "context": { "ignoreHTTPSErrors": false, "permissions": ["geolocation"] },
  "timeouts": { "action": 10000, "navigation": 60000, "settle": 500 },
  "sandbox": true,
  "testIdAttribute": "data-testid"
}

Start: node dist/index.js --config web-bridge.config.json.