DeepSeek Harness Computer Use 指南:权限开启与 cua-mcp
解答 DeepSeek Harness 有没有 Computer Use:在 macOS 与 Windows 实验插件中开启桌面控制、授予辅助功能与录屏权限,并通过 cua-mcp 服务外部客户端。
本页内容
1. DeepSeek Harness 支持 Computer Use 吗?如何开启
支持(默认关闭)。DSH 发行版内置实验性桌面控制包 @deepseek-ai/dsh-cua-bundle。在受支持的 macOS 或 Windows 主机上打开侧栏 Plugins → More(更多),在 Experimental plugins(实验性插件) 列表中打开 Computer use 开关即可对当前和新建会话生效。
CUA 采用按应用/窗口独立授权(独立于普通 Shell 审批策略),且同一进程一次只能注册一个 Computer Use 驱动(@deepseek-ai/dsh-computer-use)。请先在无敏感登录态的测试窗口验证。
2. macOS 与 Windows 权限准备对照
| 系统平台 | 原生辅助程序与权限要求 |
|---|---|
macOS (dsh-cua-macos) | 正式发布包自带已签名公证的独立应用 DSH Computer Use.app(无需装编译器);在“系统设置 → 隐私与安全性”中为该应用授予“辅助功能(Accessibility)”与“屏幕与系统音频录制(Screen Recording)”权限。 |
Windows (dsh-cua-windows) | 按 AUMID 发现应用并对选中窗口读取无障碍树、截图与模拟键鼠;源码构建需 PATH 中有 .NET 10 SDK,或解压独立 win-x64 helper 后配置 helperPath 绝对路径。 |
3. 进阶:用 cua-mcp 给 Claude Code / Codex 提供桌面控制
不要把 @deepseek-ai/dsh-cua-mcp 加进已包含 dsh-base 的常规 web Profile(ID 会冲突);应单独建一个只包含该 Bundle 的轻量 Profile,通过 stdio 暴露给任意 MCP 客户端:
mkdir -p "${DSH_HOME:-$HOME/.dsh}/profiles/cua-mcp"
printf '%s\n' '{ "name": "dsh-profile-cua-mcp", "private": true, "dependencies": {}, "dsh": { "profile": { "bundles": ["@deepseek-ai/dsh-cua-mcp"] } } }' > "${DSH_HOME:-$HOME/.dsh}/profiles/cua-mcp/package.json"
npx @deepseek-ai/dsh --profile cua-mcp常见问题
DeepSeek Harness 有 Computer Use(操控电脑桌面)能力吗?
有。DSH 内置实验性插件包 @deepseek-ai/dsh-cua-bundle(默认关闭),在 macOS 与 Windows 的“插件 → 更多 → 实验性插件”中开启 Computer use 即可按窗口授权操作桌面。
开启后模型用什么工具操控窗口?
Standard 等常规预设会获得 cua_run_code 工具(自动注入 cua 对象);PTC 模式则直接在 run_code 中使用 cua 绑定。截图传回模型需要当前所选模型本身支持图片输入。
能把 DSH 的 Computer Use 暴露给 Claude Code 或 Codex 用吗?
可以。创建仅挂载 @deepseek-ai/dsh-cua-mcp 的独立 Profile 后,运行 dsh --profile cua-mcp 即可通过 stdio 提供 cua_get_api_reference、cua_run_code 与 cua_reset 三个 MCP 工具。