reactive-resume
amruthpillai
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xxxyz/DeepSeekHarness-MCP-Manager
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
服务器列表 新增 / 编辑 / 删除 启用 / 停用 重启 工具数健康 JSON 导出 / 导入4 个模型工具 HTTP API npx / npm / dsh plugin / 脚本cordis.patch.yml 中的 @deepseek-ai/dsh-mcp-client 行——
@deepseek-ai/dsh-mcp-client 实例)——serverName、传输方式(stdio / streamable-http)、URL / 命令、启用状态、loader 实时加载阶段、已注册工具数profiles/<profile>/cordis.patch.yml)或全局(~/.dsh/cordis.patch.yml),重启后保留;页面底部显示文件路径mcp_manager_* 工具,模型可直接查询与操作 MCP 服务POST /dsh-mcp-manager/api(JSON {op, args} → {ok, ...}),供客户端与脚本调用dsh plugin / 脚本)前置:DSH 已装好(dsh web 能正常运行),Node.js ≥ 18。
npx -y @xxxyz/dsh-mcp-manager
所有参数照常透传:npx -y @xxxyz/dsh-mcp-manager --dsh-home /path/.dsh --profile web --repair --port 3080。
npm i -g @xxxyz/dsh-mcp-manager
dsh-mcp-manager # 安装插件
dsh-mcp-manager-uninstall # 卸载插件
npm i -g @xxxyz/dsh-mcp-manager@latest # 升级
dsh plugin --profile web add @xxxyz/dsh-mcp-manager
# 或 GitHub 源(构建产物 lib/ 已入库,无需本地构建)
dsh plugin --profile web add github:xxxyz/DeepSeekHarness-MCP-Manager
npx -y github:xxxyz/DeepSeekHarness-MCP-Manager
Windows(PowerShell):
.\dsh-mcp-manager\install.ps1 # 默认 ~/.dsh + web profile
.\dsh-mcp-manager\install.ps1 -DshHome D:\path\.dsh -Profile web
macOS / Linux(bash)(无执行权限先 chmod +x dsh-mcp-manager/install.sh):
./dsh-mcp-manager/install.sh # 默认 ~/.dsh + web profile
./dsh-mcp-manager/install.sh --dsh-home /path/.dsh --profile web
任何平台直接运行:
node dsh-mcp-manager/install.mjs [--dsh-home <path>] [--profile <name>] [--port <n>] [--repair] [--skip-patch]
安装脚本会:① 复制到 local-packages/(真源备份,DSH 升级不动它)② 复制到 profiles/node_modules/(普通复制而非软链接,保证 ESM 能解析 @deepseek-ai/dsh-tools)③ 幂等追加 loader 行(insert 块)。
装完硬刷新浏览器(Cmd/Ctrl+Shift+R),打开 设置 → MCP 管理 即可看到管理页。若未出现,重启一次 DSH(host 半首次挂载需要)。
dsh-mcp-manager-uninstall # 若用 npm -g 安装
# 或:.\uninstall.ps1 | ./uninstall.sh | node uninstall.mjs [--dsh-home <path>] [--profile <name>]
然后重启 DSH。卸载删除部署副本、local-packages 真源,并清理 loader 行(补丁保持合法)。
DSH 升级(或 HMR 状态异常)后若 设置里没有"MCP 管理" 或 *`mcpmanager工具消失**,运行一次修复命令:重新部署 → 递增 loader 行config.version(触发 HMR 重应用)→ 轮询 API 直到{ok:true}`(默认 30 秒)。
node dsh-mcp-manager/install.mjs --repair --port 3080
# PowerShell: .\install.ps1 -Repair -Port 3080 bash: ./install.sh --repair --port 3080
仍不恢复则重启一次 DSH(loader 启动时重新导入)。
| 现象 | 原因与解决 |
|---|---|
| 装完设置里没有"MCP 管理" | 硬刷新(Cmd/Ctrl+Shift+R);仍没有就重启 DSH 一次。 |
| 页面出现两个 MCP 页签 / 工具重复 | 双挂载:同时用了 install.mjs 与 dsh plugin add 两种方式。卸载其中一种(dsh-mcp-manager-uninstall 或删掉对应的 loader 行 / dsh.profile.bundles 条目)。 |
| DSH 升级后工具消失 | 跑一次 --repair(见上)。 |
npx / npm view 报 404 |
国内镜像(npmmirror)同步有延迟:加 --registry=https://registry.npmjs.org 或稍等再试。 |
安装脚本报错 EPERM |
DSH 正在运行占用了文件:先退出 DSH 再装。 |
| 修改配置后未生效 | 所有修改走 HMR 热应用,等 1–2 秒自动刷新;页面会自动轮询。 |
打开 设置 → MCP 管理:
serverName(唯一,1–32 位 [A-Za-z0-9_-])、传输方式及对应字段(streamable-http 填 URL / headers;stdio 填 command / args / env),选择级别(项目级 / 全局)。面板做格式与重名校验。插件自身在 loader 行中的配置:
| 字段 | 说明 |
|---|---|
version |
loader 行 config.version。--repair 会将其递增以强制 HMR 重应用,无需手动修改。 |
loader 行必须为 insert 块形式(DSH patch 方言中普通 - id: 行只是对已存在条目的覆盖,无法新增插件):
- insert:
- id: dsh-mcp-manager
name: dsh-mcp-manager
config:
version: 1
src/index.ts → lib/index.js,对象形态 Cordis 插件 {name, inject, apply}):inject 声明 timer/fs/settings/sandboxPolicy/webServer/tools,框架保证就绪并在依赖消失时自动重载——这是插件跨 DSH 升级存活的机制。注册 4 个模型工具(ctx.tools.register(defineTool(...)))与精确路由 POST /dsh-mcp-manager/api(ctx.effect 作用域化清理);对 cordis.patch.yml 做行级 CRUD(迷你 YAML 解析 + 按文件写锁)。lib/client.js,ModuleLoader CJS bundle):注册 设置 → MCP 管理 页(settings.section 槽位,order 16),经同源 fetch('/dsh-mcp-manager/api') 与宿主通信,不直接访问文件系统。cordis.patch.yml,client-modules 服务扫描启用的条目并下发客户端 bundle。install.mjs(跨平台核心)/ install.ps1 / install.sh + 对应的 uninstall.*;npm 包 @xxxyz/dsh-mcp-manager 的 bin 直接执行安装器(dsh-mcp-manager / dsh-mcp-manager-uninstall)。npm install
npm run build # tsc -p tsconfig.json → lib/index.js(宿主端)
src/index.ts;浏览器 bundle:lib/client.js(手写,无需构建)@deepseek-ai/cordis、@deepseek-ai/dsh-tools、@types/node)npm version patch && npm publish(prepublishOnly 自动构建;scoped 包已配置 publishConfig.access: public)MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: dsh-mcp-manager。