minecraft-dev-mcp
CLAUDE.md47 starsChanged 12 months agoMITView on GitHub
This document provides essential context for working with the Minecraft Dev MCP codebase. This is a Model Context Protocol (MCP) server that provides AI assistants with access to decompiled Minecraft source code, registry data, and modding tools. It enables LLMs to help developers with Minecraft mod development by providing accurate, version-specific source code and game data.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- mcp-publishSkill
- readme-generatorSkill
- repo-sweepSkill
- minecraft-devSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
18 rules. About 0 are common, 6 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
CRITICAL: Must use SERVER JAR, not client JAR
- Distinctive: line 78
All downloads include SHA-1 verification
- Very specific: line 121
No CommonJS require; all tooling/scripts assume ES modules.
- Distinctive: line 131
Use obfuscated JAR: - Don't remap it, the server JAR runs fine obfuscated
- Very specific: line 148
Use singular form: block, item, entity (NOT blocks, items, entities)
- Very specific: line 245
Add the type to src/types/minecraft.ts: MappingType
- Very specific: line 246
Create downloader in src/downloaders/{type}-downloader.ts
- Very specific: line 247
Update mapping-service.ts to handle the new type
- Very specific: line 252
Check the Java command being executed (logged by java-process.ts)
- Distinctive: line 253
Verify you're using the server JAR, not client JAR
- Very specific: line 255
Check registries.json location (may be in reports/ or generated/reports/)
- Very specific: line 256
Verify registry names use singular form (block not blocks)
- Distinctive: line 264
Always test with integration tests
- Very specific: line 345
index_minecraft_version: - Create full-text search index - Very specific: line 353
search_mod_code: - Search decompiled mod source code - Very specific: line 354
index_mod: - Create full-text search index for mod source - Very specific: line 364
All patched tools are mojmap-only.
- Distinctive: line 452
Search for classes, methods, fields, or content in decompiled mod source code using regex patterns.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code Context - Minecraft Dev MCP
This document provides essential context for working with the Minecraft Dev MCP codebase.
Project Overview
This is a Model Context Protocol (MCP) server that provides AI assistants with access to decompiled Minecraft source code, registry data, and modding tools. It enables LLMs to help developers with Minecraft mod development by providing accurate, version-specific source code and game data.
Release Status
- Phase 1 & 2 complete (core services, remap/decompile/search/compare) as of 2025-12-06; 29 integration tests pass end-to-end.
- Phase 3 complete (third-party mod analysis) as of 2025-12-15; includes full mod decompilation, search, and indexing capabilities with WSL support.
- Phase 4 complete (Forge/NeoForge patched source) as of 2026-09-27; auto-fetches and builds patched MC source + loader source via NeoFormRuntime (see
forge-source-service.ts).
Architecture
Core Services (src/services/)
- version-manager.ts - Downloads and manages Minecraft client/server JARs from Mojang
getVersionJar()- Downloads client JAR (for remapping/decompilation)getServerJar()- Downloads server JAR (for registry extraction)- Caches JARs in AppData/config directory
- mapping-service.ts - Downloads and manages mappings (Yarn, Mojmap, Intermediary)
- Yarn: Community mappings (best for mod development)
- Mojmap: Official Mojang mappings
- Intermediary: Fabric's stable intermediate mapping format
- remap-service.ts - Remaps obfuscated Minecraft JARs using mappings
- Uses tiny-remapper Java tool
- Converts obfuscated names → human-readable names
- Yarn requires 2-step remapping: obfuscated → intermediary → yarn
- decompile-service.ts - Decompiles remapped JARs to Java source
- Uses VineFlower decompiler
- Produces readable Java source code
- Caches decompiled sources for reuse
- registry-service.ts - Extracts Minecraft registry data (blocks, items, entities, etc.)
- CRITICAL: Must use SERVER JAR, not client JAR
- Uses Minecraft's built-in data generator (
--reportsflag) - Handles both modern (1.18+) and legacy (<1.18) formats
- source-service.ts - Main orchestration service
- Coordinates version management → remapping → decompilation
- Provides
getMinecraftSource()for retrieving specific class source code - Handles caching and progress reporting
Java Tool Wrappers (src/java/)
- tiny-remapper.ts - Wraps tiny-remapper JAR for remapping obfuscated classes
- Handles namespace conversions (official → intermediary → named)
- Uses tiny-remapper 0.12.0 (multi-threaded ASM remapper)
- vineflower.ts - Wraps VineFlower JAR for decompilation
- Creates temporary folders:
libraries/,versions/,logs/in CWD during decompilation - These are VineFlower's workspace files and should be gitignored
- Defaults align with Vineflower 1.11.2 (
-dgs=1 -hdc=0 -asc=1 -rsy=1 -lit=1)
- Creates temporary folders:
- mc-data-gen.ts - Runs Minecraft's data generator to extract registry data
- MC 1.18+: Uses bundler format:
java -DbundlerMainClass=net.minecraft.data.Main -jar server.jar - MC <1.18: Uses legacy format:
java -cp server.jar net.minecraft.data.Main - Checks multiple locations for
registries.json:- MC 1.21+:
reports/registries.json - MC <1.21:
generated/reports/registries.json
- MC 1.21+:
- MC 1.18+: Uses bundler format:
- java-process.ts - Low-level Java process execution wrapper
- Supports both
-jarand-cpmodes - Handles JVM args (e.g.,
-DbundlerMainClass) - Provides timeout, progress tracking, and error handling
- Supports both
Downloaders (src/downloaders/)
- mojang-downloader.ts - Downloads JARs and mappings from Mojang
downloadClientJar()- Client JAR (for playing/remapping)downloadServerJar()- Server JAR (for registry extraction)downloadMojangMappings()- Official Mojang mappings- All downloads include SHA-1 verification
- yarn-downloader.ts - Downloads Yarn mappings from Fabric Maven
- Uses Maven API to find available versions
- Downloads and converts to Tiny v2 format
- java-resources.ts - Downloads Java tool JARs (VineFlower, tiny-remapper)
- Caches in AppData/resources directory
Cache Management (src/cache/)
- cache-manager.ts - High-level cache operations
- Checks if versions/mappings/decompiled sources exist
- Returns cached paths
- database.ts - SQLite database for metadata
- Tracks versions, mappings, decompilation jobs
- Stores access times for cache cleanup
Paths and Storage (src/utils/paths.ts)
Cache Directory Structure:
- Windows:
%APPDATA%\minecraft-dev-mcp\ - macOS:
~/Library/Application Support/minecraft-dev-mcp/ - Linux:
~/.config/minecraft-dev-mcp/
Subdirectories:
jars/- Client and server JARsminecraft_client.{version}.jarminecraft_server.{version}.jarpatched/{key}/- NFRT artifacts for auto-built patched trees (gameSourcesWithNeoForge.jar+gameJarWithNeoForge.jar)
mappings/- Mapping files (Tiny format)remapped/- Remapped JARsdecompiled/{version}/{mapping}/- Decompiled source coderegistry/{version}/- Registry dataresources/- Java tool JARs (VineFlower, tiny-remapper; NeoFormRuntime downloaded lazily on first Forge-tool use)- Central cache is shared across workspaces; expect ~400–450 MB per MC version (JAR + mappings + remapped + decompiled + registry).
- Patched-MC variants (Forge/NeoForge — manual via
decompile_minecraft_version'sjarPath, or automatic viadecompile_forge_minecraft_version) reuse the samedecompiled/{version}/{mapping}/layout under a version key like1.21.1-neoforge-21.1.72, adding ~250–400 MB per variant on top of vanilla (plus NFRT's own cache in~/.neoformruntime).
Build & ESM Requirements
- ESM-only:
package.jsonmust keep"type": "module";tsconfiguses"module": "ES2022"/bundler resolution. - Local imports must include
.jsextensions after build (e.g.,./utils.js), not.ts. - No CommonJS
require; all tooling/scripts assume ES modules.
Critical Implementation Details
Registry Extraction (IMPORTANT!)
Problem Solved: Registry extraction was failing because it tried to use the remapped client JAR.
Solution:
- Always use SERVER JAR - The server JAR has the built-in data generator
- Use obfuscated JAR - Don't remap it, the server JAR runs fine obfuscated
- Handle bundler format - MC 1.18+ uses a bundler format that requires
-DbundlerMainClass
Implementation (src/services/registry-service.ts):
// Get SERVER JAR (not client!)
const serverJarPath = await this.versionManager.getServerJar(version);
// Run data generator with version-specific format
const registriesFile = await this.dataGen.generateRegistryData(
serverJarPath,
registryDir,
version // Used to detect if bundler format needed
);Registry Names:
- Use singular form:
block,item,entity(NOTblocks,items,entities) - Full names include namespace:
minecraft:block,minecraft:item - The code auto-adds
minecraft:prefix if not present
Yarn Mapping Remapping (Two-Step Process)
Yarn mappings require two separate remapping operations:
- Official → Intermediary: Remap from obfuscated to Fabric's stable intermediary names
- Intermediary → Yarn: Remap from intermediary to human-readable Yarn names
Why? Yarn builds on top of Intermediary to provide stable mappings across Minecraft versions.
Implementation (src/services/remap-service.ts):
// Step 1: official → intermediary
const intermediaryJar = await this.tinyRemapper.remap(
inputJar,
intermediaryPath,
intermediateMappings,
'official', 'intermediary'
);
// Step 2: intermediary → named (yarn)
const yarnJar = await this.tinyRemapper.remap(
intermediaryJar,
outputPath,
yarnMappings,
'intermediary', 'named'
);VineFlower Temporary Files
VineFlower creates these folders in the current working directory during decompilation:
libraries/- Extracted Minecraft libraries for dependency resolutionversions/- Minecraft version metadatalogs/- Decompilation logs
These are temporary and gitignored - but the actual decompiled sources go to AppData.
Testing
Integration Tests (__tests__/integration.test.ts)
Tests the entire pipeline end-to-end:
- Version management (list, download)
- JAR download and caching
- Mapping download (Yarn)
- JAR remapping (Yarn 2-step process)
- Source code decompilation
- Registry extraction (blocks, items)
- MCP tool integration
- Error handling
Test Configuration (vitest.config.ts):
watch: false- Exit after tests finish (don't watch for changes)testTimeout: 600000- 10 minute timeout for long operations- Tests use version
1.21.10as the test target
Running Tests:
npm test # Runs all integration testsPatched-JAR Suite (__tests__/manual/patched/)
Env-driven E2E suite that exercises the full patched-MC pipeline (decompile/extract → get_minecraft_source → search → index → vanilla-vs-patched compare → force re-run). Skips cleanly when PATCHED_JAR_PATH is unset.
CI generates real patched JARs via .github/workflows/patched-jars.yml:
- NeoForge matrix (1.20.4, 1.21.1, 1.21.4) via NeoFormRuntime (
nfrt run --dist joined --neoforge ...:userdev) - Forge 1.20.1 via a tiny ForgeGradle 6 fixture project (
gradle eclipsetriggers lazy materialization — FG6 has no equivalent of FG5'ssetupDecompWorkspace)
Triggered on workflow_dispatch and on main pushes that touch the patched-JAR surface. Out of default PR CI to keep it fast.
Local run against your own JAR:
PATCHED_JAR_PATH=/path/to/patched.jar \
PATCHED_VERSION=1.21.1-neoforge-21.1.72 \
PATCHED_MC_VERSION=1.21.1 \
PATCHED_LOADER=neoforge \
npm run test:manual:patchedForge Pipeline Suite (__tests__/manual/forge/)
E2E for the auto-fetch patched-source pipeline (decompile_forge_minecraft_version and friends — real NFRT run, Java 21+ required). Skips unless FORGE_E2E=1. Target configurable via FORGE_MC / FORGE_LOADER / FORGE_LOADER_VERSION (defaults: NeoForge 1.21.1 / 21.1.72).
npm run test:manual:forge # NeoForge 1.21.1
FORGE_E2E=1 FORGE_LOADER=forge FORGE_MC=1.20.1 FORGE_LOADER_VERSION=47.3.0 npm run test:manual -- __tests__/manual/forgeCommon Tasks
Adding Support for a New Mapping Type
- Add the type to
src/types/minecraft.ts:MappingType - Create downloader in
src/downloaders/{type}-downloader.ts - Update
mapping-service.tsto handle the new type - Add test cases
Debugging Registry Extraction Issues
- Check the Java command being executed (logged by
java-process.ts) - Verify you're using the server JAR, not client JAR
- For MC 1.18+, ensure
-DbundlerMainClass=net.minecraft.data.Mainis present - Check
registries.jsonlocation (may be inreports/orgenerated/reports/) - Verify registry names use singular form (
blocknotblocks)
Handling New Minecraft Versions
The code should work automatically, but be aware:
- MC 1.18+: Requires bundler format and Java 17+
- MC 1.21+: May require Java 21+
- Registry output location may change between versions
- Always test with integration tests
Error Handling, Security, and Performance Notes
- Network work uses retries/backoff; Java processes run with timeouts and stderr capture.
- Integrity checks: SHA-1/256 verification on downloads; cache rebuild on corruption.
- Security: path traversal guardrails on class names and file writes; Java processes memory-capped.
- Performance: favors lazy decompilation, parallel workers, and LRU-style cache eviction; compress/evict old versions if storage is tight.
Reference Tools
- FabricMod-Remapper — exemplar for two-phase Yarn remapping strategy (official → intermediary → yarn).
- mojang2tiny — reference implementation for converting Mojang mappings to Tiny v2.
- tiny-remapper — upstream bytecode remapper we wrap; check changelog for behavior changes.
Architecture Decisions
Why Server JAR for Registries?
- Server JAR has built-in data generator (
--reportsflag) - Client JAR doesn't include data generation tools
- Server JAR can run obfuscated (no remapping needed)
Why Two-Step Remapping for Yarn?
- Yarn builds on Fabric's Intermediary mappings
- Intermediary provides stable names across versions
- This allows Yarn to update names without breaking between Minecraft versions
Why VineFlower over Fernflower?
- Better Java 17+ support
- More accurate decompilation
- Better performance on large JARs
- Active maintenance
Why Tiny v2 Format?
- Standard format for Fabric toolchain
- Supports multiple namespaces in one file
- Compact and efficient
- Well-supported by tools
Patched MC JARs (Forge/NeoForge) — opaque version key, mojmap-only
For decompile_minecraft_version with jarPath, the version parameter is treated as an opaque cache-key string (convention: <mc>-<loader>-<loaderVersion>). No parsing — the same key flows unchanged through getDecompiledPath, the cache DB, the FTS5 index, and every downstream tool. This is why patched MC slots into the existing decompiled/{version}/{mapping}/ layout with zero new code paths in search/index/compare.
Forge/NeoForge dev environments (1.17+) are mojmap-exclusive — yarn is a Fabric/Quilt mapping with no equivalent in the Forge ecosystem. The schema enforces mapping === 'mojmap' whenever jarPath is set. find_mapping does no special-casing for patched keys: callers wanting a vanilla mojmap↔yarn translation should pass the vanilla MC version directly.
Sources-vs-compiled detection (src/utils/jar-inspector.ts)
Deterministic central-directory scan: any .class entry → decompile via VineFlower; else any .java → extract directly (NFRT/ForgeGradle -sources.jar fast path); else error. Mixed JARs always decompile (any .class wins). Avoids filename heuristics, which Forge/NeoForge dev artifacts don't reliably follow.
Troubleshooting
"Class not found" errors during registry extraction
→ Using client JAR instead of server JAR. Check registry-service.ts.
Yarn remapping fails
→ Ensure two-step process is happening (official → intermediary → yarn).
Decompilation creates folders in project directory
→ Expected VineFlower behavior. These folders are gitignored.
Tests timeout
→ First run downloads ~50MB of JARs. Increase timeout or use cached versions.
"Java version" errors
→ MC 1.18+ requires Java 17+, MC 1.21+ requires Java 21+.
MCP Tools Reference
Phase 1 Tools (Core)
get_minecraft_source- Get decompiled source for a Minecraft classdecompile_minecraft_version- Trigger full decompilation of a version. PassjarPathto point at a local Forge/NeoForge patched MC JAR (cache key convention:<mc>-<loader>-<loaderVersion>, e.g.1.21.1-neoforge-21.1.72); in this modemappingmust be'mojmap'(Forge/NeoForge dev environments are mojmap-only post-1.17). Sources JARs (no.classentries) are extracted directly; compiled JARs run through VineFlower.force: truewipes the decompiled dir, the job row, and the FTS5 index for that (version, mapping).list_minecraft_versions- List available and cached versionsget_registry_data- Get registry data (blocks, items, entities)
Phase 2 Tools (Advanced Analysis)
remap_mod_jar- Remap Fabric mod JARs to human-readable namesfind_mapping- Lookup symbol mappings between namespacessearch_minecraft_code- Regex search in decompiled sourcecompare_versions- Compare classes/registries between versionsanalyze_mixin- Analyze and validate Mixin codevalidate_access_widener- Validate access widener files 10a.validate_access_transformer- Validate Forge/NeoForge access transformer files (parses.cfg, checks signatures, flags record canonical-constructor widening, inner-class accessibility, inherited members, and conflicting modifiers — including across files viaextraFiles; mojmap-only). Validates against the remapped JAR's bytecode (via the bundled ASMbytecode-dumper), not decompiled.java— decompiled source omits compiler-generated record members (canonical constructors, component accessors), so a source-based check false-flags them as missing (issue #12). Bytecode carries every member with its true access flags and erased descriptors (the same factsjavapshows). Only needs the remapped JAR, whichdecompile_minecraft_versionproduces; per-class results are cached in aremapped/{version}-{mapping}.bytecode.jsonsidecar keyed by JAR signature. Patched keys work too: the patched flow does no remapping, sodecompileLocalJarcopies a compiled input JAR toremapped/{version}-{mapping}.jar— it already is that key's remapped JAR by definition — and every bytecode consumer then resolves a patched key exactly like a vanilla one. Patched sources JARs (NFRT/ForgeGradle-sources.jar) contain no bytecode and cannot be validated; the tool says so rather than telling you to decompile again. Inherited members: an AT only transforms the class it names, so a directive aimed at a member declared on a parent is silently inert — the validator resolves the full ancestor closure (getClassBytecodeWithHierarchy: transitivesuperName+ interfaces, ancestors outside the JAR skipped) and reports the declaring class plus a paste-ready corrected directive. Cross-file conflicts: pass sibling ATs viaextraFiles— every AT is applied together at build time, so conflicts across files fail the build like in-file ones; findings are restricted to those involving the file under validation, and the record-ctor note is suppressed when a sibling widens the constructor.compare_versions_detailed- AST-level version comparisonindex_minecraft_version- Create full-text search indexsearch_indexed- Fast FTS5 search on indexed versionsget_documentation- Get documentation for a classsearch_documentation- Search documentation
Phase 3 Tools (Mod Analysis)
analyze_mod_jar- Analyze third-party mod JAR filesdecompile_mod_jar- Decompile mod JARs to readable Java sourcesearch_mod_code- Search decompiled mod source codeindex_mod- Create full-text search index for mod sourcesearch_mod_indexed- Fast FTS5 search on indexed mod source
Phase 4 Tools (Forge/NeoForge Patched Source)
list_forge_versions- List Forge/NeoForge loader versions for an MC version (loader Maven metadata, 24h in-process TTL; Forge recommended via promotions_slim; NeoForge-betamarked prerelease)decompile_forge_minecraft_version- Build the patched MC source tree automatically. Runs NeoFormRuntime (nfrt run --dist joined --neoforge <gav>:userdev) requestinggameSourcesWithNeoForge(merged MC+loader sources zip →decompileLocalJarextracts it) andgameJarWithNeoForge(recompiled JAR →registerAsRemappedJar, keeps AT validation working). Forge GAVs resolve via--add-repository https://maven.minecraftforge.net. Cache key<mc>-<loader>-<loaderVersion>(existing convention); NFRT artifacts cached injars/patched/<key>/soforcerebuilds in seconds without re-running NFRT. Lazy: theget_*/search_*/compare_*wrappers below callensurePatchedSourcefirst, so they also work on a cold cache.get_forge_source- Source of a class from the patched tree: a loader class (net.minecraftforge.*/net.neoforged.*) or a MC class as modified by Forge/NeoForge patchessearch_forge_code- Regex search across the patched tree, loader and patched MC classes alike (sharedsearchDecompiledTreewithsearch_minecraft_code)compare_vanilla_vs_forge- Delegates tocompare_versions(classes) orcompare_versions_detailed(AST,classNamenarrows to its package); auto-decompiles the vanilla mojmap side
All patched tools are mojmap-only. Known limit: NeoForge MC 1.20.1 predates the net.neoforged:neoforge artifact — use loader forge for 1.20.1. NFRT needs Java 21+; its own cache lives in ~/.neoformruntime.
analyze_mod_jar Tool
Analyzes a mod JAR file to extract comprehensive metadata. Supports Fabric, Quilt, Forge, and NeoForge mods.
Input:
{
jarPath: string; // Local path to the mod JAR file
includeAllClasses?: boolean; // Include full class list (can be large)
includeRawMetadata?: boolean; // Include raw fabric.mod.json, mixin configs
}Output includes:
- Mod metadata: ID, version, name, description, authors, license
- Compatibility: Minecraft version, loader version, Java version, environment (client/server)
- Dependencies: Required, optional, incompatible mods with version constraints
- Entry points: Main, client, server initializers with class references
- Mixins: Config files, packages, mixin class lists (common/client/server)
- Class analysis: Total count, package breakdown, mixin detection via bytecode
- Nested JARs: Jar-in-Jar dependencies
Example usage (for LLM):
analyze_mod_jar({ jarPath: "C:/mods/meteor-client-1.21.10-32.jar" })Returns JSON with full mod analysis including detected loader type, all dependencies, entry points, and mixin configurations.
Phase 3 Services
mod-analyzer-service.ts
Analyzes third-party mod JARs without requiring Java. Performs:
- Loader Detection: Checks for
fabric.mod.json,quilt.mod.json,META-INF/mods.toml - Metadata Parsing: Extracts mod ID, version, dependencies from loader-specific files
- Mixin Analysis: Parses mixin config JSON files, extracts packages and class lists
- Bytecode Analysis: Scans
.classfiles for@Mixinannotations in constant pool - Class Statistics: Counts classes per package, identifies entry points
Key types (src/types/minecraft.ts):
ModLoader:'fabric' | 'quilt' | 'forge' | 'neoforge' | 'unknown'ModAnalysisResult: Complete analysis output structureModClass: Class metadata including mixin detectionModMixinConfig: Parsed mixin configuration
mod-decompile-service.ts
Decompiles mod JARs to readable Java source code. Supports both original (intermediary) and remapped JARs.
Key features:
- Auto-detection: Automatically detects mod ID and version from JAR metadata
- Caching: Decompiled sources cached in
AppData/decompiled-mods/{modId}/{modVersion}/{mapping}/ - Progress tracking: Database-backed job tracking with progress updates
- VineFlower integration: Reuses same decompiler as Minecraft decompilation
- WSL compatibility: Full support for WSL and Windows path formats
Workflow:
remap_mod_jar- Remap mod JAR from intermediary → yarn/mojmap (optional, can skip if JAR already remapped)decompile_mod_jar- Decompile JAR to readable Java sourcesearch_mod_codeORindex_mod+search_mod_indexed- Search through decompiled source
decompile_mod_jar Tool
Decompiles a mod JAR file to readable Java source code.
Input:
{
jarPath: string; // Path to mod JAR (WSL or Windows path)
mapping: 'yarn' | 'mojmap'; // Mapping type JAR uses
modId?: string; // Optional, auto-detected if not provided
modVersion?: string; // Optional, auto-detected if not provided
}Output: Decompiled source directory path, mod ID, and version
Example:
decompile_mod_jar({ jarPath: "C:/mods/meteor-remapped-yarn.jar", mapping: "yarn" })search_mod_code Tool
Search for classes, methods, fields, or content in decompiled mod source code using regex patterns.
Input:
{
modId: string;
modVersion: string;
query: string; // Regex pattern or literal string
searchType: 'class' | 'method' | 'field' | 'content' | 'all';
mapping: 'yarn' | 'mojmap';
limit?: number; // Default: 50
}Example:
search_mod_code({ modId: "meteor-client", modVersion: "0.5.8", query: "onTick", searchType: "method", mapping: "yarn" })index_mod Tool
Creates a full-text search index for decompiled mod source code using SQLite FTS5.
Input:
{
modId: string;
modVersion: string;
mapping: 'yarn' | 'mojmap';
force?: boolean; // Force re-indexing, default: false
}Benefits: Enables much faster searching via search_mod_indexed tool
search_mod_indexed Tool
Fast full-text search using pre-built mod index. Supports FTS5 syntax.
Input:
{
query: string; // FTS5 syntax: AND, OR, NOT, "phrase", prefix*
modId: string;
modVersion: string;
mapping: 'yarn' | 'mojmap';
types?: Array<'class' | 'method' | 'field'>; // Optional filter
limit?: number; // Default: 100
}Example:
search_mod_indexed({ query: "packet AND send", modId: "meteor-client", modVersion: "0.5.8", mapping: "yarn" })Mod Analysis Use Cases
The Phase 3 mod tools enable:
- Compatibility analysis: Understanding how other mods work for interop
- Learning: Studying mod development techniques from popular mods
- Debugging: Investigating mod interactions and conflicts
- Educational reference: Exploring Minecraft modding patterns
- Code search: Finding specific implementations across mod codebases
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

