Server data from the Official MCP Registry
Source-preserving HOI4 focus, scripted GUI, and map tools with safe transactions.
Source-preserving HOI4 focus, scripted GUI, and map tools with safe transactions.
Valid MCP server (2 strong, 1 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
5 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: HOI4_AGENT_CONFIG
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-klimpaskov-hoi4-agent-tools": {
"env": {
"HOI4_AGENT_CONFIG": "your-hoi4-agent-config-here"
},
"args": [
"-y",
"hoi4-agent-tools"
],
"command": "npx"
}
}
}From the project's GitHub README.
HOI4 Agent Tools is a source-preserving Model Context Protocol server for coding agents working on Hearts of Iron IV mods. It combines a Focus Tree Workbench, Scripted GUI Studio, and headless map transaction system over one shared parser, workspace index, renderer, artifact store, and rollback engine.
The workflow is:
human request → coding agent → MCP tools → registered external mod workspace
The MCP server is the product interface. There is no focus editor, GUI editor, map editor, dashboard, or gameplay-tool CLI. The setup utility only creates server configuration, checks dependencies, and prints client configuration for review.
Requires Node.js 22 or 24.
npm install --global hoi4-agent-tools@0.1.6
hoi4-agent-tools-setup --init-config /path/to/config.json --workspace /path/to/mod --game /path/to/game
hoi4-agent-tools-setup --diagnose --config /path/to/config.json
hoi4-agent-tools-setup --print-client-config --config /path/to/config.json
The generated configuration is read-only. Add --enable-writes --server-state /separate/operator/state only when transaction apply/rollback is intended. The state root is mandatory in transaction mode and must not overlap source, registration, artifact, cache, fixture, or generated-storage roots. The utility never edits an MCP client's settings.
For one-shot stdio installation, clients can launch:
npx -y hoi4-agent-tools@0.1.6
with HOI4_AGENT_CONFIG set to the reviewed config path.
{
"version": 1,
"writePolicy": "read-only",
"registrationRoots": ["/projects/hoi4-mods"],
"writableRegistrationRoots": [],
"workspaces": [
{
"id": "my_mod",
"name": "My Mod",
"root": "/projects/hoi4-mods/my-mod",
"gameRoot": "/games/Hearts of Iron IV",
"dependencyRoots": [],
"replacePaths": [],
"writeEnabled": false
}
]
}
All public paths are workspace-relative. Installed game and dependency roots are always read-only. Runtime mod registration additionally requires a separate, default-empty writableRegistrationRoots capability, so a read-only source root cannot be relabelled as a mod. Caches, render evidence, transaction manifests, and rollback blobs live under the workspace's ignored .hoi4-agent/ directory; the private journal-authentication key and replay-protection heads live only under the separate operator serverStateRoot.
See configuration and security before enabling writes.
Generic JSON-based clients:
{
"mcpServers": {
"hoi4_agent_tools": {
"command": "npx",
"args": ["-y", "hoi4-agent-tools@0.1.6"],
"env": { "HOI4_AGENT_CONFIG": "/absolute/path/to/config.json" }
}
}
}
Codex config.toml:
[mcp_servers.hoi4_agent_tools]
command = "npx"
args = ["-y", "hoi4-agent-tools@0.1.6"]
env = { HOI4_AGENT_CONFIG = "/absolute/path/to/config.json" }
On Windows, use npx.cmd. Additional reviewed examples are under examples/clients.
The server starts read-only. A source write requires all of the following:
serverStateRoot;hoi4.transaction_apply call carrying the exact expected plan hash.Apply rechecks the principal, workspace, canonical roots, expiry, and every source hash. Stale or cross-workspace plans are rejected. Multi-file changes use a durable journal and exact rollback blobs; post-write validation failure restores the original bytes. See transactions.
hoi4.project_register, hoi4.project_scan, hoi4.project_statushoi4.transaction_diff, hoi4.transaction_apply, hoi4.transaction_rollback, hoi4.transaction_statushoi4.artifact_list, hoi4.artifact_describe, plus opaque MCP resourcesLarge HTML, SVG, PNG, JSON, fidelity, hierarchy, map, and diff outputs are resources rather than oversized tool responses. MCP prompts guide safe focus, GUI, and map workflows but never bypass validation.
Scripted GUI Studio parses and renders source files itself. It never launches, controls, automates, hooks, or captures screenshots from Hearts of Iron IV. Every GUI render is labelled as an offline representation and includes a fidelity report with modelled, approximated, ignored, missing, unsupported, and unresolved fields.
hoi4-agent-tools-http provides stateful Streamable HTTP on 127.0.0.1 by default. Every request requires authentication. Non-loopback deployment additionally requires HTTPS, OAuth/OIDC JWT verification, allowed origins, Host validation, principal-to-workspace grants, and limits. See self-hosting; legacy SSE-only transport is not provided.
npm ci
npm run check
npm run inspector
Portable CI uses only project-owned synthetic fixtures. Opt-in local integration tests may read installed game and external mod sources but never copy or modify them.
Apache-2.0 licensed. Hearts of Iron IV and Paradox Interactive are trademarks of their respective owners; this project is unaffiliated.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.