
Mc Modpack
io.github.dcd887Published by GitHub account dcd887v1.3.0Updated Oct 24, 2026
整合包元数据管理与发布检查(mods、版本、加载器)
Overview
Local MCP server for Minecraft modpack diagnostics: inspects instances, mods, logs and crash reports, and detects mod conflicts.
- What you can do
- List and inspect mods in an instance, with optional regex filtering
- Read instance metadata: Minecraft version, loader, Java requirements, JVM args
- Detect known mod conflicts and get replacement recommendations
- Scan the mods folder for non-JAR files, source jars and scripts
- Read latest.log with level, keyword and tail filters
- Find and analyze crash reports, classifying errors and suggesting fixes
- When to use it
- Useful when troubleshooting a Minecraft modpack that crashes, fails to launch or has suspicious mod combinations, and you want an assistant to read logs, crash reports and instance metadata and suggest fixes.
- Requirements
- Node.js 18+ and npm; build from source and run the compiled entry point over stdio. Needs a Minecraft instance directory, passed explicitly as mc_dir on macOS and Linux. Java version listing requires the PCL launcher on Windows. The optional AI diagnosis needs a DASHSCOPE_API_KEY environment variable; Modrinth lookups need network access.
Installation
In SourceWeft
- Open Mc Modpack in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 22262c5
Tools
0Version history
1- v1.3.0LatestOct 23, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts