Minecraft modpack tools for DSH: preflight checks, crash-log diagnosis, lock-file verification, modpack deploy and missing-mod backfill, and launch-command generation that never starts the game.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-blockpilot
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:limingzxc/BlockPilot#path:/integrations/dsh-blockpilot
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
BlockPilot 的 DeepSeek Harness(DSH)适配层:把 Minecraft 整合包的预检、崩溃诊断、实例校验、部署、补装与启动命令生成暴露成 DSH 工具。
状态 0.2.0(beta)。十个零风险工具默认注册(不写盘、不启动游戏、不下载);九个写工具默认不注册,需要 allowWrite 且走审批。peer 覆盖 DSH 0.2.2 与 0.2.3 两条线,两条线上的写工具审批与后台 job 都已实测。
run 和 login 不暴露。 启动游戏和正版登录留在 CLI 与启动器那边:插件负责「诊断 + 验证能跑」,blockpilot_launch 只生成命令,不替你按回车。
安装
需要 Node 24+ 和已安装的 DSH。
# 从 npm 安装发布版
dsh plugin add dsh-blockpilot
# 从本地 checkout 安装(开发期)
dsh plugin --profile blockpilot-dev add ./integrations/dsh-blockpilot
# 桌面端:装进 desktop profile,再到「插件 → 已安装」确认启用
dsh plugin --profile desktop add dsh-blockpilot
配置
配置写在 cordis.patch.yml:
- insert:
- id: blockpilot
name: dsh-blockpilot
config:
root: D:/mc
instance: default
allowWrite: false
所有字段都有默认值;root 默认是平台数据目录下的 BlockPilot。
| 字段 | 默认 | 说明 |
|---|---|---|
root |
defaultRoot() |
游戏根目录;写操作只允许在这里 |
instance |
default |
默认实例名 |
china |
false |
镜像优先 |
allowCfMirror |
true |
CurseForge 镜像回落 |
allowWrite |
false |
是否注册全部写工具(安装、配置、Java) |
writeApproval |
always |
写工具是否走审批 |
java |
未设置 | Forge / NeoForge installer 用 |
proxy |
未设置 | deploy / installer 代理 |
concurrency |
4 |
下载并发 |
maxFindings |
50 |
预检渲染上限 |
allowedRoots |
未设置 | 读工具的可选收紧 |
background |
true |
有 jobs 时后台跑长任务 |
工具
只读,默认注册:
blockpilot_preflight:检查整合包或实例目录能否运行。blockpilot_diagnose:读崩溃日志,判断根因并尽量指认模组。blockpilot_verify:按lock.json核对已装文件。blockpilot_logs:列出实例日志。blockpilot_update_check:检查模组更新,不应用。blockpilot_launch:生成启动命令,不会启动游戏。默认离线,令牌不进返回值。blockpilot_java:列出本机可用的 Java,不下载。blockpilot_accounts:列出已保存的账号名,不含任何令牌。blockpilot_instances:列出根目录下的全部实例:版本、加载器、模组数、清单状态。blockpilot_mods:列出实例mods/里的模组,分启用与已禁用两组。
写工具,allowWrite: true 才注册:
blockpilot_deploy:安装整合包;dryRun只返回计划,正式执行走后台 job。blockpilot_install:补装缺失依赖;dryRun只返回计划,正式执行走后台 job。blockpilot_setup:装原版(client jar / libraries / natives)。blockpilot_assets:下载 assets 对象,约 600 MB。blockpilot_loader:装 fabric / quilt / forge / neoforge,kind区分。blockpilot_config:改实例内存 / Java / JVM 参数;不传修改参数时只读。blockpilot_java_install:从 Adoptium 下 JRE 到<root>/java。blockpilot_create:新建实例(原版 + 加载器);dryRun只返回计划。blockpilot_mod_toggle:启用 / 禁用模组,只改名加.disabled,可回滚。
run / login / delete 永不注册。blockpilot_launch 只生成命令;真启动请把命令贴进终端,或直接用 CLI 的 blockpilot run。
启动命令与令牌
blockpilot_launch 默认走离线模式:生成的命令完整可跑,且不含任何令牌,可以直接复制到终端。
显式传 account 时才解析正版身份,此时命令里的 --accessToken 会被替换成 ***——结构看得懂,但跑不了。要真实令牌请回 CLI:
blockpilot launch <version> --raw
这条边界是刻意的:工具返回值会进模型上下文和聊天记录,而 CLI 的脱敏发生在终端展示层,两者不共享路径。
兼容矩阵
| blockpilot | dsh-blockpilot | DSH |
|---|---|---|
| 0.4.x | 0.2.x | 0.2.x |
插件依赖 blockpilot ~0.4.0,DSH 依赖 >=0.2.2-rc.5 <0.3.0。DSH 升到 0.3 时,插件开 0.3.0。
故障排查
- 看不到写工具:正常。写工具默认不注册,先把
allowWrite设为true。 NEED_JAVA:Forge / NeoForge 需要 Java 跑 installer;在配置里给java,或先跑blockpilot_java_install。WRITE_DISABLED:工具注册了但配置里allowWrite不是true;两者要一致。LOCK_NOT_FOUND:实例还没通过deploy装过,没有.blockpilot/lock.json;verify/update_check只对 deploy 出来的实例有效。verdict=unknown:有模组没能校验,不等于 ok;不要说「没问题」。blockpilot_launch返回的missing非空:文件没装齐,先setup/deploy,别急着执行命令。- deploy 直接前台跑、没有 jobId:profile 里没有
dsh-jobs-local/dsh-tool-jobs;装上就走后台,否则自动降级。 - 日志被拒绝:
blockpilot_diagnose只收.log/.txt,单文件 ≤ 20 MB;显式传的modsDir也必须在allowedRoots内。
开发
# 先构建 core
npm run build
cd integrations/dsh-blockpilot
npm install
npm run build
npm test
开发期 package.json 里 blockpilot 用 file:../..;发布前改回 ~0.4.0。
许可
MIT,见 LICENSE。
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38608
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37289
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 28947
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 10049
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6112
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4761
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.