mc is a command line tool to manage and run Minecraft instances.
Describe your server in a single mc.kdl manifest; mc takes care of the
rest:
- installs a Java runtime, the Minecraft binary, a mod loader, and mods
- manages mods with a lockfile (
mc add,mc remove,mc update) - runs the server with clean shutdown
- takes scheduled world backups, stored locally or on S3
Install with mise:
mise use -g github:afrigon/mcor grab a pre-built binary from the releases page. Then:
mc init myserver --eula
cd myserver
mc runPassing --eula indicates you have read and agree to the
Minecraft EULA.
Tools are pinned with mise; mise install sets up
the toolchain, then:
mise run build # release build
mise run test # test suite
mise run format # rustfmt, on the nightly the config requires
mise run docs # build the documentation bookFull documentation is available at afrigon.github.io/mc: guides for mods, backups, and systemd, plus a complete reference for every command and manifest key.