跳过主要内容
J

dsh-zh-server

jinliyun-hub/dsh-zh-server

把文件夹、.zip 或 .mrpack 形式的 Minecraft 整合包转换成可运行服务端:识别 Minecraft 版本与加载器,按自制移除库分类 Mod,安装服务端核心,并生成启动脚本、服务器配置和转换报告。纯 Node.js,不包含可执行文件或原生二进制。

安装

dsh plugin --profile web add github:jinliyun-hub/dsh-zh-server

README

Server toolkit

Turn a Minecraft modpack into a runnable server inside DeepSeek Harness. The plugin ships a sidebar panel and two agent tools, uses the DSH-bundled Node.js runtime only, and contains no executables or native binaries.

What it does

  • Detects the pack format and version from CurseForge manifest.json, Modrinth modrinth.index.json, launcher version JSON / libraries, or mod jar metadata, and reports confidence and candidates instead of guessing.
  • Reads jar metadata (fabric.mod.json, quilt.mod.json, META-INF/mods.toml, META-INF/neoforge.mods.toml, including nested jar-in-jar) to classify every mod as client / server / both / unknown.
  • Three removal strategies: AI suggestions (explicit, token-spending), the custom removal library (the only deletion authority in that mode), or keep everything with a clear warning.
  • Manage the removal library in its own dialog: drop jars or a whole mods folder, read metadata only, dedupe, bulk toggle, import/export, preview and save.
  • Copies mods, config, defaultconfigs, kubejs and other server content, fetches missing .mrpack files, moves removed jars to _removed/ for rollback, never edits the source pack.
  • Installs the server core (Vanilla, Fabric, Quilt, Forge, NeoForge) with Java 8/17/21 detection, BMCLAPI mirrors, retries and cancellation; writes eula.txt, server.properties, start.bat / start.sh, report.json and report.md.
  • Agent tools zh_analyze and zh_convert share the same Host service as the panel and return short summaries; full logs stay in zh-server.log.

Requirements

  • DeepSeek Harness with the bundled Node.js 20+ runtime (no npm build step, no native module).
  • Java as an external prerequisite for running the Forge/NeoForge installer and the server. The plugin never bundles a JRE and tells you which major version the pack needs.

Install

Install the package directory as a bundle in the current profile, for example with the Plugin Manager's Add plugin action or the plugin_manager tool's install_bundle action. Then open Server toolkit in the sidebar. Restart the app after installing a new bundle version.

Use

  1. Choose the modpack folder, .zip or .mrpack.
  2. Check the detected Minecraft version, loader, Java and mod count; low confidence is highlighted.
  3. Pick a removal strategy and manage the custom library from the top Removal library action.
  4. Optionally open the advanced options for port, MOTD, download mirror and overwrite permission.
  5. Convert, watch progress and the last log lines, then open the report or the output folder.

The panel has two views that share every piece of state: Simple view (default) is a three-step flow — pick modpack, mod strategy, generate output — and Detailed view shows the five KPIs, the mod list, conversion settings and the run log. Switching views never cancels a running conversion or resets the source, output, mods, library rules, options or progress. The removal library is opened from the top action in both views; it is not a card inside either view.

Data and privacy

  • The panel and the default conversion use the local Host service.
  • Only the AI decides strategy calls the configured model, only after an explicit action, and sends a compact manifest (file name, mod ID, side hint) — never jar contents. Suggestions are applied only after you ask for them.
  • The removal library lives in $DSH_HOME/zh-server/removal-library.json, never in the plugin install directory.
  • The source modpack is read-only. Removed mods are moved to <dest>/_removed/mods/ so you can restore them.

Known limitations (v0.1.1)

  • Forge 1.20.1 is the only path tested end to end. Other loaders are detected and have installers implemented, but not verified with real packs.
  • .mrpack archives that store no mods require network access to download listed files; failures are reported, not hidden.
  • Java must already be installed. There is no automatic JRE download.
  • AI mode needs a configured model in DSH; without one the option is disabled.

License

MIT

相关插件