
CodeCraft
io.github.TanerTalasv0.1.0更新於 Oct 9, 2026
Checks whether generated Minecraft Bedrock content will actually load. Nine read-only tools.
概覽
唯讀 MCP 伺服器,用來驗證 Minecraft 基岩版附加內容,並查詢與版本綁定的識別碼、結構定義和版本號。
- 功能
- CodeCraft 提供九個唯讀工具,用來檢查產生的 Minecraft 基岩版內容是否真的能載入。它依官方結構定義驗證 JSON,對指令碼執行真正的 tsc 診斷,檢查指令、Python 自動化指令碼和整個套件,並從與版本綁定的索引查詢識別碼、結構定義和版本號。它只回報發現的問題,不產生也不修正內容。
- 適用情境
- 適合在製作或審查 Minecraft 基岩版行為包、資源包、指令碼或指令時,想找出那些能通過結構定義驗證卻在遊戲中無聲失效的欄位。它適合在產生內容之前、寫入檔案之前,以及作為最後一步審查時呼叫。
- 執行需求
- 需要遠端 Streamable HTTP 端點,僅支援 POST,未宣告驗證、環境變數或標頭。用戶端需支援自訂 MCP 連接器;README 說明可在 Claude 的「自訂 → 連接器」中新增。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 CodeCraft,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"codecraft": {
"type": "http",
"url": "https://codecraft-ashy-seven.vercel.app/mcp"
}
}
}README
CodeCraft
A validation and data-lookup MCP server for Minecraft Bedrock.
You bring the model. CodeCraft does not generate anything — it measures whether what was generated is actually going to work.
[data] [license] [MCP] [Bedrock]
Usage site · setup, tool reference, and where validation ends
Why it exists
In Bedrock, a field name recalled slightly wrong produces output that silently does not work. No error message, no red line. Everything looks fine until the pack is loaded into the game.
A real example — both lines pass the schema, one of them never loads:
With the top line the pack did not appear in the behavior pack list at all.
It did not even raise an error. The javascript type is left over from before
1.16 and the schemas keep it for backward compatibility, but it does not load
with @minecraft/server 2.x. The schema says "valid type", the game says "I
cannot load this type".
That one line was measured in the real game (30-08-2026). There are seven more
classes like it, all in docs/VALIDATION-LIMITS.md
with ContentLog evidence.
CodeCraft closes that gap: values are read from version-pinned data, and
output is validated against the official schema and against a real tsc.
Nine tools
All nine are read-only. The server writes nothing, sends data nowhere, and keeps no user data.
The order is not alphabetical, it is the order of use — and tools/list
preserves it.
Setup
In Claude, open Customize → Connectors (not Settings; older guides point there, and there is no custom connector field on that screen):
- Customize → Connectors → add a custom connector
- Paste the endpoint address
- Save
Three things you should see once it connects — a single "it worked" is not enough:
- The tool count is 9, complete
- The client classifies them as "read only tools" — a separate permission class
- Our own titles are visible, e.g. "Can Bedrock do this" — the tool surface is English
More: docs/MCP.md
Where validation ends
This table is not advertising, it is a statement of limits. "Passed validation" and "works in the game" are not the same thing — eight classes of error get through validation and break in the game, and every one of them was measured in a real game.
F and G are worth reading twice. The game rejects both exactly as hard — the whole block definition is dropped. F was raised to error and G was not, because our own component index has a measured gap of 126 names. What decides severity is not only "what does the game do" but "how complete is our list" — two separate questions, and neither is answered without measuring.
The tools find and report, they do not write — the endpoint is read-only,
fixing is the caller's job. The half that is still open is written down too:
docs/VALIDATION-LIMITS.md
Bedrock has five separate version numbers
This is where the confusion hurts most, and it is half the reason the tool exists:
format_version is an axis of its own and has nothing to do with the game
version: it is the schema version of that file type. Block 1.21.100, feature
rule 1.13.0, spawn rule 1.8.0, manifest 2. It does not change when the
game version changes.
The module version is a trap of its own — the game version arrives embedded inside the prerelease tag:
Correct values are not recalled, they are read from the schema — which is
exactly what get_schema and get_version_info are for.
Architecture
Dependencies point one way: mcp → validator → knowledge → data. Nothing
imports backwards.
There is no build step. Node runs the .ts files directly; tsc is used
only for type checking and, as a subprocess, for validate_script.
Data
data/ is not a database — it is a set of indexes that live in git and are
versioned there. Eight collectors produce it from four upstream sources.
A scheduled GitHub Action refreshes it, and a freshness check reports when the data goes stale. The cron is set to 05:00 UTC — but it does not run then. All five scheduled runs measured on 03-09-2026 started late, the earliest by 4h24m, ~5h on average; GitHub queues scheduled jobs and delays them under load. So the indexes can be up to 1 day + ~5 hours old.
Raw upstream data never enters the repo. Only derived facts are indexed:
whether an identifier exists, the name of a field, a version number. Reasoning
and measurements: docs/SOURCES.md
Invariants
- The validation layer never calls an LLM. No package in this repo depends
on an LLM SDK. The rule is not a sentence, it is a measurement:
packages/mcp/test/no-llm.test.ts - The endpoint is read-only. All nine tools carry
readOnlyHint data/lives in git. No database- The free tier is a requirement, not a constraint
- Raw upstream data never enters the repo
How measurement is written down
In this repo, "it works" and "it was measured" are different things. A claim is written only once it has been measured, and how it was measured is written next to it — with the date. A measurement that turns out wrong is not deleted; it is struck through and where it went is written down.
That is what the "measured (date)" comments in the code are: each one is the record of something that really did break, once.
Documents
The documents below are in Turkish — they are the developer's notebook. The product surface is English: the tools, the server instructions, every finding and error message, and the site.
License
The code is Apache-2.0. The repo carries third-party content under
three separate licenses and produces data derived from a fourth —
THIRD-PARTY-NOTICES.md says which is which.
NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.
來源:README.md,提交 a5c59f5
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026

