CatNebulaaaa/wps-dsh-plugin ↗★ 4
dsh-plugin-wps-office
非官方 WPS Office 捆绑包,通过 wps-skills 接入 DSH。 适合需在 DSH 中操作 WPS Office 的用户,需配置 WPS_SKILLS_ROOT 环境变量。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:CatNebulaaaa/wps-dsh-plugin說明文件
閱讀完整 README ↗配置 WPS 路径
推荐设置 WPS_SKILLS_ROOT 为上游仓库的绝对路径:
$env:WPS_SKILLS_ROOT = (Resolve-Path 'C:\path\to\wps-skills').Path
也可以只设置编译入口:
$env:WPS_OFFICE_MCP_ENTRY = (Resolve-Path 'C:\path\to\wps-skills\wps-office-mcp\dist\index.js').Path
DSH 会从启动目录的 .env 和 $DSH_HOME/.env 加载环境变量。需要跨项目使用时,可将不含密钥的路径配置写入 $DSH_HOME/.env;不要把个人路径或任何凭据提交到 Git。
上游 MCP 默认把日志写到用户主目录的 .wps-office-mcp/logs。如果运行环境限制该目录写入,可把日志重定向到另一个可写目录:
$env:WPS_MCP_HOME = 'D:\path\to\writable-home'
使用本地构建的 DSH 安装
下面示例直接运行源码 checkout 已构建的 CLI:
$DshRoot = 'D:\path\to\deepseek-harness'
$PluginRoot = 'D:\path\to\dsh-plugin-wps-office'
node "$DshRoot\apps\cli\lib\bin.js" plugin --profile web add $PluginRoot
node "$DshRoot\apps\cli\lib\bin.js" --profile web --dump-config
node "$DshRoot\apps\cli\lib\bin.js" web
已全局安装 DSH 时:
dsh plugin --profile web add .
dsh --profile web --dump-config
dsh web
安装 GitHub 版本时建议固定 commit:
dsh plugin --profile web add github:CatNebulaaaa/wps-dsh-plugin#COMMIT_SHA