datapack-check-mcp
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., "@datapack-check-mcp Check my datapack project for syntax errors"
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-check-mcp
用 Spyglass 语言服务器检查 Minecraft Java 版数据包,通过 MCP stdio 把诊断交给任意 MCP 客户端。
工具
工具 | 作用 |
| 检查单个 |
| 检查工作区下全部数据包文件 |
返回 JSON:path、line、column、severity、message。ok 在没有 error 且分析未被取消时为 true。
静态检查语法、JSON schema、引用/ID。
Related MCP server: Datapack MCP Server
要求
Node.js 20+
第一次检查会下载原版数据包缓存,可能要几分钟
安装
cd D:\c\datapack-check-mcp
npm install
npm run build任意支持 MCP stdio 的客户端按下面启动即可(配置字段名因客户端而异):
{
"command": "node",
"args": ["D:/datapack-check-mcp/dist/index.js"],
"env": {
"DATAPACK_WORKSPACE": "D:/path/to/your-datapack-or-workspace"
}
}DATAPACK_WORKSPACE 应指向带 pack.mcmeta 的包根,或包含多个包的父目录。不设的话:check_file 会从文件向上找 pack.mcmeta,check_project 用传入的 root 或进程 cwd。
命令行(不经过 MCP)
node dist/index.js --check-file test/fixture-pack/data/demo/function/bad.mcfunction
node dist/index.js --check-project test/fixture-pack有 error 时退出码为 2。
Agent Skill
skills/datapack-check/SKILL.md 规定何时调用本 MCP。把它复制到所用 Agent 的 skills 目录后,写数据包时会走检查流程。
环境变量
变量 | 默认 | 含义 |
| (推断) | Spyglass 工作区根 |
|
| 等 Spyglass 就绪(含首次缓存) |
|
| CLI |
|
|
|
|
| Spyglass 诊断语言 |
Available Tools
2 toolscheck_fileCheck datapack fileA
Run Spyglass (Datapack Helper Plus engine) diagnostics on one Minecraft datapack file (.mcfunction, pack JSON, .mcmeta, .snbt, .mcdoc). Returns path/line/severity/message.
Inputs: path (required).
check_projectCheck datapack projectA
Run Spyglass (Datapack Helper Plus engine) on every .mcfunction, pack JSON, .mcmeta, .snbt, and .mcdoc file under a datapack workspace. Pass the pack root (folder with pack.mcmeta) or a parent folder. First run may download the vanilla cache and take a few minutes.
Inputs: root.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools are clearly distinct in scope: one checks a single file, the other checks an entire project workspace. There is no overlap or ambiguity about which tool to use for a given task.
Both tools follow a consistent 'check_' verb-noun pattern, with 'file' and 'project' clarifying the target. The naming is predictable and uniform.
The server has only 2 tools, which is below the typical 3-15 range, but the narrow purpose of checking datapack files is well-served by a file-level and a project-level check. The count is slightly thin but reasonable for the scope.
The domain is linting/diagnostics for datapack files. The server covers both individual file checks and whole-project scans, which are the only two granularities needed. No obvious operations are missing for the stated purpose.
Related MCP Connectors
Lean 4 MCP server: compile, prove theorems, and formalize math with Mathlib.
MCP server (stdio): lint OpenAPI specs with Spectral via the AgentForge API
The official Svelte MCP server providing docs and autofixing tools for Svelte development
MCP server (stdio): validate JSON against JSON Schema (draft-07 / 2020-12) via the AgentForge API
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes Language Server Protocol (LSP) tools such as diagnostics, goto definition, find references, symbols, and rename as a stdio MCP server.9MIT
- AlicenseNot gradedqualityDmaintenanceValidates Minecraft datapack JSON files (recipes, advancements, loot tables, etc.) against official Minecraft data formats using Spyglass.MIT
- AlicenseAqualityDmaintenanceBridges MCP and LSP to enable semantic code analysis, including go-to-definition, find references, hover info, and function call relationship checks.4ISC
- FlicenseNot gradedqualityBmaintenanceExposes LSP features (definition, hover, references, etc.) over MCP, spawning an isolated language server process per project.-