rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xin070710/dsh-mc-instances
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Right sidebar entry: once the plugin loads, the session's right sidebar gains an “MC instances” tab. The “Minecraft instance manager” card on the guide page and the MC instances button in the session header open the same PCL2-style panel — instance cards, one-click start/stop, mod toggles and game/Gradle logs. Disabling the plugin removes these entry points; the panel only writes
run/,.idea/runConfigurations/, and launch logs under the project'slogs/, never project files.
Manage Minecraft mod-testing instances from inside DeepSeek Harness.
It manages the instance-isolation setup every mod dev ends up building: each project runs
gradlew runClient -Pinstance=<name> to point the game directory at its own run/<name>/,
with its own mods/ config/ saves/ logs/.
The annoying part is that those instances never show up in the IDE run dropdown, and each
mods/ folder has to be filled by hand. This plugin turns the whole ritual into one sentence
or one click.
| Capability | Detail |
|---|---|
| PCL2-style sidebar panel | An “MC instances” tab in the session's right sidebar: cards grouped by project with loader, MC version, JDK, mod count and last activity; search, loader filters and a running filter. Detects the current session workspace; auto-hide is on by default |
| Launch / stop | Starts gradlew runClient -Pinstance=… (or the server) from the panel, shows PID and uptime, and stops the whole process tree; Gradle output goes to the project's logs/launch-*.log |
| Game and Gradle logs | Two log views with auto-refresh and error/warning highlighting, plus copy-path and reveal-in-file-manager actions |
| List instances | Finds every project that supports instance isolation plus all of its instances (including the default run/), with loader, MC version, JDK, mod count and last-played time |
| One-click IDE configs | Writes .idea/runConfigurations/<project>-<instance>.run so each instance appears in the IntelliJ run dropdown — pick it, hit the green triangle, debug/breakpoints included |
| Create instance | Makes run/<name>/{mods,config,saves,logs} and inherits the default instance's options.txt |
| Mod toggles | Enable/disable by renaming xxx.jar ⇄ xxx.jar.disabled — nothing gets deleted, switching test setups is instant; also “keep only this one” |
| Pick mods from the workspace | Collects candidate jars from _shared/, _mods/, every run/mods and run/<instance>/mods, then imports them into the target instance |
| Read logs | Tails the instance's logs/latest.log so you can see whether a mod loaded or crashed |
| Delete instance | Removes run/<instance>/ (the default run/ is protected) |
From the plugin market (recommended): open Plugins → Plugin Market, search for “MC instances” or dsh-mc-instances, and install.
Or install directly from GitHub (no build step):
dsh plugin --profile web add github:xin070710/dsh-mc-instances
Restart dsh web. No further configuration needed. On Desktop, install from Settings → Plugins so it lands in the profile the app actually uses.
Just talk to the agent:
list my Minecraft test instances
create an instance called dev2 for example-mod and copy JEI into it
keep only Pixelmon enabled in example-mod-dev2
generate the IDE run configurations
example-mod-dev2 crashed on launch, show me the log
Tools it can call:
| Tool | Purpose |
|---|---|
mc_instances |
action: list for everything, action: detail for one instance |
mc_instance_create |
Create an instance; optionally copy a whole mods/ set from another instance |
mc_mods |
list / enable / disable / only / import / remove / candidates |
mc_instance_log |
Tail an instance log (120 lines by default, up to 2000) |
mc_instance_launch |
Launch an instance in the background (gradlew runClient -Pinstance=…), returning the PID and log path immediately |
mc_instance_launch_log |
Tail the Gradle-side launch log (logs/launch-<instance>-<side>.log) |
mc_ide_config |
Write IntelliJ run configs for all or one project (server: true → runServer) |
mc_instance_delete |
Delete an instance directory |
Workspace resolution: tool argument workspace → env DSH_MC_WORKSPACE → process current directory. The panel prefers registered DSH workspaces and respects the auto-hide setting before switching.
DSH_MC_WORKSPACE=D:\path\to\your\mods dsh web
You can also set the default workspace on the plugin row in the profile's cordis.patch.yml (the public repo contains no machine-specific paths):
- id: mc-instances
name: dsh-mc-instances
config:
workspace: D:\path\to\your\mods
JDK resolution: project gradle.properties (org.gradle.java.home) → DSH_MC_JDK17/21/25 → JAVA_HOME → common install directories (C:\Program Files\Java, Eclipse Adoptium, Microsoft, ~/.jdks, /usr/lib/jvm, and similar).
mc_ide_config)example-mod-dev2 in the run dropdown and hit the green trianglebuild.gradle to detect loader/version/JDK; writes happen in run/ and .idea/runConfigurations/.run/ instance cannot be deleted, and a running instance is never deleted.Fabric\example and NeoForge\example; the panel uses project-relative-path + instance name as the identity, and generated IDE configurations get a project prefix when two run-configuration names collide (for example Fabric-example-default).%DSH_HOME%/mc-instances/launches.json, so a Host plugin reload still refuses a duplicate launch. Stop asks the process tree to close first and only force-kills after 5 seconds.@deepseek-ai/dsh-tools is the only peer dependency..run files use the same format as existing IntelliJ Gradle configurations (GradleRunConfiguration + runClient + -Pinstance=<name>).node --test
src/profiles.js — pure Node scanning and instance operations, unit-testable without DSHsrc/index.js — DSH tool layer (defineTool) exposed to the agentsrc/panel-api.js — Host HTTP API for the right-sidebar panel (loopback + custom-header gate)client.js — browser-side tab, guide card and header buttontests/ — pure logic, tool-layer end-to-end, panel API and launch/stopThe tool tests use @deepseek-ai/dsh-tools when it resolves (the DSH installation provides it), and fall back to a bundled implementation otherwise, so the plugin also loads from a git source.
Issues and PRs are welcome. To list the plugin in the community market, see awesome-dsh-plugin; the entry file for this repo is xin070710__dsh-mc-instances.yml.
MIT © dsh-mc-instances contributors
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。