dsh-mcp-proxy
ben7am1n
Context-cheap lazy MCP access for DeepSeek Harness
PROJECT TOPICS
PROJECT README
你的 DeepSeek Harness 开发锻造工坊——装上就能干活,不必 fork,不必魔改,不必重新发明轮子。
别的工具让你配半天环境才能开始写代码,我们让你今天就能开始。deepseek-forge 是一套按需安装的开发能力包:GitHub、浏览器验证、九种开发工作流、一个会帮你盯着 token 消耗的监督员——全都长在 Harness 原生机制上,卸载即净,不留后遗症。
兼容说明:安装命令与各组件包继续沿用
dsh-devkit命名(CLI 为npx dsh-devkit),既有 profile 不受影响。
devkit_capability 唤起,turn 结束自动收回。你的提示词里不该躺着二十个用不上的 schema。要求 Node.js 22.19+(22.x)或 24+,以及随 Node 附赠的 npx。不需要全局安装 Harness——dsh-devkit 优先用你 PATH 里已有的 dsh,没有就自动 npx @deepseek-ai/dsh。
先体检:
npx dsh-devkit doctor
打开安装选择界面(方向键移动、空格选择、回车安装):
npx dsh-devkit install --profile web
嫌交互慢?直接上预设:
npx dsh-devkit install --preset frontend --profile web # 前端选手全家桶
npx dsh-devkit install --preset backend --profile web # 后端选手全家桶
npx dsh-devkit install --preset full --profile web # 成年人不做选择
也可以自己点菜:
npx dsh-devkit install --modules core,github,browser --profile web
常用选项:--dry-run(只看命令不执行)、--no-verify(装完跳过配置检查)、--profile <name>(装到指定 profile)。全局装过的话,直接用 dsh-devkit ... 代替 npx dsh-devkit ...。
| 组件 | 用途 |
|---|---|
core |
风险操作提醒、凭据保护和开发 Skills。建议装。 |
github |
GitHub Issue、PR、仓库和 Actions 工作流。 |
browser |
基于 Playwright 的页面检查与浏览器调试。 |
runtime |
Harness 临时 Cordis 扩展工具,仅用于受信任代码。 |
token-watch |
消耗超限/长时间工作时后台并行审查,异常时暂停并请用户裁决。 |
用 GitHub 组件前,在启动 Harness 的环境里提供 fine-grained PAT:
$env:GITHUB_PERSONAL_ACCESS_TOKEN = '<fine-grained PAT>'
export GITHUB_PERSONAL_ACCESS_TOKEN='<fine-grained PAT>'
只授目标仓库和当前任务需要的权限,别把真实 token 写进仓库、配置、聊天或命令历史——让系统的凭据管理来注入,它比你的剪贴板安全。
装完启动 Harness:
dsh --profile web
没有全局 dsh 时:
npx --yes @deepseek-ai/dsh --profile web
setup-github Skill 即可。setup-browser Skill;只有 Playwright 明确提示时才装浏览器文件。troubleshoot-devkit Skill,或 npx dsh-devkit doctor。长任务跑着跑着,模型钻进死胡同狂烧 token——这种事我们见多了。token-watch 就是为此生的:
token_watch 工具调用,或弹窗里一键关闭。审查失败一律放行,绝不卡住你的会话。npx dsh-devkit install --modules core,token-watch --profile web
npx dsh-devkit uninstall --modules core,github,browser,runtime,token-watch --profile web
装了啥就卸啥,干净利落。
DevKit 会减少不必要的工具暴露,并为多类高风险操作增加审批或拒绝,但它不是安全沙箱。真正的安全边界依然是:Harness 的 sandbox、subprocess/approval policy、操作系统权限和远程服务权限。我们负责把风险摊到你面前,你负责拍板——架构与限制详见 DECISIONS.md,路线图见 TODO.md。
正式用户优先 npx dsh-devkit ...。想给本项目贡献代码?
git clone https://github.com/ophielel/deepseek-forge.git
cd deepseek-forge
pnpm install --frozen-lockfile
node ./packages/installer/lib/cli.js doctor
node ./packages/installer/lib/cli.js install --profile web --harness <path-to-deepseek-harness> CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。