
Mc Modpack
io.github.dcd887由 GitHub 账号 dcd887 发布v1.3.0更新于 Oct 24, 2026
整合包元数据管理与发布检查(mods、版本、加载器)
概览
面向 Minecraft 整合包诊断的本地 MCP 服务器:检查实例、模组、日志与崩溃报告,并检测模组冲突。
- 可以做什么
- 列出并检查实例中的模组,可按正则过滤
- 读取实例元数据:游戏版本、加载器、Java 要求、JVM 参数
- 检测已知模组冲突并给出替换建议
- 扫描 mods 目录中的非 JAR 文件、源码包与脚本
- 按级别、关键词和末尾行数读取 latest.log
- 查找并分析崩溃报告,归类错误并给出修复建议
- 适用场景
- 适合在整合包崩溃、无法启动或模组组合可疑时排查问题,让助手读取日志、崩溃报告和实例元数据并给出修复建议。
- 运行要求
- 需要 Node.js 18+ 与 npm,从源码构建后以 stdio 运行编译产物。需要 Minecraft 实例目录,macOS 和 Linux 上所有工具都要显式传入 mc_dir。Java 版本列表依赖 Windows 上的 PCL 启动器。可选的 AI 诊断需要 DASHSCOPE_API_KEY 环境变量;Modrinth 查询需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Mc Modpack,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
mc-modpack-mcp
MCP (Model Context Protocol) server for Minecraft modpack diagnostics. Supports Fabric/Forge mod conflict detection, log analysis, crash reports, and AI-powered intelligent diagnosis. Core diagnostic engine is fully offline; optional AI analysis uses China-based DashScope (通义千问) API. get_java_versions requires PCL launcher on Windows; all other tools work cross-platform.
Features
- Java version detection — reads PCL config to list all available Java runtimes with version recommendations
- Version info — parses instance JSON to extract Minecraft version, loader, Java requirements, JVM args
- Conflict detection — finds known problematic mod combinations from an external
rules.json(easily extensible) - Cleanliness scan — detects non-JAR files, source jars, scripts in mods/ directory
- Log analysis — reads latest.log with level filtering (INFO/WARN/ERROR) and keyword search
- Crash report analysis — finds crash reports, classifies errors, and suggests fixes automatically
- Dependency lookup — queries Modrinth API for mod version and dependency info
- Human-readable output — all tools return friendly text with emojis and 💡 tips, plus JSON below
--- JSON --- - CLI mode — run
npm run diagnosefor an interactive terminal-based diagnosis (no MCP needed) - External rules engine — edit
src/rules.jsonto add new conflicts, crash patterns, or Java version ranges without touching code
Tools
Installation
Prerequisites
- Node.js 18+
- npm
- A Minecraft instance (any launcher — macOS/Linux users must pass
mc_direxplicitly for all tools)
Note:
get_java_versionsreads PCL launcher config and works on Windows only. All other tools are cross-platform.
Build
Run as standalone MCP server
The server communicates via stdio (JSON-RPC 2.0). It can be consumed by any MCP-compatible client.
Configuration for MCP clients
Add to your MCP client config (e.g., .mcp.json or equivalent):
Usage Examples
Get Java versions from PCL
Detect conflicts in an instance
Read WARN logs (last 50 lines)
Check mod dependencies via Modrinth
Architecture
The MCP uses the official @modelcontextprotocol/sdk v1.x with McpServer and StdioServerTransport. All tools use server.tool() registration pattern compatible with the MCP SDK specification.
AI Module (src/ai.ts)
ai_diagnose 工具使用独立模块封装通义千问 API,提供:
callQwen(prompt)— 调用 Qwen 模型生成报告buildDiagnosePrompt(data)— 构建诊断 prompt,整合所有结构化数据
Skills
This repository also includes a Trae Work skill for modpack diagnostics. After cloning, copy the skill to your Trae Work skills directory:
Windows (PowerShell):
macOS / Linux:
See SKILL.md for the full skill documentation with 8-phase diagnostic workflow.
Testing
Or on Windows (PowerShell):
Tests create backups before running and log results to test_logs/. See individual test log files for detailed output.
Platform Compatibility
All tools accept mc_dir as an explicit path. get_java_versions auto-detects PCL on Windows; on other platforms it returns a clear message when PCL config is absent.
Using the Rules Engine
All conflict rules, Java version mappings, and crash analysis patterns live in src/rules.json. You can customize them without modifying source code:
CLI Usage
Run a quick interactive diagnosis without setting up MCP:
The CLI will:
- Auto-detect your Minecraft instance
- Check Java runtimes (PCL on Windows)
- Scan for mod conflicts
- Check directory cleanliness
- Review crash reports
License
MIT
来源:README.md,提交 22262c5
工具
0版本历史
1- v1.3.0最新Oct 23, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分