hellosky983/dsh-mc-agent 预览 preview

hellosky983/dsh-mc-agent

DeepSeek Harness的AI辅助Minecraft:驱动自主Mineflayer代理(生存、挖矿、聊天、实时地图),配备视觉/控制工具,并内置启动器(微软登录、版本下载、游戏启动)。

Project Overview项目介绍

dsh-mc-agent is a native bundle plugin built exclusively for DeepSeek Harness (DSH). It enables AI agents within DSH to control Minecraft, handle automatic survival, exploration, mining, and in-game chat. It also includes a built-in Minecraft launcher that downloads official game versions, handles Microsoft account login, and is fully compatible with existing saves, versions, and configurations from the official launcher. To install, users can clone the public repository and add it as a linked dependency to their existing DSH profile, then run pnpm install and restart DSH to activate it.

Users can let the AI automatically progress through a set of predefined in-game goals, or call tools directly via the DSH chat interface to manage the game, analyze crash logs, and query save file information. By default, it runs as a tab embedded in the DSH chat interface, but users can switch it to a fullscreen standalone launcher mode if they prefer. It is designed for DSH users who want to experience AI-assisted Minecraft gameplay or test the capabilities of autonomous AI agents in a gaming environment. Users can also spin up an isolated DSH instance for Minecraft to avoid interfering with their existing DSH configuration.

The project is open-source under the MIT license, and all game assets are downloaded directly from official Mojang servers, so it does not distribute any copyrighted or pirated content. It strictly follows Mojang’s End User License Agreement, requiring users to log in with a personal Microsoft account that has a valid purchased copy of Minecraft. First-time users must register their own Azure application client ID for login, and the visual AI feature requires an active DashScope API key and a Linux X11 environment to work correctly. There is no telemetry or third-party tracking, and all account tokens are stored locally with restricted permissions.

dsh-mc-agent 是专为 DeepSeek Harness (DSH) 开发的原生捆绑插件,让 AI 能够在 DSH 环境中控制 Minecraft 完成自主生存、探索、挖矿、聊天等操作,同时自带完整的 Minecraft 启动功能,支持从官方服务器下载游戏版本、处理微软账号登录,完全兼容原有官方启动器的存档、版本和配置。

用户既可以让 AI 按照设定的个人目标自动推进游戏流程,也可以通过 DSH 聊天界面直接调用工具管理游戏、分析崩溃日志、查询游戏存档信息。它支持标签页模式嵌入 DSH 聊天界面,也可以切换为全屏独立启动器模式,适合想要体验 AI 辅助玩 Minecraft 或者测试 AI 自主游戏能力的 DSH 用户使用。

本项目采用 MIT 许可证开源,所有游戏文件均从 Mojang 官方服务器下载,不包含任何盗版内容,严格遵守 Mojang EULA 要求,要求用户使用自己已购买 Minecraft 的微软账号登录。首次使用需要自行注册 Azure 应用客户端 ID,视觉功能还需要额外配置 DashScope API 密钥和 Linux X11 环境。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 9 stars - very few users, little community feedback星标只有 9,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:hellosky983/dsh-mc-agent

把 hellosky983/dsh-mc-agent 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-mc-agent 🧱

让 AI 陪你玩 Minecraft:DeepSeek Harness 里的 AI 代理,能自主生存、探索、挖矿、聊天、看地图——顺便把启动器(版本下载 + 微软登录 + 游戏启动)也一起做了。 UNOFFICIAL — 非官方项目,与 Mojang Studios / Microsoft 无任何关联。

License dsh-plugin

📖 项目简介

dsh-mc-agent 是 DeepSeek Harness(DSH)的一个正式 bundle 插件,让「AI 玩 Minecraft」成为 DSH 的一等公民:

  • AI 代理:通过 LAN 协议直连游戏,驱动真实的 Mineflayer 机器人——自主生存(采集/探索/岩浆水逃生)、挖矿砍树、游戏内聊天、实时地图;另有截图/识图/键鼠控制(视觉 + 控制闭环)。
  • AI 工具:把游戏数据与能力暴露为 mc_* 工具,让 DSH 的 agent 能通过对话指挥机器人、分析崩溃、查询存档与模组。
  • 内置启动器:宿主进程负责版本清单、文件下载、Microsoft 登录与 Java 游戏进程的启动;游戏目录默认 ~/.minecraft,与官方启动器完全兼容(已有版本、存档、资源直接复用)。
  • 双界面模式:默认作为 DSH 聊天界面里的一个 "Minecraft" 标签页(保留全部 AI 能力);也可切换为全屏启动器。

✨ 功能特性

  • ✅ 官方版本清单(release / snapshot / 远古版本),已安装自动标记
  • ✅ 一键安装:client jar + libraries(natives 自动解压)+ assets,断点续传(已存在且大小匹配的文件跳过)
  • ✅ 启动游戏:按版本 JSON 组装 Java 命令(自动展开 ${natives_directory}、${classpath} 等占位符)
  • ✅ Java 自动探测:优先使用官方启动器下载的 ~/.minecraft/runtime/**/bin/java,其次 PATH 中的 java
  • ✅ Microsoft 账号登录:设备码流程(默认,可靠,推荐);浏览器授权码登录(PKCE)需额外配置回调地址,作为高级备选
  • ✅ 中文界面 + 新手引导:默认中文;首次使用弹出四步引导(配置 client id → 登录 → 选版本安装 → 开始游戏)
  • ✅ Agent 工具集:mc_list_versions / mc_install / mc_launch / mc_kill / mc_logs / mc_status——AI 通过对话操作启动器
  • ✅ AI 崩溃分析:mc_analyze_crash 读取崩溃报告与日志,交给 LLM 诊断并给修复建议
  • ✅ AI 游戏助手:mc_world_info(存档时长/死亡)、mc_mods(模组清单)、mc_version_advice(版本建议)
  • ✅ AI 自主生存(框架):mc_set_goals / mc_goals / mc_complete_goal——AI 根据用户人设自动设立 ≥20 个目标并逐个推进、持久化到磁盘
  • ✅ 视觉 + 控制(端到端):mc_screenshot(X11 截图游戏窗口)+ mc_see(DashScope Qwen-VL 视觉理解画面)+ mc_control(xdotool 模拟键鼠)——AI 能"看"画面、理解处境、"操作"游戏
  • ✅ Mineflayer 机器人(快速模式):mc_bot_* 工具通过 LAN 协议直连游戏,实时读内存数据(位置/背包/血量/周围方块)+ 精确控制(移动/挖掘/放置/转向),比截图快几个数量级
  • ✅ 双界面:标签页模式(与 AI 聊天共存,默认)或全屏启动器模式;可单独开关"会话中是否显示 Minecraft 标签"
  • ✅ 主题自定义:5 套预设(森林/石板/海洋/末地/熔岩)+ 自定义强调色,即时生效
  • ✅ 版本选择框:下拉分组选择(已安装/Release/Snapshot/Old),不再被超长列表占据版面
  • ✅ 登录引导:未登录时醒目标语横幅 + 点 PLAY 直接唤起登录
  • ✅ 游戏日志实时显示、停止游戏、内存/分辨率/Java 路径等设置

⚖️ 法律合规(请先阅读)

本项目以 Mojang EULA(Minecraft 最终用户许可协议) 与 微软服务协议 为合规基线,设计要点:

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-bilibili 下一个 Next dsh-skins →