SpyglassLint
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SpyglassLintrun diagnostics on my datapack project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
datapack-mcp
datapack-mcp is an AI agent development plugin and static analysis toolkit for Minecraft datapacks, combining MineCode MCP and Spyglass Language Server.
Prerequisites
Node.js: v18.0.0 or later
Python (for MineCode MCP): Python 3.10+ or
uv(recommended)VS Code Extension (for Spyglass LSP): Datapack Helper Plus installed in VS Code, Cursor, or VSCodium (or specify custom path via
SPYGLASS_SERVER_PATHenvironment variable)
Related MCP server: Diagnostics MCP Server
Install
Claude Code
/plugin marketplace add minkyet/datapack-mcp
/plugin install datapack-mcpCodex
Codex CLI
codex plugin marketplace add minkyet/datapack-mcp
codex plugin add datapack-mcp@datapack-devkit-marketplaceCodex App (GUI)
In the Codex App - open Plugins from the sidebar.
Click the arrow next to Create, then select Add marketplace.
Enter:
Source:
minkyet/datapack-mcpGit ref:
mainSparse paths: (leave blank)
Click Add marketplace, select datapack-mcp plugin from list and install.
Restart Codex.
Antigravity CLI (agy)
agy plugin install https://github.com/minkyet/datapack-mcpUsage
Dual-MCP Agent Architecture
This plugin provides a two-stage development workflow for AI agents:
Pre-Generation (MineCode MCP): Real-time version specification, Brigadier command usage, and Misode vanilla preset data to prevent LLM hallucinations.
Post-Generation (SpyglassLint MCP): Local Language Server AST diagnostics, mcdoc/NBT schema type checks, and cross-reference integrity verification.
flowchart LR
A[Agent Task] --> B[MineCode MCP]
B -->|Check Version & Syntax| C[Code Generation]
C --> D[SpyglassLint MCP]
D -->|Static AST & NBT Linting| E[Verified Datapack]1. SpyglassLint MCP (Static Linter & Diagnostics)
Provides persistent, sub-second Language Server AST parsing, mcdoc schema checking, and project-wide cross-reference validation.
MCP Tool | Description | Parameters |
| File-level syntax, mcdoc/NBT schemas, and real-time diagnostics for symbol reference errors. |
|
| Full inspection of AST and cross-references (function calls, tags, etc.) for all files within the datapack. |
|
| Explicitly switch or set the active datapack workspace root directory for the LSP daemon. |
|
| Restart LSP process and reload | none |
| Retrieve LSP server readiness status, target Minecraft version, and workspace information. | none |
2. MineCode MCP (Version & Knowledge Reference)
Run automatically via Node.js bootstrap runner (uvx / pipx / python3 venv). Provides 30 reference tools across 5 categories:
Category Overview
Category | Tools | Description |
Session & Version |
| Version detection, breaking changes, pack format conversions, and layout validation |
Command Syntax |
| Brigadier-compiled command signatures and syntax validation |
Vanilla Presets |
| Official vanilla JSON shapes from Misode generators |
Spyglass Web API |
| Version-exact registries, block states, and field-level mcdoc schemas |
Wiki & Diagnostics |
| Minecraft Wiki explanations, Mojira bug tracker, local logs, and cache control |
Tool Reference
MCP Tool | Description | Parameters |
| Detect target version from |
|
| Read |
|
| Technical changelog and breaking changes between versions (e.g. 1.20.5 component migration, 1.21 folder singularization). |
|
| List Minecraft versions with available technical changelogs. | none |
| Map |
|
| Get data and resource pack format numbers for a target Minecraft version. |
|
| Check datapack folder layout against target version (e.g. singular folder names in 1.21+). |
|
| Scan a command, JSON, or SNBT snippet for version-incompatible syntax. |
|
MCP Tool | Description | Parameters |
| Readable, version-exact syntax and argument signatures compiled from the game's Brigadier grammar. |
|
| Parse command against real Brigadier grammar for a target version and report valid/invalid tokens. |
|
MCP Tool | Description | Parameters |
| Fetch authentic vanilla JSON presets for a target version (loot tables, recipes, advancements, biomes, etc.). |
|
| List vanilla preset IDs for a given generator type in a specific version. |
|
| List vanilla loot table IDs by category (blocks, chests, entities, etc.). |
|
| List vanilla recipe IDs for a version (optionally filtered by recipe type). |
|
| List Misode web-based generator URLs for visual editing reference. |
|
| List Minecraft versions available on Misode generator presets. | none |
MCP Tool | Description | Parameters |
| Retrieve authoritative field-level mcdoc schema for a Minecraft data structure (components, NBT, loot conditions, etc.). |
|
| Search mcdoc symbol paths by keyword to find identifiers for |
|
| List valid IDs in a registry for a target version (items, blocks, entity types, biomes, enchantments, attributes, etc.). |
|
| Get all block state properties and default values for a specific block in a target version. |
|
| Raw Brigadier command tree or command listing for a target version. |
|
| List Minecraft Java Edition versions with data/resource pack format mappings. |
|
MCP Tool | Description | Parameters |
| Search Minecraft Wiki for gameplay concepts and mechanics (latest version). |
|
| Fetch page content from Minecraft Wiki. |
|
| List all command pages available on Minecraft Wiki. |
|
| Get Minecraft Wiki explanation of a specific command. |
|
| List pages under a Minecraft Wiki category. |
|
| Search Mojira bug tracker to check known Mojang bugs. |
|
| Read local Minecraft launcher and instance log files for debugging. |
|
| Inspect or clear MineCode on-disk HTTP response cache. |
|
SpyglassLint as standalone CLI
To use the spyglasslint CLI command directly from the terminal:
npm linkCLI usage
# Static analysis of a single file
spyglasslint data/my_pack/function/my_func.mcfunction
# Full analysis of all files in the datapack project
spyglasslint --all
# Output analysis results in JSON format
spyglasslint --all --json
# Analyze by specifying the datapack workspace path
spyglasslint --all -w /path/to/datapackCLI options
Usage: spyglasslint [options] [file_path]
Options:
-a, --all Run project-wide analysis across all files
--json Output raw JSON diagnostics instead of formatted text
-w, --workspace <dir> Set workspace root directory (default: auto-detected)
-h, --help Show help informationAcknowledgments & Upstream Sources
This plugin integrates and builds upon the following open-source projects:
MineCode MCP by @AnCarsenat: Minecraft command syntax, technical breaking changes, Misode vanilla generator presets, and wiki documentation reference MCP server.
Spyglass by SpyglassMC: Minecraft datapack & resource pack Language Server and mcdoc type system for static AST analysis, NBT schema checking, and symbol diagnostics.
License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
The official Svelte MCP server providing docs and autofixing tools for Svelte development
Lean 4 MCP server: compile, prove theorems, and formalize math with Mathlib.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server (stdio): lint OpenAPI specs with Spectral via the AgentForge API
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides instant GDScript syntax validation and diagnostics by bridging Godot's native Language Server Protocol to MCP clients. Enables real-time syntax checking in AI assistants without requiring custom plugins or context switching to the Godot editor.451 npm47MIT
- AlicenseNot gradedqualityBmaintenanceAn HTTP MCP server providing AI agents with real-time access to all VS Code diagnostics (TypeScript, ESLint, Prettier, etc.) via 5 powerful tools including workspace health scoring.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with language-aware code analysis through the Language Server Protocol, enabling tasks like getting code insights and diagnostics.8 npm192MIT
- AlicenseNot gradedqualityDmaintenanceExposes Language Server Protocol (LSP) functionality as Model Context Protocol (MCP) tools, enabling AI clients to programmatically analyze and edit code in any language supported by VS Code.8 npm33MIT