war-thunder-cdk
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., "@war-thunder-cdk build a Bulge mission where I fly a P-39 through 3 waypoints, then kill 4 fighters"
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.
wt-cdk-mcp
An MCP server and Claude skill for creating, editing and validating War Thunder CDK mission files (.blk).
Ask Claude for "a Bulge mission where I fly a P-39 through three waypoints, then kill four fighters" and it builds a valid mission file, checking every trigger against the real Mission Editor definitions.
Unofficial. Not affiliated with or endorsed by Gaijin Entertainment. War Thunder is a trademark of Gaijin Entertainment. This repo contains no game files; it reads the CDK you have installed.
Requirements
War Thunder + the WarThunderCDK installed inside the game folder
Python 3.10+
Platforms and non-default installs
The default game folder is the Windows Steam path C:\Program Files (x86)\Steam\steamapps\common\War Thunder. For anything else set the WT_DIR environment variable (in your MCP config env) to the game folder, i.e. the one that contains UserMissions and WarThunderCDK:
Install | Typical |
Windows, Steam (other drive) |
|
Windows, standalone launcher |
|
Linux, native Steam |
|
Linux, Proton / Flatpak Steam |
|
Notes: the server only reads and writes plain files, so it runs anywhere Python does; the mission editor itself (missioned.cmd) is Windows-only (use Proton/Wine to run it). The element definitions are read from the CDK's windows-x86_64 folder, so the CDK must be present in the game folder. On Linux/macOS use python3 as the MCP command if python does not exist. Missions are written to <WT_DIR>/UserMissions; pass an absolute path to any tool to save elsewhere.
Related MCP server: Minecraft Builder MCP Server
Quick install (let your agent do it)
Paste this into your coding agent (Claude Code etc.):
Install the War Thunder CDK MCP server and skill from https://github.com/kmanb44/wt-cdk-mcp: clone the repo, then run
python -m pip install -e .in it with the Python you will register (note its absolute path, e.g.python -c "import sys; print(sys.executable)"). Register the MCP serverwar-thunder-cdkin my MCP client config (Claude Code:claude mcp add war-thunder-cdk --scope user -e WT_DIR="<my War Thunder install folder>" -- <that absolute python path> -m wt_cdk_mcp.server; Claude Desktop: themcpServerssection ofclaude_desktop_config.json), and copy.claude/skills/war-thunder-cdkinto my skills folder (Claude Code:~/.claude/skills/). Ask me for the War Thunder install folder if you can't find it (it containsUserMissionsandWarThunderCDK). Ignore harmless git/pip progress text that shows as errors in PowerShell. Finally tell me to restart the client and check that thewt_*tools appear.
Setup
pip install -e .Open this folder in Claude Code; the project-level .mcp.json registers the server automatically (only while working in this folder). If your game is elsewhere, set WT_DIR in the MCP config's env (a shell $env:WT_DIR only affects processes started from that shell, not an MCP client's server):
$env:WT_DIR = "C:\Program Files (x86)\Steam\steamapps\common\War Thunder"To use it from another project or Claude Desktop, add to your MCP config (use the absolute path of the Python you ran pip install -e . with if it is a venv; Claude Code skills live in ~/.claude/skills/):
{ "mcpServers": { "war-thunder-cdk": { "command": "python", "args": ["-m", "wt_cdk_mcp.server"], "env": { "WT_DIR": "C:\\path\\to\\War Thunder" } } } }and copy .claude/skills/war-thunder-cdk into your skills folder.
Tools
Tool | Purpose |
| Valid actions / conditions / events / units and their parameters |
| Find missions and maps |
| Read a mission |
| Build a mission |
| Spawn groups, player slots, PvP settings |
| One-call 24/7 PvP mission with a no-weapons chill zone, infinite ammo and objectives |
| Generic edits |
| Check settings, player, trigger types/params/enums, target names |
How it works
blk.pyparses/serializes Dagor BLK text (round-trips 99.6% of the .blk files shipped with the CDK; the rest are terrain assets).schemes.pyreads the editor's*.scheme.nutdefinitions so element names and parameters are never guessed.missions.pybuilds and validates mission structures;server.pyexposes them as MCP tools.
Caveats
Tested by hand on one map.
wt_build_custom_battlewas tuned in a live custom battle onlevels/avg_container_port.bin. Other maps need their own coordinates (passpvp_x/pvp_zandchill_x/chill_z).The tools cannot read terrain or map bounds, so spawn heights and positions are guesses: if you see "No respawn base to start", move that spawn zone onto valid ground inside the map (editor: Ctrl+Alt+D drops an object to the ground).
The automated tests cover the file format and the recipe producing a valid file; game behaviour itself is only verified by playing the mission.
Writes create a
.bakcopy first; comments in the original file are not preserved and formatting is normalised.Zone scale encoding (sphere/cylinder/box) is unverified outside the editor.
The tools can't launch the game; open results in the Mission Editor (
missioned.cmd) to confirm.
Development
pip install -e ".[dev]"
pytestLicense
MIT
Available Tools
19 toolswt_add_areaC
Add a zone/waypoint to areas. kind: Point | Sphere | Cylinder | Box. Coordinates are mission-space metres (x, y=height, z).
Scale encoding of Sphere/Cylinder/Box follows the editor's convention but should be eyeballed once in the editor.
Inputs: x (required), y (required), z (required), kind (required), +7 more. Returns: result
wt_add_blockC
Add a block under parent_path. items: [{name,type,value}] for values or {name,block:[...]} for sub-blocks (same shape wt_read_block returns).
Inputs: name (required), path (required), items (required), parent_path (required), +1 more. Returns: result
wt_add_objectiveA
Add a mission objective (abstractMissionObjective). BEST PRACTICE (from ExploreCargoPort): make objective_id the exact text you
want shown (spaces/punctuation allowed, names are quoted), leave text empty, keep primary=true; no csv is needed. If text differs
from the id it is written to usr_.csv. Show it at mission start with moSetObjectiveStatus status=1 (or moAddMissionObjective
with a unit/area to get a map icon); complete it with status 2.
Inputs: path (required), objective_id (required), text, primary. Returns: result
wt_add_player_wingsA
Create the player slots a PvP/custom-battle mission needs: per team A/B, per_type tank wings and plane wings
(atank_01.., aplane_01.., btank_01.., bplane_01..), registered as the team's wing entries, plus one squad PlayerSquad
containing all of them. Use object=PlayerSquad + useForTriggerFiltered=true in triggers to affect only the players in an
area (this is how ExploreCargoPort disables shooting: unitSetProperties cannotShoot=true). Replaces any existing player wings.
Inputs: path (required), per_type, squad_name. Returns: result
wt_add_squadA
Group existing areas (unit_type='area_squad') or units ('squad') under one name. Needed for spawns: add the spawn zones with wt_add_area, group them here, then point missionMarkAsRespawnPoint.target at the squad name.
Inputs: name (required), path (required), members (required), x, +3 more. Returns: result
wt_add_triggerB
Add a trigger. events/conditions/actions are lists of {"type": , "params": {...}}; params are validated against the scheme (unknown names / bad enum values are rejected, defaults filled in). If events is empty, periodicEvent(1s) is used. Example action: {"type":"missionMarkAsWaypoint","params":{"target":"waypoint01","visible":true,"primary":true}}. actions_type: PERFORM_ONE_BY_ONE | PERFORM_ALL ; conditions_type: ALL | ANY.
Inputs: name (required), path (required), events, actions, +7 more. Returns: result
wt_add_unitB
Add a unit (unit_type from wt_list_catalog('units'), e.g. armada=aircraft, tankModels=ground, ships...). unit_class is the vehicle id (e.g. 'p-39n'), weapons the loadout id (e.g. 'p_39_n_default'). props: extra values for the unit's props block (name->value; type inferred: bool/int/float/str). set_as_player makes it mission_settings.player.wing.
Inputs: x (required), y (required), z (required), name (required), +9 more. Returns: result
wt_build_custom_battleA
One-call RECIPE (proven in a live custom battle): 24/7 PvP mission with per-team PvP spawns around (pvp_x, pvp_z), a far-away
'chill' spawn zone where weapons are disabled (per-player enter/leave hints), infinite ammo outside it, 16+16 player wings per team
and 8 always-visible decorative objectives named text (e.g. 'discord.gg/xyz'). Overwrites path. Coordinates are guesses: the
chill zone must be on valid ground inside the map (mirror a known-good spot); tell the user to check spawns in game.
Inputs: name (required), path (required), text (required), level (required), +6 more. Returns: result
wt_configure_multiplayerA
Make the mission a custom-battle/PvP mission (gt_mp_solo, allowEmptyTeams, ranks, allowed unit types, time/score limits). time_limit_min/score_limit 0 = effectively endless (for 24/7 servers). Still needs a dummy player wing, respawn points (missionMarkAsRespawnPoint) and a missionBattleArea.
Inputs: path (required), air, ships, tanks, +5 more. Returns: result
wt_get_schemeC
Parameters of one action/condition/event/unit type: name, type, default, options, whether optional (extensible).
Inputs: kind (required), name (required).
wt_list_catalogA
List valid mission-editor element names. kind: actions | conditions | events | misObjs | units | waypoints. filter: case-insensitive substring. These are the ONLY names valid in trigger events/conditions/actions.
Inputs: kind (required), filter. Returns: result
wt_list_levelsA
List locations (levels) available: CDK levels plus the game's levels/*.bin. Use as mission_settings.mission.level, e.g. 'levels/bulge.bin'.
Inputs: no named parameters. Returns: result
wt_list_missionsA
List .blk mission files in the game's UserMissions folder (relative paths usable by the other tools).
Inputs: no named parameters. Returns: result
wt_new_missionB
Create an empty mission file. level e.g. 'levels/bulge.bin' (see wt_list_levels). name must be globally unique.
Inputs: name (required), path (required), level (required), weather, +4 more. Returns: result
wt_read_blockB
Read part of a BLK file as JSON. block_path is dotted, e.g. 'mission_settings.mission' or 'triggers.mission_start'. '' = whole file. Names are matched first-occurrence; units/areas/triggers are looked up by block name.
Inputs: path (required), block_path.
wt_removeC
Remove the first block or value called name from parent_path.
Inputs: name (required), path (required), parent_path (required). Returns: result
wt_set_valueB
Set (or add) one value in a block. type is the BLK type: t=text, i=int, r=real, b=bool, p2/p3=vectors (list), m=matrix. Example: block_path='mission_settings.player', name='wing', type='t', value='player'.
Inputs: name (required), path (required), type (required), value (required), +1 more. Returns: result
wt_summarize_missionB
High-level summary of a mission: settings, player, units, areas/waypoints, triggers, objectives. path: absolute or relative to UserMissions.
Inputs: path (required).
wt_validate_missionA
Check a mission: required settings, player wing exists, duplicate names, every trigger event/condition/action is a real type with valid parameters/enum values, and referenced targets exist. Run after every edit.
Inputs: path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools target distinct operations (read_block vs add_block vs set_value vs remove), and the domain-specific adders (add_area, add_unit, add_trigger, add_objective) are clearly separated. Some overlap exists between the generic block tools and the specialized adders, and wt_build_custom_battle duplicates a whole chain of other tools, but descriptions make the intended usage clear.
All tools share a wt_ prefix and snake_case verb_noun pattern (wt_add_unit, wt_list_levels, wt_validate_mission), which is highly predictable. Minor deviations like wt_remove (verb only) and wt_new_mission using 'new' instead of 'add'/'create' keep it just shy of perfect.
19 tools is on the heavier side, but each maps to a genuinely distinct operation in a complex schema-driven mission editor (catalog lookup, block CRUD, entity adders, multiplayer setup, validation). Nothing feels obviously redundant except the composite wt_build_custom_battle, which is justified as a recipe.
The surface covers the full lifecycle: list levels/missions, create, read, summarize, edit blocks/values, add units/areas/squads/triggers/objectives, configure multiplayer, validate, and a one-call build recipe. Gaps are minor — no explicit mission delete/rename or targeted trigger/unit edit beyond generic block operations, which agents can work around.
Maintenance
Related MCP Connectors
Cloudflare Workers MCP server: claude-skill-validator
Path-scoped team memories, rules and skills for Claude Code, Cursor, Codex and other MCP clients.
Claude Schema Output Agent
Turn Markdown into Claude Agent Skills, validate SKILL.md, and convert docs to HTML.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude to create, edit, run, and manage reusable skills stored locally, including executing scripts with automatic dependency management and environment variables. Works across all MCP-compatible clients like Cursor, Claude Desktop, and claude.ai.531MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to generate Minecraft structures from natural language descriptions, creating .schem files for WorldEdit import.18-
- AlicenseNot gradedqualityBmaintenanceEnables Claude to drive a live GIANTS Editor 10.x (FS25) session with 59 tools for terrain editing, field creation, asset placement, map audits, and more through natural language.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI mission designers to author and validate DCS World missions through the Mission Editor via a versioned protocol, providing tools for planning, payloads, map inspection, and live editor integration.1MIT