- Knownframe
- battlemap-mcp
- Docs
- Install on Linux
Install on Linux
Install the purchased Linux version of Dungeondraft, along with your AI client, in the same Linux environment. For WSL, use Ubuntu’s Linux filesystem and run the client inside Ubuntu too; do not reuse the Windows companion or its registration. The earlier setup used the Linux editor, not the Windows editor through Wine.
Download
Section titled “Download”-
Open Releases and download
battlemap-mcp-mod-<version>.zipandbattlemap-mcp-companion-<version>-linux-x64.tar.gzfrom the same release’s Assets. This package is for Intel/AMD 64-bit Linux; there is no Linux ARM package. Skip the Source code archives. If no Linux asset is listed, that release does not yet have a downloadable Linux companion. -
Extract the archive with your file manager. Move the whole extracted battlemap-mcp folder into a permanent folder you own, such as Apps in your home folder. Keep
_internaland all other files together. -
Open a terminal in the extracted battlemap-mcp folder and run:
Terminal window ./battlemap-mcp --versionIt should print the package version. The
.tar.gzneeds no Python, uv, Git,sudo, or PATH change.
To install the Debian package instead of the .tar.gz, see
Debian and Ubuntu package.
Install the mod
Section titled “Install the mod”- Extract the mod ZIP. Move its battlemap-mcp-bridge folder into a writable mods folder in your Linux home directory, such as Dungeondraft Mods. Keep an existing writable mods folder if you already use one.
- In the Linux Dungeondraft app, choose Mods → Browse and select the folder
containing battlemap-mcp-bridge. The default
/opt/Dungeondraft/modslocation may require administrator access; use your own folder instead. - Tick Battlemap MCP Bridge and click Accept. Then fully quit and reopen Dungeondraft: it reads mods only when it starts. Create or open a map and wait for loading to finish.
Connect your AI app
Section titled “Connect your AI app”-
With your chosen client installed, run one of these commands:
Terminal window ./battlemap-mcp setup --client codexTerminal window ./battlemap-mcp setup --client claude-codeTerminal window ./battlemap-mcp setup --client opencode -
Read the displayed plan and confirm it. Setup installs the bundled skills and registers this companion’s permanent path.
-
Restart your client afterward.
For OpenCode 1, setup prints the entry to paste instead of registering (see OpenCode). You may run both commands if you use both clients. See Other AI clients if automatic registration is unavailable.
Check the connection
Section titled “Check the connection”-
With Battlemap MCP Bridge enabled and a map open in the Linux editor, run:
Terminal window ./battlemap-mcp doctor --live --briefExpect Ready: connected to Battlemap MCP Bridge.
-
Restart your AI client and ask it to check the connection and report the open map’s dimensions without changing it.
If the checker cannot connect, confirm the editor and companion are in the same
Linux environment, the correct mods folder is selected, and a map has finished
loading. The bridge’s private state defaults to ~/.local/state/battlemap-mcp;
do not point the Linux client at Windows token files.
Debian and Ubuntu package
Section titled “Debian and Ubuntu package”From 1.5.0, each release has a battlemap-mcp_<version>_amd64.deb for 64-bit
Intel/AMD Debian or Ubuntu. It needs at least the C library of Ubuntu 22.04,
where it is built. It has not been tried with the editor on a native Linux
desktop.
Download it from Releases, then install it from the folder you saved it to:
sudo apt install ./battlemap-mcp_<version>_amd64.debThe package installs the program only. As yourself, not with sudo, and with
Dungeondraft closed, add the mod:
battlemap-mcp installConnect your AI app. Use codex or opencode in place of claude-code for
those clients:
battlemap-mcp setup --client claude-codeEnable Battlemap MCP Bridge in Dungeondraft, restart it, and open a map. Then check the connection:
battlemap-mcp doctor --live --briefThere is no package repository. To update, see
Update the Debian package.
sudo apt remove battlemap-mcp removes the program and leaves your settings,
the mod and the skills.