Skip to content

3453890470/neoforge-dev-1.21.1-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NeoForge Dev MCP

License: MIT NeoForge Minecraft

NeoForge mod development MCP (Model Context Protocol) toolkit for Minecraft 1.21.1, providing AI assistants with documentation search, code examples, API references, and MDK templates.

Overview

This MCP server provides tools for NeoForge 1.21.1 mod development:

  • πŸ” Documentation Search - Search official NeoForge documentation
  • πŸ“š Code Examples - Get working code snippets for common patterns
  • πŸ“– Concept Explanations - Understand NeoForge concepts and APIs
  • πŸ”„ Migration Guides - Forge to NeoForge migration patterns
  • πŸ“¦ MDK Templates - Ready-to-use template code

Skill vs MCP Responsibilities

This repository works together with neoforge-dev-1.21.1-skill:

Aspect MCP (This Repo) Skill Repository
Code Examples βœ… Real-time from docs ❌
MDK Templates βœ… Structured templates ❌
Documentation βœ… Searchable index ❌
Development Workflow ❌ βœ… Process orchestration
Code Standards ❌ βœ… Style guides & best practices
Debugging Guides ❌ βœ… Troubleshooting & diagnostics
Release Workflow ❌ βœ… Build & publish process

When to Use Which?

  • Use MCP when you need: code examples, API docs, templates, migration patterns
  • Use Skill when you need: workflow guidance, code review, debugging, release process

Repository Structure

neoforge-dev-1.21.1-mcp/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ index.ts              # MCP server entry point
β”‚   β”œβ”€β”€ db-versioning.ts      # Database version management
β”‚   β”œβ”€β”€ indexer/              # Indexer modules
β”‚   β”‚   β”œβ”€β”€ store.ts          # SQLite data storage
β”‚   β”‚   β”œβ”€β”€ crawler.ts        # Documentation crawler
β”‚   β”‚   β”œβ”€β”€ chunker.ts        # Document chunking
β”‚   β”‚   β”œβ”€β”€ embeddings.ts     # Vector embeddings
β”‚   β”‚   β”œβ”€β”€ sitemap.ts        # Sitemap parser
β”‚   β”‚   └── types.ts          # Type definitions
β”‚   β”œβ”€β”€ services/             # Service layer
β”‚   β”‚   β”œβ”€β”€ search-service.ts # Search service
β”‚   β”‚   └── concept-service.ts# Concept service
β”‚   └── tools/                # MCP tools
β”‚       β”œβ”€β”€ searchDocs.ts     # Document search
β”‚       β”œβ”€β”€ getExample.ts     # Get examples
β”‚       └── explainConcept.ts # Concept explanation
β”œβ”€β”€ scripts/
β”‚   └── index-docs.ts         # Document indexing script
β”œβ”€β”€ data/                     # Data storage directory
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
└── README.md

Installation

From GitHub Packages

# Configure authentication (one-time)
echo "//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN" >> ~/.npmrc

# Install
npm install @3453890470/neoforge-dev

From Source

git clone https://github.com/3453890470/neoforge-dev-1.21.1-mcp.git
cd neoforge-dev-1.21.1-mcp
npm install
npm run build

Usage

As MCP Server

Add to your MCP client configuration:

{
  "mcpServers": {
    "neoforge-mcp": {
      "command": "npx",
      "args": ["-y", "@3453890470/neoforge-dev"]
    }
  }
}

Development

# Run in development mode
npm run dev

# Build
npm run build

# Start server
npm start

Tool List

Tool Description Parameters
search_neoforge_docs Search NeoForge documentation query, category?, limit?
get_neoforge_example Get code examples topic, category?
explain_neoforge_concept Explain NeoForge concepts concept
get_forge_to_neoforge Forge to NeoForge migration forgeApi
get_mdk_template Get MDK templates feature
list_forge_migrations List available migrations category?

Supported Categories

  • getting-started - Introduction and setup
  • blocks - Block registration and customization
  • items - Item registration and customization
  • entities - Entity system
  • gui - GUI and containers
  • networking - Network communication
  • data - Data components and attachments
  • worldgen - World generation
  • events - NeoForge event system
  • capabilities - NeoForge capabilities
  • registries - Registry system
  • migrations - Migration guides
  • advanced - Advanced topics

Version Matrix

Component Version
Minecraft 1.21.1
NeoForge 21.1.x
Java 21+
Node.js 18+

Integration

OpenCode

{
  "mcpServers": {
    "neoforge-mcp": {
      "command": "npx",
      "args": ["-y", "@3453890470/neoforge-dev"]
    }
  }
}

Claude Desktop

// ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "neoforge-mcp": {
      "command": "npx",
      "args": ["-y", "@3453890470/neoforge-dev"]
    }
  }
}

Cursor IDE

// .cursor/config.json
{
  "mcp": {
    "servers": {
      "neoforge-mcp": {
        "command": "npx",
        "args": ["-y", "@3453890470/neoforge-dev"]
      }
    }
  }
}

Continue.dev

// ~/.continue/config.json
{
  "mcpServers": {
    "neoforge-mcp": {
      "command": "npx",
      "args": ["-y", "@3453890470/neoforge-dev"]
    }
  }
}

License

MIT License - see LICENSE for details.

Related Projects

About

NeoForge development MCP toolkit for Minecraft 1.21.1

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors