dsh-kimi-computer-use: Connecting Kimi Computer Use to the DSH Mac Desktop Control Plugin

前言

在 DeepSeek Harness(DSH)里做智能体时,常见需求是让模型操作没有公开 API 的 Mac 应用:点界面、读屏幕、列当前打开的程序。Kimi 提供的 Kimi Computer Use 通过本地 KimiCU.app 和 stdio MCP 暴露这类能力,但 DSH 侧还需要一条标准接入路径,以及一套与 MCP 工具配合的交互与安全规则。

dsh-kimi-computer-use 由社区维护者 dshapp 发布,属于第三方互操作插件;其收录并不表示 DeepSeek 或 Moonshot AI 背书、推荐或持续支持。下面介绍它的定位、能力与安装验证方式。

这是什么

该插件是一个 DSH bundle:通过通用的 @deepseek-ai/dsh-mcp-client 桥接,把 Kimi Computer Use 的 stdio MCP 服务挂进 DSH,并注册内置 skill kimi-computer-use(交互循环与安全规则)。DSH 随插件生命周期启动、停止 kimi-cu mcp 子进程;不负责下载、安装或监管 KimiCU.app 本身。

npm 包名 dsh-kimi-computer-use,当前资料中版本为 0.1.5,许可证 MIT。要求 Node >=22.19,且已安装的 @deepseek-ai/dsh 不低于 0.1.1-rc.2(CLI 需自带 @deepseek-ai/dsh-mcp-client)。

插件做什么、不做什么

事项 本插件 你需要 / KimiCU.app
插入一条 @deepseek-ai/dsh-mcp-client 配置,stdio 启动 kimi-cu mcp 是 —
发现并注册 KimiCU 的 MCP 工具为 mcp__cu__<tool> 是 —
注册 bundled skill kimi-computer-use 是 —
下载、校验或安装 KimiCU.app 否 从 Kimi 官方渠道安装
Bundle ID / arm64 / Team ID / codesign 校验 否 由 KimiCU 安装器处理
启停 KimiCU 后台服务 否 自行保持应用运行
授予辅助功能、屏幕录制权限 否 在 KimiCU.app 界面中授权

环境与前置条件

  1. Apple Silicon Mac,macOS 14 或更高。
  2. 已从 Kimi 官方渠道 安装 KimiCU.app 并保持运行;在应用内完成辅助功能与屏幕录制授权。
  3. 本机已安装 DSH,且 dsh CLI 内置 @deepseek-ai/dsh-mcp-client(资料写明:@deepseek-ai/dsh >= 0.1.1-rc.2 的发布版满足此条件)。

插件以当前 dsh 进程权限运行;安装前请自行查看 GitHub 源码 与 MIT 许可证,仅从可信来源安装。

安装与启用

插件需加入某个 DSH profile。完整机制见 plugin-and-profile 教程。资料中的安装命令如下:

dsh plugin --profile demo add dsh-kimi-computer-use          # once published to npm
dsh plugin --profile demo add ./dsh-kimi-computer-use        # from a local checkout
dsh plugin --profile demo add github:<you>/dsh-kimi-computer-use#<sha>   # from git, pinned to a commit

从 git 安装时会执行包的 prepare 脚本以从源码构建 lib/skills.js;若 pnpm ≥10 拦截构建,dsh plugin 会提示被拦的包名。按提示在 profile 的 pnpm-workspace.yaml 中允许该包构建后重试:

allowBuilds:
  dsh-kimi-computer-use: true

仅对你信任且已 pin 到具体 commit 的源码开启 allowBuilds,避免后续推送 silently 改变安装时执行的代码。

不启动会话即可检查配置是否生效,再正常 boot:

dsh --profile demo --dump-config   # shows a "# == dsh-kimi-computer-use" layer
dsh --profile demo

移除插件:

dsh plugin --profile demo remove dsh-kimi-computer-use

验证是否接好

  1. boot 后等待 mcp__cu__* 工具出现(发现过程是异步的)。
  2. 让智能体列出当前打开的应用,确认其调用 mcp__cu__list_apps(或等价 discovered 工具),并返回来自正在运行的 KimiCU.app 的真实结果。
  3. 涉及 GUI 操作时,bundled skill 会要求智能体先说明将执行的操作,并在发送、删除、购买、发布等难以撤销的操作前征得你确认。

安全说明

KimiCU.app 的安装器会自行校验 Bundle ID、arm64 与 Apple codesign;这些步骤不经过本 bundle。请只从 Kimi 官方渠道安装 KimiCU.app。若通过 git 安装本插件,只对信任且 pin 到固定 commit 的源码允许 prepare 构建。

适用场景与注意

适合已在 Mac 上使用 DSH、并已部署 Kimi Computer Use(KimiCU.app 常驻且权限齐全)的开发者,希望把桌面操控能力以 mcp__cu__* 工具形式交给同一套 DSH 会话与插件生态使用。

DSH 社区插件目录在独立站点展示,与 DeepSeek / 幻方无官方从属关系;本插件同样为社区第三方作品。它不能替代你在本机维护 KimiCU 应用与系统权限的责任。

链接

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye