dsh-vision-toolkit-windows-edge
Agent 与会话 活跃维护

dsh-vision-toolkit-windows-edge

sailoflight/dsh-vision-toolkit-windows-edge

适配Windows系统Edge浏览器的轻量级视觉开发工具包,内置视觉识别、页面元素定位等常用组件,支持快速集成到自动化测试、网页脚本开发流程,开箱即用无需复杂配置。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
Shell
主要语言
None
开源协议
97 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:sailoflight/dsh-vision-toolkit-windows-edge
git clone https://github.com/sailoflight/dsh-vision-toolkit-windows-edge.git
git clone git@github.com:sailoflight/dsh-vision-toolkit-windows-edge.git
README.md main

dsh-vision-toolkit-windows-edge

Host-only companion for @anionex/dsh-vision-toolkit on DSH running inside WSL.
It keeps the public vision_html_screenshot tool contract but renders local HTML
with the Windows-installed Microsoft Edge through an authenticated loopback bridge.

Architecture

The exact two-sided wire and ownership contract is documented in PROTOCOL.md. It instantiates the generalized WIN-WSL role boundaries while remaining a native DSH companion rather than an MCP server.

DSH / WSL tools/execute wrapper
  -> framed TCP 127.0.0.1:8767 + shared token
  -> Windows Task Scheduler listener
  -> one short-lived Windows Playwright worker
  -> chromium.launch(channel="msedge")
  -> PNG bytes + dimensions + SHA-256
  -> WSL random stage, validation, atomic artifact commit

The listener persists; Edge does not. Every call gets a new browser and context.
HTTP/HTTPS/WebSocket requests are blocked. Only file:// resources inside the
configured WSL UNC roots plus data/blob/about resources are allowed.

Install

bash install.sh

The installer copies the host plugin into each existing web, dsh-tui, and
headless profile, deploys one shared Windows bridge under
C:\MCP\dsh-vision-toolkit-windows-edge, creates a shared 256-bit token, and
registers a current-user DshVisionToolkitWindowsEdge login task. Vision Toolkit
must be installed in each profile; Web-only UI integrations remain scoped to Web. It creates and owns C:\MCP\dsh-vision-toolkit-windows-edge\.venv, installs only the pinned Playwright client there, and uses installed Edge through channel="msedge"; it does not download another browser. The scheduled task and immediate launcher both use this venv’s windowless pythonw.exe.

Restart any active DSH hosts after installation; on-demand profiles pick up the change at their next start. Windows and WSL must use mirrored networking,
as already required by the adjacent MCP bridges on ports 8765 and 8766.