前言¶
在 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 界面中授權 |
環境與前置條件¶
- Apple Silicon Mac,macOS 14 或更高。
- 已從 Kimi 官方渠道 安裝
KimiCU.app並保持運行;在應用內完成輔助功能與屏幕錄製授權。 - 本機已安裝 DSH,且
dshCLI 內置@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
驗證是否接好¶
- boot 後等待
mcp__cu__*工具出現(發現過程是異步的)。 - 讓智能體列出當前打開的應用,確認其調用
mcp__cu__list_apps(或等價 discovered 工具),並返回來自正在運行的 KimiCU.app 的真實結果。 - 涉及 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 應用與系統權限的責任。
鏈接¶
- 目錄頁:https://www.skillhub.cn/plugins/dshapp/dsh-kimi-computer-use
- 源碼與 README:https://github.com/dshapp/dsh-kimi-computer-use
- DSH App 家族中 Computer use 產品概覽:https://dshapp.github.io/en/products/cu/