dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Import MCP servers & Skills from Claude Code / Cursor / Codex / cc-switch into DeepSeek Harness (Settings → General → 导入智能体设置)
English | 中文
导入智能体设置 —— 在「设置 → 通用设置」新增一行"导入智能体设置",弹出带遮罩的居中卡片,从 Claude Code / Cursor / Codex / cc-switch 一键导入 MCP 服务器与 Skills 到 DeepSeek Harness。
开发者预览(0.1.0)。社区插件,MIT 协议,与 DeepSeek 无隶属关系。
Codex CLI 自带 /import,能把 Claude Code / Cursor 的配置一键导进 Codex;DSH 一直缺这个等价物。本插件补上:通用设置里的一行 → 居中弹窗 → 每个来源卡右侧滑动开关(开=变亮选中,关=灰暗排除)→ 展开勾选类别 → 先预演、后确认写入。
~/.claude、~/.cursor、~/.codex 以及 cc-switch(~/.cc-switch/cc-switch.db,用 Node 内置 sqlite 直读),报告各工具装了什么。CLAUDE.md/AGENTS.md;记忆由匹配到能力的社区插件注入——不写死任何插件名,fork 或换名也能命中)。@deepseek-ai/dsh-mcp-client 行写入 profile 的 cordis.patch.yml(无管理插件 / Hanihahaha 式 UI 插件 / 未来官方 UI 通用);~/.dsh/mcp.json(zebbkira 式 UI)为 auto 检测的备选落点。~/.dsh/skills —— SKILL.md 目录复制(幂等,已存在跳过)。.bak-<时间戳>。| 来源 | MCP | Skills | 指令 | 模型供应商 | 记忆 | 会话 |
|---|---|---|---|---|---|---|
| Claude Code | ✅ | ✅ | ℹ️ 原生读取 | — | ℹ️ 由桥插件 | ⛔ |
| Cursor | ✅ | ✅ | ℹ️ | — | ℹ️ | ⛔ |
| Codex | ✅ (TOML) | ✅ | ℹ️ 原生读取 | — | ℹ️ | ⛔ |
| cc-switch | ✅ (sqlite) | ✅ | — | ℹ️ 由切换插件 | ℹ️ | ⛔ |
# 从 npm(发布后)
dsh plugin --profile web add dsh-inherit
# 或本地目录
dsh plugin --profile web add "D:\path\to\dsh-inherit"
然后打开 设置 → 通用设置 → 导入智能体设置。
包声明了 dsh.bundle.patch + dsh.client,dsh plugin add 会把它 reconcile 进 profile 的 dsh.profile.bundles 层,浏览器半区由 /plugins/dsh-inherit/client.js 提供。新 bundle 延迟后热挂载;host 模块代码改动需重启 dsh web。
双面插件(一个 bundle 行 + dsh.client 声明)
├─ lib/index.js host 半区 — /api/dsh-inherit/sources + /api/dsh-inherit/run(loopback 护栏)
├─ lib/import.js 纯业务 — 来源扫描、多格式解析(mcpServers JSON、Codex TOML、
│ cc-switch sqlite)、MCP→patch / Skills→~/.dsh/skills
└─ lib/client.js browser 半区 — settings.general.item 行 → 居中 Modal → 开关卡片 →
类别勾选 → 预演 → 确认
路由 loopback-only;写入前自动 .bak 备份;导入幂等(同名服务器/Skills 跳过)。
doctor + restore、凭证安全(${VAR} → !!js process.env.VAR)。聚焦 Claude Code。本插件差异化:通用设置内行、多来源开关、cc-switch sqlite 全量来源(providers/MCP/skills/prompts,目前没人做)、Skills 复制、能力级插件检测。暂不迁移 hooks / 斜杠命令 / 会话——那些请配 dsh-claude-move / dsh-chat-import。
cordis.patch.yml / ~/.dsh/mcp.json,注意文件权限;${VAR} 引用尚未转成 !!js process.env.VAR(dsh-movein 做了,注意源配置里的明文 token)。[A-Za-z0-9_-]{1,32} 且全局唯一;sse/ws transport 跳过并告警。doctor / restore 命令——回滚靠 .bak 文件手动处理。react 与 slots 客户端服务。node --check lib/import.js && node --check lib/index.js && node --check lib/client.js
# 来源扫描 + dry-run 导入(不写文件):
node --experimental-sqlite -e "
import('./lib/import.js').then(m => {
console.log(JSON.stringify(m.detectSources(), null, 1).slice(0, 2000))
console.log(JSON.stringify(m.runImport([{source:'claude-code',categories:['mcp']}],{target:'patch',dryRun:true}), null, 1).slice(0, 800))
})"
MIT