Gives DeepSeek Harness eyes and hands on a Windows desktop: eight MCP tools cover screen capture, mouse and keyboard input, window and process control, files, the registry, PowerShell, the clipboard, virtual desktops and an isolated child session, plus a skill that teaches the model the order to call them in.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-gui-forkgo
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:forkgo430/dsh-gui-forkgo#path:/dsh-bundle
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
作者:赢容 · MIT · 与「WPS 多面手」(
dsh-multitool)同一位作者
DSH 的图形层:用 @deepseek-ai/dsh-mcp-client 起一个 stdio MCP 服务器 windows-mcp,把 Windows 的 UI Automation 和窗口管理包装成一组工具,模型就能像人一样看屏幕、点按钮、敲键盘、切换窗口、管理虚拟桌面。
工具名形如 mcp__gui__<工具名>(serverName: gui,共 8 个),另带一份技能 gui-desktop 教模型按顺序使用。
装
# 本目录已经是完整 bundle,DSH 里走「插件 → 添加插件 → 本地目录」
# 或者 plugin_manager install_bundle,target 指到本目录的绝对路径
包名 dsh-gui-forkgo(无 scope,与「WPS 多面手」dsh-multitool 同一个风格)。
改名轨迹:@local/windows-mcp → @local/gui → dsh-gui-forkgo,旧包名都已不存在。
suffix forkgo 是为了避开 npm 上已被预留的 dsh-gui(作者 Caxson,占名不发布)。
提供什么
服务器名固定为 gui,8 个工具(版本 1.3.1):
| 工具 | 干什么 | mode / action |
|---|---|---|
Screen |
看屏幕 | full(控件树 + 图,默认)· fast(只出图)· displays(显示器与 DPI)。另有 force_image 强制出图 |
Input |
鼠标、键盘、剪贴板、等待 | click type scroll move shortcut wait wait_for multi_select multi_edit clipboard_get clipboard_set sequence |
Programs |
启动程序、管窗口、查杀进程 | launch launch_executable resize switch list kill |
System |
命令、文件、注册表 | 文件 read write copy move delete list search info;注册表 reg_get reg_set reg_delete reg_list;命令 shell |
Scrape |
抓网页(use_dom=true 读浏览器当前页) |
无 mode,参数 url query use_dom use_sampling |
ControlStatus |
谁在控制、空闲多久交还 | 参数 release |
VirtualDesktop |
任务栏那几组窗口 | list current windows create switch rename remove move_window |
IsolatedSession |
独立子会话,不抢键鼠 | status setup start stop inject guard forget |
从 15 个合并到 8 个的依据是参数包含关系,不是凑数:Screenshot 的六个参数全在
Snapshot 里、DisplayInventory 一个参数都没有、Clipboard 的 text 在 Input
里本来就是参数。完整的合并账在仓库根目录的 README。
和内置 pwsh 工具的分工:pwsh 是命令行层(改文件、跑脚本、抓日志),GUI 是图形层(点安装向导、读弹窗、处理只有 GUI 才有的流程)。
依赖
uvx必须在机器上装好,否则插件行起不来- 依赖由 uvx 从 PyPI 装(
windows-mcp==0.8.9要求 Python>=3.14:pywin32、comtypes、dxcam 等)
装 uv(任选一种):
winget install --id=astral-sh.uv -e
# 或
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
装完重开一个终端让 PATH 生效,然后 uvx --version 确认。
uvx 的位置由 !!js 依次探测:%GUI_UVX% → ~/.local/bin → %UV_INSTALL_DIR% →
%LOCALAPPDATA%\Programs\uv → ~/.cargo/bin → chocolatey → C:\Program Files\uv。
都不在就退回裸名 uvx 交给 PATH。装在奇葩位置的人设 GUI_UVX 指过去即可。
报「initial connection or tool synchronization failed」先查这个。 这句是 dsh 的兜底文案,真实原因在它下面那行
cause里。 十有八九是没装 uv,或者装了但 PATH 里没有。关掉再装不会自动重连成功 —— 改完要让插件行重新启用一次(plugin_manager关掉include:gui再打开)。
本地分支怎么接的
包本体来自包内 vendor 的源码,依赖仍来自 PyPI。
args: ['--python','3.14','--from','windows-mcp==0.8.9','windows-mcp','serve','--transport','stdio']
env:
PYTHONPATH: <本包位置>/vendor/windows-mcp # !!js 反解,不写死
--from 钉了版本,别改回裸名。裸 windows-mcp 在开发机上一直没事,因为 uv 早缓存了
当时的解析结果;干净机器会现拉最新版,而上游每个小版本都可能动 CLI 参数和依赖图。
vendor 里的源码树是 0.8.9,pin 必须跟它对齐 —— 升级时两处一起改。
不用 --from <本地目录>:uvx 对本地目录的构建缓存不看文件 mtime,改完源码它照样复用上一次构建的产物。实测把整个文案改成中文之后跑起来还是旧文案,而且没有任何提示。PYTHONPATH 让源码直接生效,改一行就是一行。
代价是那个目录必须是全量源码树(完整的 windows_mcp/ 包),不能是只放改动文件的覆盖层。PYTHONPATH 一旦命中,同名子模块全部从这里取,缺文件就是 ImportError。
路径由 !!js 从本包位置反解,不写死绝对路径。写死的话别人 clone 下来装,那个目录不存在,而 dsh 不会报错——它静默落回 PyPI 上游,于是 VirtualDesktop 消失、屏幕提示变回英文。
源码里的改动与实测边界见 vendor/windows-mcp/README.local.md。
改
- 换服务器网关名:
cordis.patch.yml里的serverName(工具前缀随之变化,规则^[A-Za-z0-9_-]{1,32}$) - 退回纯上游:删掉
PYTHONPATH那段即可(工具会退回上游的 21 工具版,VirtualDesktop与IsolatedSession消失,屏幕提示变回英文) - 命令跑得慢:调
toolCallTimeoutMs/startupTimeoutMs - 不想自动重连:
reconnect.enabled: false
改完在插件页重新启用 include:gui 即可热加载。
改了
vendor/windows-mcp里的 Python 源码,必须删__pycache__再重启, 否则.pyc旧字节码会盖住新代码,而且毫无征兆:Get-ChildItem vendor\windows-mcp -Recurse -Directory -Filter __pycache__ | Remove-Item -Recurse -Force
自检
改完先跑一遍,不需要 dsh:
node selftest.js # 结构 + 技能 + 连接层(会真起一次 MCP,约 5 秒)
node selftest.js --no-connect # 只验结构与技能
验的是三件「改对了也看不出来」的事:
- 包结构 ——
dsh.bundle.patch、args里没有相对路径、command是!!js探测出来的 (不许写死某台机器的 uvx 路径)、--from钉了windows-mcp==0.8.9、PYTHONPATH指向的是完整源码树而不是增量覆盖层。 - 技能 frontmatter ——
name是 kebab-case 且与目录名一致、description不为空。 缺 description 时 dsh 会静默不加载,用户只看到「AI 不会用」,没有任何报错。 - 连接层 —— 真起 stdio、
initialize、tools/list,确认工具数是 8、8 个名字都在 (VirtualDesktop与IsolatedSession都在,说明本地分支生效)、9 个旧工具名 一个都没重现、每个工具的mode/action枚举齐全、工具名不重复、 屏幕提示文案是中文、名字合 dsh 字符集。
提交
本目录是独立 git 仓库,署名与「WPS 多面手」一致:
git config user.name "赢容"
git config user.email "yingrong@local"
提交信息用 feat: / fix: / chore: + 中文描述,—— 分隔动作与理由。
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38236
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37190
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
superdesigndev/treg★ 9111
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6016
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
helloHub1212/dsh-windows-mcp★ 2563
Bridges the CursorTouch/Windows-MCP desktop automation server into DSH through the official MCP client bridge, registering its screenshot, UI tree snapshot, mouse and keyboard input, clipboard, process and registry tools as mcp__windows__* tools for the model, and adds a windows_mcp_doctor diagnostic tool. Computer Use is off by default and is switched on from the plugin panel.
sixtysevenlf/dsh-blender-plugin★ 2280
Lets a DSH agent drive a local Blender over a direct TCP channel with 15 tools: viewport frames, custom-angle renders, Python execution, headless and job offload, transaction rollback, and a planning layer of 228 ops across 34 families.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.